usb: cdns3: Set default EP buffer size
commit b6e047315a092e75917668c969264c94926ff50f from git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git commit dce49449 ("usb: cdns3: allocate TX FIFO size according to composite EP number") changed the ep_buf_size from a default value of 4 and introduced a mechanism to calculate the buffer size based on the IN EPs per configuration. This calculation is carried out only for the gadgets created using configfs and breaks for legacy gadget drivers for CDNS3 UDC. So start the UDC driver with the previously known safe ep_buf_size, so that it works for gadget driver that don't invoke usb_gadget_check_config(). Fixes: dce49449 ("usb: cdns3: allocate TX FIFO size according to composite EP number") Signed-off-by:Ravi Gunasekaran <r-gunasekaran@ti.com> Signed-off-by:
Xulin Sun <xulin.sun@windriver.com>
Loading
Please register or sign in to comment