Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jg1.han@samsung.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jingoo Han and committed by
Greg Kroah-Hartman
9b2667f1 5cbcc35e

+1 -1
+1 -1
drivers/usb/dwc2/gadget.c
··· 1901 1901 static void s3c_hsotg_irq_enumdone(struct s3c_hsotg *hsotg) 1902 1902 { 1903 1903 u32 dsts = readl(hsotg->regs + DSTS); 1904 - int ep0_mps = 0, ep_mps = 1023; 1904 + int ep0_mps = 0, ep_mps = 8; 1905 1905 1906 1906 /* 1907 1907 * This should signal the finish of the enumeration phase