Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1404067

Re: [PATCH v3 5/5] mmc: sdhci-of-arasan: implement enhanced strobe callback

From Shawn Lin <shawn.lin@rock-chips.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 5/5] mmc: sdhci-of-arasan: implement enhanced strobe callback
Date 2016-05-20 04:00 +0200
Message-ID <rAHTj-7Cp-1@gated-at.bofh.it> (permalink)
References <rxbPY-7V1-17@gated-at.bofh.it> <rxbZD-7Z2-5@gated-at.bofh.it> <rAGkx-6PD-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi

在 2016-5-20 8:11, Doug Anderson 写道:
> Hi,
>
> On Tue, May 10, 2016 at 2:10 AM, Shawn Lin <shawn.lin@rock-chips.com> wrote:
>> Currently sdhci-arasan 5.1 can support enhanced strobe function,
>> and we now limit it just for "arasan,sdhci-5.1". Add
>> mmc-hs400-enhanced-strobe in DT to enable the function if we'r sure
>
> nit:s/we'r/we're/
>
> [ ... ]
>> @@ -79,6 +81,21 @@ static void sdhci_arasan_set_clock(struct sdhci_host *host, unsigned int clock)
>>          }
>>   }
>>
>> +static void sdhci_arasan_hs400_enhanced_strobe(struct mmc_host *mmc,
>> +                                       struct mmc_ios *ios)
>> +{
>> +       u32 vendor;
>> +       struct sdhci_host *host = mmc_priv(mmc);
>> +
>> +       vendor = readl(host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER);
>> +       if (ios->enhanced_strobe)
>> +               vendor |= VENDOR_ENHANCED_STROBE;
>> +       else
>> +               vendor &= (~VENDOR_ENHANCED_STROBE);
>
> nit: no extra parentheses:
>
>    vendor &= ~VENDOR_ENHANCED_STROBE;
>
>
> Other than the nits this patch looks good to me.  Feel free to add my
> Reviewed-by when nits fixed.

okay, will fix them.

Thanks for your review!

>
> -Doug
>
>
>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v3 5/5] mmc: sdhci-of-arasan: implement enhanced strobe callback Doug Anderson <dianders@chromium.org> - 2016-05-20 02:20 +0200
  Re: [PATCH v3 5/5] mmc: sdhci-of-arasan: implement enhanced strobe  callback Shawn Lin <shawn.lin@rock-chips.com> - 2016-05-20 04:00 +0200

csiph-web