Re: [PATCH 1/4] pinctrl: mcp23s08: Do not complain about unsupported params

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/06/2018 23:30, Jan Kundrát wrote:
On čtvrtek 7. června 2018 3:42:49 CEST, Phil Reid wrote:
On 26/01/2018 02:22, Jan Kundrát wrote:
It is expected that some of these operations won't work on each and
every HW. Previously, even a simple `cat
/sys/kernel/debug/pinctrl/spi1.1/pinconf-pins` caused excessive dmesg
output.

Yes it is rather excessive.
Could be downgraded to dev_dbg instead of removed completely?

Let's split this into two halves, one for mcp_pinconf_get() and another one for mcp_pinconf_set().

When checking the pinconf settings, it IMHO makes sense to ask for all possible properties. That's what the generic code in debugs is doing, after all, and that's why a `cat /sys/kernel/debug/pinctrl/spi*/pinconf-pins` currently prints to the kernel log. I think that this should just return ENOTSUPP without any extra messages.

That makes sense.

I can change the patch to still print out a debugging message when attempting to *set* some unsupported configuration. I don't see much value in that, but if that's what people want, I'll post an update. Should I do that?

I'm not sure. I always find it nice to see a message when I do something stupid.


--
Regards
Phil Reid
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux