Thread (8 messages) flat view 8 messages, 1 author, 2021-03-24
DORMANTno replies LANDED

Landed in mainline as fe8f103ab3e0 on 2021-03-26.

[PATCH 5/7] fotg210-udc: Call usb_gadget_udc_reset

From: Fabian Vogt <hidden>
Date: 2021-03-24 14:12:24
Subsystem: the rest, usb subsystem · Maintainers: Linus Torvalds, Greg Kroah-Hartman

Notify the UDC core that a bus reset occurred.

Signed-off-by: Fabian Vogt <redacted>
---
 drivers/usb/gadget/udc/fotg210-udc.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c
index d7693b8d7c54..6a4c60d5b2c2 100644
--- a/drivers/usb/gadget/udc/fotg210-udc.c
+++ b/drivers/usb/gadget/udc/fotg210-udc.c
@@ -890,6 +890,8 @@ static irqreturn_t fotg210_irq(int irq, void *_fotg210)
 		int_grp2 &= ~int_msk2;
 
 		if (int_grp2 & DISGR2_USBRST_INT) {
+			usb_gadget_udc_reset(&fotg210->gadget,
+					     fotg210->driver);
 			value = ioread32(reg);
 			value &= ~DISGR2_USBRST_INT;
 			iowrite32(value, reg);
-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help