Re: [PATCH v4 0/2] usb: implement AMD remote wakeup quirk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 25 Sep 2013, Huang Rui wrote:

> Yes, the patch set refactors chipset type for AMD chipset
> genernations, this type is appropriate for all AMD platforms including
> the previous.
> 
> For example, below quirk for amd700 with SB800 chipsets, actually I
> can only use: amd_chipset.sb_type.gen == AMD_CHIPSET_SB800 in
> pci-quirks.c instead.
> 
> static int ohci_quirk_amd700(struct usb_hcd *hcd)
> {
>         ...
> 
>         amd_smbus_dev = pci_get_device(PCI_VENDOR_ID_ATI,
>                         PCI_DEVICE_ID_ATI_SBX00_SMBUS, NULL);
>         if (!amd_smbus_dev)
>                 return 0;
>         
>         rev = amd_smbus_dev->revision;
>         
>         /* SB800 needs pre-fetch fix */
>         if ((rev >= 0x40) && (rev <= 0x4f)) {
>                 ohci->flags |= OHCI_QUIRK_AMD_PREFETCH;
>                 ohci_dbg(ohci, "enabled AMD prefetch quirk\n");
>         }
>         
>         pci_dev_put(amd_smbus_dev);
>         amd_smbus_dev = NULL;
>         
>         ...
> }
> 
> So I mean whether I should do this updates for old AMD quirks in
> future after this patch set is applied.

Sure, go ahead.  It will make the code easier to understand.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux