]> git.sur5r.net Git - u-boot/commitdiff
fs: fat: Drop CONFIG_SUPPORT_VFAT
authorTuomas Tynkkynen <tuomas@tuxera.com>
Fri, 5 Jan 2018 00:45:21 +0000 (02:45 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 22 Jan 2018 21:43:31 +0000 (16:43 -0500)
fat.h unconditionally defines CONFIG_SUPPORT_VFAT (and has done since
2003), so as a result VFAT support is always enabled regardless of
whether a board config defines it or not. Drop this unnecessary option.

Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
32 files changed:
fs/fat/fat.c
fs/fat/fat_write.c
include/configs/MPC8349ITX.h
include/configs/apf27.h
include/configs/clearfog.h
include/configs/controlcenterdc.h
include/configs/db-88f6720.h
include/configs/db-88f6820-amc.h
include/configs/db-88f6820-gp.h
include/configs/db-mv784mp-gp.h
include/configs/ds414.h
include/configs/edminiv2.h
include/configs/gplugd.h
include/configs/mv-common.h
include/configs/mvebu_armada-37xx.h
include/configs/mvebu_armada-8k.h
include/configs/nas220.h
include/configs/pic32mzdask.h
include/configs/rcar-gen2-common.h
include/configs/rcar-gen3-common.h
include/configs/rk3128_common.h
include/configs/rk3328_common.h
include/configs/rk3399_common.h
include/configs/theadorable.h
include/configs/turris_omnia.h
include/configs/vct.h
include/configs/x600.h
include/configs/x86-common.h
include/configs/zmx25.h
include/configs/zynq-common.h
include/fat.h
scripts/config_whitelist.txt

index 1283818761d46354dbabb096cde06a090051f0af..dd7888cd6d4d5317c34449a93a8349f63e822056 100644 (file)
 #include <linux/compiler.h>
 #include <linux/ctype.h>
 
-#ifdef CONFIG_SUPPORT_VFAT
-static const int vfat_enabled = 1;
-#else
-static const int vfat_enabled = 0;
-#endif
-
 /*
  * Convert a string to lowercase.  Converts at most 'len' characters,
  * 'len' may be larger than the length of 'str' if 'str' is NULL
@@ -605,9 +599,6 @@ static int get_fs_info(fsdata *mydata)
                return -1;
        }
 
-       if (vfat_enabled)
-               debug("VFAT Support enabled\n");
-
        debug("FAT%d, fat_sect: %d, fatlength: %d\n",
               mydata->fatsize, mydata->fat_sect, mydata->fatlength);
        debug("Rootdir begins at cluster: %d, sector: %d, offset: %x\n"
@@ -857,8 +848,7 @@ static int fat_itr_next(fat_itr *itr)
                        continue;
 
                if (dent->attr & ATTR_VOLUME) {
-                       if (vfat_enabled &&
-                           (dent->attr & ATTR_VFAT) == ATTR_VFAT &&
+                       if ((dent->attr & ATTR_VFAT) == ATTR_VFAT &&
                            (dent->name[0] & LAST_LONG_ENTRY_MASK)) {
                                dent = extract_vfat_name(itr);
                                if (!dent)
index cd65192da54771e815ef0a3b58282d6f8b9d18e5..2b753df2820dcddcdcd5fdbd72be9e0ba4e2035b 100644 (file)
@@ -819,8 +819,7 @@ static dir_entry *find_directory_entry(fsdata *mydata, int startsect,
                                continue;
                        }
                        if ((dentptr->attr & ATTR_VOLUME)) {
-                               if (vfat_enabled &&
-                                   (dentptr->attr & ATTR_VFAT) &&
+                               if ((dentptr->attr & ATTR_VFAT) &&
                                    (dentptr->name[0] & LAST_LONG_ENTRY_MASK)) {
                                        get_long_file_name(mydata, curclust,
                                                     get_dentfromdir_block,
index c88aa9563221028ebec081f6473af7defd5fca9a..e2807a6b4f05078ca35335f509fc5d1b376d2194 100644 (file)
@@ -470,14 +470,6 @@ boards, we say we have two, but don't display a message if we find only one. */
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-#if defined(CONFIG_COMPACT_FLASH) || defined(CONFIG_SATA_SIL3114) \
-                               || defined(CONFIG_USB_STORAGE)
-       #define CONFIG_SUPPORT_VFAT
-#endif
-
-#if defined(CONFIG_SATA_SIL3114) || defined(CONFIG_USB_STORAGE)
-#endif
-
 /* Watchdog */
 #undef CONFIG_WATCHDOG         /* watchdog disabled */
 
index 8294101029d660df65ef1e7c665764290ed764de..24afc84a02e6864fb94f4d5284a6ac5d643f3b0b 100644 (file)
  */
 #define CONFIG_MTD_DEVICE
 #define CONFIG_MTD_PARTITIONS
-#define CONFIG_SUPPORT_VFAT
 
 /*
  * Ethernet (on SOC imx FEC)
index bf87bac30021a72dbe914997b0483a734c7e55cc..512c4632f139fea2d30d709cfee991a9afa3e006 100644 (file)
  */
 #define CONFIG_SYS_MMC_BASE            MVEBU_SDIO_BASE
 
-/* Partition support */
-
-/* Additional FS support/configuration */
-#define CONFIG_SUPPORT_VFAT
-
 /* USB/EHCI configuration */
 #define CONFIG_EHCI_IS_TDI
 
index a882fa650b987dfc33dbed711ae5fd8ecbf48367..bf324bbbbd4435fd4e4f9eff60e9761f7eec2c5e 100644 (file)
@@ -54,9 +54,6 @@
 #define CONFIG_SYS_SCSI_MAX_DEVICE     (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
                                         CONFIG_SYS_SCSI_MAX_LUN)
 
-/* Additional FS support/configuration */
-#define CONFIG_SUPPORT_VFAT
-
 /* USB/EHCI configuration */
 #define CONFIG_EHCI_IS_TDI
 
index cdaaced2eb559831e8931ab0065800cfbee787bf..67943bab3d399708c3771e59193924df538d9a5a 100644 (file)
@@ -49,9 +49,6 @@
 
 #define CONFIG_SYS_ALT_MEMTEST
 
-/* Additional FS support/configuration */
-#define CONFIG_SUPPORT_VFAT
-
 /*
  * mv-common.h should be defined after CMD configs since it used them
  * to enable certain macros
index b0e988d23435917ecfd9762aae266fd6669b6519..69ec662454154e292b2cb695ad7550ea8ac91dbe 100644 (file)
 #define CONFIG_SF_DEFAULT_SPEED                1000000
 #define CONFIG_SF_DEFAULT_MODE         SPI_MODE_3
 
-/* Partition support */
-
-/* Additional FS support/configuration */
-#define CONFIG_SUPPORT_VFAT
-
 /* USB/EHCI configuration */
 #define CONFIG_EHCI_IS_TDI
 
index 32f93f2f46e9d63f3def6e7ebf0b96dca10af306..a3ab6ef037c4913faa4e94039cb0f6b168b0b38a 100644 (file)
 #define CONFIG_SYS_SCSI_MAX_DEVICE     (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
                                         CONFIG_SYS_SCSI_MAX_LUN)
 
-/* Partition support */
-
-/* Additional FS support/configuration */
-#define CONFIG_SUPPORT_VFAT
-
 /* USB/EHCI configuration */
 #define CONFIG_EHCI_IS_TDI
 
index 3dcc28710bb1765ac859addac682e1c97f9d228f..524a1cabc67f115bee4ef992416d2f3df82b65dc 100644 (file)
@@ -51,9 +51,6 @@
 #define CONFIG_SYS_SATA_MAX_DEVICE     2
 #define CONFIG_LBA48
 
-/* Additional FS support/configuration */
-#define CONFIG_SUPPORT_VFAT
-
 /* PCIe support */
 #ifndef CONFIG_SPL_BUILD
 #define CONFIG_PCI_MVEBU
index c201dbf4d3e71be5b616a8473404e203d52d61fb..c840c935b255a53b32ba4e6cffe7467f98a617e5 100644 (file)
@@ -68,7 +68,6 @@
 #endif
 
 /* why is this only defined in mv-common.h if CONFIG_DM is undefined? */
-#define CONFIG_SUPPORT_VFAT
 #define CONFIG_SYS_MVFS
 
 /*
index b77cfc5d21d83e52837a83d75047f4c449a8df4d..167fcf2e12616ade41a77f0cb28bd56082b608b4 100644 (file)
  */
 #ifdef CONFIG_CMD_USB
 #define ORION5X_USB20_HOST_PORT_BASE ORION5X_USB20_PORT0_BASE
-#define CONFIG_SUPPORT_VFAT
 #endif /* CONFIG_CMD_USB */
 
 /*
index dddd300fb5d553c8106cf7926d85700d6b81624d..67f06722f2db2454a5a8e88f1b1440fdbc659560 100644 (file)
@@ -85,6 +85,4 @@
 #define CONFIG_EHCI_IS_TDI
 #endif /* CONFIG_CMD_USB */
 
-#define CONFIG_SUPPORT_VFAT
-
 #endif /* __CONFIG_GPLUGD_H */
index 7c2bab2fc6eb8d4b2bb61c9641fcabb56b4b7df6..1721fefd14651f279f37f482d2a93c95641e5beb 100644 (file)
 #ifdef CONFIG_CMD_SF
 #endif
 
-/*
- * Common USB/EHCI configuration
- */
-#if defined(CONFIG_CMD_USB) && !defined(CONFIG_DM)
-#define CONFIG_SUPPORT_VFAT
-#endif /* CONFIG_CMD_USB */
-
 /*
  * File system
  */
index 9f2db099cda562adfe950604346fe9b6064dc505..5c53dd3dfb5715520d7016006cfe2e8a525396ef 100644 (file)
 #define CONFIG_SYS_SCSI_MAX_DEVICE     (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
                                         CONFIG_SYS_SCSI_MAX_LUN)
 
-#define CONFIG_SUPPORT_VFAT
-
 #include <config_distro_defaults.h>
 
 #define BOOT_TARGET_DEVICES(func) \
index 7f143164c3acd3767fbf8abe41a41bf83ee0978b..86e0d4382119601032272c80bf86215b1170ecb1 100644 (file)
 #define CONFIG_SYS_SCSI_MAX_DEVICE     (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
                                         CONFIG_SYS_SCSI_MAX_LUN)
 
-#define CONFIG_SUPPORT_VFAT
-
 /*
  * PCI configuration
  */
index 089263f96f749783810f7dfc051d1c788cdea5c4..90be7bd010f16dd0099897f4a6f78b9a10c6aa4d 100644 (file)
@@ -91,7 +91,6 @@
 #ifdef CONFIG_CMD_USB
 #define CONFIG_USB_EHCI_KIRKWOOD       /* on Kirkwood platform */
 #define CONFIG_EHCI_IS_TDI
-#define CONFIG_SUPPORT_VFAT
 #endif /* CONFIG_CMD_USB */
 
 /*
index 1f93ae9d831cdbadad615ad1c17e7470b1f14e11..7a959c4315102161a26da508f4ad2f52ae10fa7d 100644 (file)
  * USB Configuration
  */
 
-/*-----------------------------------------------------------------------
- * File System Configuration
- */
-/* FAT FS */
-#define CONFIG_SUPPORT_VFAT
-
 /* -------------------------------------------------
  * Environment
  */
index 19c4c4c72b49141c72f0e87b638829b447eb33d8..d7792978f73dfe4e6b5ecbe4aee1f6effcca7ffe 100644 (file)
@@ -11,9 +11,6 @@
 
 #include <asm/arch/rmobile.h>
 
-/* Support File sytems */
-#define CONFIG_SUPPORT_VFAT
-
 #define CONFIG_CMDLINE_TAG
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
index 7e23b5e054a7cef8e606a387c232fe60e816d30c..e9e5fecc12a06ee8cf5dfc6ccd9d4e71c4d1fe3d 100644 (file)
@@ -17,9 +17,6 @@
 /* boot option */
 #define CONFIG_SUPPORT_RAW_INITRD
 
-/* Support File sytems */
-#define CONFIG_SUPPORT_VFAT
-
 #define CONFIG_CMDLINE_TAG
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
index b83528edd1246dab7134e858fa0f062aa91075c7..8889046f2b2a2e743e3a90740ac1708ecc45f1ae 100644 (file)
@@ -30,8 +30,6 @@
 /* MMC/SD IP block */
 #define CONFIG_BOUNCE_BUFFER
 
-#define CONFIG_SUPPORT_VFAT
-
 /* RAW SD card / eMMC locations. */
 #define CONFIG_SYS_SPI_U_BOOT_OFFS     (128 << 10)
 
index 8c1a0e9260a9588b4d7eeadbe4923d7a73e514d8..eba5a22e06f1aac063c494530f35b4dd6e2b94c5 100644 (file)
@@ -24,8 +24,6 @@
 /* MMC/SD IP block */
 #define CONFIG_BOUNCE_BUFFER
 
-#define CONFIG_SUPPORT_VFAT
-
 /* RAW SD card / eMMC locations. */
 #define CONFIG_SYS_SPI_U_BOOT_OFFS     (128 << 10)
 
index 21395bab8a840d4b600ef3cc358465afa3e8717c..95f544ee58fdf7a48eef32d8fa48371fc8fe1719 100644 (file)
@@ -38,8 +38,6 @@
 #define CONFIG_BOUNCE_BUFFER
 #define CONFIG_ROCKCHIP_SDHCI_MAX_FREQ 200000000
 
-#define CONFIG_SUPPORT_VFAT
-
 /* RAW SD card / eMMC locations. */
 #define CONFIG_SYS_SPI_U_BOOT_OFFS     (128 << 10)
 
index 6e95aa1626e509bf9ac2a7dc78764489924ae86f..438abf10cce8148dd7c42700a15b6639963c98d5 100644 (file)
@@ -67,9 +67,6 @@
 #define CONFIG_SYS_SATA_MAX_DEVICE     1
 #define CONFIG_LBA48
 
-/* Additional FS support/configuration */
-#define CONFIG_SUPPORT_VFAT
-
 /* PCIe support */
 #ifdef CONFIG_CMD_PCI
 #ifndef CONFIG_SPL_BUILD
index 3dbd2cacbae71dbcc1ad1b9d1f9b322274519184..40d94a2d24b227b9f2fdc6f8f1073e91ce64855a 100644 (file)
@@ -59,9 +59,6 @@
 #define CONFIG_SYS_SCSI_MAX_DEVICE     (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
                                         CONFIG_SYS_SCSI_MAX_LUN)
 
-/* Additional FS support/configuration */
-#define CONFIG_SUPPORT_VFAT
-
 /* USB/EHCI configuration */
 #define CONFIG_EHCI_IS_TDI
 
index 00ad134382e6c565851e164f696d009d8d7a45c0..a5b5aafb407274d67eed9c73d91bb97194808263 100644 (file)
@@ -72,7 +72,6 @@
  * Commands
  */
 #if defined(CONFIG_CMD_USB)
-#define CONFIG_SUPPORT_VFAT
 
 /*
  * USB/EHCI
index 7363057a5c3064c57c4a84a9037877d8d5b5989a..4aa5a2a924fabbb3d15297423f601cc963eb2483 100644 (file)
 #define CONFIG_USB_EHCI_SPEAR
 #define CONFIG_USB_MAX_CONTROLLER_COUNT        2
 
-/* Filesystem support (for USB key) */
-#define CONFIG_SUPPORT_VFAT
-
-
 /*
  * U-Boot Environment placing definitions.
  */
index 064c546403627bea6d192e74beb810de5f6443d5..994214ea48a784ee92855bd0c450916fd7a7d4b7 100644 (file)
@@ -58,8 +58,6 @@
 #define CONFIG_CMDLINE_EDITING
 #define CONFIG_AUTO_COMPLETE
 
-#define CONFIG_SUPPORT_VFAT
-
 /*-----------------------------------------------------------------------
  * Command line configuration.
  */
index 1ae1ca4317f2f091fb115f28d7dfbc42a06a50b8..f9783a21c2ed5f590ecd823c90e24467668feff3 100644 (file)
@@ -82,7 +82,6 @@
 #define CONFIG_MXC_USB_PORTSC  MXC_EHCI_MODE_SERIAL
 #define CONFIG_MXC_USB_FLAGS   (MXC_EHCI_INTERNAL_PHY | MXC_EHCI_IPPUE_DOWN)
 #define CONFIG_EHCI_IS_TDI
-#define CONFIG_SUPPORT_VFAT
 #endif /* CONFIG_CMD_USB */
 
 /* SDRAM */
index b10cb3f572204131e2af35d3b322eb917504036d..28cee15b37a5d8d47f071b9238310c03ccb0ac82 100644 (file)
 # define DFU_ALT_INFO
 #endif
 
-#if defined(CONFIG_MMC_SDHCI_ZYNQ) || defined(CONFIG_ZYNQ_USB)
-# define CONFIG_SUPPORT_VFAT
-#endif
-
 #if defined(CONFIG_ZYNQ_I2C0) || defined(CONFIG_ZYNQ_I2C1)
 #define CONFIG_SYS_I2C_ZYNQ
 #endif
index bdeda95e6debebad99523451efdcc14f584d7e44..fa956441c659504d247d0a9ff9860946c7fac479 100644 (file)
@@ -13,7 +13,6 @@
 #include <asm/byteorder.h>
 #include <fs.h>
 
-#define CONFIG_SUPPORT_VFAT
 /* Maximum Long File Name length supported here is 128 UTF-16 code units */
 #define VFAT_MAXLEN_BYTES      256 /* Maximum LFN buffer in bytes */
 #define VFAT_MAXSEQ            9   /* Up to 9 of 13 2-byte UTF-16 entries */
index 6ef9606c5cffdd7f294fb24d92c56a012dde83b0..ddf964432d9a2ab93c1d318345788e4e70dddb2f 100644 (file)
@@ -2163,7 +2163,6 @@ CONFIG_SUPERH_ON_CHIP_R8A66597
 CONFIG_SUPPORT_EMMC_BOOT
 CONFIG_SUPPORT_EMMC_RPMB
 CONFIG_SUPPORT_RAW_INITRD
-CONFIG_SUPPORT_VFAT
 CONFIG_SUVD3
 CONFIG_SXNI855T
 CONFIG_SYSFLAGS_ADDR