spi/tegra-sflash: Factor runtime PM out into transfer prepare/unprepare
Currently the tegra sflash 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: NMark Brown <broonie@linaro.org> Acked-by: NLaxman Dewangan <ldewangan@nvidia.com>
Showing
想要评论请 注册 或 登录