* [PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-11-03 1:47 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-11-03 1:47 UTC (permalink / raw)
To: Felipe Balbi, linux-usb, linux-pci, Bjorn Helgaas; +Cc: John Youn
Move Synopsys HAPS platform device IDs to pci_ids.h.
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
---
drivers/usb/dwc3/dwc3-haps.c | 4 ----
include/linux/pci_ids.h | 3 +++
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/dwc3/dwc3-haps.c b/drivers/usb/dwc3/dwc3-haps.c
index c9cc33881bef..02d57d98ef9b 100644
--- a/drivers/usb/dwc3/dwc3-haps.c
+++ b/drivers/usb/dwc3/dwc3-haps.c
@@ -15,10 +15,6 @@
#include <linux/platform_device.h>
#include <linux/property.h>
-#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 0xabcd
-#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI 0xabce
-#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31 0xabcf
-
/**
* struct dwc3_haps - Driver private structure
* @dwc3: child dwc3 platform_device
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index d157983b84cf..c48550aa67e3 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -2354,6 +2354,9 @@
#define PCI_DEVICE_ID_CENATEK_IDE 0x0001
#define PCI_VENDOR_ID_SYNOPSYS 0x16c3
+#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 0xabcd
+#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI 0xabce
+#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31 0xabcf
#define PCI_VENDOR_ID_VITESSE 0x1725
#define PCI_DEVICE_ID_VITESSE_VSC7174 0x7174
--
2.11.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-11-03 1:47 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-11-03 1:47 UTC (permalink / raw)
To: Felipe Balbi, linux-usb, linux-pci, Bjorn Helgaas; +Cc: John Youn
Move Synopsys HAPS platform device IDs to pci_ids.h.
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
---
drivers/usb/dwc3/dwc3-haps.c | 4 ----
include/linux/pci_ids.h | 3 +++
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/dwc3/dwc3-haps.c b/drivers/usb/dwc3/dwc3-haps.c
index c9cc33881bef..02d57d98ef9b 100644
--- a/drivers/usb/dwc3/dwc3-haps.c
+++ b/drivers/usb/dwc3/dwc3-haps.c
@@ -15,10 +15,6 @@
#include <linux/platform_device.h>
#include <linux/property.h>
-#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 0xabcd
-#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI 0xabce
-#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31 0xabcf
-
/**
* struct dwc3_haps - Driver private structure
* @dwc3: child dwc3 platform_device
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index d157983b84cf..c48550aa67e3 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -2354,6 +2354,9 @@
#define PCI_DEVICE_ID_CENATEK_IDE 0x0001
#define PCI_VENDOR_ID_SYNOPSYS 0x16c3
+#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 0xabcd
+#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI 0xabce
+#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31 0xabcf
#define PCI_VENDOR_ID_VITESSE 0x1725
#define PCI_DEVICE_ID_VITESSE_VSC7174 0x7174
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH 2/2] pci: quirks: Override Synopsys USB 3.x HAPS device driver
2018-11-03 1:47 ` [1/2] " Thinh Nguyen
(?)
@ 2018-11-03 1:47 ` Thinh Nguyen
2018-11-05 18:49 ` [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs Thinh Nguyen
-1 siblings, 1 reply; 23+ messages in thread
From: Thinh Nguyen @ 2018-11-03 1:47 UTC (permalink / raw)
To: linux-pci, Bjorn Helgaas; +Cc: Thinh Nguyen
Synopsys USB 3.x host HAPS platform has a class code of
PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
devices should use dwc3-haps driver. Set driver_override to dwc3-haps
for these platforms.
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
---
drivers/pci/quirks.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 6bc27b7fd452..5f7c3ade7749 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -618,6 +618,27 @@ static void quirk_amd_nl_class(struct pci_dev *pdev)
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_NL_USB,
quirk_amd_nl_class);
+/*
+ * Synopsys USB 3.x host HAPS platform has a class code of
+ * PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
+ * devices should use dwc3-haps driver. Set driver_override to dwc3-haps for
+ * these platforms.
+ */
+static void quirk_synopsys_haps(struct pci_dev *pdev)
+{
+ /* Use dwc3-haps driver instead of xhci-pci */
+ pdev->driver_override = "dwc3-haps";
+}
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SYNOPSYS,
+ PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3,
+ quirk_synopsys_haps);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SYNOPSYS,
+ PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI,
+ quirk_synopsys_haps);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SYNOPSYS,
+ PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31,
+ quirk_synopsys_haps);
+
/*
* Let's make the southbridge information explicit instead of having to
* worry about people probing the ACPI areas, for example.. (Yes, it
--
2.11.0
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-11-03 6:25 ` Greg Kroah-Hartman
0 siblings, 0 replies; 23+ messages in thread
From: Greg KH @ 2018-11-03 6:25 UTC (permalink / raw)
To: Thinh Nguyen; +Cc: Felipe Balbi, linux-usb, linux-pci, Bjorn Helgaas, John Youn
On Fri, Nov 02, 2018 at 06:47:38PM -0700, Thinh Nguyen wrote:
> Move Synopsys HAPS platform device IDs to pci_ids.h.
Why? pci_ids.h, at the top of the file, says to not add new entries to
the file.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 23+ messages in thread
* [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-11-03 6:25 ` Greg Kroah-Hartman
0 siblings, 0 replies; 23+ messages in thread
From: Greg Kroah-Hartman @ 2018-11-03 6:25 UTC (permalink / raw)
To: Thinh Nguyen; +Cc: Felipe Balbi, linux-usb, linux-pci, Bjorn Helgaas, John Youn
On Fri, Nov 02, 2018 at 06:47:38PM -0700, Thinh Nguyen wrote:
> Move Synopsys HAPS platform device IDs to pci_ids.h.
Why? pci_ids.h, at the top of the file, says to not add new entries to
the file.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-11-05 18:46 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-11-05 18:46 UTC (permalink / raw)
To: Greg KH, Thinh Nguyen
Cc: Felipe Balbi, linux-usb, linux-pci, Bjorn Helgaas, John Youn
Hi Greg,
On 11/2/2018 11:26 PM, Greg KH wrote:
> On Fri, Nov 02, 2018 at 06:47:38PM -0700, Thinh Nguyen wrote:
>> Move Synopsys HAPS platform device IDs to pci_ids.h.
> Why? pci_ids.h, at the top of the file, says to not add new entries to
> the file.
Yes, I notice. However, I want to reference these IDs in
/drivers/pci/quirks.c. It's related to this patch subject "[PATCH 2/2]
pci: quirks: Override Synopsys USB 3.x HAPS device driver".
I will CC that patch to linux-usb mailing list also. Please let me know
if this is ok. Otherwise, any suggestion?
Thanks,
Thinh
^ permalink raw reply [flat|nested] 23+ messages in thread
* [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-11-05 18:46 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-11-05 18:46 UTC (permalink / raw)
To: Greg KH, Thinh Nguyen
Cc: Felipe Balbi, linux-usb, linux-pci, Bjorn Helgaas, John Youn
Hi Greg,
On 11/2/2018 11:26 PM, Greg KH wrote:
> On Fri, Nov 02, 2018 at 06:47:38PM -0700, Thinh Nguyen wrote:
>> Move Synopsys HAPS platform device IDs to pci_ids.h.
> Why? pci_ids.h, at the top of the file, says to not add new entries to
> the file.
Yes, I notice. However, I want to reference these IDs in
/drivers/pci/quirks.c. It's related to this patch subject "[PATCH 2/2]
pci: quirks: Override Synopsys USB 3.x HAPS device driver".
I will CC that patch to linux-usb mailing list also. Please let me know
if this is ok. Otherwise, any suggestion?
Thanks,
Thinh
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/2] pci: quirks: Override Synopsys USB 3.x HAPS device driver
@ 2018-11-05 18:49 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-11-05 18:49 UTC (permalink / raw)
To: linux-pci, Bjorn Helgaas, gregkh; +Cc: USB
++ linux-usb
++ Greg
On 11/2/2018 6:47 PM, Thinh Nguyen wrote:
> Synopsys USB 3.x host HAPS platform has a class code of
> PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
> devices should use dwc3-haps driver. Set driver_override to dwc3-haps
> for these platforms.
>
> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
> ---
> drivers/pci/quirks.c | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
> index 6bc27b7fd452..5f7c3ade7749 100644
> --- a/drivers/pci/quirks.c
> +++ b/drivers/pci/quirks.c
> @@ -618,6 +618,27 @@ static void quirk_amd_nl_class(struct pci_dev *pdev)
> DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_NL_USB,
> quirk_amd_nl_class);
>
> +/*
> + * Synopsys USB 3.x host HAPS platform has a class code of
> + * PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
> + * devices should use dwc3-haps driver. Set driver_override to dwc3-haps for
> + * these platforms.
> + */
> +static void quirk_synopsys_haps(struct pci_dev *pdev)
> +{
> + /* Use dwc3-haps driver instead of xhci-pci */
> + pdev->driver_override = "dwc3-haps";
> +}
> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SYNOPSYS,
> + PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3,
> + quirk_synopsys_haps);
> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SYNOPSYS,
> + PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI,
> + quirk_synopsys_haps);
> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SYNOPSYS,
> + PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31,
> + quirk_synopsys_haps);
> +
> /*
> * Let's make the southbridge information explicit instead of having to
> * worry about people probing the ACPI areas, for example.. (Yes, it
^ permalink raw reply [flat|nested] 23+ messages in thread
* [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-11-05 18:49 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-11-05 18:49 UTC (permalink / raw)
To: linux-pci, Bjorn Helgaas, gregkh; +Cc: USB
++ linux-usb
++ Greg
On 11/2/2018 6:47 PM, Thinh Nguyen wrote:
> Synopsys USB 3.x host HAPS platform has a class code of
> PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
> devices should use dwc3-haps driver. Set driver_override to dwc3-haps
> for these platforms.
>
> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
> ---
> drivers/pci/quirks.c | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
> index 6bc27b7fd452..5f7c3ade7749 100644
> --- a/drivers/pci/quirks.c
> +++ b/drivers/pci/quirks.c
> @@ -618,6 +618,27 @@ static void quirk_amd_nl_class(struct pci_dev *pdev)
> DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_NL_USB,
> quirk_amd_nl_class);
>
> +/*
> + * Synopsys USB 3.x host HAPS platform has a class code of
> + * PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
> + * devices should use dwc3-haps driver. Set driver_override to dwc3-haps for
> + * these platforms.
> + */
> +static void quirk_synopsys_haps(struct pci_dev *pdev)
> +{
> + /* Use dwc3-haps driver instead of xhci-pci */
> + pdev->driver_override = "dwc3-haps";
> +}
> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SYNOPSYS,
> + PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3,
> + quirk_synopsys_haps);
> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SYNOPSYS,
> + PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI,
> + quirk_synopsys_haps);
> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SYNOPSYS,
> + PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31,
> + quirk_synopsys_haps);
> +
> /*
> * Let's make the southbridge information explicit instead of having to
> * worry about people probing the ACPI areas, for example.. (Yes, it
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-11-05 18:56 ` Greg Kroah-Hartman
0 siblings, 0 replies; 23+ messages in thread
From: Greg KH @ 2018-11-05 18:56 UTC (permalink / raw)
To: Thinh Nguyen; +Cc: Felipe Balbi, linux-usb, linux-pci, Bjorn Helgaas, John Youn
On Mon, Nov 05, 2018 at 06:46:26PM +0000, Thinh Nguyen wrote:
> Hi Greg,
>
> On 11/2/2018 11:26 PM, Greg KH wrote:
> > On Fri, Nov 02, 2018 at 06:47:38PM -0700, Thinh Nguyen wrote:
> >> Move Synopsys HAPS platform device IDs to pci_ids.h.
> > Why? pci_ids.h, at the top of the file, says to not add new entries to
> > the file.
>
> Yes, I notice. However, I want to reference these IDs in
> /drivers/pci/quirks.c. It's related to this patch subject "[PATCH 2/2]
> pci: quirks: Override Synopsys USB 3.x HAPS device driver".
> I will CC that patch to linux-usb mailing list also. Please let me know
> if this is ok. Otherwise, any suggestion?
Ah, ok, that is fine, as I never saw patch 2/2, I didn't know that :)
^ permalink raw reply [flat|nested] 23+ messages in thread
* [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-11-05 18:56 ` Greg Kroah-Hartman
0 siblings, 0 replies; 23+ messages in thread
From: Greg Kroah-Hartman @ 2018-11-05 18:56 UTC (permalink / raw)
To: Thinh Nguyen; +Cc: Felipe Balbi, linux-usb, linux-pci, Bjorn Helgaas, John Youn
On Mon, Nov 05, 2018 at 06:46:26PM +0000, Thinh Nguyen wrote:
> Hi Greg,
>
> On 11/2/2018 11:26 PM, Greg KH wrote:
> > On Fri, Nov 02, 2018 at 06:47:38PM -0700, Thinh Nguyen wrote:
> >> Move Synopsys HAPS platform device IDs to pci_ids.h.
> > Why? pci_ids.h, at the top of the file, says to not add new entries to
> > the file.
>
> Yes, I notice. However, I want to reference these IDs in
> /drivers/pci/quirks.c. It's related to this patch subject "[PATCH 2/2]
> pci: quirks: Override Synopsys USB 3.x HAPS device driver".
> I will CC that patch to linux-usb mailing list also. Please let me know
> if this is ok. Otherwise, any suggestion?
Ah, ok, that is fine, as I never saw patch 2/2, I didn't know that :)
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/2] pci: quirks: Override Synopsys USB 3.x HAPS device driver
@ 2018-11-06 8:43 ` Felipe Balbi
0 siblings, 0 replies; 23+ messages in thread
From: Felipe Balbi @ 2018-11-06 8:43 UTC (permalink / raw)
To: Thinh Nguyen, linux-pci, Bjorn Helgaas, gregkh; +Cc: USB
[-- Attachment #1: Type: text/plain, Size: 500 bytes --]
Thinh Nguyen <thinh.nguyen@synopsys.com> writes:
> ++ linux-usb
> ++ Greg
>
> On 11/2/2018 6:47 PM, Thinh Nguyen wrote:
>> Synopsys USB 3.x host HAPS platform has a class code of
>> PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
>> devices should use dwc3-haps driver. Set driver_override to dwc3-haps
>> for these platforms.
>>
>> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
FWIW:
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-11-06 8:43 ` Felipe Balbi
0 siblings, 0 replies; 23+ messages in thread
From: Felipe Balbi @ 2018-11-06 8:43 UTC (permalink / raw)
To: Thinh Nguyen, linux-pci, Bjorn Helgaas, gregkh; +Cc: USB
Thinh Nguyen <thinh.nguyen@synopsys.com> writes:
> ++ linux-usb
> ++ Greg
>
> On 11/2/2018 6:47 PM, Thinh Nguyen wrote:
>> Synopsys USB 3.x host HAPS platform has a class code of
>> PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
>> devices should use dwc3-haps driver. Set driver_override to dwc3-haps
>> for these platforms.
>>
>> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
FWIW:
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/2] pci: quirks: Override Synopsys USB 3.x HAPS device driver
@ 2018-12-08 2:49 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-12-08 2:49 UTC (permalink / raw)
To: Felipe Balbi, Thinh Nguyen, linux-pci, Bjorn Helgaas, gregkh; +Cc: USB
Hi Bjorn,
On 11/6/2018 12:44 AM, Felipe Balbi wrote:
> Thinh Nguyen <thinh.nguyen@synopsys.com> writes:
>
>> ++ linux-usb
>> ++ Greg
>>
>> On 11/2/2018 6:47 PM, Thinh Nguyen wrote:
>>> Synopsys USB 3.x host HAPS platform has a class code of
>>> PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
>>> devices should use dwc3-haps driver. Set driver_override to dwc3-haps
>>> for these platforms.
>>>
>>> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
> FWIW:
>
> Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
>
Please let me know if you're ok with these 2 patches. (This and patch
subject "[PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs")
Thanks,
Thinh
^ permalink raw reply [flat|nested] 23+ messages in thread
* [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-12-08 2:49 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-12-08 2:49 UTC (permalink / raw)
To: Felipe Balbi, Thinh Nguyen, linux-pci, Bjorn Helgaas, gregkh; +Cc: USB
Hi Bjorn,
On 11/6/2018 12:44 AM, Felipe Balbi wrote:
> Thinh Nguyen <thinh.nguyen@synopsys.com> writes:
>
>> ++ linux-usb
>> ++ Greg
>>
>> On 11/2/2018 6:47 PM, Thinh Nguyen wrote:
>>> Synopsys USB 3.x host HAPS platform has a class code of
>>> PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
>>> devices should use dwc3-haps driver. Set driver_override to dwc3-haps
>>> for these platforms.
>>>
>>> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
> FWIW:
>
> Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
>
Please let me know if you're ok with these 2 patches. (This and patch
subject "[PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs")
Thanks,
Thinh
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-12-10 18:49 ` Bjorn Helgaas
0 siblings, 0 replies; 23+ messages in thread
From: Bjorn Helgaas @ 2018-12-10 18:49 UTC (permalink / raw)
To: Thinh Nguyen; +Cc: Felipe Balbi, linux-usb, linux-pci, John Youn
On Fri, Nov 02, 2018 at 06:47:38PM -0700, Thinh Nguyen wrote:
> Move Synopsys HAPS platform device IDs to pci_ids.h.
>
> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
1) Run "git log --oneline include/linux/pci_ids.h" and follow the
style convention for patch subject.
2) Explain in the changelog why we're moving this to pci_ids.h. Note
the comment at the top of pci_ids.h. I think the move is fine because
you're using the definition in two places, so just mention that in the
changelog.
Thanks!
> ---
> drivers/usb/dwc3/dwc3-haps.c | 4 ----
> include/linux/pci_ids.h | 3 +++
> 2 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/usb/dwc3/dwc3-haps.c b/drivers/usb/dwc3/dwc3-haps.c
> index c9cc33881bef..02d57d98ef9b 100644
> --- a/drivers/usb/dwc3/dwc3-haps.c
> +++ b/drivers/usb/dwc3/dwc3-haps.c
> @@ -15,10 +15,6 @@
> #include <linux/platform_device.h>
> #include <linux/property.h>
>
> -#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 0xabcd
> -#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI 0xabce
> -#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31 0xabcf
> -
> /**
> * struct dwc3_haps - Driver private structure
> * @dwc3: child dwc3 platform_device
> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> index d157983b84cf..c48550aa67e3 100644
> --- a/include/linux/pci_ids.h
> +++ b/include/linux/pci_ids.h
> @@ -2354,6 +2354,9 @@
> #define PCI_DEVICE_ID_CENATEK_IDE 0x0001
>
> #define PCI_VENDOR_ID_SYNOPSYS 0x16c3
> +#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 0xabcd
> +#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI 0xabce
> +#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31 0xabcf
>
> #define PCI_VENDOR_ID_VITESSE 0x1725
> #define PCI_DEVICE_ID_VITESSE_VSC7174 0x7174
> --
> 2.11.0
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-12-10 18:49 ` Bjorn Helgaas
0 siblings, 0 replies; 23+ messages in thread
From: Bjorn Helgaas @ 2018-12-10 18:49 UTC (permalink / raw)
To: Thinh Nguyen; +Cc: Felipe Balbi, linux-usb, linux-pci, John Youn
On Fri, Nov 02, 2018 at 06:47:38PM -0700, Thinh Nguyen wrote:
> Move Synopsys HAPS platform device IDs to pci_ids.h.
>
> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
1) Run "git log --oneline include/linux/pci_ids.h" and follow the
style convention for patch subject.
2) Explain in the changelog why we're moving this to pci_ids.h. Note
the comment at the top of pci_ids.h. I think the move is fine because
you're using the definition in two places, so just mention that in the
changelog.
Thanks!
> ---
> drivers/usb/dwc3/dwc3-haps.c | 4 ----
> include/linux/pci_ids.h | 3 +++
> 2 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/usb/dwc3/dwc3-haps.c b/drivers/usb/dwc3/dwc3-haps.c
> index c9cc33881bef..02d57d98ef9b 100644
> --- a/drivers/usb/dwc3/dwc3-haps.c
> +++ b/drivers/usb/dwc3/dwc3-haps.c
> @@ -15,10 +15,6 @@
> #include <linux/platform_device.h>
> #include <linux/property.h>
>
> -#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 0xabcd
> -#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI 0xabce
> -#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31 0xabcf
> -
> /**
> * struct dwc3_haps - Driver private structure
> * @dwc3: child dwc3 platform_device
> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> index d157983b84cf..c48550aa67e3 100644
> --- a/include/linux/pci_ids.h
> +++ b/include/linux/pci_ids.h
> @@ -2354,6 +2354,9 @@
> #define PCI_DEVICE_ID_CENATEK_IDE 0x0001
>
> #define PCI_VENDOR_ID_SYNOPSYS 0x16c3
> +#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 0xabcd
> +#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI 0xabce
> +#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31 0xabcf
>
> #define PCI_VENDOR_ID_VITESSE 0x1725
> #define PCI_DEVICE_ID_VITESSE_VSC7174 0x7174
> --
> 2.11.0
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/2] pci: quirks: Override Synopsys USB 3.x HAPS device driver
@ 2018-12-10 18:54 ` Bjorn Helgaas
0 siblings, 0 replies; 23+ messages in thread
From: Bjorn Helgaas @ 2018-12-10 18:54 UTC (permalink / raw)
To: Thinh Nguyen; +Cc: Felipe Balbi, linux-pci, gregkh, USB
On Sat, Dec 08, 2018 at 02:49:09AM +0000, Thinh Nguyen wrote:
> Hi Bjorn,
>
> On 11/6/2018 12:44 AM, Felipe Balbi wrote:
> > Thinh Nguyen <thinh.nguyen@synopsys.com> writes:
> >
> >> ++ linux-usb
> >> ++ Greg
> >>
> >> On 11/2/2018 6:47 PM, Thinh Nguyen wrote:
> >>> Synopsys USB 3.x host HAPS platform has a class code of
> >>> PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
> >>> devices should use dwc3-haps driver. Set driver_override to dwc3-haps
> >>> for these platforms.
> >>>
> >>> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
> > FWIW:
> >
> > Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
> >
>
> Please let me know if you're ok with these 2 patches. (This and patch
> subject "[PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs")
1) Run "git log --oneline drivers/pci/quirks.c" ...
2) quirk_amd_nl_class() and quirk_netmos() do something similar in a
different way. quirk_amd_nl_class() in particular seems to be doing
exactly the same thing. I think since they're doing the same thing, they
should do it the same way. Would the quirk_amd_nl_class() solution work
for you?
Bjorn
^ permalink raw reply [flat|nested] 23+ messages in thread
* [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-12-10 18:54 ` Bjorn Helgaas
0 siblings, 0 replies; 23+ messages in thread
From: Bjorn Helgaas @ 2018-12-10 18:54 UTC (permalink / raw)
To: Thinh Nguyen; +Cc: Felipe Balbi, linux-pci, gregkh, USB
On Sat, Dec 08, 2018 at 02:49:09AM +0000, Thinh Nguyen wrote:
> Hi Bjorn,
>
> On 11/6/2018 12:44 AM, Felipe Balbi wrote:
> > Thinh Nguyen <thinh.nguyen@synopsys.com> writes:
> >
> >> ++ linux-usb
> >> ++ Greg
> >>
> >> On 11/2/2018 6:47 PM, Thinh Nguyen wrote:
> >>> Synopsys USB 3.x host HAPS platform has a class code of
> >>> PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
> >>> devices should use dwc3-haps driver. Set driver_override to dwc3-haps
> >>> for these platforms.
> >>>
> >>> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
> > FWIW:
> >
> > Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
> >
>
> Please let me know if you're ok with these 2 patches. (This and patch
> subject "[PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs")
1) Run "git log --oneline drivers/pci/quirks.c" ...
2) quirk_amd_nl_class() and quirk_netmos() do something similar in a
different way. quirk_amd_nl_class() in particular seems to be doing
exactly the same thing. I think since they're doing the same thing, they
should do it the same way. Would the quirk_amd_nl_class() solution work
for you?
Bjorn
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-12-10 21:49 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-12-10 21:49 UTC (permalink / raw)
To: Bjorn Helgaas, Thinh Nguyen; +Cc: Felipe Balbi, linux-usb, linux-pci, John Youn
Hi Bjorn,
On 12/10/2018 10:49 AM, Bjorn Helgaas wrote:
> On Fri, Nov 02, 2018 at 06:47:38PM -0700, Thinh Nguyen wrote:
>> Move Synopsys HAPS platform device IDs to pci_ids.h.
>>
>> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
> 1) Run "git log --oneline include/linux/pci_ids.h" and follow the
> style convention for patch subject.
>
> 2) Explain in the changelog why we're moving this to pci_ids.h. Note
> the comment at the top of pci_ids.h. I think the move is fine because
> you're using the definition in two places, so just mention that in the
> changelog.
>
> Thanks!
Thanks for the review! I'll fix it.
Thinh
^ permalink raw reply [flat|nested] 23+ messages in thread
* [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-12-10 21:49 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-12-10 21:49 UTC (permalink / raw)
To: Bjorn Helgaas, Thinh Nguyen; +Cc: Felipe Balbi, linux-usb, linux-pci, John Youn
Hi Bjorn,
On 12/10/2018 10:49 AM, Bjorn Helgaas wrote:
> On Fri, Nov 02, 2018 at 06:47:38PM -0700, Thinh Nguyen wrote:
>> Move Synopsys HAPS platform device IDs to pci_ids.h.
>>
>> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
> 1) Run "git log --oneline include/linux/pci_ids.h" and follow the
> style convention for patch subject.
>
> 2) Explain in the changelog why we're moving this to pci_ids.h. Note
> the comment at the top of pci_ids.h. I think the move is fine because
> you're using the definition in two places, so just mention that in the
> changelog.
>
> Thanks!
Thanks for the review! I'll fix it.
Thinh
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/2] pci: quirks: Override Synopsys USB 3.x HAPS device driver
@ 2018-12-10 21:51 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-12-10 21:51 UTC (permalink / raw)
To: Bjorn Helgaas, Thinh Nguyen; +Cc: Felipe Balbi, linux-pci, gregkh, USB
Hi Bjorn,
On 12/10/2018 10:54 AM, Bjorn Helgaas wrote:
> On Sat, Dec 08, 2018 at 02:49:09AM +0000, Thinh Nguyen wrote:
>> Hi Bjorn,
>>
>> On 11/6/2018 12:44 AM, Felipe Balbi wrote:
>>> Thinh Nguyen <thinh.nguyen@synopsys.com> writes:
>>>
>>>> ++ linux-usb
>>>> ++ Greg
>>>>
>>>> On 11/2/2018 6:47 PM, Thinh Nguyen wrote:
>>>>> Synopsys USB 3.x host HAPS platform has a class code of
>>>>> PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
>>>>> devices should use dwc3-haps driver. Set driver_override to dwc3-haps
>>>>> for these platforms.
>>>>>
>>>>> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
>>> FWIW:
>>>
>>> Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
>>>
>> Please let me know if you're ok with these 2 patches. (This and patch
>> subject "[PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs")
> 1) Run "git log --oneline drivers/pci/quirks.c" ...
>
> 2) quirk_amd_nl_class() and quirk_netmos() do something similar in a
> different way. quirk_amd_nl_class() in particular seems to be doing
> exactly the same thing. I think since they're doing the same thing, they
> should do it the same way. Would the quirk_amd_nl_class() solution work
> for you?
>
> Bjorn
>
Yes. Also, the way Netmos handling multiple devices is cleaner. I'll
incorporate the their solutions.
Thanks,
Thinh
^ permalink raw reply [flat|nested] 23+ messages in thread
* [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs
@ 2018-12-10 21:51 ` Thinh Nguyen
0 siblings, 0 replies; 23+ messages in thread
From: Thinh Nguyen @ 2018-12-10 21:51 UTC (permalink / raw)
To: Bjorn Helgaas, Thinh Nguyen; +Cc: Felipe Balbi, linux-pci, gregkh, USB
Hi Bjorn,
On 12/10/2018 10:54 AM, Bjorn Helgaas wrote:
> On Sat, Dec 08, 2018 at 02:49:09AM +0000, Thinh Nguyen wrote:
>> Hi Bjorn,
>>
>> On 11/6/2018 12:44 AM, Felipe Balbi wrote:
>>> Thinh Nguyen <thinh.nguyen@synopsys.com> writes:
>>>
>>>> ++ linux-usb
>>>> ++ Greg
>>>>
>>>> On 11/2/2018 6:47 PM, Thinh Nguyen wrote:
>>>>> Synopsys USB 3.x host HAPS platform has a class code of
>>>>> PCI_CLASS_SERIAL_USB_XHCI, and xhci driver can claim it. However, these
>>>>> devices should use dwc3-haps driver. Set driver_override to dwc3-haps
>>>>> for these platforms.
>>>>>
>>>>> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
>>> FWIW:
>>>
>>> Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
>>>
>> Please let me know if you're ok with these 2 patches. (This and patch
>> subject "[PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs")
> 1) Run "git log --oneline drivers/pci/quirks.c" ...
>
> 2) quirk_amd_nl_class() and quirk_netmos() do something similar in a
> different way. quirk_amd_nl_class() in particular seems to be doing
> exactly the same thing. I think since they're doing the same thing, they
> should do it the same way. Would the quirk_amd_nl_class() solution work
> for you?
>
> Bjorn
>
Yes. Also, the way Netmos handling multiple devices is cleaner. I'll
incorporate the their solutions.
Thanks,
Thinh
^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2018-12-10 21:51 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-03 1:47 [PATCH 1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs Thinh Nguyen
2018-11-03 1:47 ` [1/2] " Thinh Nguyen
2018-11-03 1:47 ` [PATCH 2/2] pci: quirks: Override Synopsys USB 3.x HAPS device driver Thinh Nguyen
2018-11-05 18:49 ` Thinh Nguyen
2018-11-05 18:49 ` [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs Thinh Nguyen
2018-11-06 8:43 ` [PATCH 2/2] pci: quirks: Override Synopsys USB 3.x HAPS device driver Felipe Balbi
2018-11-06 8:43 ` [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs Felipe Balbi
2018-12-08 2:49 ` [PATCH 2/2] pci: quirks: Override Synopsys USB 3.x HAPS device driver Thinh Nguyen
2018-12-08 2:49 ` [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs Thinh Nguyen
2018-12-10 18:54 ` [PATCH 2/2] pci: quirks: Override Synopsys USB 3.x HAPS device driver Bjorn Helgaas
2018-12-10 18:54 ` [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs Bjorn Helgaas
2018-12-10 21:51 ` [PATCH 2/2] pci: quirks: Override Synopsys USB 3.x HAPS device driver Thinh Nguyen
2018-12-10 21:51 ` [1/2] pci: pci_ids: Move Synopsys HAPS platform device IDs Thinh Nguyen
2018-11-03 6:25 ` [PATCH 1/2] " Greg KH
2018-11-03 6:25 ` [1/2] " Greg Kroah-Hartman
2018-11-05 18:46 ` [PATCH 1/2] " Thinh Nguyen
2018-11-05 18:46 ` [1/2] " Thinh Nguyen
2018-11-05 18:56 ` [PATCH 1/2] " Greg KH
2018-11-05 18:56 ` [1/2] " Greg Kroah-Hartman
2018-12-10 18:49 ` [PATCH 1/2] " Bjorn Helgaas
2018-12-10 18:49 ` [1/2] " Bjorn Helgaas
2018-12-10 21:49 ` [PATCH 1/2] " Thinh Nguyen
2018-12-10 21:49 ` [1/2] " Thinh Nguyen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.