* [PATCH RESEND 2/3] ahci: add AMD CZ SATA device ID
@ 2013-06-03 10:24 Shane Huang
[not found] ` <1370255050-2358-1-git-send-email-shane.huang-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Shane Huang @ 2013-06-03 10:24 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Tejun Heo, Jean Delvare, linux-pci, linux-ide, linux-i2c,
Shane Huang, stable
To add AMD CZ SATA controller device ID of IDE mode.
Signed-off-by: Shane Huang <shane.huang@amd.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
---
drivers/ata/ahci.c | 1 +
drivers/pci/quirks.c | 2 ++
include/linux/pci_ids.h | 1 +
3 files changed, 4 insertions(+)
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 751f1ea..548f1c3 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -310,6 +310,7 @@ static const struct pci_device_id ahci_pci_tbl[] = {
/* AMD */
{ PCI_VDEVICE(AMD, 0x7800), board_ahci }, /* AMD Hudson-2 */
+ { PCI_VDEVICE(AMD, 0x7900), board_ahci }, /* AMD CZ */
/* AMD is using RAID class only for ahci controllers */
{ PCI_VENDOR_ID_AMD, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
PCI_CLASS_STORAGE_RAID << 8, 0xffffff, board_ahci },
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 7d68aee..5aced49 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -1022,6 +1022,8 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_IXP700_SATA, quirk
DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_IXP700_SATA, quirk_amd_ide_mode);
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_HUDSON2_SATA_IDE, quirk_amd_ide_mode);
DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_HUDSON2_SATA_IDE, quirk_amd_ide_mode);
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CZ_SATA_IDE, quirk_amd_ide_mode);
+DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CZ_SATA_IDE, quirk_amd_ide_mode);
/*
* Serverworks CSB5 IDE does not fully support native mode
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index e0b5623..22449c1 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -570,6 +570,7 @@
#define PCI_DEVICE_ID_AMD_HUDSON2_IDE 0x780c
#define PCI_DEVICE_ID_AMD_HUDSON2_SATA_IDE 0x7800
#define PCI_DEVICE_ID_AMD_HUDSON2_SMBUS 0x780b
+#define PCI_DEVICE_ID_AMD_CZ_SATA_IDE 0x7900
#define PCI_VENDOR_ID_TRIDENT 0x1023
#define PCI_DEVICE_ID_TRIDENT_4DWAVE_DX 0x2000
--
1.8.1.2
^ permalink raw reply related [flat|nested] 5+ messages in thread[parent not found: <1370255050-2358-1-git-send-email-shane.huang-5C7GfCeVMHo@public.gmane.org>]
* Re: [PATCH RESEND 2/3] ahci: add AMD CZ SATA device ID [not found] ` <1370255050-2358-1-git-send-email-shane.huang-5C7GfCeVMHo@public.gmane.org> @ 2013-06-03 10:04 ` Sergei Shtylyov 2013-06-03 19:02 ` Bjorn Helgaas 0 siblings, 1 reply; 5+ messages in thread From: Sergei Shtylyov @ 2013-06-03 10:04 UTC (permalink / raw) To: Shane Huang Cc: Bjorn Helgaas, Tejun Heo, Jean Delvare, linux-pci-u79uwXL29TY76Z2rM5mHXA, linux-ide-u79uwXL29TY76Z2rM5mHXA, linux-i2c-u79uwXL29TY76Z2rM5mHXA, stable-u79uwXL29TY76Z2rM5mHXA Hello. On 03-06-2013 14:24, Shane Huang wrote: > To add AMD CZ SATA controller device ID of IDE mode. > Signed-off-by: Shane Huang <shane.huang-5C7GfCeVMHo@public.gmane.org> > Reviewed-by: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > Cc: stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > --- > drivers/ata/ahci.c | 1 + > drivers/pci/quirks.c | 2 ++ > include/linux/pci_ids.h | 1 + > 3 files changed, 4 insertions(+) > diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c > index 751f1ea..548f1c3 100644 > --- a/drivers/ata/ahci.c > +++ b/drivers/ata/ahci.c > @@ -310,6 +310,7 @@ static const struct pci_device_id ahci_pci_tbl[] = { > > /* AMD */ > { PCI_VDEVICE(AMD, 0x7800), board_ahci }, /* AMD Hudson-2 */ > + { PCI_VDEVICE(AMD, 0x7900), board_ahci }, /* AMD CZ */ > /* AMD is using RAID class only for ahci controllers */ > { PCI_VENDOR_ID_AMD, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, > PCI_CLASS_STORAGE_RAID << 8, 0xffffff, board_ahci }, [...] > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > index e0b5623..22449c1 100644 > --- a/include/linux/pci_ids.h > +++ b/include/linux/pci_ids.h > @@ -570,6 +570,7 @@ > #define PCI_DEVICE_ID_AMD_HUDSON2_IDE 0x780c > #define PCI_DEVICE_ID_AMD_HUDSON2_SATA_IDE 0x7800 > #define PCI_DEVICE_ID_AMD_HUDSON2_SMBUS 0x780b > +#define PCI_DEVICE_ID_AMD_CZ_SATA_IDE 0x7900 We don't add the device IDs to this file anymore. And if you added it, why didn't you use it in ahci.c? MBR, Sergei ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH RESEND 2/3] ahci: add AMD CZ SATA device ID 2013-06-03 10:04 ` Sergei Shtylyov @ 2013-06-03 19:02 ` Bjorn Helgaas 2013-06-04 2:09 ` Huang, Shane 0 siblings, 1 reply; 5+ messages in thread From: Bjorn Helgaas @ 2013-06-03 19:02 UTC (permalink / raw) To: Sergei Shtylyov Cc: Shane Huang, Tejun Heo, Jean Delvare, linux-pci@vger.kernel.org, linux-ide, linux-i2c, stable On Mon, Jun 3, 2013 at 4:04 AM, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote: > Hello. > > > On 03-06-2013 14:24, Shane Huang wrote: > >> To add AMD CZ SATA controller device ID of IDE mode. > > >> Signed-off-by: Shane Huang <shane.huang@amd.com> >> Reviewed-by: Tejun Heo <tj@kernel.org> >> Cc: stable@vger.kernel.org >> --- >> drivers/ata/ahci.c | 1 + >> drivers/pci/quirks.c | 2 ++ >> include/linux/pci_ids.h | 1 + >> 3 files changed, 4 insertions(+) > > >> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c >> index 751f1ea..548f1c3 100644 >> --- a/drivers/ata/ahci.c >> +++ b/drivers/ata/ahci.c >> @@ -310,6 +310,7 @@ static const struct pci_device_id ahci_pci_tbl[] = { >> >> /* AMD */ >> { PCI_VDEVICE(AMD, 0x7800), board_ahci }, /* AMD Hudson-2 */ >> + { PCI_VDEVICE(AMD, 0x7900), board_ahci }, /* AMD CZ */ >> /* AMD is using RAID class only for ahci controllers */ >> { PCI_VENDOR_ID_AMD, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, >> PCI_CLASS_STORAGE_RAID << 8, 0xffffff, board_ahci }, > > [...] > >> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h >> index e0b5623..22449c1 100644 >> --- a/include/linux/pci_ids.h >> +++ b/include/linux/pci_ids.h >> @@ -570,6 +570,7 @@ >> #define PCI_DEVICE_ID_AMD_HUDSON2_IDE 0x780c >> #define PCI_DEVICE_ID_AMD_HUDSON2_SATA_IDE 0x7800 >> #define PCI_DEVICE_ID_AMD_HUDSON2_SMBUS 0x780b >> +#define PCI_DEVICE_ID_AMD_CZ_SATA_IDE 0x7900 > > > We don't add the device IDs to this file anymore. And if you added it, > why didn't you use it in ahci.c? Sergei has a good point. I first thought it was used in both ahci.c and quirks.c, but since it's not, it seems easier to forget about the pci_ids.h update. I dropped the pci_ids.h updates from patches 2 and 3 and pushed the result to http://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git/log/?h=pci/shane-amd-ahci-i2c Let me know if anybody objects. Otherwise, I'll merge it into my -next branch tomorrow. Bjorn ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH RESEND 2/3] ahci: add AMD CZ SATA device ID 2013-06-03 19:02 ` Bjorn Helgaas @ 2013-06-04 2:09 ` Huang, Shane 2013-06-04 21:39 ` Bjorn Helgaas 0 siblings, 1 reply; 5+ messages in thread From: Huang, Shane @ 2013-06-04 2:09 UTC (permalink / raw) To: Bjorn Helgaas, Sergei Shtylyov Cc: Tejun Heo, Jean Delvare, linux-pci@vger.kernel.org, linux-ide@vger.kernel.org, linux-i2c, stable@vger.kernel.org, Huang, Shane Bjorn, > Let me know if anybody objects. Otherwise, I'll merge it into my > -next branch tomorrow. The change is fine with me, thanks to you and Sergei. Shane ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH RESEND 2/3] ahci: add AMD CZ SATA device ID 2013-06-04 2:09 ` Huang, Shane @ 2013-06-04 21:39 ` Bjorn Helgaas 0 siblings, 0 replies; 5+ messages in thread From: Bjorn Helgaas @ 2013-06-04 21:39 UTC (permalink / raw) To: Huang, Shane Cc: Sergei Shtylyov, Tejun Heo, Jean Delvare, linux-pci@vger.kernel.org, linux-ide@vger.kernel.org, linux-i2c, stable@vger.kernel.org On Mon, Jun 3, 2013 at 8:09 PM, Huang, Shane <Shane.Huang@amd.com> wrote: > Bjorn, > >> Let me know if anybody objects. Otherwise, I'll merge it into my >> -next branch tomorrow. > > The change is fine with me, thanks to you and Sergei. OK, all three are now in the PCI -next branch, headed for v3.11. After removing the dependences on pci_ids.h, they could have gone individually via i2c and ahci trees, but in the interest of getting on with it, I just put them in. Bjorn ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-04 21:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-03 10:24 [PATCH RESEND 2/3] ahci: add AMD CZ SATA device ID Shane Huang
[not found] ` <1370255050-2358-1-git-send-email-shane.huang-5C7GfCeVMHo@public.gmane.org>
2013-06-03 10:04 ` Sergei Shtylyov
2013-06-03 19:02 ` Bjorn Helgaas
2013-06-04 2:09 ` Huang, Shane
2013-06-04 21:39 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox