mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
usb: dwc2: gadget: don't block after fifo flush timeout
Can't stay in the loop forever. Break it after timeout. Tested-by: Robert Baldyga <r.baldyga@samsung.com> Acked-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Gregory Herrero <gregory.herrero@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
1a0ed863ee
commit
48b20bcb3b
@ -230,6 +230,7 @@ static void s3c_hsotg_init_fifo(struct dwc2_hsotg *hsotg)
|
||||
dev_err(hsotg->dev,
|
||||
"%s: timeout flushing fifos (GRSTCTL=%08x)\n",
|
||||
__func__, val);
|
||||
break;
|
||||
}
|
||||
|
||||
udelay(1);
|
||||
|
Loading…
Reference in New Issue
Block a user