Re: Advice on MFD-style probing of DSA switch SoCs

From
Andrew Lunn <andrew@lunn.ch>
Date
2022-12-22 16:36:38
Also in
linux-devicetree, lkml
Reply to
Vladimir Oltean, 2022-12-22
quoted
Maybe the media subsystem has some pointers how to do this. It also
has complex devices made up from lots of sub devices.
You mean something like struct v4l2_subdev_ops? This seems like the
precise definition of what I'd like to avoid: a predefined set of
subfunctions decided by the DSA core.

Or maybe something else? To be honest, I don't know much about the media
subsystem. This is what I saw.
Russell King put in some infrastructure where a media 'glue' driver
has a list of other drivers which need to probe and register there
resources with the kernel before it then becomes active and glues all
the parts together. I just know it exists, i've never used it, so i've
no idea if it could be useful or not.

What i'm really trying to say is that we should look outside of netdev
and see if similar problems have been solved somewhere else and all
that is needed is some code copying.

     Andrew
Thread (10 messages) 10 messages, 4 authors, last reply 2023-02-11
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