On Saturday 27 July 2013 04:53 PM, Mark Brown wrote:
From: Mark Brown <[email protected]>

Currently the tegra114 driver acquires a runtime PM reference for the
duration of each transfer. This may result in the IP being powered down
between transfers which would be at best wasteful. Instead it is better
to do this in the callbacks that are generated before and after starting
a series of transfers, keeping the IP powered throughout.

Signed-off-by: Mark Brown <[email protected]>
---

Acked-by: Laxman Dewangan <[email protected]>

The reason I kept this in transfer_one() is because prepare/unprepare was getting called in atomic context. But after the change,
Author: Bryan Freed <[email protected]>
Date:   Wed Mar 13 11:17:40 2013 -0700

    spi: Unlock a spinlock before calling into the controller driver.


It is fine to have prepare as blocking call.

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to