Skip to content

Commit

Permalink
fix 0002-Revert-USB-core-changes-causing-issues-with-Z-Wave.m.patch to
Browse files Browse the repository at this point in the history
match changes in kernel 6.6.31 sources.
  • Loading branch information
jens-maus committed May 19, 2024
1 parent 751e2ce commit e8dec08
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ index 71635dfa741d2..b937bf8b6b3d3 100644

delay = udev->parent->hub_delay;
udev->hub_delay = min_t(u32, delay,
@@ -5044,61 +5006,48 @@ hub_port_init(struct usb_hub *hub, struct usb_device *udev, int port1,
@@ -5044,62 +5006,48 @@ hub_port_init(struct usb_hub *hub, struct usb_device *udev, int port1,
goto fail;

/*
Expand All @@ -400,9 +400,10 @@ index 71635dfa741d2..b937bf8b6b3d3 100644
- }
- if (usb_endpoint_maxp(&udev->ep0.desc) == i) {
- ; /* Initial ep0 maxpacket guess is right */
- } else if ((udev->speed == USB_SPEED_FULL ||
- } else if (((udev->speed == USB_SPEED_FULL ||
- udev->speed == USB_SPEED_HIGH) &&
- (i == 8 || i == 16 || i == 32 || i == 64)) {
- (i == 8 || i == 16 || i == 32 || i == 64)) ||
- (udev->speed >= USB_SPEED_SUPER && i > 0)) {
- /* Initial guess is wrong; use the descriptor's value */
+ if ((udev->speed >= USB_SPEED_SUPER) &&
+ (le16_to_cpu(udev->descriptor.bcdUSB) < 0x0300)) {
Expand Down

0 comments on commit e8dec08

Please sign in to comment.