[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f4cdcb4b-feac-5106-8068-e694dbd3b4e6@cogentembedded.com>
Date: Tue, 18 Jul 2017 15:48:52 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Fabio Estevam <festevam@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Fabio Estevam <fabio.estevam@....com>
Subject: Re: [PATCH net-next] mdio_bus: Remove unneeded gpiod NULL check
On 07/18/2017 03:39 PM, Fabio Estevam wrote:
>> Won't this result in kernel WARNING when GPIO is disabled?
GPIO support, I was going to type...
> Not sure if I understood your point, but gpiod_set_value_cansleep() is
> a no-op when the gpiod is NULL.
Look at the stub in <linux/gpio/consumer.h>, it has WARN_ON(1).
MBR, Sergei
Powered by blists - more mailing lists