usbip: Don't print port status error for full-speed devices
Subsystems (2)
PATCH 1/1 usbip: Don't print port status error for full-speed devices
From: Zee Yudenko <[email protected]>
When getting port status for USBIP, we only check for high- and low-speed settings, but not for the full-speed, which causes an 'vhci_device speed not set' error to be printed whenever a full-speed device is attached. A full-speed device is the default status, so we don't need to set any port status bits.
---
Patch authored by Zee Yudenko; I'm submitting it on their behalf. Please direct feedback to me.
--- drivers/usb/usbip/vhci_hcd.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/usb/usbip/vhci_hcd.c +3 -0
@@ -480,6 +480,9 @@ static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, vhci_hcd->port_status[rhport] |=USB_PORT_STAT_HIGH_SPEED ;break ; +case USB_SPEED_FULL : +/* this is the default, no flag needed */ +break ;case USB_SPEED_LOW : vhci_hcd->port_status[rhport] |=USB_PORT_STAT_LOW_SPEED ;
---
base-commit: 4405c18c95d2d0f99f6c581ef0ee8591a1aa6ccd
change-id: 20261119-usbip-fix-3425997a5d70
Best regards,
Signature · 1 line
Jakub Jatczak <[email protected]>
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] usbip: missing Fixes: trailer for USB_SPEED_FULL check in vhci_hub_control() --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] usbip: missing Fixes: trailer for USB_SPEED_FULL check in vhci_hub_control()
--
commit 327e8e6dfc01df8db046632ae205e6b5cd1a782a
Author: Zee Yudenko <[email protected]>
Quoted 10 lines
usbip: Don't print port status error for full-speed devices
When getting port status for USBIP, we only check for high- and low-speed settings, but not for the full-speed, which causes an '
vhci_devicespeed not set' error to be printed whenever a full-speed device is attached. A full-speed device is the default status, so we don't need to set any port status bits.Signed-off-by Zee Yudenko <[email protected]>Signed-off-by Jakub Jatczak <[email protected]>
[Severity: Low]
This fixes the speed check in vhci_hub_control() where the default case was changed to log an error without handling USB_SPEED_FULL. Should this include a Fixes tag?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Shuah Khan
maintainerQuoted 7 lines · On 11/19/26 07:18, Jakub Jatczak via B4 Relay wrote:
From: Zee Yudenko <[email protected]>
When getting port status for USBIP, we only check for high- and low-speed settings, but not for the full-speed, which causes an '
vhci_devicespeed not set' error to be printed whenever a full-speed device is attached. A full-speed device is the default status, so we don't need to set any port status bits.
Does the full speed device
The change you are making doesn't match the change log.
Quoted 15 lines
Signed-off-by Zee Yudenko <[email protected]>Signed-off-by Jakub Jatczak <[email protected]>---
Patch authored by Zee Yudenko; I'm submitting it on their behalf. Please direct feedback to me.--- drivers/usb/usbip/vhci_hcd.c | 3 +++ 1 file changed, 3 insertions(+)drivers/usb/usbip/vhci_hcd.c +0
-0
drivers/usb/usbip/vhci_hcd.c static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, · line 488
Quoted 9 lines
drivers/usb/usbip/vhci_hcd.c +3
-0@@ -480,6 +480,9 @@ static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, vhci_hcd->port_status[rhport] |=USB_PORT_STAT_HIGH_SPEED ;break ; +case USB_SPEED_FULL : +/* this is the default, no flag needed */ +break ;case USB_SPEED_LOW : vhci_hcd->port_status[rhport] |=USB_PORT_STAT_LOW_SPEED ;
Why not remove the dev_err() under the default case?
default:
dev_err(hcd_dev(hcd), "vhci_device speed not set\n");
break;thanks,
-- Shuah