linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>,
	 Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>,
	 Ulf Hansson <ulf.hansson@linaro.org>, Lee Jones <lee@kernel.org>,
	Arnd Bergmann <arnd@arndb.de>,
	 Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
	linux-mmc@vger.kernel.org,  linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 2/2] mmc: tmio: Remove obsolete .set_pwr() callback()
Date: Fri, 21 Jun 2024 10:01:06 +0100	[thread overview]
Message-ID: <CA+V-a8uAS9vHrVZpfyUUQvE7DConmbWH2yPkPM9N0Wb7Rd33Gg@mail.gmail.com> (raw)
In-Reply-To: <fbbc13ddd19df2c40933ffa3b82fb14841bf1d4c.1718897545.git.geert+renesas@glider.be>

On Thu, Jun 20, 2024 at 4:40 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
>
> Commit ca78476e4888f1f1 ("mfd: Remove toshiba tmio drivers") removed the
> last users of the .set_pwr() callback in the tmio_mmc_data structure.
> Remove the callback, and all related infrastructure.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Laurent tried this before in commit 3af9d15c719017fe
> ("mmc: tmio-mmc: Remove .set_pwr() callback from platform data"),
> but it had to be reverted in commit 9d731e7539713acc ("Revert
> "mmc: tmio-mmc: Remove .set_pwr() callback from platform data"")
> because there were still users at that time.
> ---
>  drivers/mmc/host/tmio_mmc.h      | 3 ---
>  drivers/mmc/host/tmio_mmc_core.c | 8 --------
>  include/linux/mfd/tmio.h         | 1 -
>  3 files changed, 12 deletions(-)
>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Cheers,
Prabhakar

> diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
> index de56e6534aeaaa10..2af5730c21f4a98d 100644
> --- a/drivers/mmc/host/tmio_mmc.h
> +++ b/drivers/mmc/host/tmio_mmc.h
> @@ -139,9 +139,6 @@ struct tmio_mmc_host {
>         struct mmc_host         *mmc;
>         struct mmc_host_ops     ops;
>
> -       /* Callbacks for clock / power control */
> -       void (*set_pwr)(struct platform_device *host, int state);
> -
>         /* pio related stuff */
>         struct scatterlist      *sg_ptr;
>         struct scatterlist      *sg_orig;
> diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c
> index 93e912afd3ae5aa0..7b4256f0cbe77028 100644
> --- a/drivers/mmc/host/tmio_mmc_core.c
> +++ b/drivers/mmc/host/tmio_mmc_core.c
> @@ -880,9 +880,6 @@ static void tmio_mmc_power_on(struct tmio_mmc_host *host, unsigned short vdd)
>
>         /* .set_ios() is returning void, so, no chance to report an error */
>
> -       if (host->set_pwr)
> -               host->set_pwr(host->pdev, 1);
> -
>         if (!IS_ERR(mmc->supply.vmmc)) {
>                 ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
>                 /*
> @@ -916,9 +913,6 @@ static void tmio_mmc_power_off(struct tmio_mmc_host *host)
>
>         if (!IS_ERR(mmc->supply.vmmc))
>                 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
> -
> -       if (host->set_pwr)
> -               host->set_pwr(host->pdev, 0);
>  }
>
>  static unsigned int tmio_mmc_get_timeout_cycles(struct tmio_mmc_host *host)
> @@ -1160,8 +1154,6 @@ int tmio_mmc_host_probe(struct tmio_mmc_host *_host)
>         if (pdata->flags & TMIO_MMC_USE_BUSY_TIMEOUT && !_host->get_timeout_cycles)
>                 _host->get_timeout_cycles = tmio_mmc_get_timeout_cycles;
>
> -       _host->set_pwr = pdata->set_pwr;
> -
>         ret = tmio_mmc_init_ocr(_host);
>         if (ret < 0)
>                 return ret;
> diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h
> index aca74ac1ff69e6f7..8c09d14a3a286ca0 100644
> --- a/include/linux/mfd/tmio.h
> +++ b/include/linux/mfd/tmio.h
> @@ -100,7 +100,6 @@ struct tmio_mmc_data {
>         dma_addr_t                      dma_rx_offset;
>         unsigned int                    max_blk_count;
>         unsigned short                  max_segs;
> -       void (*set_pwr)(struct platform_device *host, int state);
>  };
>
>  /*
> --
> 2.34.1
>
>

  parent reply	other threads:[~2024-06-21  9:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-20 15:39 [PATCH 0/2] mmc: tmio: Remove obsolete callbacks Geert Uytterhoeven
2024-06-20 15:39 ` [PATCH 1/2] mfd: tmio: Remove obsolete .set_clk_div() callback Geert Uytterhoeven
2024-06-20 17:08   ` Lee Jones
2024-06-24  9:05     ` Geert Uytterhoeven
2024-06-24 10:46       ` Lee Jones
2024-06-24 11:42         ` Geert Uytterhoeven
2024-06-24 12:55           ` Lee Jones
2024-06-20 20:05   ` Wolfram Sang
2024-06-21  8:56     ` Wolfram Sang
2024-06-21  9:00   ` Lad, Prabhakar
2024-06-20 15:39 ` [PATCH 2/2] mmc: tmio: Remove obsolete .set_pwr() callback() Geert Uytterhoeven
2024-06-20 17:07   ` Lee Jones
2024-06-20 20:09   ` Wolfram Sang
2024-06-21  8:56     ` Wolfram Sang
2024-06-21  9:01   ` Lad, Prabhakar [this message]
2024-06-24 14:55 ` [PATCH 0/2] mmc: tmio: Remove obsolete callbacks 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=CA+V-a8uAS9vHrVZpfyUUQvE7DConmbWH2yPkPM9N0Wb7Rd33Gg@mail.gmail.com \
    --to=prabhakar.csengg@gmail.com \
    --cc=arnd@arndb.de \
    --cc=geert+renesas@glider.be \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=lee@kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=ulf.hansson@linaro.org \
    --cc=wsa+renesas@sang-engineering.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).