[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 08 Sep 2017 21:13:22 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: f.fainelli@...il.com
Cc: netdev@...r.kernel.org, linus.walleij@...aro.org, andrew@...n.ch,
festevam@...il.com, sergei.shtylyov@...entembedded.com,
fabio.estevam@....com, Bryan.Whitehead@...rochip.com
Subject: Re: [PATCH net] Revert "mdio_bus: Remove unneeded gpiod NULL check"
From: Florian Fainelli <f.fainelli@...il.com>
Date: Fri, 8 Sep 2017 15:38:07 -0700
> This reverts commit 95b80bf3db03c2bf572a357cf74b9a6aefef0a4a ("mdio_bus:
> Remove unneeded gpiod NULL check"), this commit assumed that GPIOLIB
> checks for NULL descriptors, so it's safe to drop them, but it is not
> when CONFIG_GPIOLIB is disabled in the kernel. If we do call
> gpiod_set_value_cansleep() on a GPIO descriptor we will issue warnings
> coming from the inline stubs declared in include/linux/gpio/consumer.h.
>
> Fixes: 95b80bf3db03 ("mdio_bus: Remove unneeded gpiod NULL check")
> Reported-by: Woojung Huh <Woojung.Huh@...rochip.com>
> Signed-off-by: Florian Fainelli <f.fainelli@...il.com>
Applied.
Powered by blists - more mailing lists