Thread (16 messages) 16 messages, 3 authors, 2020-11-11

Re: [PATCH v8 2/3] pinctrl: pinctrl-microchip-sgpio: Add pinctrl driver for Microsemi Serial GPIO

From: Lars Povlsen <hidden>
Date: 2020-11-11 11:53:47
Also in: linux-arm-kernel, linux-gpio, lkml

Andy Shevchenko writes:
On Wed, Nov 11, 2020 at 10:52 AM Lars Povlsen
[off-list ref] wrote:
quoted
Andy Shevchenko writes:
quoted
On Tue, Nov 10, 2020 at 5:51 PM Lars Povlsen [off-list ref] wrote:
quoted
quoted
On Mon, Nov 9, 2020 at 3:27 PM Lars Povlsen [off-list ref] wrote:
...
quoted
quoted
quoted
quoted
quoted
+               return -EOPNOTSUPP;
Are you sure? IIRC internally we are using ENOTSUPP.

Couple of drivers seem to be wrongly using the other one.
Checkpatch complains about ENOTSUPP:

# ENOTSUPP is not a standard error code and should be avoided in new patches.
# Folks usually mean EOPNOTSUPP (also called ENOTSUP), when they type ENOTSUPP.
checkpatch is wrong if this is internal code and to me sounds like
it's not going out of the kernel.

...
As it appears there are different opinions on this I'll let the pinctrl
maintainer decide.
There are no other opinions.
Read description of struct pinconf_ops and fix the code.
checkpatch is simply wrong here.
Lets no start a war :-) - I'll change it...
quoted
quoted
quoted
quoted
quoted
+                       err = -EOPNOTSUPP;
Ditto.
Ditto.
Ditto.
Cheers,

---Lars

-- 
Lars Povlsen,
Microchip
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help