usb: gadget: f_fs: Limit the maximum length of data transferring 07/297607/1 accepted/tizen/unified/riscv/20230822.054229
authorDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 21 Aug 2023 11:25:43 +0000 (20:25 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 21 Aug 2023 11:34:25 +0000 (20:34 +0900)
commit907f728394677d0ef794df34f4d52170f6a3adeb
tree21fd2f29d4fb3dd85295ed9137337e1ec081d5d1
parent3bfec121f53962e327b501b80b32213bbf3c22eb
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