* [PATCH] usb: core: config: fix SS companion log for interrupt endpoints
@ 2026-06-03 6:25 raoxu
2026-06-03 7:47 ` Mathias Nyman
2026-07-08 12:30 ` Greg KH
0 siblings, 2 replies; 4+ messages in thread
From: raoxu @ 2026-06-03 6:25 UTC (permalink / raw)
To: gregkh
Cc: sakari.ailus, mathias.nyman, katieeliu, johannes.bruederl, raoxu,
kees, dengjie03, linux-usb, linux-kernel
From: Xu Rao <raoxu@uniontech.com>
usb_parse_ss_endpoint_companion() clears bmAttributes when it is
non-zero for control or interrupt endpoints.
The diagnostic message reports Control for control endpoints and Bulk
for the other branch. However, the other branch can only be an
interrupt endpoint because bulk endpoints are handled by the following
else-if branch.
Report the endpoint type as Interrupt instead of Bulk to avoid
misleading descriptor diagnostics.
Signed-off-by: Xu Rao <raoxu@uniontech.com>
---
drivers/usb/core/config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c
index 417140b012bb..7ab27c371e0e 100644
--- a/drivers/usb/core/config.c
+++ b/drivers/usb/core/config.c
@@ -160,7 +160,7 @@ static void usb_parse_ss_endpoint_companion(struct device *ddev, int cfgno,
dev_notice(ddev, "%s endpoint with bmAttributes = %d in "
"config %d interface %d altsetting %d ep %d: "
"setting to zero\n",
- usb_endpoint_xfer_control(&ep->desc) ? "Control" : "Bulk",
+ usb_endpoint_xfer_control(&ep->desc) ? "Control" : "Interrupt",
desc->bmAttributes,
cfgno, inum, asnum, ep->desc.bEndpointAddress);
ep->ss_ep_comp.bmAttributes = 0;
--
2.50.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: core: config: fix SS companion log for interrupt endpoints
2026-06-03 6:25 [PATCH] usb: core: config: fix SS companion log for interrupt endpoints raoxu
@ 2026-06-03 7:47 ` Mathias Nyman
2026-07-08 12:30 ` Greg KH
1 sibling, 0 replies; 4+ messages in thread
From: Mathias Nyman @ 2026-06-03 7:47 UTC (permalink / raw)
To: raoxu, gregkh
Cc: sakari.ailus, katieeliu, johannes.bruederl, kees, dengjie03,
linux-usb, linux-kernel
On 6/3/26 09:25, raoxu wrote:
> From: Xu Rao <raoxu@uniontech.com>
>
> usb_parse_ss_endpoint_companion() clears bmAttributes when it is
> non-zero for control or interrupt endpoints.
>
> The diagnostic message reports Control for control endpoints and Bulk
> for the other branch. However, the other branch can only be an
> interrupt endpoint because bulk endpoints are handled by the following
> else-if branch.
>
> Report the endpoint type as Interrupt instead of Bulk to avoid
> misleading descriptor diagnostics.
>
> Signed-off-by: Xu Rao <raoxu@uniontech.com>
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: core: config: fix SS companion log for interrupt endpoints
2026-06-03 6:25 [PATCH] usb: core: config: fix SS companion log for interrupt endpoints raoxu
2026-06-03 7:47 ` Mathias Nyman
@ 2026-07-08 12:30 ` Greg KH
2026-07-09 5:45 ` raoxu
1 sibling, 1 reply; 4+ messages in thread
From: Greg KH @ 2026-07-08 12:30 UTC (permalink / raw)
To: raoxu
Cc: sakari.ailus, mathias.nyman, katieeliu, johannes.bruederl, kees,
dengjie03, linux-usb, linux-kernel
On Wed, Jun 03, 2026 at 02:25:35PM +0800, raoxu wrote:
> From: Xu Rao <raoxu@uniontech.com>
>
> usb_parse_ss_endpoint_companion() clears bmAttributes when it is
> non-zero for control or interrupt endpoints.
>
> The diagnostic message reports Control for control endpoints and Bulk
> for the other branch. However, the other branch can only be an
> interrupt endpoint because bulk endpoints are handled by the following
> else-if branch.
>
> Report the endpoint type as Interrupt instead of Bulk to avoid
> misleading descriptor diagnostics.
>
> Signed-off-by: Xu Rao <raoxu@uniontech.com>
> ---
> drivers/usb/core/config.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Does not apply to the usb-testing tree :(
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: core: config: fix SS companion log for interrupt endpoints
2026-07-08 12:30 ` Greg KH
@ 2026-07-09 5:45 ` raoxu
0 siblings, 0 replies; 4+ messages in thread
From: raoxu @ 2026-07-09 5:45 UTC (permalink / raw)
To: gregkh
Cc: dengjie03, johannes.bruederl, katieeliu, kees, linux-kernel,
linux-usb, mathias.nyman, raoxu, sakari.ailus
On Wed, Jul 08, 2026 at 12:30:00PM +0000, Greg KH wrote:
> > drivers/usb/core/config.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Does not apply to the usb-testing tree :(
Thanks for checking. The patch was based on older context; the endpoint
address diagnostic has since changed to use 0x%X.
I will send a v2 rebased on the current usb-testing tree.
Thanks,
Xu Rao
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-09 5:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03 6:25 [PATCH] usb: core: config: fix SS companion log for interrupt endpoints raoxu
2026-06-03 7:47 ` Mathias Nyman
2026-07-08 12:30 ` Greg KH
2026-07-09 5:45 ` raoxu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox