Hi Kevin,
2012/12/14 Kevin Liu <[email protected]>:
> The protocal related code is moved to core stack. So update the host
> driver accordingly.
>
> Signed-off-by: Kevin Liu <[email protected]>
> ---
> drivers/mmc/host/sdhci.c | 188
> +++++++++++++++++++---------------------------
> 1 files changed, 77 insertions(+), 111 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> index 6f0bfc0..d19b2aa 100644
> --- a/drivers/mmc/host/sdhci.c
> +++ b/drivers/mmc/host/sdhci.c
...
> +static int sdhci_card_busy(struct mmc_host *mmc)
> +{
> + struct sdhci_host *host = mmc_priv(mmc);
> + u32 present_state;
> +
> + /* Check whether DAT[3:0] is 0000 */
> + present_state = sdhci_readl(host, SDHCI_PRESENT_STATE);
> +
> + return !(present_state & SDHCI_DATA_LVL_MASK);
> +}
> +
I'm not that familiar with SDHCI, but don't you need some calls to
sdhci_runtime_pm_get / put here?
Kind regards, Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html