From: Dongwoo Lee Date: Wed, 2 Dec 2020 06:44:37 +0000 (+0900) Subject: usb: gadget: f_fs: Do not use amlogic custom buffer X-Git-Tag: accepted/tizen/unified/20201211.124320~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=159ded9ed3037e433b4ee311a0f2ce2914680d29;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- 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