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 <faiz_abbas@xxxxxx> 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 <faiz_abbas@xxxxxx> >> --- >> 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 <baolin.wang7@xxxxxxxxx> Which platform did you test this on? Thanks, Faiz