mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
usb: dwc_otg_310: increase otg max_transfer_size to 128KB
The default value of the max_transfer_size is only 65535, but according to the field of PktSizeWidth in GHWCFG3, the otg controller on rockchip platforms can support max 512KB transfer size. So we increase the otg max_transfer_size to 128KB, it can help to avoid dividing into two hardware transmissions if the usb device class driver(e.g. f_mtp.c) request to transfer more than 65535 Bytes data in a single usb request. Change-Id: Ic281965815e48e4a146a13f9d37f88a10ee0d33e Signed-off-by: William Wu <william.wu@rock-chips.com>
This commit is contained in:
@@ -169,7 +169,7 @@ static struct dwc_otg_driver_module_params dwc_otg_module_params = {
|
||||
.host_rx_fifo_size = -1,
|
||||
.host_nperio_tx_fifo_size = -1,
|
||||
.host_perio_tx_fifo_size = -1,
|
||||
.max_transfer_size = -1,
|
||||
.max_transfer_size = 131072,
|
||||
.max_packet_count = -1,
|
||||
.host_channels = -1,
|
||||
.dev_endpoints = -1,
|
||||
|
||||
Reference in New Issue
Block a user