Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2487164rwl; Fri, 6 Jan 2023 07:07:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXt4nCumt6zMdyG2Js9GV+AOlUbG2cap/IEXLsqTvpWBDvYrVFC8eS5+ZL2zHzDKNTi3DyHD X-Received: by 2002:a05:6402:f17:b0:489:5852:fbb5 with SMTP id i23-20020a0564020f1700b004895852fbb5mr28569750eda.16.1673017641764; Fri, 06 Jan 2023 07:07:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673017641; cv=none; d=google.com; s=arc-20160816; b=o49as7yMuKlnA0kccUt+9PJ94O4nMSZb8aQE/x2mxST3LySoqG3RNcwQvvzP7Glbgw n5hNYtdf66gulQuo4gVIhA1eOvRmz7fqvIV0MoBIeZHKm81wJLvTf5rRIG2RyZrO7f0R r4OtFV/YGk8GcJoDdNqeLiKeI1wzA/7uNTnUSdUbqCRlcDgU12Sx9C7HaWW9MeAJX8u5 hf8hSdulOKAHB15lhxCxlbycdmUsrul8k7xIMaviMozRWnHMYyvukJ3micdUtEn9NmSF HKFgIvDVkQ1oZPokmjqeeI1IZoTl8H2cGwDAYAf4oT4Yo6MB93HNaeVNQEA8E1cKAoGM +Hiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=st9MR927WV2EbzuKefqey2/C+I5iBh6i8vt5jvXyVCs=; b=ZA3QwE7jWgszmlj5YWLgkfgfln6ReXTL35shpnpfDXyUOIEf0vW0usN4CRTkJgw/29 6QGMPgcn3dMu7ziPQvDCC5/tewIEkUbwEmCfgEeGGdhtUq3Xjd8ZnMo2IZRPw34wRFws U3uJHul94KX1GXXTXXsJYJa1moZocnuEMl4aJJ8Xnl9HCM8skUjf0QM2HaTKyQW+giCP sSZa01RZTQdmFGTHs+iLX+IwcTbKThL0WGd5q+mhPYfE6HKAKWi2hzlp6szrnzo0yybU 0DrEwUNBj6vEI+2EKjtbL9fClww3dz6Cb2GI0vzxYCuoc1x7q4+F+8wF8NtcYIsB/3Bf BD0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a6L2tgg3; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ee38-20020a056402292600b004591f959c3bsi1610530edb.427.2023.01.06.07.07.08; Fri, 06 Jan 2023 07:07:21 -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=a6L2tgg3; 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 S235212AbjAFOdL (ORCPT + 56 others); Fri, 6 Jan 2023 09:33:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235292AbjAFOcq (ORCPT ); Fri, 6 Jan 2023 09:32:46 -0500 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 717698110B; Fri, 6 Jan 2023 06:32:37 -0800 (PST) Received: by mail-pf1-x42f.google.com with SMTP id y5so1178241pfe.2; Fri, 06 Jan 2023 06:32:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=st9MR927WV2EbzuKefqey2/C+I5iBh6i8vt5jvXyVCs=; b=a6L2tgg3QGCq+XMQ7WcOUm/d6W6nF11Eh/w4QbvVjauxnQByRat6CDtIsj5gU6GZCp NLQ4uTzcEbN5aApCBAT9ti6ZYUoy49weQ6OhA840cxPWM9NbzHwD56XDkwAQzrY2H1Be UjHvk8s1w+gVFmhEv23sk5OYDUhkqYz8mD29yBh5voOKUtrf+GbeFPg2QT++SqfCHqdJ E6Kc830M+PBQGA8ZcSq1JImL5bmseOm3HREDyAvtK4VDelSyGu+rOadzkgkg7Zd6zhz1 BZfI7cC/ygum12ltjVdiu0393WnQujPa3GEA1gMUqova9ET+brOG8bHh6RrA7dX0vlzA 5Abg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=st9MR927WV2EbzuKefqey2/C+I5iBh6i8vt5jvXyVCs=; b=xxeeeYpeozxvE6/gF4nCF3Z7/VD+OjFYQa6Y7UwVibtjSLa6kQfw6n5SDBtXsX+0yj 6YbC7ISecQ9BSW7yn2BV768wrXnbqy6PzE0TpzWR4NXs3WC1V/06Bdc+8+JOg8JzZWdB J43jKpkozlI5M3r3i2MUXYRHOdt3f8nxMLqIeXguClGdg9leIVbOz6s8vFpkhuqJec0k woDq9E3otM3Y3e2P15LseFcnYt9ju242qBr97nmupAKaBIF2g9TwFAeGdn3uWf97voLY oYJuqUNfXONXAVPmVduKnrmhKVgeiGJe3+aCkvIJCgshbz4YzHU9JU3jDiVktc+draxW mMmQ== X-Gm-Message-State: AFqh2kp7LPPfJVaqOAdcKRGSZ0QN9txdmhnueqNoZsFOuTAh5y3dQkw1 ibymE+uMG6u6eu62axwT16XwnIVNaDwsYJVBujE= X-Received: by 2002:a65:674e:0:b0:48d:a8d8:6f73 with SMTP id c14-20020a65674e000000b0048da8d86f73mr2518561pgu.396.1673015556953; Fri, 06 Jan 2023 06:32:36 -0800 (PST) MIME-Version: 1.0 References: <20230104141245.8407-1-aford173@gmail.com> <20230104141245.8407-2-aford173@gmail.com> In-Reply-To: From: Adam Ford Date: Fri, 6 Jan 2023 08:32:25 -0600 Message-ID: Subject: Re: [PATCH 2/4] Revert "arm64: dts: renesas: Add compatible properties to AR8031 Ethernet PHYs" To: Geert Uytterhoeven Cc: linux-renesas-soc@vger.kernel.org, aford@beaconembedded.com, Magnus Damm , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Heiner Kallweit , Russell King , netdev Content-Type: text/plain; charset="UTF-8" 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: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 6, 2023 at 8:28 AM Geert Uytterhoeven wrote: > > Hi Adam, > > CC Ethernet phy > > On Wed, Jan 4, 2023 at 3:12 PM Adam Ford 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 > > 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