public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/6] Try to get rid of CONFIG_MMC_DEBUG
@ 2017-07-19  7:50 Shawn Lin
  2017-07-19  7:50 ` [RFC PATCH v2 1/6] mmc: core: remove check of host->removed for rescan routine Shawn Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Shawn Lin @ 2017-07-19  7:50 UTC (permalink / raw)
  To: Ulf Hansson; +Cc: Adrian Hunter, linux-mmc, 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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-07-27 14:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-19  7:50 [RFC PATCH v2 0/6] Try to get rid of CONFIG_MMC_DEBUG Shawn Lin
2017-07-19  7:50 ` [RFC PATCH v2 1/6] mmc: core: remove check of host->removed for rescan routine Shawn Lin
2017-07-19  7:55 ` [RFC PATCH v2 2/6] mmc: core: always check the length of sglist with total data size Shawn Lin
2017-07-19  7:55   ` [RFC PATCH v2 3/6] mmc: core: turn the pr_info under CONFIG_MMC_DEBUG into pr_debug Shawn Lin
2017-07-19  7:55   ` [RFC PATCH v2 4/6] mmc: Kconfig: downgrade CONFIG_MMC_DEBUG for host drivers only Shawn Lin
2017-07-19  7:55   ` [RFC PATCH v2 5/6] mmc: wbsd: remove CONFIG_MMC_DEBUG from the driver Shawn Lin
2017-07-19  7:55   ` [RFC PATCH v2 6/6] mmc: sdhci: " Shawn Lin
2017-07-19  8:24     ` Adrian Hunter
2017-07-27 14:48 ` [RFC PATCH v2 0/6] Try to get rid of CONFIG_MMC_DEBUG Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox