[PATCH linux dev-4.7] drivers/fsi: Set enable line to '1' on unbind

Christopher Bostic cbostic at linux.vnet.ibm.com
Wed Mar 15 08:17:10 AEDT 2017


Configure I/O for non OpenFSI users of the FSI enable line by
setting value to to '1' on unbind prior to releasing use of pin.

Signed-off-by: Christopher Bostic <cbostic at linux.vnet.ibm.com>
---
 drivers/fsi/fsi-master-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/fsi/fsi-master-gpio.c b/drivers/fsi/fsi-master-gpio.c
index e3431c4..a8976d5 100644
--- a/drivers/fsi/fsi-master-gpio.c
+++ b/drivers/fsi/fsi-master-gpio.c
@@ -568,7 +568,7 @@ static int fsi_master_gpio_remove(struct platform_device *pdev)
 		devm_gpiod_put(&pdev->dev, master->gpio_trans);
 	}
 	if (master->gpio_enable) {
-		gpiod_set_value(master->gpio_enable, 0);
+		gpiod_set_value(master->gpio_enable, 1);
 		devm_gpiod_put(&pdev->dev, master->gpio_enable);
 	}
 	if (master->gpio_mux) {
-- 
1.8.2.2



More information about the openbmc mailing list