[PATCH 2/2] mmc: dw_mmc: add dw_mmc-k3 for k3 platform

Zhangfei Gao zhangfei.gao at gmail.com
Wed Dec 11 00:47:16 EST 2013


Dear Seungwon

On Thu, Dec 5, 2013 at 10:00 PM, Seungwon Jeon <tgih.jun at samsung.com> wrote:

>> +static DEFINE_SPINLOCK(mmc_tuning_lock);
> Can the above variables be involved in dw_mci_k3_priv_data instead of global declaration?
>
Unfortunately, this can be be put in priv_data, which is different
instance for different controller.
Here need protect register shared by different controllers


>> +static int dw_mci_k3_setup_clock(struct dw_mci *host)
>> +{
>> +     dw_mci_k3_tun(host, MMC_TIMING_LEGACY);
> Is it necessary here?
> When card-init, MMC_TIMING_LEGACY will be passed via dw_mci_k3_set_ios().

Read register will fail if not set these register earlier, and set_ios
is too late.
Same reason for resume.

Thanks



More information about the linux-arm-kernel mailing list