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

Joel Stanley joel at jms.id.au
Wed Mar 15 11:54:45 AEDT 2017


On Wed, Mar 15, 2017 at 7:47 AM, Christopher Bostic
<cbostic at linux.vnet.ibm.com> wrote:
> 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>

Applied to dev-4.7.

Cheers,

Joel

> ---
>  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