mmc: sdhci: Move host->data warning
In order to support commands during data transfer, it will be possible that host->data is not NULL when preparing a new request. Move a warning that assumes otherwise. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
a4c73aba04
commit
43dea098bb
|
@ -744,14 +744,14 @@ static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_command *cmd)
|
||||||
u8 ctrl;
|
u8 ctrl;
|
||||||
struct mmc_data *data = cmd->data;
|
struct mmc_data *data = cmd->data;
|
||||||
|
|
||||||
WARN_ON(host->data);
|
|
||||||
|
|
||||||
if (data || (cmd->flags & MMC_RSP_BUSY))
|
if (data || (cmd->flags & MMC_RSP_BUSY))
|
||||||
sdhci_set_timeout(host, cmd);
|
sdhci_set_timeout(host, cmd);
|
||||||
|
|
||||||
if (!data)
|
if (!data)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
WARN_ON(host->data);
|
||||||
|
|
||||||
/* Sanity checks */
|
/* Sanity checks */
|
||||||
BUG_ON(data->blksz * data->blocks > 524288);
|
BUG_ON(data->blksz * data->blocks > 524288);
|
||||||
BUG_ON(data->blksz > host->mmc->max_blk_size);
|
BUG_ON(data->blksz > host->mmc->max_blk_size);
|
||||||
|
|
Loading…
Reference in New Issue