From 159ded9ed3037e433b4ee311a0f2ce2914680d29 Mon Sep 17 00:00:00 2001 From: Dongwoo Lee Date: Wed, 2 Dec 2020 15:44:37 +0900 Subject: [PATCH] usb: gadget: f_fs: Do not use amlogic custom buffer 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 --- drivers/usb/gadget/function/f_fs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index e34cb5a..620e509 100644 --- a/drivers/usb/gadget/function/f_fs.c +++ b/drivers/usb/gadget/function/f_fs.c @@ -42,6 +42,10 @@ #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 -- 2.7.4