spi: add power control when set_cs
authorLuhua Xu <luhua.xu@mediatek.com>
Wed, 30 Oct 2019 09:03:54 +0000 (17:03 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 31 Oct 2019 13:20:58 +0000 (14:20 +0100)
commitd948e6ca189985495a21cd622c31e30e72b6b688
tree96e13ac26e6f25d1d860ea133d87f2928579a2ea
parentc618a90dcaf3ffd37ec3b16451297e90a1a8395c
spi: add power control when set_cs

As to set_cs takes effect immediately, power spi
is needed when setup spi.

Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Luhua Xu <luhua.xu@mediatek.com>
Link: https://lore.kernel.org/r/1572426234-30019-1-git-send-email-luhua.xu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c