Skip to contentSkip to conversation

drivers/fsi: Set enable line to '1' on unbind

PATCH Applied Christopher Bostic 2 participants 2 messages Mar 14, 2017 – Mar 15, 2017 FSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/fsi: Set enable line to '1' on unbind

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.

---
 drivers/fsi/fsi-master-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fsi/fsi-master-gpio.c +1 -1
index e3431c4..a8976d5 100644
@@ -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) {
Signature · 1 line
1.8.2.2
Applied
#1 lore raw
Quoted 4 lines · Christopher Bostic

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.

Applied to dev-4.7.

Cheers,

Joel

Quoted 20 lines
---
 drivers/fsi/fsi-master-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fsi/fsi-master-gpio.c +1 -2
index e3431c4..a8976d5 100644
@@ -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