* [PATCH 0/3] usb: host: add TPL support to ehci ohci and dwc2
@ 2022-06-21 13:05 Fabrice Gasnier
2022-06-21 13:05 ` [PATCH 1/3] usb: host: ohci-platform: add TPL support Fabrice Gasnier
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Fabrice Gasnier @ 2022-06-21 13:05 UTC (permalink / raw)
To: hminas, gregkh, stern
Cc: linux-usb, linux-kernel, linux-arm-kernel, linux-stm32,
amelie.delaunay, fabrice.gasnier
The TPL support is used to identify targeted devices during EH compliance
testing. Add TPL support setting from device tree on ehci-platform,
ohci-platform and dwc2 drivers.
Amelie Delaunay (3):
usb: host: ohci-platform: add TPL support
usb: host: ehci-platform: add TPL support
usb: dwc2: host: add TPL support
drivers/usb/dwc2/hcd.c | 3 +++
drivers/usb/host/ehci-platform.c | 2 ++
drivers/usb/host/ohci-platform.c | 3 +++
3 files changed, 8 insertions(+)
--
2.25.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] usb: host: ohci-platform: add TPL support
2022-06-21 13:05 [PATCH 0/3] usb: host: add TPL support to ehci ohci and dwc2 Fabrice Gasnier
@ 2022-06-21 13:05 ` Fabrice Gasnier
2022-06-21 14:19 ` Alan Stern
2022-06-21 14:23 ` Greg KH
2022-06-21 13:05 ` [PATCH 2/3] usb: host: ehci-platform: " Fabrice Gasnier
2022-06-21 13:05 ` [PATCH 3/3] usb: dwc2: host: " Fabrice Gasnier
2 siblings, 2 replies; 7+ messages in thread
From: Fabrice Gasnier @ 2022-06-21 13:05 UTC (permalink / raw)
To: hminas, gregkh, stern
Cc: linux-usb, linux-kernel, linux-arm-kernel, linux-stm32,
amelie.delaunay, fabrice.gasnier
From: Amelie Delaunay <amelie.delaunay@foss.st.com>
The TPL support is used to identify targeted devices during EH compliance
test. The user can add "tpl-support" in the device tree to enable it.
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
---
drivers/usb/host/ohci-platform.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c
index 47dfbfe9e5190..0adae62651276 100644
--- a/drivers/usb/host/ohci-platform.c
+++ b/drivers/usb/host/ohci-platform.c
@@ -28,6 +28,7 @@
#include <linux/usb/ohci_pdriver.h>
#include <linux/usb.h>
#include <linux/usb/hcd.h>
+#include <linux/usb/of.h>
#include "ohci.h"
@@ -210,6 +211,8 @@ static int ohci_platform_probe(struct platform_device *dev)
hcd->rsrc_start = res_mem->start;
hcd->rsrc_len = resource_size(res_mem);
+ hcd->tpl_support = of_usb_host_tpl_support(dev->dev.of_node);
+
err = usb_add_hcd(hcd, irq, IRQF_SHARED);
if (err)
goto err_power;
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/3] usb: host: ehci-platform: add TPL support
2022-06-21 13:05 [PATCH 0/3] usb: host: add TPL support to ehci ohci and dwc2 Fabrice Gasnier
2022-06-21 13:05 ` [PATCH 1/3] usb: host: ohci-platform: add TPL support Fabrice Gasnier
@ 2022-06-21 13:05 ` Fabrice Gasnier
2022-06-21 13:05 ` [PATCH 3/3] usb: dwc2: host: " Fabrice Gasnier
2 siblings, 0 replies; 7+ messages in thread
From: Fabrice Gasnier @ 2022-06-21 13:05 UTC (permalink / raw)
To: hminas, gregkh, stern
Cc: linux-usb, linux-kernel, linux-arm-kernel, linux-stm32,
amelie.delaunay, fabrice.gasnier
From: Amelie Delaunay <amelie.delaunay@foss.st.com>
The TPL support is used to identify targeted devices during EH compliance
test. The user can add "tpl-support" in the device tree to enable it.
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
---
drivers/usb/host/ehci-platform.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c
index f343967443e23..6924f0316e9a8 100644
--- a/drivers/usb/host/ehci-platform.c
+++ b/drivers/usb/host/ehci-platform.c
@@ -370,6 +370,8 @@ static int ehci_platform_probe(struct platform_device *dev)
hcd->rsrc_start = res_mem->start;
hcd->rsrc_len = resource_size(res_mem);
+ hcd->tpl_support = of_usb_host_tpl_support(dev->dev.of_node);
+
err = usb_add_hcd(hcd, irq, IRQF_SHARED);
if (err)
goto err_power;
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] usb: dwc2: host: add TPL support
2022-06-21 13:05 [PATCH 0/3] usb: host: add TPL support to ehci ohci and dwc2 Fabrice Gasnier
2022-06-21 13:05 ` [PATCH 1/3] usb: host: ohci-platform: add TPL support Fabrice Gasnier
2022-06-21 13:05 ` [PATCH 2/3] usb: host: ehci-platform: " Fabrice Gasnier
@ 2022-06-21 13:05 ` Fabrice Gasnier
2022-06-21 14:24 ` Greg KH
2 siblings, 1 reply; 7+ messages in thread
From: Fabrice Gasnier @ 2022-06-21 13:05 UTC (permalink / raw)
To: hminas, gregkh, stern
Cc: linux-usb, linux-kernel, linux-arm-kernel, linux-stm32,
amelie.delaunay, fabrice.gasnier
From: Amelie Delaunay <amelie.delaunay@foss.st.com>
The TPL support is used to identify targeted devices during EH compliance
test. The user can add "tpl-support" in the device tree to enable it.
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
---
drivers/usb/dwc2/hcd.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index f63a27d11fac8..4567f3c24d225 100644
--- a/drivers/usb/dwc2/hcd.c
+++ b/drivers/usb/dwc2/hcd.c
@@ -52,6 +52,7 @@
#include <linux/usb/hcd.h>
#include <linux/usb/ch11.h>
+#include <linux/usb/of.h>
#include "core.h"
#include "hcd.h"
@@ -5339,6 +5340,8 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg)
/* Don't support SG list at this point */
hcd->self.sg_tablesize = 0;
+ hcd->tpl_support = of_usb_host_tpl_support(hsotg->dev->of_node);
+
if (!IS_ERR_OR_NULL(hsotg->uphy))
otg_set_host(hsotg->uphy->otg, &hcd->self);
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] usb: host: ohci-platform: add TPL support
2022-06-21 13:05 ` [PATCH 1/3] usb: host: ohci-platform: add TPL support Fabrice Gasnier
@ 2022-06-21 14:19 ` Alan Stern
2022-06-21 14:23 ` Greg KH
1 sibling, 0 replies; 7+ messages in thread
From: Alan Stern @ 2022-06-21 14:19 UTC (permalink / raw)
To: Fabrice Gasnier
Cc: hminas, gregkh, linux-usb, linux-kernel, linux-arm-kernel,
linux-stm32, amelie.delaunay
On Tue, Jun 21, 2022 at 03:05:04PM +0200, Fabrice Gasnier wrote:
> From: Amelie Delaunay <amelie.delaunay@foss.st.com>
>
> The TPL support is used to identify targeted devices during EH compliance
> test. The user can add "tpl-support" in the device tree to enable it.
>
> Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
> ---
For this patch and the 2/3 ehci-platform patch:
Acked-by: Alan Stern <stern@rowland.harvard.edu>
> drivers/usb/host/ohci-platform.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c
> index 47dfbfe9e5190..0adae62651276 100644
> --- a/drivers/usb/host/ohci-platform.c
> +++ b/drivers/usb/host/ohci-platform.c
> @@ -28,6 +28,7 @@
> #include <linux/usb/ohci_pdriver.h>
> #include <linux/usb.h>
> #include <linux/usb/hcd.h>
> +#include <linux/usb/of.h>
>
> #include "ohci.h"
>
> @@ -210,6 +211,8 @@ static int ohci_platform_probe(struct platform_device *dev)
> hcd->rsrc_start = res_mem->start;
> hcd->rsrc_len = resource_size(res_mem);
>
> + hcd->tpl_support = of_usb_host_tpl_support(dev->dev.of_node);
> +
> err = usb_add_hcd(hcd, irq, IRQF_SHARED);
> if (err)
> goto err_power;
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] usb: host: ohci-platform: add TPL support
2022-06-21 13:05 ` [PATCH 1/3] usb: host: ohci-platform: add TPL support Fabrice Gasnier
2022-06-21 14:19 ` Alan Stern
@ 2022-06-21 14:23 ` Greg KH
1 sibling, 0 replies; 7+ messages in thread
From: Greg KH @ 2022-06-21 14:23 UTC (permalink / raw)
To: Fabrice Gasnier
Cc: hminas, stern, linux-usb, linux-kernel, linux-arm-kernel,
linux-stm32, amelie.delaunay
On Tue, Jun 21, 2022 at 03:05:04PM +0200, Fabrice Gasnier wrote:
> From: Amelie Delaunay <amelie.delaunay@foss.st.com>
>
> The TPL support is used to identify targeted devices during EH compliance
> test. The user can add "tpl-support" in the device tree to enable it.
What is "TPL" support? What is "EH"?
Please spell things out.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] usb: dwc2: host: add TPL support
2022-06-21 13:05 ` [PATCH 3/3] usb: dwc2: host: " Fabrice Gasnier
@ 2022-06-21 14:24 ` Greg KH
0 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2022-06-21 14:24 UTC (permalink / raw)
To: Fabrice Gasnier
Cc: hminas, stern, linux-usb, linux-kernel, linux-arm-kernel,
linux-stm32, amelie.delaunay
On Tue, Jun 21, 2022 at 03:05:06PM +0200, Fabrice Gasnier wrote:
> From: Amelie Delaunay <amelie.delaunay@foss.st.com>
>
> The TPL support is used to identify targeted devices during EH compliance
> test. The user can add "tpl-support" in the device tree to enable it.
Is that already documented in the proper bindings somewhere?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-06-21 14:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-21 13:05 [PATCH 0/3] usb: host: add TPL support to ehci ohci and dwc2 Fabrice Gasnier
2022-06-21 13:05 ` [PATCH 1/3] usb: host: ohci-platform: add TPL support Fabrice Gasnier
2022-06-21 14:19 ` Alan Stern
2022-06-21 14:23 ` Greg KH
2022-06-21 13:05 ` [PATCH 2/3] usb: host: ehci-platform: " Fabrice Gasnier
2022-06-21 13:05 ` [PATCH 3/3] usb: dwc2: host: " Fabrice Gasnier
2022-06-21 14:24 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).