Skip to content
Commit d25b7740 authored by Ravi Gunasekaran's avatar Ravi Gunasekaran Committed by Xulin Sun
Browse files

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: default avatarRavi Gunasekaran <r-gunasekaran@ti.com>
Signed-off-by: default avatarXulin Sun <xulin.sun@windriver.com>
parent 15acb517
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment