Re: [PATCH] MMC: core: cap MMC card timeouts at 2 seconds.

2012-05-31 Thread Ulf Hansson
Hi Richard, On 31 May 2012 18:15, Torne (Richard Coles) wrote: > On 31 May 2012 11:00, Ulf Hansson wrote: >> Hi Richard, >> >> On 29 May 2012 17:02, Torne (Richard Coles) wrote: >>> From: "Torne (Richard Coles)" >>> >>> MMC CSD info can specify very large, ridiculous timeouts, big enough to >>

Re: [PATCH] MMC: core: cap MMC card timeouts at 2 seconds.

2012-05-31 Thread Torne (Richard Coles)
On 31 May 2012 11:00, Ulf Hansson wrote: > Hi Richard, > > On 29 May 2012 17:02, Torne (Richard Coles) wrote: >> From: "Torne (Richard Coles)" >> >> MMC CSD info can specify very large, ridiculous timeouts, big enough to >> overflow timeout_ns on 32-bit machines. This can result in the card >> t

Re: [PATCH] MMC: core: cap MMC card timeouts at 2 seconds.

2012-05-31 Thread Ulf Hansson
Hi Richard, On 29 May 2012 17:02, Torne (Richard Coles) wrote: > From: "Torne (Richard Coles)" > > MMC CSD info can specify very large, ridiculous timeouts, big enough to > overflow timeout_ns on 32-bit machines. This can result in the card > timing out on every operation because the wrapped tim

[PATCH] MMC: core: cap MMC card timeouts at 2 seconds.

2012-05-29 Thread Torne (Richard Coles)
From: "Torne (Richard Coles)" MMC CSD info can specify very large, ridiculous timeouts, big enough to overflow timeout_ns on 32-bit machines. This can result in the card timing out on every operation because the wrapped timeout value is far too small. Fix the overflow by capping the result at 2

[PATCH] MMC: core: cap MMC card timeouts at 2 seconds.

2012-05-14 Thread Torne (Richard Coles)
From: "Torne (Richard Coles)" MMC CSD info can specify very large, ridiculous timeouts, big enough to overflow timeout_ns on 32-bit machines. This can result in the card timing out on every operation because the wrapped timeout value is far too small. Fix the overflow by calculating the timeout