mmc: Kconfig: downgrade CONFIG_MMC_DEBUG for host drivers only
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 19 Jul 2017 07:55:47 +0000 (15:55 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:34 +0000 (14:01 +0200)
We have removed all code depending on CONFIG_MMC_DEBUG
from mmc core now. So it's safe to make CONFIG_MMC_DEBUG
just for host drivers only and we expect to kill this option
in the future.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/Kconfig
drivers/mmc/Makefile
drivers/mmc/host/Kconfig

index 7e803fc..ec21388 100644 (file)
@@ -12,13 +12,6 @@ menuconfig MMC
          If you want MMC/SD/SDIO support, you should say Y here and
          also to your specific host controller driver.
 
-config MMC_DEBUG
-       bool "MMC debugging"
-       depends on MMC != n
-       help
-         This is an option for use by developers; most people should
-         say N here.  This enables MMC core and driver debugging.
-
 if MMC
 
 source "drivers/mmc/core/Kconfig"
index 416b6d1..26ab7af 100644 (file)
@@ -2,7 +2,5 @@
 # Makefile for the kernel mmc device drivers.
 #
 
-subdir-ccflags-$(CONFIG_MMC_DEBUG) := -DDEBUG
-
 obj-$(CONFIG_MMC)              += core/
 obj-$(subst m,y,$(CONFIG_MMC)) += host/
index 2242633..66b1749 100644 (file)
@@ -4,6 +4,15 @@
 
 comment "MMC/SD/SDIO Host Controller Drivers"
 
+config MMC_DEBUG
+       bool "MMC host drivers debugginG"
+       depends on MMC != n
+       help
+         This is an option for use by developers; most people should
+         say N here. This enables MMC host driver debugging. And further
+         added host drivers please don't invent their private macro for
+         debugging.
+
 config MMC_ARMMMCI
        tristate "ARM AMBA Multimedia Card Interface support"
        depends on ARM_AMBA