Re: [PATCH v1] gpiolib: Respect error code of ->get_direction()

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

 



On Mon, 2018-07-09 at 21:41 +0300, Andy Shevchenko wrote:
> On Mon, 2018-07-09 at 15:13 +0200, Linus Walleij wrote:
> > 

> > 
> > Did you look around to see if some driver might be returning
> > error codes from get_direction()? I suspect mostly I2C-based
> > expanders and if it's an error it's an error and this is the right
> > thing to 
> > do but you never know what people are doing...
> 
> In the GPIO/pinctrl folders: both tegras, bcm2835, stm32 and most of
> Intel.
> 
> In the drivers: i2c-mux-ltc4306.
> 
> So, not many.

Okay, those are returning error codes explicitly, I missed the ones
which returns inherited error code.

So, there are plenty of such, most like you noticed are GPIO expanders.

-- 
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy
--
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