CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE
Subsystems (5)
v2 cover CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE
Up to now, there's been some ugliness associated with the dependency from CMD_USB_MASS_STORAGE to USB_FUNCTION_MASS_STORAGE:
if someone only defined CMD_USB_MASS_STORAGE, they'd meet a linker error due to missing symbols that came from USB_FUNCTION_MASS_STORAGE.
Most platforms seem to have resorted to unconditionally enable USB_FUNCTION_MASS_STORAGE via their 'common' config-header... some tried to tie this to an #ifdef CMD_USB_MASS_STORAGE (in fact I had a patch for the RK3399 that did just that and rather decided to clean this up once and for all instead of contributing to the prolongation of the status quo). Neither is a good solution.
So this series moves USB_FUNCTION_MASS_STORAGE to Kconfig and lets CMD_USB_MASS_STORAGE imply USB_FUNCTION_MASS_STORAGE. Finally, we run moveconfig to contain the damage.
Changes in v2:
- ran 'tabify' on newly added lines (in Kconfig) to fix a spaces vs. tabs issues
Philipp Tomsich (3):
usb: gadget: move USB_FUNCTION_MASS_STORAGE to Kconfig
Kconfig: CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE
config: move USB_FUNCTION_MASS_STORAGE
cmd/Kconfig | 1 + configs/CHIP_pro_defconfig | 1 + configs/Nintendo_NES_Classic_Edition_defconfig | 1 + configs/Sinlinx_SinA33_defconfig | 1 + configs/fennec-rk3288_defconfig | 1 + configs/firefly-rk3288_defconfig | 1 + configs/kylin-rk3036_defconfig | 1 + configs/miqi-rk3288_defconfig | 1 + configs/parrot_r16_defconfig | 1 + configs/phycore-rk3288_defconfig | 2 +- configs/popmetal-rk3288_defconfig | 1 + configs/smdkv310_defconfig | 1 + configs/tinker-rk3288_defconfig | 1 + drivers/usb/gadget/Kconfig | 9 +++++++++ include/configs/advantech_dms-ba16.h | 1 - include/configs/apalis_imx6.h | 1 - include/configs/bav335x.h | 4 ---- include/configs/cgtqmx6eval.h | 2 -- include/configs/colibri_imx6.h | 1 - include/configs/colibri_imx7.h | 2 -- include/configs/colibri_vf.h | 1 - include/configs/exynos4-common.h | 2 -- include/configs/ge_bx50v3.h | 1 - include/configs/gw_ventana.h | 1 - include/configs/ma5d4evk.h | 1 - include/configs/mx6sabre_common.h | 2 -- include/configs/mx7dsabresd.h | 2 -- include/configs/nitrogen6x.h | 2 -- include/configs/odroid_xu3.h | 1 - include/configs/opos6uldev.h | 1 - include/configs/pico-imx6ul.h | 1 - include/configs/pico-imx7d.h | 2 -- include/configs/rk3036_common.h | 1 - include/configs/rk322x_common.h | 1 - include/configs/rk3288_common.h | 1 - include/configs/rk3399_common.h | 4 ---- include/configs/s5p_goni.h | 1 - include/configs/socfpga_common.h | 2 -- include/configs/sunxi-common.h | 1 - include/configs/tbs2910.h | 1 - include/configs/tegra-common-usb-gadget.h | 1 - include/configs/warp.h | 2 -- include/configs/warp7.h | 2 -- scripts/config_whitelist.txt | 1 - 44 files changed, 22 insertions(+), 47 deletions(-)
Signature · 1 line
2.1.4
PATCH v2 1/3 usb: gadget: move USB_FUNCTION_MASS_STORAGE to Kconfig
In order to easily model that enabling CMD_USB_MASS_STORAGE implies a need to have USB_FUNCTION_MASS_STORAGE enabled, we first need to migrate USB_FUNCTION_MASS_STORAGE to Kconfig.
---
Changes in v2:
- ran 'tabify' on newly added lines to fix a spaces vs. tabs issues
drivers/usb/gadget/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/usb/gadget/Kconfig +9 -0
@@ -34,6 +34,15 @@ menuconfig USB_GADGET peripheral/device side bus controller, and a "gadget driver" for your peripheral protocol. +config USB_FUNCTION_MASS_STORAGE + bool "USB mass-storage class implementation" + help + The Mass Storage Function acts as a USB Mass Storage device + appearing to the host as a disk drive or as a CD-ROM drive. + + This is required (and implied) by the USB mass-storage emulation + command ('ums'). + if USB_GADGET config USB_GADGET_ATMEL_USBA
Signature · 1 line
2.1.4
PATCH v2 2/3 Kconfig: CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE
In reply to Philipp TomsichThere's an unconditional dependency from the mass-storage command onto the mass-storage function through a call to fsg_main_thread(...). If USB_FUNCTION_MASS_STORAGE is not enabled, this will result in link-errors when CMD_USB_MASS_STORAGE is enabled.
Let's introduce an 'imply' (I didn't want to make this a 'select', as these were independent in the past, as well) relationship to model this dependency.
---
Changes in v2: None
cmd/Kconfig | 1 + 1 file changed, 1 insertion(+)
cmd/Kconfig +1 -0
@@ -667,6 +667,7 @@ config CMD_DFU config CMD_USB_MASS_STORAGE bool "UMS usb mass storage" + imply USB_FUNCTION_MASS_STORAGE help USB mass storage support
Signature · 1 line
2.1.4
PATCH v2 3/3 config: move USB_FUNCTION_MASS_STORAGE
In reply to Philipp TomsichWith both an imply from CMD_USB to USB_FUNCTION_MASS_STORAGE and with USB_FUNCTION_MASS_STORAGE moved to Kconfig, we can now run moveconfig.
---
Changes in v2: None
configs/CHIP_pro_defconfig | 1 + configs/Nintendo_NES_Classic_Edition_defconfig | 1 + configs/Sinlinx_SinA33_defconfig | 1 + configs/fennec-rk3288_defconfig | 1 + configs/firefly-rk3288_defconfig | 1 + configs/kylin-rk3036_defconfig | 1 + configs/miqi-rk3288_defconfig | 1 + configs/parrot_r16_defconfig | 1 + configs/phycore-rk3288_defconfig | 2 +- configs/popmetal-rk3288_defconfig | 1 + configs/smdkv310_defconfig | 1 + configs/tinker-rk3288_defconfig | 1 + include/configs/advantech_dms-ba16.h | 1 - include/configs/apalis_imx6.h | 1 - include/configs/bav335x.h | 4 ---- include/configs/cgtqmx6eval.h | 2 -- include/configs/colibri_imx6.h | 1 - include/configs/colibri_imx7.h | 2 -- include/configs/colibri_vf.h | 1 - include/configs/exynos4-common.h | 2 -- include/configs/ge_bx50v3.h | 1 - include/configs/gw_ventana.h | 1 - include/configs/ma5d4evk.h | 1 - include/configs/mx6sabre_common.h | 2 -- include/configs/mx7dsabresd.h | 2 -- include/configs/nitrogen6x.h | 2 -- include/configs/odroid_xu3.h | 1 - include/configs/opos6uldev.h | 1 - include/configs/pico-imx6ul.h | 1 - include/configs/pico-imx7d.h | 2 -- include/configs/rk3036_common.h | 1 - include/configs/rk322x_common.h | 1 - include/configs/rk3288_common.h | 1 - include/configs/rk3399_common.h | 4 ---- include/configs/s5p_goni.h | 1 - include/configs/socfpga_common.h | 2 -- include/configs/sunxi-common.h | 1 - include/configs/tbs2910.h | 1 - include/configs/tegra-common-usb-gadget.h | 1 - include/configs/warp.h | 2 -- include/configs/warp7.h | 2 -- scripts/config_whitelist.txt | 1 - 42 files changed, 12 insertions(+), 47 deletions(-)
configs/CHIP_pro_defconfig +1 -0
@@ -26,6 +26,7 @@ CONFIG_AXP_ALDO4_VOLT=3300 CONFIG_USB_EHCI_HCD=y CONFIG_USB_MUSB_GADGET=y CONFIG_USB_GADGET=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Allwinner Technology" CONFIG_G_DNL_VENDOR_NUM=0x1f3a
configs/Nintendo_NES_Classic_Edition_defconfig +1 -0
@@ -20,6 +20,7 @@ CONFIG_AXP_DLDO1_VOLT=3300 CONFIG_AXP_ELDO2_VOLT=1800 CONFIG_USB_MUSB_GADGET=y CONFIG_USB_GADGET=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Allwinner Technology" CONFIG_G_DNL_VENDOR_NUM=0x1f3a
configs/Sinlinx_SinA33_defconfig +1 -0
@@ -25,6 +25,7 @@ CONFIG_DFU_RAM=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_MUSB_GADGET=y CONFIG_USB_GADGET=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Allwinner Technology" CONFIG_G_DNL_VENDOR_NUM=0x1f3a
configs/fennec-rk3288_defconfig +1 -0
@@ -64,6 +64,7 @@ CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_USB_STORAGE=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_USE_TINY_PRINTF=y CONFIG_CMD_DHRYSTONE=y CONFIG_ERRNO_STR=y
configs/firefly-rk3288_defconfig +1 -0
@@ -67,6 +67,7 @@ CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_USB_STORAGE=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_DM_VIDEO=y CONFIG_DISPLAY=y CONFIG_VIDEO_ROCKCHIP=y
configs/kylin-rk3036_defconfig +1 -0
@@ -35,5 +35,6 @@ CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_USB_STORAGE=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_CMD_DHRYSTONE=y CONFIG_ERRNO_STR=y
configs/miqi-rk3288_defconfig +1 -0
@@ -64,6 +64,7 @@ CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_USB_STORAGE=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_DM_VIDEO=y CONFIG_DISPLAY=y CONFIG_VIDEO_ROCKCHIP=y
configs/parrot_r16_defconfig +1 -0
@@ -21,6 +21,7 @@ CONFIG_SPL=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_MUSB_GADGET=y CONFIG_USB_GADGET=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Allwinner Technology" CONFIG_G_DNL_VENDOR_NUM=0x1f3a
configs/phycore-rk3288_defconfig +1 -1
@@ -2,7 +2,6 @@ CONFIG_ARM=y CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_ROCKCHIP_RK3288=y -CONFIG_ROCKCHIP_SPL_BACK_TO_BROM=y CONFIG_TARGET_PHYCORE_RK3288=y CONFIG_SPL_STACK_R_ADDR=0x80000 CONFIG_DEFAULT_DEVICE_TREE="rk3288-phycore-rdk"
@@ -65,6 +64,7 @@ CONFIG_SYS_NS16550=y CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_STORAGE=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_USE_TINY_PRINTF=y CONFIG_CMD_DHRYSTONE=y CONFIG_ERRNO_STR=y
configs/popmetal-rk3288_defconfig +1 -0
@@ -64,6 +64,7 @@ CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_USB_STORAGE=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_USE_TINY_PRINTF=y CONFIG_CMD_DHRYSTONE=y CONFIG_ERRNO_STR=y
configs/smdkv310_defconfig +1 -0
@@ -31,3 +31,4 @@ CONFIG_MMC_SDHCI_SDMA=y CONFIG_MMC_SDHCI_S5P=y CONFIG_USB=y CONFIG_DM_USB=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y
configs/tinker-rk3288_defconfig +1 -0
@@ -67,6 +67,7 @@ CONFIG_SYSRESET=y CONFIG_USB=y CONFIG_USB_DWC2=y CONFIG_USB_STORAGE=y +CONFIG_USB_FUNCTION_MASS_STORAGE=y CONFIG_USE_TINY_PRINTF=y CONFIG_CMD_DHRYSTONE=y CONFIG_ERRNO_STR=y
include/configs/advantech_dms-ba16.h +0 -1
@@ -62,7 +62,6 @@#define CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP #define CONFIG_USBD_HS -#define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_USB_GADGET_VBUS_DRAW 2/* Networking Configs */
include/configs/apalis_imx6.h +0 -1
@@ -113,7 +113,6 @@#define CONFIG_USBD_HS #define CONFIG_USB_GADGET_MASS_STORAGE -#define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_G_DNL_MANUFACTURER "Toradex"/* USB DFU */ #define CONFIG_DFU_MMC
include/configs/bav335x.h +0 -4
@@ -439,10 +439,6 @@ DEFAULT_LINUX_BOOT_ENV \#define CONFIG_FASTBOOT_FLASH_MMC_DEV 1#endif -#ifdef CONFIG_USB_MUSB_GADGET -#define CONFIG_USB_FUNCTION_MASS_STORAGE -#endif /* CONFIG_USB_MUSB_GADGET */ -#if defined(CONFIG_SPL_BUILD ) && defined(CONFIG_SPL_USBETH_SUPPORT )/* disable host part of MUSB in SPL */ /* disable EFI partitions and partition UUID support */
include/configs/cgtqmx6eval.h +0 -2
@@ -71,8 +71,6 @@#define CONFIG_USBD_HS -#define CONFIG_USB_FUNCTION_MASS_STORAGE -#define CONFIG_USB_FUNCTION_FASTBOOT #define CONFIG_CMD_FASTBOOT #define CONFIG_ANDROID_BOOT_IMAGE
include/configs/colibri_imx6.h +0 -1
@@ -94,7 +94,6 @@#define CONFIG_USBD_HS #define CONFIG_USB_GADGET_MASS_STORAGE -#define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_G_DNL_MANUFACTURER "Toradex"/* USB DFU */ #define CONFIG_DFU_MMC
include/configs/colibri_imx7.h +0 -2
@@ -205,8 +205,6 @@#define CONFIG_USBD_HS -#define CONFIG_USB_FUNCTION_MASS_STORAGE -/* USB Device Firmware Update support */ #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M#define DFU_DEFAULT_POLL_TIMEOUT 300
include/configs/colibri_vf.h +0 -1
@@ -198,6 +198,5 @@#define CONFIG_SYS_DFU_DATA_BUF_SIZE (1024 * 1024)/* USB Storage */ -#define CONFIG_USB_FUNCTION_MASS_STORAGE #endif /* __CONFIG_H */
include/configs/exynos4-common.h +0 -2
@@ -40,8 +40,6 @@#define CONFIG_USB_GADGET_DWC2_OTG_PHY -#define CONFIG_USB_FUNCTION_MASS_STORAGE -/* Common environment variables */ #define CONFIG_EXTRA_ENV_ITB \ "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
include/configs/ge_bx50v3.h +0 -1
@@ -79,7 +79,6 @@#define CONFIG_USB_GADGET #define CONFIG_USB_GADGET_DOWNLOAD #define CONFIG_USB_GADGET_MASS_STORAGE -#define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_USB_GADGET_VBUS_DRAW 2#define CONFIG_G_DNL_VENDOR_NUM 0x0525#define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5
include/configs/gw_ventana.h +0 -1
@@ -166,7 +166,6 @@#define CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP /* USB Mass Storage Gadget */ -#define CONFIG_USB_FUNCTION_MASS_STORAGE /* Framebuffer and LCD */ #define CONFIG_VIDEO_IPUV3
include/configs/ma5d4evk.h +0 -1
@@ -103,7 +103,6 @@#define CONFIG_USB_ETHER #define CONFIG_USB_ETH_RNDIS #define CONFIG_USBNET_MANUFACTURER "AriesEmbedded" -#define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_SYS_DFU_DATA_BUF_SIZE (1 * 1024 * 1024)#define DFU_DEFAULT_POLL_TIMEOUT 300#endif
include/configs/mx6sabre_common.h +0 -2
@@ -218,8 +218,6 @@#ifndef CONFIG_SPL #define CONFIG_USBD_HS -#define CONFIG_USB_FUNCTION_MASS_STORAGE -#define CONFIG_USB_FUNCTION_FASTBOOT #define CONFIG_CMD_FASTBOOT #define CONFIG_ANDROID_BOOT_IMAGE
include/configs/mx7dsabresd.h +0 -2
@@ -227,8 +227,6 @@#define CONFIG_USBD_HS -#define CONFIG_USB_FUNCTION_MASS_STORAGE -#ifdef CONFIG_VIDEO #define CONFIG_VIDEO_MXS #define CONFIG_VIDEO_LOGO
include/configs/nitrogen6x.h +0 -2
@@ -302,8 +302,6 @@#define CONFIG_PCIE_IMX #endif -#define CONFIG_USB_FUNCTION_MASS_STORAGE -#define CONFIG_USB_FUNCTION_FASTBOOT #define CONFIG_CMD_FASTBOOT #define CONFIG_ANDROID_BOOT_IMAGE
include/configs/odroid_xu3.h +0 -1
@@ -57,7 +57,6 @@/* UMS */ #define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5 -#define CONFIG_USB_FUNCTION_MASS_STORAGE /* FIXME: MUST BE REMOVED AFTER TMU IS TURNED ON */ #undef CONFIG_EXYNOS_TMU
include/configs/opos6uldev.h +0 -1
@@ -48,7 +48,6 @@#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)#define CONFIG_MXC_USB_FLAGS 0#define CONFIG_USB_MAX_CONTROLLER_COUNT 2 -#define CONFIG_USB_FUNCTION_MASS_STORAGE #endif /* Ethernet */
include/configs/pico-imx6ul.h +0 -1
@@ -44,7 +44,6 @@#define CONFIG_USBD_HS -#define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_USB_GADGET_VBUS_DRAW 2#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M
include/configs/pico-imx7d.h +0 -2
@@ -138,6 +138,4 @@#define CONFIG_IMX_THERMAL -#define CONFIG_USB_FUNCTION_MASS_STORAGE -#endif
include/configs/rk3036_common.h +0 -1
@@ -62,7 +62,6 @@#define CONFIG_FASTBOOT_BUF_SIZE 0x08000000/* usb mass storage */ -#define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_CMD_USB_MASS_STORAGE #define CONFIG_USB_GADGET_DOWNLOAD
include/configs/rk322x_common.h +0 -1
@@ -55,7 +55,6 @@#define CONFIG_FASTBOOT_BUF_SIZE 0x08000000/* usb mass storage */ -#define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_CMD_USB_MASS_STORAGE #define CONFIG_USB_GADGET_DOWNLOAD
include/configs/rk3288_common.h +0 -1
@@ -71,7 +71,6 @@#define CONFIG_FASTBOOT_BUF_SIZE 0x08000000/* usb mass storage */ -#define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_CMD_USB_MASS_STORAGE #define CONFIG_USB_GADGET_DOWNLOAD
include/configs/rk3399_common.h +0 -4
@@ -22,10 +22,6 @@#define CONFIG_SPL_SPI_LOAD #endif -#if defined(CONFIG_CMD_USB_MASS_STORAGE ) -#define CONFIG_USB_FUNCTION_MASS_STORAGE -#endif -#define COUNTER_FREQUENCY 24000000#define CONFIG_SYS_NS16550_MEM32
include/configs/s5p_goni.h +0 -1
@@ -217,6 +217,5 @@#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR - 0x1000000)#define CONFIG_USB_GADGET_DWC2_OTG_PHY -#define CONFIG_USB_FUNCTION_MASS_STORAGE #endif /* __CONFIG_H */
include/configs/socfpga_common.h +0 -2
@@ -229,8 +229,6 @@ unsigned int cm_get_qspi_controller_clk_hz(void);* USB Gadget (DFU, UMS) */ #if defined(CONFIG_CMD_DFU ) || defined(CONFIG_CMD_USB_MASS_STORAGE ) -#define CONFIG_USB_FUNCTION_MASS_STORAGE -#define CONFIG_SYS_DFU_DATA_BUF_SIZE (16 * 1024 * 1024)#define DFU_DEFAULT_POLL_TIMEOUT 300
include/configs/sunxi-common.h +0 -1
@@ -320,7 +320,6 @@ extern int soft_i2c_gpio_scl;#ifdef CONFIG_USB_MUSB_GADGET #define CONFIG_USB_FUNCTION_FASTBOOT -#define CONFIG_USB_FUNCTION_MASS_STORAGE #endif #ifdef CONFIG_USB_FUNCTION_FASTBOOT
include/configs/tbs2910.h +0 -1
@@ -97,7 +97,6 @@#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)#ifdef CONFIG_CMD_USB_MASS_STORAGE #define CONFIG_USBD_HS -#define CONFIG_USB_FUNCTION_MASS_STORAGE #endif /* CONFIG_CMD_USB_MASS_STORAGE */ #ifdef CONFIG_USB_KEYBOARD #define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE
include/configs/tegra-common-usb-gadget.h +0 -1
@@ -14,7 +14,6 @@#define CONFIG_CI_UDC_HAS_HOSTPC #endif /* USB mass storage protocol */ -#define CONFIG_USB_FUNCTION_MASS_STORAGE /* DFU protocol */ #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
include/configs/warp.h +0 -2
@@ -66,8 +66,6 @@#define CONFIG_USBD_HS -#define CONFIG_USB_FUNCTION_MASS_STORAGE -#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M#define DFU_DEFAULT_POLL_TIMEOUT 300
include/configs/warp7.h +0 -2
@@ -131,8 +131,6 @@#define CONFIG_USBD_HS -#define CONFIG_USB_FUNCTION_MASS_STORAGE -/* USB Device Firmware Update support */ #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M#define DFU_DEFAULT_POLL_TIMEOUT 300
scripts/config_whitelist.txt +0 -1
@@ -5154,7 +5154,6 @@ CONFIG_USB_ETH_SUBSET CONFIG_USB_EXT2_BOOT CONFIG_USB_FAT_BOOT CONFIG_USB_FREQ -CONFIG_USB_FUNCTION_MASS_STORAGE CONFIG_USB_FUNCTION_THOR CONFIG_USB_GADGET_AMD5536UDC CONFIG_USB_GADGET_AT91
Signature · 1 line
2.1.4
PATCH v2 3/3 config: move USB_FUNCTION_MASS_STORAGE
Hi Philipp,
Quoted 8 lines · Philipp Tomsich
With both an imply from
CMD_USBtoUSB_FUNCTION_MASS_STORAGEand withUSB_FUNCTION_MASS_STORAGEmoved toKconfig, we can now run moveconfig.Signed-off-by Philipp Tomsich <[email protected]>---
Changes in v2: None
Quoted 8 lines
configs/CHIP_pro_defconfig | 1 + configs/Nintendo_NES_Classic_Edition_defconfig | 1 + configs/Sinlinx_SinA33_defconfig | 1 + configs/fennec-rk3288_defconfig | 1 + configs/firefly-rk3288_defconfig | 1 + configs/kylin-rk3036_defconfig | 1 + configs/miqi-rk3288_defconfig | 1 + configs/parrot_r16_defconfig | 1 +
I've never really been a big fan of enabling this one by default, and now that we have it in Kconfig, there's no reason to anymore. Let's remove it entirely from these boards (parrot, CHIP Pro, SinA33 and NES Classic).
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170717/1e11b7a2/attachment.sig>
PATCH v2 3/3 config: move USB_FUNCTION_MASS_STORAGE
Maxime,
Quoted 22 lines · Maxime Ripard
Hi Philipp,
Quoted 8 lines · Philipp Tomsich
With both an imply from
CMD_USBtoUSB_FUNCTION_MASS_STORAGEand withUSB_FUNCTION_MASS_STORAGEmoved toKconfig, we can now run moveconfig.Signed-off-by Philipp Tomsich <[email protected]>---
Changes in v2: None
Quoted 8 lines
configs/CHIP_pro_defconfig | 1 + configs/Nintendo_NES_Classic_Edition_defconfig | 1 + configs/Sinlinx_SinA33_defconfig | 1 + configs/fennec-rk3288_defconfig | 1 + configs/firefly-rk3288_defconfig | 1 + configs/kylin-rk3036_defconfig | 1 + configs/miqi-rk3288_defconfig | 1 + configs/parrot_r16_defconfig | 1 +
Quoted 4 lines
I've never really been a big fan of enabling this one by default, and now that we have it in
Kconfig, there's no reason to anymore. Let's remove it entirely from these boards (parrot, CHIP Pro, SinA33 and NES Classic).
I’d prefer if we can keep the moveconfig part in tact (and have it show up in the defconfig of every board it was active for before).
Removing these from the affected board should be another patch after it’s been moved to defconfig.
Regards,
Philipp.
PATCH v2 3/3 config: move USB_FUNCTION_MASS_STORAGE
Quoted 29 lines · Dr. Philipp Tomsich
Maxime,
Quoted 22 lines · Maxime Ripard
Hi Philipp,
Quoted 8 lines · Philipp Tomsich
With both an imply from
CMD_USBtoUSB_FUNCTION_MASS_STORAGEand withUSB_FUNCTION_MASS_STORAGEmoved toKconfig, we can now run moveconfig.Signed-off-by Philipp Tomsich <[email protected]>---
Changes in v2: None
Quoted 8 lines
configs/CHIP_pro_defconfig | 1 + configs/Nintendo_NES_Classic_Edition_defconfig | 1 + configs/Sinlinx_SinA33_defconfig | 1 + configs/fennec-rk3288_defconfig | 1 + configs/firefly-rk3288_defconfig | 1 + configs/kylin-rk3036_defconfig | 1 + configs/miqi-rk3288_defconfig | 1 + configs/parrot_r16_defconfig | 1 +Quoted 4 lines
I've never really been a big fan of enabling this one by default, and now that we have it in
Kconfig, there's no reason to anymore. Let's remove it entirely from these boards (parrot, CHIP Pro, SinA33 and NES Classic).
Quoted 5 lines
I’d prefer if we can keep the moveconfig part in tact (and have it show up in the defconfig of every board it was active for before).
Removing these from the affected board should be another patch after it’s been moved to defconfig.
That works for me. Can you add it to your serie?
Thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170717/8d08fc70/attachment.sig>
PATCH v2 3/3 config: move USB_FUNCTION_MASS_STORAGE
Quoted 33 lines · Maxime Ripard
Quoted 29 lines · Dr. Philipp Tomsich
Maxime,
Quoted 26 lines · Maxime Ripard
Hi Philipp,
Quoted 8 lines · Philipp Tomsich
With both an imply from
CMD_USBtoUSB_FUNCTION_MASS_STORAGEand withUSB_FUNCTION_MASS_STORAGEmoved toKconfig, we can now run moveconfig.Signed-off-by Philipp Tomsich <[email protected]>---
Changes in v2: None
Quoted 8 lines
configs/CHIP_pro_defconfig | 1 + configs/Nintendo_NES_Classic_Edition_defconfig | 1 + configs/Sinlinx_SinA33_defconfig | 1 + configs/fennec-rk3288_defconfig | 1 + configs/firefly-rk3288_defconfig | 1 + configs/kylin-rk3036_defconfig | 1 + configs/miqi-rk3288_defconfig | 1 + configs/parrot_r16_defconfig | 1 +I've never really been a big fan of enabling this one by default, and now that we have it in
Kconfig, there's no reason to anymore. Let's remove it entirely from these boards (parrot, CHIP Pro, SinA33 and NES Classic).
Quoted 7 lines
Quoted 5 lines
I’d prefer if we can keep the moveconfig part in tact (and have it show up in the defconfig of every board it was active for before).
Removing these from the affected board should be another patch after it’s been moved to defconfig.
That works for me. Can you add it to your serie?
I need to rebase this onto -usb anyway… so yes.
Phil.
v2 cover CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE
In reply to Philipp TomsichQuoted 12 lines · Philipp Tomsich
Up to now, there's been some ugliness associated with the dependency from
CMD_USB_MASS_STORAGEtoUSB_FUNCTION_MASS_STORAGE:
if someone only definedCMD_USB_MASS_STORAGE, they'd meet a linker error due to missing symbols that came fromUSB_FUNCTION_MASS_STORAGE.Most platforms seem to have resorted to unconditionally enable
USB_FUNCTION_MASS_STORAGEvia their 'common' config-header... some tried to tie this to an #ifdefCMD_USB_MASS_STORAGE(in fact I had a patch for the RK3399 that did just that and rather decided to clean this up once and for all instead of contributing to the prolongation of the status quo). Neither is a good solution.
Quoted 3 lines
So this series moves
USB_FUNCTION_MASS_STORAGEtoKconfigand letsCMD_USB_MASS_STORAGEimplyUSB_FUNCTION_MASS_STORAGE. Finally, we run moveconfig to contain the damage.
Thanks for the patch.
I was trying to apply those patches to Marek's -usb tree, but with some issues.
Marek, would you be some kind and update your's u-boot-denx-usb tree?
Thanks in advance.
Quoted 56 lines
Changes in v2:
- ran 'tabify' on newly added lines (inKconfig) to fix a spaces vs. tabs issuesPhilipp Tomsich (3):
usb: gadget: moveUSB_FUNCTION_MASS_STORAGEtoKconfig
Kconfig:CMD_USB_MASS_STORAGEimpliesUSB_FUNCTION_MASS_STORAGE
config: moveUSB_FUNCTION_MASS_STORAGEcmd/Kconfig | 1 + configs/CHIP_pro_defconfig | 1 + configs/Nintendo_NES_Classic_Edition_defconfig | 1 + configs/Sinlinx_SinA33_defconfig | 1 + configs/fennec-rk3288_defconfig | 1 + configs/firefly-rk3288_defconfig | 1 + configs/kylin-rk3036_defconfig | 1 + configs/miqi-rk3288_defconfig | 1 + configs/parrot_r16_defconfig | 1 + configs/phycore-rk3288_defconfig | 2 +- configs/popmetal-rk3288_defconfig | 1 + configs/smdkv310_defconfig | 1 + configs/tinker-rk3288_defconfig | 1 + drivers/usb/gadget/Kconfig | 9 +++++++++ include/configs/advantech_dms-ba16.h | 1 - include/configs/apalis_imx6.h | 1 - include/configs/bav335x.h | 4 ---- include/configs/cgtqmx6eval.h | 2 -- include/configs/colibri_imx6.h | 1 - include/configs/colibri_imx7.h | 2 -- include/configs/colibri_vf.h | 1 - include/configs/exynos4-common.h | 2 -- include/configs/ge_bx50v3.h | 1 - include/configs/gw_ventana.h | 1 - include/configs/ma5d4evk.h | 1 - include/configs/mx6sabre_common.h | 2 -- include/configs/mx7dsabresd.h | 2 -- include/configs/nitrogen6x.h | 2 -- include/configs/odroid_xu3.h | 1 - include/configs/opos6uldev.h | 1 - include/configs/pico-imx6ul.h | 1 - include/configs/pico-imx7d.h | 2 -- include/configs/rk3036_common.h | 1 - include/configs/rk322x_common.h | 1 - include/configs/rk3288_common.h | 1 - include/configs/rk3399_common.h | 4 ---- include/configs/s5p_goni.h | 1 - include/configs/socfpga_common.h | 2 -- include/configs/sunxi-common.h | 1 - include/configs/tbs2910.h | 1 - include/configs/tegra-common-usb-gadget.h | 1 - include/configs/warp.h | 2 -- include/configs/warp7.h | 2 -- scripts/config_whitelist.txt | 1 - 44 files changed, 22 insertions(+), 47 deletions(-)
Signature · 9 lines
Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
v2 cover CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE
Quoted 19 lines · Łukasz Majewski
Quoted 12 lines · Philipp Tomsich
Up to now, there's been some ugliness associated with the dependency from
CMD_USB_MASS_STORAGEtoUSB_FUNCTION_MASS_STORAGE:
if someone only definedCMD_USB_MASS_STORAGE, they'd meet a linker error due to missing symbols that came fromUSB_FUNCTION_MASS_STORAGE.Most platforms seem to have resorted to unconditionally enable
USB_FUNCTION_MASS_STORAGEvia their 'common' config-header... some tried to tie this to an #ifdefCMD_USB_MASS_STORAGE(in fact I had a patch for the RK3399 that did just that and rather decided to clean this up once and for all instead of contributing to the prolongation of the status quo). Neither is a good solution.Quoted 3 lines
So this series moves
USB_FUNCTION_MASS_STORAGEtoKconfigand letsCMD_USB_MASS_STORAGEimplyUSB_FUNCTION_MASS_STORAGE. Finally, we run moveconfig to contain the damage.Thanks for the patch.
Quoted 7 lines
Rewieved-by Lukasz Majewski <[email protected]>I was trying to apply those patches to Marek's -usb tree, but with some issues.
Marek, would you be some kind and update your's u-boot-denx-usb tree?
It's on u-boot/master + 1 patch for a while ... what's your problem ?
(HEAD -> refs/heads/master, refs/remotes/deploy/master)
---
807598a60c | Masahiro Yamada | usb: add static to local symbols
---
e14b1169c0 | Tom Rini | Merge git://www.denx.de/git/u-boot-marvell
Also cutting the screwed up CC list *eyeroll*
Signature · 2 lines
Best regards, Marek Vasut
v2 cover CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE
Hi Marek,
Quoted 23 lines · Łukasz Majewski
Quoted 22 lines · Philipp Tomsich
Quoted 12 lines
Up to now, there's been some ugliness associated with the dependency from
CMD_USB_MASS_STORAGEtoUSB_FUNCTION_MASS_STORAGE:
if someone only definedCMD_USB_MASS_STORAGE, they'd meet a linker error due to missing symbols that came fromUSB_FUNCTION_MASS_STORAGE.Most platforms seem to have resorted to unconditionally enable
USB_FUNCTION_MASS_STORAGEvia their 'common' config-header... some tried to tie this to an #ifdefCMD_USB_MASS_STORAGE(in fact I had a patch for the RK3399 that did just that and rather decided to clean this up once and for all instead of contributing to the prolongation of the status quo). Neither is a good solution.Quoted 3 lines
So this series moves
USB_FUNCTION_MASS_STORAGEtoKconfigand letsCMD_USB_MASS_STORAGEimplyUSB_FUNCTION_MASS_STORAGE. Finally, we run moveconfig to contain the damage.Thanks for the patch.
Rewieved-by Lukasz Majewski <[email protected]>
Quoted 6 lines
Quoted 4 lines
I was trying to apply those patches to Marek's -usb tree, but with some issues.
Marek, would you be some kind and update your's u-boot-denx-usb tree?
It's on u-boot/master + 1 patch for a while ... what's your problem ?
That is the patch 3/3 which causes the problem :-)
No issues from my side :-D
Quoted 8 lines
(HEAD -> refs/heads/master, refs/remotes/deploy/master)
---
807598a60c| Masahiro Yamada | usb: add static to local symbols
---
e14b1169c0| Tom Rini | Mergegit://www.denx.de/git/u-boot-marvellAlso cutting the screwed up CC list *eyeroll*
Yeah, I've realized that this list is too long after I've repied.
Philipp, could you make patch 3/3 applicable to Marek's u-boot-usb/master tree?
Thanks in advance.
Quoted 1 line
Signature · 9 lines
Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
v2 cover CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE
Quoted 46 lines · Łukasz Majewski
Hi Marek,
Quoted 23 lines · Łukasz Majewski
Quoted 22 lines · Philipp Tomsich
Quoted 12 lines
Up to now, there's been some ugliness associated with the dependency from
CMD_USB_MASS_STORAGEtoUSB_FUNCTION_MASS_STORAGE:
if someone only definedCMD_USB_MASS_STORAGE, they'd meet a linker error due to missing symbols that came fromUSB_FUNCTION_MASS_STORAGE.Most platforms seem to have resorted to unconditionally enable
USB_FUNCTION_MASS_STORAGEvia their 'common' config-header... some tried to tie this to an #ifdefCMD_USB_MASS_STORAGE(in fact I had a patch for the RK3399 that did just that and rather decided to clean this up once and for all instead of contributing to the prolongation of the status quo). Neither is a good solution.Quoted 3 lines
So this series moves
USB_FUNCTION_MASS_STORAGEtoKconfigand letsCMD_USB_MASS_STORAGEimplyUSB_FUNCTION_MASS_STORAGE. Finally, we run moveconfig to contain the damage.Thanks for the patch.
Rewieved-by Lukasz Majewski <[email protected]>Quoted 6 lines
Quoted 4 lines
I was trying to apply those patches to Marek's -usb tree, but with some issues.
Marek, would you be some kind and update your's u-boot-denx-usb tree?
It's on u-boot/master + 1 patch for a while ... what's your problem ?
That is the patch 3/3 which causes the problem :-)
No issues from my side :-D
Quoted 7 lines
(HEAD -> refs/heads/master, refs/remotes/deploy/master)
---
807598a60c| Masahiro Yamada | usb: add static to local symbols
---e14b1169c0| Tom Rini | Mergegit://www.denx.de/git/u-boot-marvell
Quoted 5 lines
Quoted 1 line
Also cutting the screwed up CC list *eyeroll*
Yeah, I've realized that this list is too long after I've repied.
Philipp, could you make patch 3/3 applicable to Marek's u-boot-usb/master tree?
Rebased onto u-boot-usb/master and resubmitted.
The CC list will still be excessive... but that’s due to moveconfig touching large amounts of files and patman trying to keep everyone informed.
Regards,
Philipp.