From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDC54BA50 for ; Fri, 27 Oct 2023 11:55:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="TX9atbL1" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D81D5186; Fri, 27 Oct 2023 04:55:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=xKkgQbSQCEpZQloC8PIwFH82W161i281OBtZkhnuCC8=; b=TX9atbL1jQWE81Enyh8HJrA9xI K2Ysh8YrtMMYUX6cwdcHb7MJCV9OL9/8XNYhnrwF8fYHCNdvtYXmA98KPpbjRKU5XLWdrZkBdlVj2 c6FwQpC2+rAx0UevgxpPwl/3TFYpt9Dmeo/U+IipSCOW+tHtpINI325wE7zCHnjBmbhg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qwLQq-000Ko8-Nf; Fri, 27 Oct 2023 13:55:16 +0200 Date: Fri, 27 Oct 2023 13:55:16 +0200 From: Andrew Lunn To: "A. Sverdlin" Cc: netdev@vger.kernel.org, Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Juergen Beisert , Jerry Ray , Mans Rullgard , stable@vger.kernel.org Subject: Re: [PATCH] net: dsa: lan9303: consequently nested-lock physical MDIO Message-ID: References: <20231027065741.534971-1-alexander.sverdlin@siemens.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231027065741.534971-1-alexander.sverdlin@siemens.com> On Fri, Oct 27, 2023 at 08:57:38AM +0200, A. Sverdlin wrote: > From: Alexander Sverdlin > > When LAN9303 is MDIO-connected two callchains exist into > mdio->bus->write(): > > 1. switch ports 1&2 ("physical" PHYs): > > virtual (switch-internal) MDIO bus (lan9303_switch_ops->phy_{read|write})-> > lan9303_mdio_phy_{read|write} -> mdiobus_{read|write}_nested > > 2. LAN9303 virtual PHY: > > virtual MDIO bus (lan9303_phy_{read|write}) -> > lan9303_virt_phy_reg_{read|write} -> regmap -> lan9303_mdio_{read|write} > Cc: stable@vger.kernel.org > Fixes: dc7005831523 ("net: dsa: LAN9303: add MDIO managed mode support") > Signed-off-by: Alexander Sverdlin Reviewed-by: Andrew Lunn Andrew