From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: Re: net-next lan9303 and CONFIG_NET_DSA_LEGACY Date: Fri, 15 Dec 2017 12:06:01 -0800 Message-ID: <8DB857B3-F472-4D5D-AD66-27B3FA42ABBE@gmail.com> References: <5b406965-4ac0-f747-1185-e51de4cecd00@egil-hjelmeland.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: netdev To: Egil Hjelmeland , andrew@lunn.ch, Vivien Didelot Return-path: Received: from mail-oi0-f54.google.com ([209.85.218.54]:44794 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755638AbdLOUGI (ORCPT ); Fri, 15 Dec 2017 15:06:08 -0500 Received: by mail-oi0-f54.google.com with SMTP id l6so6936547oih.11 for ; Fri, 15 Dec 2017 12:06:07 -0800 (PST) In-Reply-To: <5b406965-4ac0-f747-1185-e51de4cecd00@egil-hjelmeland.no> Sender: netdev-owner@vger.kernel.org List-ID: On December 15, 2017 6:51:45 AM PST, Egil Hjelmeland wrote: >Hi >I found that our lan9303 board is unable to receive network data unless > >CONFIG_NET_DSA_LEGACY is set=2E Is that a problem with the driver, or our > >DTS? (imx28) > > ahb@80080000 { > mac0: ethernet@800f0000 { > clocks =3D <&clks 57>, <&clks 57>, <&clks 64>; > clock-names =3D "ipg", "ahb", "enet_out"; > phy-mode =3D "rmii"; > pinctrl-names =3D "default"; > pinctrl-0 =3D <&mac0_pins_a>; > status =3D "okay"; > > fixed-link { > speed =3D <100>; > full-duplex; > }; > > mdio { > #address-cells =3D <1>; > #size-cells =3D <0>; > > switch: switch-phy@0 { > compatible =3D "smsc,lan9303-mdio"; > reg =3D <0>; > reset-gpios =3D <&gpio2 7 GPIO_ACTIVE_LOW >; > reset-duration =3D <10>; > ports { > #address-cells =3D <1>; > #size-cells =3D <0>; > > port@0 { > reg =3D <0>; > label =3D "cpu"; > ethernet =3D <&mac0>; > phy-mode =3D "rmii"; > fixed-link { > speed =3D <100>; > full-duplex; > }; > }; > > port@1 { /* external port 1 */ > reg =3D <1>; > label =3D "sw1"; > phy-mode =3D "rmii"; > }; > > port@2 { /* external port 2 */ > reg =3D <2>; > label =3D "sw2"; > phy-mode =3D "rmii"; > }; > }; > }; > }; > }; > }; > >Any advise would be appreciated=2E Your DTS appears sane and using the new binding=2E Is the switch driver su= ccessfully probing and it is just packet transmission/reception that is non= functional? Hi Egil, --=20 Florian