From: Shawn Lin Subject: [RFC PATCH v2 0/6] Try to get rid of CONFIG_MMC_DEBUG Date: Wed, 19 Jul 2017 15:50:55 +0800 Message-ID: <1500450661-158463-1-git-send-email-shawn.lin@rock-chips.com> Return-path: Received: from lucky1.263xmail.com ([211.157.147.134]:47470 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752109AbdGSHvb (ORCPT ); Wed, 19 Jul 2017 03:51:31 -0400 Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Ulf Hansson Cc: Adrian Hunter , linux-mmc@vger.kernel.org, Shawn Lin CONFIG_MMC_DEBUG was introduced long time ago and mostly it's a all-or-none proposition for compile-time. By looking at how the mmc core use it, it's obviously pointless to still carry on this option. But referring to the host drivers, it's hard to say should we remove it now. The following drivers[1] will print some extra log on irq context for debugging. Probably folks still need to debug it sometimes but making it default behaviour seems to introduce some unnecessary burden for their drivers I guess. Anyway, we downgrade this option for hosts only and ask the following added host drivers to use this for debugging instead of adding their private macro to activate their debug functions. This patchset also cleanup wbsd and improve sdhci a bit. [1]: drivers/mmc/host/s3cmci.c drivers/mmc/host/omap.c drivers/mmc/host/omap_hsmmc.c drivers/mmc/host/tmio_mmc_core.c Changes in v2: - rework the changes for sdhci suggested by Adrian Shawn Lin (6): mmc: core: remove check of host->removed for rescan routine mmc: core: always check the length of sglist with total data size mmc: core: turn the pr_info under CONFIG_MMC_DEBUG into pr_debug mmc: Kconfig: downgrade CONFIG_MMC_DEBUG for host drivers only mmc: wbsd: remove CONFIG_MMC_DEBUG from the driver mmc: sdhci: remove CONFIG_MMC_DEBUG from the driver drivers/mmc/Kconfig | 7 ------- drivers/mmc/Makefile | 2 -- drivers/mmc/core/core.c | 35 +++++++---------------------------- drivers/mmc/host/Kconfig | 9 +++++++++ drivers/mmc/host/sdhci.c | 15 +++++++-------- drivers/mmc/host/wbsd.c | 2 -- include/linux/mmc/host.h | 3 --- 7 files changed, 23 insertions(+), 50 deletions(-) -- 1.9.1