Re: [PATCH 3/3] mmc: sdhci: update signal voltage switch code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2012/12/14 Johan Rudholm <jrudholm@xxxxxxxxx>:
> Hi Kevin,
>
> 2012/12/14 Kevin Liu <kliu5@xxxxxxxxxxx>:
>> The protocal related code is moved to core stack. So update the host
>> driver accordingly.
>>
>> Signed-off-by: Kevin Liu <kliu5@xxxxxxxxxxx>
>> ---
>>  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?
>

Oh, yes. I will add this.

Thanks
Kevin
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux