mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 05:54:23 +08:00
spi/bcm63xx: add missing spi_master_{resume,suspend} calls to PM callbacks
The PM callbacks implemented by the spi-bcm63xx driver don't call spi_master_{resume,suspend}, fix that. Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
61d1596317
commit
965199573a
@ -484,6 +484,8 @@ static int bcm63xx_spi_suspend(struct device *dev)
|
|||||||
platform_get_drvdata(to_platform_device(dev));
|
platform_get_drvdata(to_platform_device(dev));
|
||||||
struct bcm63xx_spi *bs = spi_master_get_devdata(master);
|
struct bcm63xx_spi *bs = spi_master_get_devdata(master);
|
||||||
|
|
||||||
|
spi_master_suspend(master);
|
||||||
|
|
||||||
clk_disable(bs->clk);
|
clk_disable(bs->clk);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -497,6 +499,8 @@ static int bcm63xx_spi_resume(struct device *dev)
|
|||||||
|
|
||||||
clk_enable(bs->clk);
|
clk_enable(bs->clk);
|
||||||
|
|
||||||
|
spi_master_resume(master);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user