lkml.org 
[lkml]   [2006]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PCI device driver writing newbie trouble
On Thu, Apr 20, 2006 at 04:04:07PM +0100, Bert Thomas wrote:
> > static const struct pci_device_id cif50_ids[] = {
> > {
> > .vendor = 0x10B5,
> > .device = 0x9050,
> > .subvendor = PCI_ANY_ID, //0x10B5,
> > .subdevice = PCI_ANY_ID, //0x1080,
> > .class = PCI_ANY_ID,
> > .class_mask = PCI_ANY_ID
> > },

On 4/22/06, Greg KH <greg@kroah.com> wrote:
> Try the PCI_DEVICE() macro here instead.
>
> But that should not matter, this should work, I don't know why it
> doesn't sorry.

No device class will ever match the above class and class_mask.
Changing them to zero makes it work according to Bert.

Pekka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-23 09:53    [W:0.045 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site