Commit 9f178c22 authored by Mark Brown's avatar Mark Brown
Browse files

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: default avatarMark Brown <broonie@linaro.org>
Acked-by: default avatarLaxman Dewangan <ldewangan@nvidia.com>
parent bb249aad
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment