Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp691295pxb; Thu, 9 Sep 2021 09:48:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzylhdvz6yfnqqRL+eifj+FYQuP/0gfIvpZIcYfBcBOkSHaz62scqEiOGh3Ybs14ByE/3sf X-Received: by 2002:a7b:c0c7:: with SMTP id s7mr4057314wmh.66.1631206132103; Thu, 09 Sep 2021 09:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631206132; cv=none; d=google.com; s=arc-20160816; b=B15amNdEKEN7JwWytYSQ6uatXm2mGhscUZBIz9K36du+BCDA1JEOK4Lg5kOLa5nwAV ouVwSkSKXYM7y1Y/YTSGf4r1iE06E8qOWf8RcTV5OxCKZsmJTUj3Aq83NRjxD1GhrsH2 SXT5vlwWSvAQ3+yNe61SOezAmKLyiYNnbA+vr68sv66QeBpVM3jwS9Wo/EiYF6myot8A OLxLxwVfnXNJWe18389Q57YiNhg94wj3PUK4+vMNWkd/EcCTD8q5iGKKg/82zM//d0Os Myx6jl9DlbiULqLBvhrSCZ6f+AK/0iOYBFZlcaFpJQiyKAVWQCOo96fvfz73EUP07pAL hSBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ihsOFSA6MWB4aMfFXZ9p60uNkfixPJPx5Ikp1LG0rWU=; b=xFDl3ohTQVKhDZVTflA7Ehx5IlBMdWyIA8i9uH0PS3eAMIdWP6wAwKe9GvmZTX4mNO eXpDW1LEa04n/pNZjGd3R/Xlc/lWS0VJLPUCsH4KNy/9AqJOmQnjde+nCUnvCGpU7Apt mgGUSAlHWXBAo3hJAIs/++6mB2SJ76oquVWdCh9264di/VTq+Y8Hvmjj1Ixf7rdBQbt5 6UoiF1f+JlQzaxqpIn3cLd8B7Vf2d39E1mXEEwfN7aWgnQ0B0ArH8wu3S9300RElVEdC SZCOG+dxg+MJUtlzAjFLapeinIBxkjVJqcUvATaBc/1RUx0ZFc+XD9S8uApZUtUYexWU +EGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=CmfZXWjt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co26si2639687edb.564.2021.09.09.09.48.26; Thu, 09 Sep 2021 09:48:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=CmfZXWjt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238762AbhIIQsK (ORCPT + 99 others); Thu, 9 Sep 2021 12:48:10 -0400 Received: from mout.gmx.net ([212.227.17.20]:38001 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbhIIQsJ (ORCPT ); Thu, 9 Sep 2021 12:48:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1631206010; bh=QxZAkZqlho/J9IwDDFNM1foB3IdvDvT3798/E2VPsJc=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=CmfZXWjtqeTY2seJ3LnyhvrYf6IAt7lxSXwcaiymDqlDIhB6u123h+5faWcTRxDVd vm8B2ix/fySykbZAWVKyZyhEHqhkkQXY0XW1rI8vwbHGGvpHXTIUnqeCo9fjCHhb7s +eHj0ipQWzISzYudBoVd+fLKNGr+fzeIywT6o7AY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.51] ([46.223.119.124]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MS3mt-1mUipN1APz-00TTHY; Thu, 09 Sep 2021 18:46:50 +0200 Subject: Re: [PATCH 0/3] Fix for KSZ DSA switch shutdown To: Andrew Lunn Cc: Vladimir Oltean , p.rosenberger@kunbus.com, woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, vivien.didelot@gmail.com, f.fainelli@gmail.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210909095324.12978-1-LinoSanfilippo@gmx.de> <20210909101451.jhfk45gitpxzblap@skbuf> <81c1a19f-c5dc-ab4a-76ff-59704ea95849@gmx.de> <20210909114248.aijujvl7xypkh7qe@skbuf> <20210909125606.giiqvil56jse4bjk@skbuf> From: Lino Sanfilippo Message-ID: <8d168388-4388-c0ec-7cfa-5757bf5b0c24@gmx.de> Date: Thu, 9 Sep 2021 18:46:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:r06BYnCbv+HAOJFP1MlkD37lF+DCF/QAEaCdii1bGJZrqbRbdvF qDU1EsYbznL0Ekr6uDKQz653kD+mNLmmfFn3bDUWfxUp376jyDbcMKzZ6ZmVhf0V+MVfHGh q75zJ5C4UEf0X6//ltxW5uLt2h95IDEKFS5O3MHUyTtBBmVp/tRpcSlaIgGVQ1y8O3j0PSD oWWUsfiw9qBRaWL4OFAJQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03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a8Abyoc+gEFMtvKH+5mpLUlyP3S4DoudiMK90TorinS1Zou9+opfO5GTdNo2L zK1K6+YlVtB00E= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09.09.21 at 17:11, Andrew Lunn wrote: >> Andrew: the switch is not on a hat, the device tree part I use is: > > And this is not an overlay. It is all there at boot? > Well actually we DO use an overlay. The dev tree snipped I posted was an e= xcerpt form fdtdump. The concerning fragment looks like this in the overlay file: fragment@4 { target =3D <&spi6>; __overlay__ { #address-cells =3D <1>; #size-cells =3D <0>; pinctrl-names =3D "default"; pinctrl-0 =3D <&spi6_pins>, <&spi6_cs_pins>; cs-gpios =3D <&gpio 16 GPIO_ACTIVE_LOW>, <&gpio 18 GPIO_ACTIVE_LOW>; status =3D "okay"; ksz9897: ksz9897@0 { compatible =3D "microchip,ksz9897"; reg =3D <0>; spi-max-frequency =3D <50000000>; spi-cpha; spi-cpol; reset-gpios =3D <&expander_core 13 GPIO_AC= TIVE_LOW>; status =3D "okay"; ports { #address-cells =3D <1>; #size-cells =3D <0>; /* PORT 1 */ port@0 { reg =3D <0>; label =3D "cpu"; ethernet =3D <&genet>; }; /* PORT 2 */ port@1 { reg =3D <1>; label =3D "pileft"; }; /* PORT 3 */ port@2 { reg =3D <2>; label =3D "piright"; }; /* * PORT 4-7 unused */ }; }; tpm: tpm@1 { compatible =3D "infineon,slb9670"; pinctrl-names =3D "default"; pinctrl-0 =3D <&tpm_pins>; reg =3D <1>; spi-max-frequency =3D <1000000>; interrupt-parent =3D <&gpio>; #interrupt-cells =3D <2>; interrupts =3D <10 IRQ_TYPE_LEVEL_LOW>; status =3D "okay"; }; }; }; But probably this does not matter any more now that Vladimir was able to reproduce the issue. > I was just thinking that maybe the Ethernet interface gets opened at > boot, and overlay is loaded, and the interface is opened a second > time. I don't know of anybody using DSA with overlays, so that could > of been the key difference which breaks it for you. > > Your decompiled DT blob looks O.K. > > Andrew >