Thread (37 messages) 37 messages, 11 authors, 2018-07-16

Re: [PATCH 2/5] RFC: eeprom: at24: Allow passing gpiodesc from pdata

From: Andy Shevchenko <hidden>
Date: 2018-06-20 00:45:01
Also in: linux-arm-kernel

On Mon, Jun 18, 2018 at 10:45 AM, Linus Walleij
[off-list ref] wrote:
This makes it possible to pass an initialized GPIO descriptor
to the driver through platform data.

This is useful when we are dealing with EEPROMs on expansion
boards where the GPIO has to be looked up indirectly using a
connector abstraction (several systems using the same
connector) so the machine descriptor tables cannot be used
to associate the descriptor with the device and we then want
to pass this descriptor on to the EEPROM driver this way
instead.
How this descriptor is supposed to be created?
Whenever we probe the device we might add properties to it (consider
how MFD does instansiate them), I guess same way GPIO lookup tables
work. No?

P.S. I really would like to hear a _strong_ argument why it can't be
done using other means like built-in device properties or GPIO lookup
tables (which on my opinion have to work in the similar way at run
time).

-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help