Re: [PATCH] mmc: core: Prevent too long response times for suspend

2011-10-20 Thread Chris Ball
Hi, On Wed, Oct 19 2011, Linus Walleij wrote: >> While trying to suspend the mmc host there could still be >> ongoing requests that we need to wait for. At the same time >> a device driver must respond to a suspend request rather quickly. >> >> Instead of potentially wait "forever" by claiming the

Re: [PATCH] mmc: core: Prevent too long response times for suspend

2011-10-19 Thread Linus Walleij
2011/10/13 Ulf Hansson : > While trying to suspend the mmc host there could still be > ongoing requests that we need to wait for. At the same time > a device driver must respond to a suspend request rather quickly. > > Instead of potentially wait "forever" by claiming the host we now > "try" to cl

Re: [PATCH] mmc: core: Prevent too long response times for suspend

2011-10-19 Thread Sujit Reddy Thumma
On 10/17/2011 3:21 PM, Ulf Hansson wrote: Why would there be pending requests while host is suspending? Is the kernel framework not handling sync before going to suspend? However, the mmc_blk_suspend() would be called before the host driver suspends (as all the driver suspend routines are serial

Re: [PATCH] mmc: core: Prevent too long response times for suspend

2011-10-17 Thread Ulf Hansson
Why would there be pending requests while host is suspending? Is the kernel framework not handling sync before going to suspend? However, the mmc_blk_suspend() would be called before the host driver suspends (as all the driver suspend routines are serialized) which means it stops block layer to q

Re: [PATCH] mmc: core: Prevent too long response times for suspend

2011-10-14 Thread Sujit Reddy Thumma
> While trying to suspend the mmc host there could still be > ongoing requests that we need to wait for. At the same time > a device driver must respond to a suspend request rather quickly. > > Instead of potentially wait "forever" by claiming the host we now > "try" to claim the host instead. If i

[PATCH] mmc: core: Prevent too long response times for suspend

2011-10-13 Thread Ulf Hansson
While trying to suspend the mmc host there could still be ongoing requests that we need to wait for. At the same time a device driver must respond to a suspend request rather quickly. Instead of potentially wait "forever" by claiming the host we now "try" to claim the host instead. If it fails, -E