04.04.2018, 00:22, "Florian Fainelli" <f.faine...@gmail.com>:
> On 04/03/2018 10:13 AM, Сергей Василюгин wrote:
> The switch node should be moved under the mdio controller node below,
> parent/child relationships imply the control bus.
> You should have two entry points for your driver, and have shared code,
> one entry point is a gpio/platform_driver and the other one is a
> mdio_device/driver. They would both call into the same code that does
> the register read/write code, but how they are probed should be different.
You are right. But rtl8366_smi is not driver. It's only interface lib for real
drivers rtl8366rb, rtl8366s, rtl8367b and rtl8367.
openwrt-devel mailing list