Re: [PATCH 2/2] mmc: sdhci-msm: Re-initialize DLL if MCLK is gated dynamically

2018-09-27 Thread Doug Anderson
Hi, On Thu, Sep 27, 2018 at 4:00 AM Veerabhadrarao Badiganti wrote: > > Hi Doug, > > > On 9/26/2018 3:58 AM, Doug Anderson wrote: > > Hi, > > > > On Tue, Sep 25, 2018 at 8:05 AM Veerabhadrarao Badiganti > > wrote: > >> + /* > >> +* Whenever core-clock is gated dynamically, it's need

Re: [PATCH 2/2] mmc: sdhci-msm: Re-initialize DLL if MCLK is gated dynamically

2018-09-27 Thread Veerabhadrarao Badiganti
Hi Doug, On 9/26/2018 3:58 AM, Doug Anderson wrote: Hi, On Tue, Sep 25, 2018 at 8:05 AM Veerabhadrarao Badiganti wrote: + /* +* Whenever core-clock is gated dynamically, it's needed to +* re-initialize the DLL when the clock is ungated. +*/ + if (msm_host-

Re: [PATCH 2/2] mmc: sdhci-msm: Re-initialize DLL if MCLK is gated dynamically

2018-09-25 Thread Doug Anderson
Hi, On Tue, Sep 25, 2018 at 8:05 AM Veerabhadrarao Badiganti wrote: > + /* > +* Whenever core-clock is gated dynamically, it's needed to > +* re-initialize the DLL when the clock is ungated. > +*/ > + if (msm_host->restore_dll_cfg_needed && msm_host->clk_rate)

[PATCH 2/2] mmc: sdhci-msm: Re-initialize DLL if MCLK is gated dynamically

2018-09-25 Thread Veerabhadrarao Badiganti
On few SDHCI-MSM controllers, the host controller's clock tuning circuit may go out of sync if controller clocks are gated which eventually will result in data CRC, command CRC/timeout errors. To overcome this h/w limitation, the DLL needs to be re-initialized and restored with its old settings onc