]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: pci-quirks: refactor AMD quirk to abstract AMD chipset types
authorHuang Rui <ray.huang@amd.com>
Mon, 16 Sep 2013 15:47:27 +0000 (23:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 00:24:37 +0000 (17:24 -0700)
commit22b4f0cd1d4d98f50213e9a37ead654e80b54b9d
treef9050d6eac1e95874507308a1e0def0b2ba08b45
parentd47aa4536dfc9385e02a4dcbed2cf7bea3a18492
usb: pci-quirks: refactor AMD quirk to abstract AMD chipset types

This patch abstracts out a AMD chipset type which includes southbridge
generation and its revision. When os excutes usb_amd_find_chipset_info
routine to initialize AMD chipset type, driver will know which kind of
chipset is used.

This update has below benifits:
- Driver is able to confirm which southbridge generations and their
  revision are used, with chipset detection once.
- To describe chipset generations with enumeration types brings better
  readability.
- It's flexible to filter AMD platforms to implement new quirks in future.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Cc: Andiry Xu <andiry.xu@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/pci-quirks.c