2011/2/24 Chuanxiao Dong :
> Since if clock gating feature is enabled, the clock frequency may be zero when
> host clock is gated. In such scenario, mmc_set_mmc_erase_timeout() may have a
> division by zero bug.
>
> So this patch used mmc_host_clk_rate() to fix this.
>
> Signed-off-by: Chuanxiao Do
n...@nokia.com;
> > linus.wall...@linaro.org; linux-ker...@vger.kernel.org
> > Subject: Re: [PATCH 1/1]mmc: fix division by zero when calculate mmc erase
> > time
> >
> > * Dong, Chuanxiao [2011-02-24 20:09:59 +0800]:
> >
> > >
> > >
> >
> Sent: Thursday, February 24, 2011 7:38 PM
> > > To: Dong, Chuanxiao
> > > Cc: linux-mmc@vger.kernel.org; c...@laptop.org; adrian.hun...@nokia.com;
> > > linus.wall...@linaro.org; linux-ker...@vger.kernel.org
> > > Subject: Re: [PATCH 1/1]mmc: fix division by z
@laptop.org; adrian.hun...@nokia.com;
> > linus.wall...@linaro.org; linux-ker...@vger.kernel.org
> > Subject: Re: [PATCH 1/1]mmc: fix division by zero when calculate mmc erase
> > time
> >
> > Hi,
> >
> > * Chuanxiao Dong [2011-02-24 19:18:01 +0800]:
> &
.org
> Subject: Re: [PATCH 1/1]mmc: fix division by zero when calculate mmc erase
> time
>
> Hi,
>
> * Chuanxiao Dong [2011-02-24 19:18:01 +0800]:
>
> > Since if clock gating feature is enabled, the clock frequency may be zero
> > when
> > host clock is
Hi,
* Chuanxiao Dong [2011-02-24 19:18:01 +0800]:
> Since if clock gating feature is enabled, the clock frequency may be zero when
> host clock is gated. In such scenario, mmc_set_mmc_erase_timeout() may have a
> division by zero bug.
>
> So this patch used mmc_host_clk_rate() to fix this.
>
>