aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2016-04-11 11:51:03 +0000
committerMark Brown <[email protected]>2016-04-12 03:48:31 +0000
commitd7e2ee257038baeb03baef602500368a51ee9eef (patch)
tree480cc0e6f90f438b84408c149003add6f10f5f41 /drivers/spi/spi.c
parentLinux 4.6-rc1 (diff)
downloadkernel-d7e2ee257038baeb03baef602500368a51ee9eef.tar.gz
kernel-d7e2ee257038baeb03baef602500368a51ee9eef.zip
spi: let SPI masters ignore their children for PM
Let all SPI masters ignore their children: when it comes to power management: SPI children have no business doing keeping their parents awake: they are completely autonomous devices that just use their parent to talk, and the latter usecase must be power managed by the host itself on a per-message basis. Reviewed-by: Ulf Hansson <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r--drivers/spi/spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index de2f2f90d799..6c4c050e6b65 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1764,6 +1764,7 @@ struct spi_master *spi_alloc_master(struct device *dev, unsigned size)
master->num_chipselect = 1;
master->dev.class = &spi_master_class;
master->dev.parent = dev;
+ pm_suspend_ignore_children(&master->dev, true);
spi_master_set_devdata(master, &master[1]);
return master;