From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.251.105.195 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== 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== 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 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 ; Mon, 30 Nov 2026 12:22:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7ECDF606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com 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 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== 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) Message-ID: <0087246f-3875-4a7f-a44d-1066879230bd@collabora.com> Date: Mon, 30 Nov 2026 14:22:35 +0200 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net 14/14] net: phy: as21xxx: Release reset before reading ID in match To: Andrew Lunn Cc: Christian Marangi , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kernel@collabora.com, netdev@vger.kernel.org References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-14-1bd2eae6ccbc@collabora.com> <544910f4-6f2c-4677-b9a9-045859ec1049@lunn.ch> Content-Language: en-US From: Cristian Ciocaltea In-Reply-To: <544910f4-6f2c-4677-b9a9-045859ec1049@lunn.ch> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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