From mboxrd@z Thu Jan 1 00:00:00 1970 From: Faiz Abbas Subject: Re: [PATCH v4 02/11] mmc: sdhci: Factor out some operations set to their own functions Date: Tue, 7 Jan 2020 12:52:13 +0530 Message-ID: <27fded85-d195-0a82-899a-bb6e727258dc@ti.com> References: <20200106110133.13791-1-faiz_abbas@ti.com> <20200106110133.13791-3-faiz_abbas@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Baolin Wang Cc: linux-omap@vger.kernel.org, LKML , devicetree@vger.kernel.org, linux-mmc , kishon@ti.com, Adrian Hunter , mark.rutland@arm.com, robh+dt@kernel.org, Ulf Hansson , tony@atomide.com List-Id: linux-omap@vger.kernel.org Hi Baolin, On 07/01/20 12:04 pm, Baolin Wang wrote: > Hi Faiz, > > On Mon, Jan 6, 2020 at 7:01 PM Faiz Abbas wrote: >> >> In preparation for adding external dma support, factor out data initialization, >> block info and mrq_done to their own functions. >> >> Signed-off-by: Faiz Abbas >> --- >> drivers/mmc/host/sdhci.c | 96 +++++++++++++++++++++++----------------- >> 1 file changed, 55 insertions(+), 41 deletions(-) >> >> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c >> index 1b1c26da3fe0..f6999054abcf 100644 >> --- a/drivers/mmc/host/sdhci.c >> +++ b/drivers/mmc/host/sdhci.c >> @@ -1025,18 +1025,9 @@ static void sdhci_set_timeout(struct sdhci_host *host, struct mmc_command *cmd) >> } >> } >> >> -static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_command *cmd) >> +static void sdhci_initialize_data(struct sdhci_host *host, >> + struct mmc_data *data) >> { >> - struct mmc_data *data = cmd->data; >> - >> - host->data_timeout = 0; >> - >> - if (sdhci_data_line_cmd(cmd)) >> - sdhci_set_timeout(host, cmd); >> - >> - if (!data) >> - return; >> - >> WARN_ON(host->data); >> >> /* Sanity checks */ >> @@ -1048,6 +1039,36 @@ static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_command *cmd) >> host->data_early = 0; >> host->data->bytes_xfered = 0; >> > > Can you remove above redundant blank line? Ok. > >> +} >> + >> +static inline void sdhci_set_block_info(struct sdhci_host *host, >> + struct mmc_data *data) >> +{ >> + > > Ditto. Ok. > > Otherwise, please add my tested tag if feel free. > > Tested-by: Baolin Wang Which platform did you test this on? Thanks, Faiz