Skip to contentSkip to conversation

usb: fotg210:Adjusted for usb_hub_clear_tt_buffer

PATCH In review Jim Lin 1 participant 1 message Apr 26, 2019 USB

lore
Share & tools
lore

Jim Lin

author
#0 lore raw

PATCH 3/6 usb: fotg210:Adjusted for usb_hub_clear_tt_buffer

Add argument for usb_hub_clear_tt_buffer to specify device number that will have the TT state of its hub cleared.

---
 drivers/usb/host/fotg210-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/fotg210-hcd.c +1 -1
index 0da68df259c8..bd29ed0fbd46 100644
@@ -2123,7 +2123,7 @@ static void fotg210_clear_tt_buffer(struct fotg210_hcd *fotg210,
 
 		if (urb->dev->tt->hub !=
 				fotg210_to_hcd(fotg210)->self.root_hub) {
-			if (usb_hub_clear_tt_buffer(urb) == 0)
+			if (!usb_hub_clear_tt_buffer(urb, urb->dev->devnum))
 				qh->clearing_tt = 1;
 		}
 	}