[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180217221436.GA21315@lunn.ch>
Date: Sat, 17 Feb 2018 23:14:36 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Paul Burton <paul.burton@...s.com>
Cc: netdev@...r.kernel.org, Hassan Naveed <hassan.naveed@...s.com>,
Matt Redfearn <matt.redfearn@...s.com>,
"David S . Miller" <davem@...emloft.net>, linux-mips@...ux-mips.org
Subject: Re: [PATCH v5 01/14] net: pch_gbe: Mark Minnow PHY reset GPIO active
low
> @@ -2700,10 +2701,10 @@ static int pch_gbe_minnow_platform_init(struct pci_dev *pdev)
> return ret;
> }
>
> - gpio_set_value(gpio, 0);
> - usleep_range(1250, 1500);
> gpio_set_value(gpio, 1);
> usleep_range(1250, 1500);
> + gpio_set_value(gpio, 0);
> + usleep_range(1250, 1500);
Hi Paul
It would be better to rewrite and use the gpiod_ API. The GPIO core
would then handle active low/active high.
Andrew
Powered by blists - more mailing lists