Thread (13 messages) 13 messages, 6 authors, 2021-01-18

Re: Registering IRQ for MT7530 internal PHYs

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2020-12-30 16:18:44
Also in: lkml


On 12/30/2020 7:16 AM, Andrew Lunn wrote:
quoted
2. Allocated ds->slave_mii_bus before calling ds->ops->setup, because
we cannot call dsa_slave_mii_bus_init which is private.

Any better ideas?
Do what mv88e6xxx does, allocate the MDIO bus inside the switch
driver.
Yes, exactly, or you could add additional hooks to allow intercepting
the initialization and de-initialization of the ds->slave_mii_bus,
something like this:

https://github.com/ffainelli/linux/commit/758da087a819cd1a284de074ea7d8eae9f875f0b

which was part of a larger series adding threaded IRQ support to the b53
driver:

https://github.com/ffainelli/linux/commits/b53-irq
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help