[2/4] Revert "arm64: dts: renesas: Add compatible properties to AR8031 Ethernet PHYs"
Message ID | 20230104141245.8407-2-aford173@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp5166605wrt; Wed, 4 Jan 2023 06:18:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXuX+q2oM3wnIIeDetAAHZxhA6Rf9sqYibJ6i4U09L+U8XNzSYqtPF5E8ODzmbuiv3vtPPmE X-Received: by 2002:a05:6a20:6682:b0:af:73c4:1c1f with SMTP id o2-20020a056a20668200b000af73c41c1fmr50398198pzh.42.1672841924012; Wed, 04 Jan 2023 06:18:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672841923; cv=none; d=google.com; s=arc-20160816; b=OT1jrtuT7SeMBAxOW706gDHpVB60wy/L0BFeHqm+t43bpIpD42K6ug5gjVroeM5z4w 6Uv5KIpSBQYoqo+yDzNakI0/cqDaC8g2fUAaZ16s8/iE+JtiWLacdvj5RqoH/RVgThoy zM3CG2ZrXBcdU6/5SO685p9sR09/kCgnTPdDJmCLsC8/uwCH2/qBUNy7Gt3p+QV5e18Y EouPrc5/AJjNJEIfizFVJEFEUgrjrkG5FuhPYGz5PCTo8M8uQIEoSyHQvIVM7vInZ/v3 ukFAmvhInSuYsdb6P+mO/K+NIzCW1pgzJtFTcpswAZiCiDvGVfx3g1z3WCPD8uKaYymu HUYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nGDfPcMh2o9V23BmewOoC5pZ8xD/PzamwtTk3JNsF7k=; b=NEorNEUOFUlJDM0Jjx9SlblvudQ5EST3ux/gHmrvh9aSK9wvAP4L6/xf0gTM1+VMEU Uaj//FDIvAhDlKn5voz6SBFFwl9OeMas8P/f9Op4phG7hVthtzV9/IHzaAn4l2xO2oTm Ejis6UJzr2BjsncBfQ0t3RnkbTMkFDmbsTh5ZOA5iSmuK+WAoF3GaP2hRXmTFSyIEZqc Q6K9wXUuzQXF3mcZdx+b3ekUWd93sKJ7BpLqdPwHZWTDp6nsRkdy1RGrMg3CN1Qf5s/W 7JmLz5jQcuVM6EU+U4VtMqpqokFpGHeccj++H0ejIKwsleXPU7x1fbNDTZ4sU01V3G5B Y77w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oTS8GOu+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b00477fb1db635si35710762pgk.758.2023.01.04.06.18.30; Wed, 04 Jan 2023 06:18:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oTS8GOu+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239605AbjADONe (ORCPT <rfc822;tmhikaru@gmail.com> + 99 others); Wed, 4 Jan 2023 09:13:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239547AbjADOMw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 4 Jan 2023 09:12:52 -0500 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76F1F624A; Wed, 4 Jan 2023 06:12:51 -0800 (PST) Received: by mail-io1-xd32.google.com with SMTP id q190so18054420iod.10; Wed, 04 Jan 2023 06:12:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nGDfPcMh2o9V23BmewOoC5pZ8xD/PzamwtTk3JNsF7k=; b=oTS8GOu+0AE3ZzWfBR6dXlTD/jm461Ob8GNmglyv2+Q2VLKA3DvOKEOQGNTGaHmh5S 1+eNFbGzRfz+M3VIlq9/11s13JD8FoBiY3CY9vs8vrZ5iqdpz61yJQhit91vxM0tvqeS uaTrcszYCIRAxSBlW8oM18oVSY9XHQf8KR1YhWMl83fYB7kq8VO5M4lZGn7pIJYlGjxh OPKBbh2u/0gtr56PRYBCZbdElVklwCXZhDhsC/XghjoWbtN81FKmaqim/A21HxDJy271 qdK7QjpXj9YUetD9eZRXWkoE9SY2wlxB9zTh41UJWtmruu8GzLaTyQ1lJwrtNkCAvGQh B/Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nGDfPcMh2o9V23BmewOoC5pZ8xD/PzamwtTk3JNsF7k=; b=Vo1dIIMM0XgaX0VrAJqBndslWfwsk8I80l7/2fSBSmWIZwjiunC9pyQgmR2RjokusT 2mmQpOOgN2EZsv1lDvPiSui4pCZ4BTK4M5bnTtRNQOkN7pBeP6sVPfeQFfEjlVQJ8gq6 V8FIk2kpn9F0sCARBtTcnlmZfWFbrjaZCbHM+B9WX7h5U5G2/j4dPKpG8K1ss/XUchaR hN/M5norFXrj8NLDBZ+REW+sSRSshKW3RBoomC8zy5PXnGpPet+KMbWGl4hiZhCa5ig9 iKm9lMM3MeqmLmy/K+VQk63SycZrPOJdXypq54GNp4cP114YFIchnj6Mn4CXPoQzmvxx D0PQ== X-Gm-Message-State: AFqh2kqJtWaFXrUH8exRGE+G8V4aErg5WaYQUqR6/yVdAdLJSPMVnXb5 yO5oD5UrJUx09JB0jApNA+dTAhtJaeI= X-Received: by 2002:a5d:8b4b:0:b0:6ee:f9e1:423a with SMTP id c11-20020a5d8b4b000000b006eef9e1423amr31354433iot.11.1672841570492; Wed, 04 Jan 2023 06:12:50 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:447:d001:9aea:58ca:a321:54c8:c288]) by smtp.gmail.com with ESMTPSA id ay28-20020a056638411c00b0038a5af5e831sm11353451jab.100.2023.01.04.06.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 06:12:50 -0800 (PST) From: Adam Ford <aford173@gmail.com> To: linux-renesas-soc@vger.kernel.org Cc: aford@beaconembedded.com, Adam Ford <aford173@gmail.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Magnus Damm <magnus.damm@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] Revert "arm64: dts: renesas: Add compatible properties to AR8031 Ethernet PHYs" Date: Wed, 4 Jan 2023 08:12:43 -0600 Message-Id: <20230104141245.8407-2-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230104141245.8407-1-aford173@gmail.com> References: <20230104141245.8407-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754101892913813578?= X-GMAIL-MSGID: =?utf-8?q?1754101892913813578?= |
Series |
[1/4] arm64: dts: beacon-renesom: Fix gpio expander reference
|
|
Commit Message
Adam Ford
Jan. 4, 2023, 2:12 p.m. UTC
This reverts commit 18a2427146bf8a3da8fc7825051d6aadb9c2d8fb.
Due to the part shortage, the AR8031 PHY was replaced with a
Micrel KSZ9131. Hard-coding the ID of the PHY makes this new
PHY non-operational. Since previous hardware had shipped,
it's not as simple as just replacing the ID number as it would
break the older hardware. Since the generic mode can correctly
identify both versions of hardware, it seems safer to revert
this patch.
Signed-off-by: Adam Ford <aford173@gmail.com>
Comments
Hi Adam, CC Ethernet phy On Wed, Jan 4, 2023 at 3:12 PM Adam Ford <aford173@gmail.com> wrote: > This reverts commit 18a2427146bf8a3da8fc7825051d6aadb9c2d8fb. > > Due to the part shortage, the AR8031 PHY was replaced with a > Micrel KSZ9131. Hard-coding the ID of the PHY makes this new > PHY non-operational. Since previous hardware had shipped, > it's not as simple as just replacing the ID number as it would > break the older hardware. Since the generic mode can correctly > identify both versions of hardware, it seems safer to revert > this patch. > > Signed-off-by: Adam Ford <aford173@gmail.com> Thanks for your patch! > --- a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi > +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi > @@ -59,8 +59,6 @@ &avb { > status = "okay"; > > phy0: ethernet-phy@0 { > - compatible = "ethernet-phy-id004d.d074", > - "ethernet-phy-ieee802.3-c22"; > reg = <0>; > interrupt-parent = <&gpio2>; > interrupts = <11 IRQ_TYPE_LEVEL_LOW>; The next line: reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; Unfortunately, removing the compatible value will cause regressions for kexec/kdump and for Ethernet driver unbind, as the PHY reset will be asserted before starting the new kernel, or on driver unbind. Due to a deficiency in the Ethernet PHY subsystem, the PHY will be probed while the reset is still asserted, and thus fail probing[1]. Is there a (new) proper way to handle this? Perhaps the issue has been fixed in the PHY subsystem meanwhile? Thanks! [1] https://lore.kernel.org/all/cover.1631174218.git.geert+renesas@glider.be Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
On Fri, Jan 6, 2023 at 8:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote: > > Hi Adam, > > CC Ethernet phy > > On Wed, Jan 4, 2023 at 3:12 PM Adam Ford <aford173@gmail.com> wrote: > > This reverts commit 18a2427146bf8a3da8fc7825051d6aadb9c2d8fb. > > > > Due to the part shortage, the AR8031 PHY was replaced with a > > Micrel KSZ9131. Hard-coding the ID of the PHY makes this new > > PHY non-operational. Since previous hardware had shipped, > > it's not as simple as just replacing the ID number as it would > > break the older hardware. Since the generic mode can correctly > > identify both versions of hardware, it seems safer to revert > > this patch. > > > > Signed-off-by: Adam Ford <aford173@gmail.com> > > Thanks for your patch! > > > --- a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi > > +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi > > @@ -59,8 +59,6 @@ &avb { > > status = "okay"; > > > > phy0: ethernet-phy@0 { > > - compatible = "ethernet-phy-id004d.d074", > > - "ethernet-phy-ieee802.3-c22"; > > reg = <0>; > > interrupt-parent = <&gpio2>; > > interrupts = <11 IRQ_TYPE_LEVEL_LOW>; > > The next line: > > reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; > > Unfortunately, removing the compatible value will cause regressions > for kexec/kdump and for Ethernet driver unbind, as the PHY reset will > be asserted before starting the new kernel, or on driver unbind. > Due to a deficiency in the Ethernet PHY subsystem, the PHY will be > probed while the reset is still asserted, and thus fail probing[1]. FWIW, the bootloader brings the device out of reset. Would it be sufficient to keep "ethernet-phy-ieee802.3-c22" and drop the hard-coded ID? thanks, adam > > Is there a (new) proper way to handle this? > Perhaps the issue has been fixed in the PHY subsystem meanwhile? > > Thanks! > > [1] https://lore.kernel.org/all/cover.1631174218.git.geert+renesas@glider.be > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds
Hi Adam, On Fri, Jan 6, 2023 at 3:35 PM Adam Ford <aford173@gmail.com> wrote: > On Fri, Jan 6, 2023 at 8:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote: > > On Wed, Jan 4, 2023 at 3:12 PM Adam Ford <aford173@gmail.com> wrote: > > > This reverts commit 18a2427146bf8a3da8fc7825051d6aadb9c2d8fb. > > > > > > Due to the part shortage, the AR8031 PHY was replaced with a > > > Micrel KSZ9131. Hard-coding the ID of the PHY makes this new > > > PHY non-operational. Since previous hardware had shipped, > > > it's not as simple as just replacing the ID number as it would > > > break the older hardware. Since the generic mode can correctly > > > identify both versions of hardware, it seems safer to revert > > > this patch. > > > > > > Signed-off-by: Adam Ford <aford173@gmail.com> > > > > Thanks for your patch! > > > > > --- a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi > > > +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi > > > @@ -59,8 +59,6 @@ &avb { > > > status = "okay"; > > > > > > phy0: ethernet-phy@0 { > > > - compatible = "ethernet-phy-id004d.d074", > > > - "ethernet-phy-ieee802.3-c22"; > > > reg = <0>; > > > interrupt-parent = <&gpio2>; > > > interrupts = <11 IRQ_TYPE_LEVEL_LOW>; > > > > The next line: > > > > reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; > > > > Unfortunately, removing the compatible value will cause regressions > > for kexec/kdump and for Ethernet driver unbind, as the PHY reset will > > be asserted before starting the new kernel, or on driver unbind. > > Due to a deficiency in the Ethernet PHY subsystem, the PHY will be > > probed while the reset is still asserted, and thus fail probing[1]. > > FWIW, the bootloader brings the device out of reset. Would it be The bootloader is not involved when using kexec/kdump, or when unbinding the Ethernet driver. > sufficient to keep "ethernet-phy-ieee802.3-c22" and drop the > hard-coded ID? I am afraid not, as that still requires actual probing to determine the PHY ID. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
On Fri, Jan 6, 2023 at 8:45 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote: > > Hi Adam, > > On Fri, Jan 6, 2023 at 3:35 PM Adam Ford <aford173@gmail.com> wrote: > > On Fri, Jan 6, 2023 at 8:28 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote: > > > On Wed, Jan 4, 2023 at 3:12 PM Adam Ford <aford173@gmail.com> wrote: > > > > This reverts commit 18a2427146bf8a3da8fc7825051d6aadb9c2d8fb. > > > > > > > > Due to the part shortage, the AR8031 PHY was replaced with a > > > > Micrel KSZ9131. Hard-coding the ID of the PHY makes this new > > > > PHY non-operational. Since previous hardware had shipped, > > > > it's not as simple as just replacing the ID number as it would > > > > break the older hardware. Since the generic mode can correctly > > > > identify both versions of hardware, it seems safer to revert > > > > this patch. > > > > > > > > Signed-off-by: Adam Ford <aford173@gmail.com> > > > > > > Thanks for your patch! > > > > > > > --- a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi > > > > +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi > > > > @@ -59,8 +59,6 @@ &avb { > > > > status = "okay"; > > > > > > > > phy0: ethernet-phy@0 { > > > > - compatible = "ethernet-phy-id004d.d074", > > > > - "ethernet-phy-ieee802.3-c22"; > > > > reg = <0>; > > > > interrupt-parent = <&gpio2>; > > > > interrupts = <11 IRQ_TYPE_LEVEL_LOW>; > > > > > > The next line: > > > > > > reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; > > > > > > Unfortunately, removing the compatible value will cause regressions > > > for kexec/kdump and for Ethernet driver unbind, as the PHY reset will > > > be asserted before starting the new kernel, or on driver unbind. > > > Due to a deficiency in the Ethernet PHY subsystem, the PHY will be > > > probed while the reset is still asserted, and thus fail probing[1]. > > > > FWIW, the bootloader brings the device out of reset. Would it be > > The bootloader is not involved when using kexec/kdump, or when > unbinding the Ethernet driver. > > > sufficient to keep "ethernet-phy-ieee802.3-c22" and drop the > > hard-coded ID? > > I am afraid not, as that still requires actual probing to determine > the PHY ID. OK. I'll try to find out how many of the older versions of the board shipped. I don't really want to maintain two device trees for a small population of boards. Even those customers with early hardware won't be getting the same versions going forward and Qualcomm/Atheros told us it's an EOL part and cancelled our orders. If there are no objections, I might just change the ID to the new PHY. The customers who received the older hardware should have already been notified of the hardware change and the fact they won't get any more with that PHY. adam > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds
diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi index d3fc8ffd5b4c..1eb713530878 100644 --- a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi @@ -59,8 +59,6 @@ &avb { status = "okay"; phy0: ethernet-phy@0 { - compatible = "ethernet-phy-id004d.d074", - "ethernet-phy-ieee802.3-c22"; reg = <0>; interrupt-parent = <&gpio2>; interrupts = <11 IRQ_TYPE_LEVEL_LOW>;