]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mmc: tmio,renesas_sdhi: move ssc_tappos to renesas_sdhi.h
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 24 Nov 2017 16:24:49 +0000 (01:24 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 19 Dec 2017 07:50:04 +0000 (08:50 +0100)
struct tmio_mmc_host has "scc_tappos", but in fact, it is Renesas
private data.  Move it to renesas_sdhi.h

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi.h
drivers/mmc/host/renesas_sdhi_core.c
drivers/mmc/host/tmio_mmc.h

index 3250dbed402f8c53d799cc24623d1c027c5a3baf..f13f798d8506575956acd1c8df601d3d4a230aa2 100644 (file)
@@ -51,6 +51,7 @@ struct renesas_sdhi {
        struct pinctrl *pinctrl;
        struct pinctrl_state *pins_default, *pins_uhs;
        void __iomem *scc_ctl;
+       u32 scc_tappos;
 };
 
 #define host_to_priv(host) \
index 0eb62353630f579b2c0e9c1d020fc204b7611420..6a2988bd51a2fd7a55a846dd0ebd9d6bf19e5ddf 100644 (file)
@@ -268,7 +268,7 @@ static unsigned int renesas_sdhi_init_tuning(struct tmio_mmc_host *host)
                       ~SH_MOBILE_SDHI_SCC_RVSCNTL_RVSEN &
                       sd_scc_read32(host, priv, SH_MOBILE_SDHI_SCC_RVSCNTL));
 
-       sd_scc_write32(host, priv, SH_MOBILE_SDHI_SCC_DT2FF, host->scc_tappos);
+       sd_scc_write32(host, priv, SH_MOBILE_SDHI_SCC_DT2FF, priv->scc_tappos);
 
        /* Read TAPNUM */
        return (sd_scc_read32(host, priv, SH_MOBILE_SDHI_SCC_DTCNTL) >>
@@ -591,7 +591,7 @@ int renesas_sdhi_probe(struct platform_device *pdev,
                for (i = 0; i < of_data->taps_num; i++) {
                        if (taps[i].clk_rate == 0 ||
                            taps[i].clk_rate == host->mmc->f_max) {
-                               host->scc_tappos = taps->tap;
+                               priv->scc_tappos = taps->tap;
                                hit = true;
                                break;
                        }
index 5972438105a38075409e3e9d53096ab6336722c3..a099fde270267090f4aff4a6745bf5b763becf96 100644 (file)
@@ -166,7 +166,6 @@ struct tmio_mmc_host {
        struct mutex            ios_lock;       /* protect set_ios() context */
        bool                    native_hotplug;
        bool                    sdio_irq_enabled;
-       u32                     scc_tappos;
 
        /* Mandatory callback */
        int (*clk_enable)(struct tmio_mmc_host *host);