RE: Add GPIO support for mcp251x driver

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

 



On 10/10/19 00:02 AM, Marc Kleine-Budde wrote:
> Please send patches vis git send-email if you email setup allows. This makes review easier.

I will, sorry for the inconvenience.

>> 1. How to handle power management? Does the driver have to restore the 
>> previous gpio state?
> I'm not sure if a framework takes care of this. Have you had a look at other GPIO drivers in drivers/gpio:

> gpio-74x164.c	
> gpio-max3191x.c
> gpio-max7301.c
> gpio-mc33880.c
> gpio-xra1403.c

All of these seem to not handle power management at all, but others do a complete register bank restore, e.g. gpio-brcmstb.c or gpio-pxa.c. So I think it would be best to support this in the mcp251x driver as well.

> Other driers use spi->modalias, too:
> So I think this is ok.

Ok, thanks.

Regards
Timo





[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux