Dave Jones wrote:
On Mon, Nov 06, 2006 at 09:13:45PM +0000, Alan Cox wrote: > +static const struct pci_device_id via_vlink_fixup_tbl[] = { > + { PCI_VDEVICE(VIA, PCI_DEVICE_ID_VIA_8233_0), 17}, > + { PCI_VDEVICE(VIA, PCI_DEVICE_ID_VIA_8233A), 17 }, > + { PCI_VDEVICE(VIA, PCI_DEVICE_ID_VIA_8233C_0), 17 }, > + { PCI_VDEVICE(VIA, PCI_DEVICE_ID_VIA_8235), 16 }, > + /* May not be needed for the 8237 */ > + { PCI_VDEVICE(VIA, PCI_DEVICE_ID_VIA_8237), 15 }, > + { PCI_VDEVICE(VIA, PCI_DEVICE_ID_VIA_8237A), 15 }, > { 0, }, This got me wondering what PCI_VDEVICE was, so I went looking. It's a libata'ism it seems with the comment.. /* move to PCI layer? */ Which sounds like a good idea to me. But until this is moved, does quirks.c actually compile with this patch? I don't see an include of linux/libata.h there. When it gets moved to the PCI layer, I wonder if it'd be worth doing the same thing to the second argument, so that we'd be able to do.. { PCI_VDEVICE(VIA, VIA_8233_0), 17}, Or maybe even.. { PCI_VDEVICE(VIA, 8233_0), 17},
Won't work, libata passes hex constants as the second argument... which is the policy I'm encouraging for all places where the PCI_DEVICE_ID_xxx is only used in a single place.
Jeff - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- VIA IRQ quirk missing PCI ids since 2.6.16.17
- From: "Wilco Beekhuizen" <[email protected]>
- Re: VIA IRQ quirk missing PCI ids since 2.6.16.17
- From: Sergio Monteiro Basto <[email protected]>
- Re: VIA IRQ quirk missing PCI ids since 2.6.16.17
- From: Alan Cox <[email protected]>
- Re: VIA IRQ quirk missing PCI ids since 2.6.16.17
- From: Dave Jones <[email protected]>
- VIA IRQ quirk missing PCI ids since 2.6.16.17
- Prev by Date: Re: arcmsr destiny
- Next by Date: Re: [take22 0/4] kevent: Generic event handling mechanism.
- Previous by thread: Re: VIA IRQ quirk missing PCI ids since 2.6.16.17
- Next by thread: Re: VIA IRQ quirk missing PCI ids since 2.6.16.17
- Index(es):