From: Ulf Hansson <ulf.hansson@linaro.org>
To: linux-mmc@vger.kernel.org, Ulf Hansson <ulf.hansson@linaro.org>
Cc: Jaehoon Chung <jh80.chung@samsung.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Linus Walleij <linus.walleij@linaro.org>
Subject: [PATCH 00/21] mmc: core: A start to slim down public mmc headers
Date: Fri, 30 Dec 2016 13:47:13 +0100 [thread overview]
Message-ID: <1483102054-1752-1-git-send-email-ulf.hansson@linaro.org> (raw)
Ideally we should not expose functions nor structures as being public available
as the interface for mmc - unless they really are intended to be used like that.
Unfortunate this is not the case today and which has lead to the mmc interface
in some cases being abused. That of course has its own problems, but we can
still move things in the right direction, which is what this series intend to
do. More precisely, it moves things that can be easily moved from the public mmc
headers to the private mmc headers.
This should be considered as a first step of improving the situation, further
additional changes will have to continue this path.
Ulf Hansson (21):
sh: sh7724: Don't use a public mmc header for MMC_PROGRESS*
mmc: Removed the unused public mmc boot.h header
mmc: sh_mmcif: Remove unused use_cd_gpio/cd_gpio from platform data
mmc: sh_mmcif: Remove unused ->get_cd() platform callback
mmc: sh_mmcif: Remove unused ccs_unsupported from the platform data
mmc: sh_mmcif: Remove unused clk_ctrl2_present from the platform data
mmc: dw_mmc: Remove the public dw_mmc header file
mmc: sdhci-cadence: Include mmc.h
mmc: sdhci: Include leds.h
mmc: host: Include interrupt.h in mmc host drivers that depends on it
mmc: core: First step in cleaning up public mmc header files
mmc: core: First step in cleaning up private mmc header files
mmc: core: Move public functions from core.h to private headers
mmc: core: Move some host specific public functions to host.h
mmc: core: Move erase/trim/discard defines from public core.h to mmc.h
mmc: core: Remove unused struct _mmc_csd from public mmc.h header
mmc: omap: Don't use mmc_card_present() when validating for inserted
card
mmc: vub300: Don't use mmc_card_present() when validating for inserted
card
mmc: core: Move public functions from card.h to private headers
mmc: core: Move public functions from host.h to private headers
mmc: core: Don't use extern declarations of public mmc functions
MAINTAINERS | 1 -
arch/sh/boot/romimage/mmcif-sh7724.c | 16 +-
drivers/mmc/core/block.c | 6 +
drivers/mmc/core/block.h | 8 +
drivers/mmc/core/bus.c | 2 +
drivers/mmc/core/bus.h | 16 +-
drivers/mmc/core/card.h | 223 ++++++++++++++++++++++++++++
drivers/mmc/core/core.c | 1 +
drivers/mmc/core/core.h | 41 +++++-
drivers/mmc/core/debugfs.c | 2 +
drivers/mmc/core/host.h | 48 ++++++
drivers/mmc/core/mmc.c | 13 ++
drivers/mmc/core/mmc_ops.h | 14 ++
drivers/mmc/core/mmc_test.c | 5 +
drivers/mmc/core/pwrseq.h | 6 +-
drivers/mmc/core/queue.c | 2 +
drivers/mmc/core/queue.h | 6 +-
drivers/mmc/core/quirks.c | 2 +
drivers/mmc/core/sd.c | 2 +
drivers/mmc/core/sd.h | 5 +-
drivers/mmc/core/sd_ops.h | 9 ++
drivers/mmc/core/sdio.c | 2 +
drivers/mmc/core/sdio_bus.c | 1 +
drivers/mmc/core/sdio_bus.h | 3 +
drivers/mmc/core/sdio_cis.h | 3 +
drivers/mmc/core/sdio_io.c | 2 +
drivers/mmc/core/sdio_irq.c | 2 +
drivers/mmc/core/sdio_ops.h | 5 +
drivers/mmc/core/slot-gpio.h | 2 +
drivers/mmc/host/davinci_mmc.c | 1 +
drivers/mmc/host/dw_mmc-exynos.c | 1 -
drivers/mmc/host/dw_mmc-k3.c | 1 -
drivers/mmc/host/dw_mmc-pci.c | 1 -
drivers/mmc/host/dw_mmc-pltfm.c | 1 -
drivers/mmc/host/dw_mmc-rockchip.c | 1 -
drivers/mmc/host/dw_mmc.c | 1 -
drivers/mmc/host/dw_mmc.h | 258 +++++++++++++++++++++++++++++++++
drivers/mmc/host/meson-gx-mmc.c | 1 +
drivers/mmc/host/mtk-sd.c | 1 +
drivers/mmc/host/omap.c | 2 +-
drivers/mmc/host/sdhci-cadence.c | 1 +
drivers/mmc/host/sdhci.h | 2 +
drivers/mmc/host/sh_mmcif.c | 28 +---
drivers/mmc/host/tmio_mmc.h | 1 +
drivers/mmc/host/via-sdmmc.c | 1 +
drivers/mmc/host/vub300.c | 6 +-
drivers/mmc/host/wmt-sdmmc.c | 1 +
include/linux/mmc/boot.h | 7 -
include/linux/mmc/card.h | 242 -------------------------------
include/linux/mmc/core.h | 86 ++---------
include/linux/mmc/dw_mmc.h | 274 -----------------------------------
include/linux/mmc/host.h | 63 ++------
include/linux/mmc/mmc.h | 59 ++------
include/linux/mmc/sh_mmcif.h | 5 -
include/linux/mmc/slot-gpio.h | 3 +
55 files changed, 747 insertions(+), 749 deletions(-)
create mode 100644 drivers/mmc/core/card.h
delete mode 100644 include/linux/mmc/boot.h
delete mode 100644 include/linux/mmc/dw_mmc.h
--
1.9.1
next reply other threads:[~2016-12-30 12:47 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-30 12:47 Ulf Hansson [this message]
2016-12-30 12:47 ` [PATCH 01/21] sh: sh7724: Don't use a public mmc header for MMC_PROGRESS* Ulf Hansson
2016-12-30 12:47 ` Ulf Hansson
2017-01-03 9:24 ` Simon Horman
2017-01-03 9:24 ` Simon Horman
2017-01-09 15:00 ` Linus Walleij
2017-01-09 15:00 ` Linus Walleij
2017-01-10 15:28 ` Ulf Hansson
2017-01-10 15:28 ` Ulf Hansson
2016-12-30 12:47 ` [PATCH 02/21] mmc: Removed the unused public mmc boot.h header Ulf Hansson
2017-01-09 15:01 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 03/21] mmc: sh_mmcif: Remove unused use_cd_gpio/cd_gpio from platform data Ulf Hansson
2017-01-09 15:03 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 04/21] mmc: sh_mmcif: Remove unused ->get_cd() platform callback Ulf Hansson
2017-01-09 15:04 ` Linus Walleij
2017-01-09 15:48 ` Geert Uytterhoeven
2016-12-30 12:47 ` [PATCH 05/21] mmc: sh_mmcif: Remove unused ccs_unsupported from the platform data Ulf Hansson
2017-01-09 15:05 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 06/21] mmc: sh_mmcif: Remove unused clk_ctrl2_present " Ulf Hansson
2017-01-09 15:06 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 07/21] mmc: dw_mmc: Remove the public dw_mmc header file Ulf Hansson
2017-01-09 15:13 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 08/21] mmc: sdhci-cadence: Include mmc.h Ulf Hansson
2017-01-09 15:14 ` Linus Walleij
2017-01-10 8:35 ` Adrian Hunter
2016-12-30 12:47 ` [PATCH 09/21] mmc: sdhci: Include leds.h Ulf Hansson
2016-12-30 13:35 ` Mateusz Nowak
2017-01-10 15:32 ` Ulf Hansson
2017-01-09 15:15 ` Linus Walleij
2017-01-10 8:32 ` Adrian Hunter
2016-12-30 12:47 ` [PATCH 10/21] mmc: host: Include interrupt.h in mmc host drivers that depends on it Ulf Hansson
2017-01-09 15:18 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 11/21] mmc: core: First step in cleaning up public mmc header files Ulf Hansson
2016-12-30 14:52 ` kbuild test robot
2016-12-30 15:11 ` kbuild test robot
2016-12-30 12:47 ` [PATCH 12/21] mmc: core: First step in cleaning up private " Ulf Hansson
2016-12-30 12:47 ` [PATCH 13/21] mmc: core: Move public functions from core.h to private headers Ulf Hansson
2017-01-09 18:19 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 14/21] mmc: core: Move some host specific public functions to host.h Ulf Hansson
2017-01-09 18:21 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 15/21] mmc: core: Move erase/trim/discard defines from public core.h to mmc.h Ulf Hansson
2017-01-09 18:22 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 16/21] mmc: core: Remove unused struct _mmc_csd from public mmc.h header Ulf Hansson
2017-01-09 18:23 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 17/21] mmc: omap: Don't use mmc_card_present() when validating for inserted card Ulf Hansson
2017-01-02 17:11 ` Tony Lindgren
2017-01-09 18:24 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 18/21] mmc: vub300: " Ulf Hansson
2017-01-09 18:24 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 19/21] mmc: core: Move public functions from card.h to private headers Ulf Hansson
2017-01-09 18:26 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 20/21] mmc: core: Move public functions from host.h " Ulf Hansson
2017-01-09 18:26 ` Linus Walleij
2016-12-30 12:47 ` [PATCH 21/21] mmc: core: Don't use extern declarations of public mmc functions Ulf Hansson
2017-01-09 18:27 ` Linus Walleij
2017-01-10 15:37 ` [PATCH 00/21] mmc: core: A start to slim down public mmc headers Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1483102054-1752-1-git-send-email-ulf.hansson@linaro.org \
--to=ulf.hansson@linaro.org \
--cc=adrian.hunter@intel.com \
--cc=jh80.chung@samsung.com \
--cc=linus.walleij@linaro.org \
--cc=linux-mmc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.