[LEDE-DEV] [OpenWrt-Devel] [PATCH v2] kernel: rtl8366-smi: add Realtek switch management via mii-bus
Сергей Василюгин
vasilugin at yandex.ru
Wed Apr 4 08:51:01 PDT 2018
04.04.2018, 00:22, "Florian Fainelli" <f.fainelli at 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.
>
Ok
>
> 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.
---
serge
More information about the Lede-dev
mailing list