Re: [PATCH 1/1]mmc: fix division by zero when calculate mmc erase time

2011-02-24 Thread Linus Walleij
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

Re: [PATCH 1/1]mmc: fix division by zero when calculate mmc erase time

2011-02-24 Thread Marc Koschewski
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]: > > > > > > > > > >

RE: [PATCH 1/1]mmc: fix division by zero when calculate mmc erase time

2011-02-24 Thread Dong, Chuanxiao
> 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

Re: [PATCH 1/1]mmc: fix division by zero when calculate mmc erase time

2011-02-24 Thread Marc Koschewski
@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]: > &

RE: [PATCH 1/1]mmc: fix division by zero when calculate mmc erase time

2011-02-24 Thread Dong, Chuanxiao
.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

Re: [PATCH 1/1]mmc: fix division by zero when calculate mmc erase time

2011-02-24 Thread Marc Koschewski
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. > >