PCI: rockchip: Use gpiod_set_value_cansleep() to allow reset via expanders
authorFabio Estevam <festevam@gmail.com>
Mon, 28 Aug 2017 00:25:57 +0000 (21:25 -0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Aug 2017 18:18:06 +0000 (13:18 -0500)
commitbf2b3312edf182518577d1a28636bd4e9ae00858
treebac13c9cf9f016b450b6d9390838395e3c5424f9
parent62f9ee98e14521166954e1e0d9fc1ee4ff2a5615
PCI: rockchip: Use gpiod_set_value_cansleep() to allow reset via expanders

The reset GPIO can be connected to a I2C or SPI IO expander, which may
sleep, so it is safer to use the gpiod_set_value_cansleep() variant
instead.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/pci/host/pcie-rockchip.c