Re: [PATCH v4 02/15] gpio: regmap: set gpio_chip of_node

From
Michael Walle <hidden>
Date
2021-03-04 17:25:56
Also in
linux-arm-kernel, linux-gpio, lkml
Reply to
Andy Shevchenko, 2021-03-04
Am 2021-03-04 17:46, schrieb Andy Shevchenko:
On Thu, Mar 4, 2021 at 6:33 PM Andy Shevchenko
[off-list ref] wrote:
quoted
On Thu, Mar 4, 2021 at 5:44 PM Álvaro Fernández Rojas [off-list ref] wrote:
Let me summarize what we can do this independently on any of my
patches and be okay with.

In the regmap GPIO configuration you supply struct fwnode_handle *fwnode.
You can you fwnode API in the actual GPIO controller driver.
Inside gpio-regmap simply do this for now

gc->of_node = to_of_node(config->fwnode);
If doing so, can we please have a comment saying that config->fwnode
might be NULL in which case the fwnode of the parent is used?
The last part is an amendment I have told about, but it can be done
later on by switching the entire GPIO chip to use fwnode instead of
of_node.
-- 
-michael
Thread (44 messages) 44 messages, 4 authors, last reply 2021-03-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help