Article View: linux.kernel.netdev
Article #24602Re: [PATCH net 14/14] net: phy: as21xxx: Release reset before reading ID in match
From: Cristian Ciocaltea
Date: Mon, 30 Nov 2026 12:22
Date: Mon, 30 Nov 2026 12:22
21 lines
9677 bytes
9677 bytes
On 11/30/26 5:53 AM, Andrew Lunn wrote: > On Mon, Nov 30, 2026 at 02:55:21AM +0200, Cristian Ciocaltea wrote: >> The Aeonsemi PHYs report a generic PHY ID until their firmware is >> loaded, so the driver reads the ID from the hardware while matching >> instead of relying on the ID cached at bus scan time. >> >> The PHY only reports a valid ID while out of reset, which is not >> guaranteed. phy_remove() asserts the reset and phy_probe() deasserts >> it, but probing only happens once a driver has matched. Rebinding the >> driver, for instance by reloading the module, therefore reads the ID of >> a PHY held in reset. This fails to match, leaving the PHY in reset with >> no driver bound, which cannot be recovered without a power cycle. > > We don't do fun and games like this. We just require the compatible in > DT contains the ID, if the ID cannot be reliably read from the device. Ack, will drop this patch. Thanks, Cristian
Technical Details
Message-ID:
<0087246f-3875-4a7f-a44d-1066879230bd@collabora.com>Path:
mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374164-linux-kernel-netdev=dewy.ruReferences:
<20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-14-1bd2eae6ccbc@collabora.com> <544910f4-6f2c-4677-b9a9-045859ec1049@lunn.ch>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374164-linux-kernel-netdev=dewy.ru From: cristian.ciocaltea@collabora.com (Cristian Ciocaltea) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 14/14] net: phy: as21xxx: Release reset before reading ID in match Date: Mon, 30 Nov 2026 14:22:35 +0200 Organization: Usenet Network Message-ID: <0087246f-3875-4a7f-a44d-1066879230bd@collabora.com> References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-14-1bd2eae6ccbc@collabora.com> <544910f4-6f2c-4677-b9a9-045859ec1049@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1422506"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:117Her+P4mqnzbSJ/I5gEbKYSIU= sha256:h34eYWx3cXNn0qMd3AuM7R1LkuSzW0Eb8BmX1SR47sk= sha1:rsa/sCxJe63fLs7KrvwPztt768g= sha256:hlFeMn414gA8Yfdqqcna4hFNstQkb0ljxC+53cIwdus= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 8AAA0125FE2; Mon, 30 Nov 2026 15:22:51 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=collabora.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1XSgY_LIGjNg; Mon, 30 Nov 2026 15:22:48 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-374164-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=collabora.com X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 79B3F125FE1; Mon, 30 Nov 2026 15:22:40 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 283F32575D; Mon, 30 Nov 2026 12:22:39 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796041358; b=1RJC1t2YMWS3S6P5aSrCHJ/VoWqdZXnE4hiXGUSX1LeTOCSf00TIND1P6saaeV9dGBaQ yt0ds+GpJcuO3XOBk00A2xS2jYMO4Lx6Pgs2DwO+/oX1BsmrTqXXcjrx2wrIOueVju1Lm 23rJup+PESmIuQKRHayxXXrRXjuUZfZ+hAlaqtrGQfHXUWwtAzZYy3hfQ/k3/tpXYzn6I 61uux3DmogJZB255Mu2cvXV4hVyLsKGvJWweivKG9XQx1tBvvzaq8+uZDpviIriZ6Mk2H gbn+Ya61yDlso7KzZSgAhAJurMl4nHQA4mt02lXHQp5yacpTdQMjApcbPCk3aBuKJ+Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796041358; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received: Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=VZfSQnOsdYRybU/wrA6g0fY/vg2XyZYK2KffAUCYP5o=; b=0Ry8z7whYTVF3tLP2Mv+SyPZeKIdNbu3CZEbOv7JId64fqwrDlzV07X/+SNiljVMparl U6gS/dZDMQ92q3GddCCchEeDVUmmYhH7mQH51qhDD17pFANn9enapwXOZkCtcvJg3CtCN A6+mVP/mlR18JW+qJTb5ICnK4ctr7dGLf+yorIXcOmX9omCObVezEOGH3+R/AqbF3Yi7k XEdhRwJoSkO0G6f66LIPN2FkYNyBaamdbG1WeAuGPspiPEfH6pmw5WpXgQZkdE3tarw6X smLkoqXI8yJcaWTX5sgqDhofFWUm6gjql/XYys8iUSG1ahByzztaEY/N6iVKW/4XGrA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=QpGrHyCr; dmarc=pass header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFC3F606A330; Mon, 30 Nov 2026 12:22:38 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=QpGrHyCr X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.251.105.195 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796041358; b=Wa4dSZm/iMVyTVV5gHscLYiu393c2lmCz5F2Fp//KIFS1egzMagzV5G42u4CWNwFjQuk SeYIjIjGDsdplZ7gcrwaqcHu4uWckLs3RjEbpytNv2a6hTHc0MJkDJNkOu/umgDT3Tlcl 7toFeKsrVphh10+RcMcjRyr00ggWNNFXXN/smHuLgObEjWzLNM6EtQFPnfGPgwXQwp98m tF3pyuObjI0JtQQxKarvra+sFLKH/9eaZfG+TY3BaDNLycWkivkx297V0dgs2HHeDyUBe pqQkT56iOY3jFWO4OiFJcxuNNH3H7yFf2S2sf829XYz/88K1aB6S/3qeeOLazaRydAw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796041358; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=VZfSQnOsdYRybU/wrA6g0fY/vg2XyZYK2KffAUCYP5o=; b=jOaUP4QKXqYafAMr5uL6UPkg8+etuKbLnyFxHm4bqvXsdXClMM1KFrr0iyo2P/lC2RBg CCPDaBHtlilqQH3IAgfSd+3gDozbxztRwlytKr7mj2MF5WkG9hs39DpSRwiF76spv6bFK 5GJPb0GGvCfpTcSN5gsQhJznJ46VcQ8795rHUaVaDaLEoFb26R05FpKNS+IFgTGRwxOKy BPPnI4tNndr0t4DEb+Qb8fnR+bdIMQOTwtiN9JuVLAd0r+1dJYpZPPI7g6FxHPcSsAD7y tO6VuNiRrLmJJ0lFGY9nvFi0iqZ9WvLDUdvzDYNwXnM90GYBz+/OEMegEuQQXQHDI4g== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=QpGrHyCr; arc=none smtp.remote-ip=148.251.105.195 X-Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7ECDF606A327 for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 12:22:37 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7ECDF606A327 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1796041355; bh=4Vsv1B4BS9U4iK24ZQFcTni5zo50g5aKeitjNZv2tFw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=QpGrHyCr8tNbvHQ+ukfVg2VcievkHN2iPlqZpnOvUVeyw7I/0P3kdcybZdeVMWmkE k/aqfA8t4q3FwoCwkGZ2qok6lrmM4bJLMabcMm4RikAmWS9CYEl1RLGfHrU5c/BxeC fBNhaLSoObE3fIlA6F/4tUPka4GsgPmXnabetqHPDb8ruGY+IyjLHsOJl4gH1I8Se3 0BXPTPxzbSr/fGnL0bhYtukch5VEhaxfW5oIcg2xNBHNV+0GZ7AFJnBh2PgWTKJfR9 zLPvbmp6cQVjKLNcv/DYGAWu+upurezNGWaQ5O/e+Vr/H/4GdTb6nJ/wBtUVrDnaP+ LIBRvo6AGQFyA== X-Received: from [100.64.0.241] (unknown [100.64.0.241]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id 6C17017E0648; Mon, 30 Nov 2026 13:22:35 +0100 (CET) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-User-Agent: Mozilla Thunderbird X-Cc: Christian Marangi <ansuelsmth@gmail.com>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, kernel@collabora.com, netdev@vger.kernel.org X-In-Reply-To: <544910f4-6f2c-4677-b9a9-045859ec1049@lunn.ch>