usb: gadget: f_fs: Limit the maximum length of data transferring
authorDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 21 Aug 2023 11:25:43 +0000 (20:25 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 19 Feb 2024 00:13:55 +0000 (09:13 +0900)
commit4d0d434dbe960244c9354bbfb5a64705ddd0f400
treee8f68038e97b39c1f919ce3350af77cf90c3f448
parent7e96f1653ad39babf34301a9561937c93ec332fb
usb: gadget: f_fs: Limit the maximum length of data transferring

When the ffs daemons request transfer with large size buffer, the usb
subsystems below cannot filled the buffer at once and then the request
is stalled in f_fs_epfile_io function. In order to prevent this
situation, this limits maximum length of data as PAGE_SIZE.

Change-Id: Ib84b3493a56b21f33a07cf0533f8df71580b7540
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
drivers/usb/gadget/function/f_fs.c