mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
usb: dwc2: gadget: Set the default EP max packet value as 8 bytes
Set the default EP max packet value as 8 bytes, because in the case of low-speed, 'ep_mps' is not set. Thus, the default value of 'ep_mps' should be considered for the case of low-speed. Signed-off-by: Jingoo Han <[email protected]> Acked-by: Paul Zimmerman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
5cbcc35e5b
commit
9b2667f1f3
1 file changed
+1
-1
@@ -1901,7 +1901,7 @@ static void s3c_hsotg_epint(struct s3c_hsotg *hsotg, unsigned int idx,
|
||||
static void s3c_hsotg_irq_enumdone(struct s3c_hsotg *hsotg)
|
||||
{
|
||||
u32 dsts = readl(hsotg->regs + DSTS);
|
||||
int ep0_mps = 0, ep_mps = 1023;
|
||||
int ep0_mps = 0, ep_mps = 8;
|
||||
|
||||
/*
|
||||
* This should signal the finish of the enumeration phase
|
||||
|
||||
Reference in new issue
Block a user