usb: gadget: f_fs: Do not use amlogic custom buffer
authorDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 2 Dec 2020 06:44:37 +0000 (15:44 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 2 Dec 2020 06:44:37 +0000 (15:44 +0900)
Since amlogic usb features customize ffs to fit for adb, it uses
fixed size of payload buffer and causes data overflow on sdb. To fix
it up, this patch makes not use amlogic customize.

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

index e34cb5a..620e509 100644 (file)
 #define FUNCTIONFS_MAGIC       0xa647361 /* Chosen by a honest dice roll ;) */
 
 #ifdef CONFIG_AMLOGIC_USB
+#undef CONFIG_AMLOGIC_USB
+#endif
+
+#ifdef CONFIG_AMLOGIC_USB
 /*The actual maximum length will depend on the version of the shell
  * protocol being used. This should be able to be raised to 16K for
  * devices