[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201109143237.GJ1257108@piout.net>
Date: Mon, 9 Nov 2020 15:32:37 +0100
From: Alexandre Belloni <alexandre.belloni@...tlin.com>
To: Andy Shevchenko <andy.shevchenko@...il.com>
Cc: Lars Povlsen <lars.povlsen@...rochip.com>,
Linus Walleij <linus.walleij@...aro.org>,
Microchip Linux Driver Support <UNGLinuxDriver@...rochip.com>,
devicetree <devicetree@...r.kernel.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
linux-arm Mailing List <linux-arm-kernel@...ts.infradead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v8 2/3] pinctrl: pinctrl-microchip-sgpio: Add pinctrl
driver for Microsemi Serial GPIO
On 09/11/2020 16:17:40+0200, Andy Shevchenko wrote:
> > + if (input != bank->is_input) {
>
> > + dev_err(pctldev->dev, "Pin %d direction as %s is not possible\n",
> > + pin, input ? "input" : "output");
>
> Do we need this noise? Isn't user space getting a proper error code as
> per doc and can handle this?
>
Why would userspace get the error code? Userspace should never have to
handle gpios directly or you are doing something wrong.
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Powered by blists - more mailing lists