[PATCH v2 1/3] Move mvswitch 88E6060 driver to the ath25

Stefan Lippers-Hollmann s.l-h at gmx.de
Sat Dec 18 13:12:16 PST 2021


Hi

On 2021-12-18, Sergey Ryazanov wrote:
> On Sat, Dec 18, 2021 at 2:25 PM Bjørn Mork <bjorn at mork.no> wrote:
> > Sergey Ryazanov <ryazanov.s.a at gmail.com> writes:
> >> ath25 can not be switched to the DSA implementation due to lack of the
> >> DTS support.
> >
> > I fully understand and accept that this isn't made a priority.  But the
> > explanation is misleading. It's definitely *possible* to use a DSA
> > driver without DTS.  There are examples in mainline.  So "cannot" is
> > wrong.
> 
> Yep, I know that in general a DSA switch can be configured via the
> platform data as any other device. But in this particular case, the
> particular 88E6060 switch support can not be switched to the DSA
> implementation because the DSA implementation does not support
> configuration via the platform data.
> 
> I checked the kernel code and the OpenWrt patches and found the only
> board with the 88E6060 switch and this board utilizes DTS for its
> configuration:

NET_DSA_MV88E6060 has already been used for this device (tl-wr941nd v2/
v3) in ar71xx, using platform data 


https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr941nd.c;hb=refs/heads/openwrt-19.07
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/ar71xx/config-4.14;h=9a524fae4316caa10431bd6b3b4dadbe8660f14c;hb=refs/heads/openwrt-19.07#l433
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/ar71xx/base-files/etc/board.d/02_network;h=44fce970c0fd8b4811242fac0b53764a09244a2f;hb=refs/heads/openwrt-19.07#l324

so it should be possible for ath25 as well, although the effort might
not be worth it, considering the age and specifications of the target
devices.

Regards
	Stefan Lippers-Hollmann



More information about the openwrt-devel mailing list