From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796217465; b=WCo8c4tpJzspbbf7Ck4L2iAf+B4SQ11Z9rDPJjQLRhSryduLhL3aRefXEYGfkoV6pqL5 WVBRAen5czlLWY8KdkAHQV8ljtK1BaL1nyiw+Y4INJhBxGfSB+kOX93RYBzbwtI/Jfq4v RbZkPOC0Oo0KEjTmkJbD6+2ecpwo8w4IxNRz2Mjz4fvGygNRn8fjpfEa00zWVPdcQXJCI 76qLGwRDxJJhkABCdr0bTWo5aDUMHrYVtf9AhYBzKqsp3DlriLcw2e8RXozOXFkMbDlbi J2PfbeLAfcIYrEV66ouXODmaFZOyEr6LZxFw243wtsjo0yVAl5mfgGYxH0VWnSOom0w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796217465; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=cMj1QUczEAJjRsmM3BpDhLWRgK7OkAttcP4a9HySCQg=; b=JY5qXxrbdjkc67f5q7h0AlfZqxtiutCvi+FQSfExvzenvqMVgPMKmiJK6VFF+qarLrZa nqVcx/fuO4IBrmugAIpmeQg7U+Y9RP+v0nHRcE2VrVuQMEwsyKUo5WBLCtq5A5wxtNq5Z kY3xm0bt4JB3i+pN+KL0MK/pFkFQBGV1jaAOi/cSdCL35YSa+ok2b4p93HIuuHwwkVrFy lID1MRlEEP90u7u+Ln8XqFXuzJlyB70yJBH0C93yZZxg0Un1Jnu6My4RDJcj9nZmoKdIk s0FrQcohcVUOCuRts6FsJuhfDMdY8YYvvYkWuW54i6I2FrqcBrEX5a6P/bi89/VJ1Rw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=CN9rLDno; arc=none smtp.remote-ip=156.67.10.101 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E431606A31A; Wed, 2 Dec 2026 13:17:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5E431606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=CN9rLDno 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=cMj1QUczEAJjRsmM3BpDhLWRgK7OkAttcP4a9HySCQg=; b=CN9rLDnooJZ7bNRsoRVEbi8Qbz JVV7xzmda4GGQJDAcMvMQG+1H0ltaDjkA1faUEVj8KWSae8mRuxysaUQrG5f9jQgBqjJE6p8+oloy ptGs1hme3ZeK3cKV1hpXa6LDeXoOLQfoZYjfix2J3km3Pzk/eJwJ4GOQ8+1wVBtb4C/8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xYkCx-002pMx-Bk; Wed, 02 Dec 2026 14:17:15 +0100 Date: Wed, 2 Dec 2026 14:17:15 +0100 From: Andrew Lunn To: javen Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nb@tipi-net.de, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, daniel@makrotopia.org, vladimir.oltean@nxp.com Subject: Re: [PATCH net-next v5 2/4] r8169: hold MDIO bus lock while loading firmware Message-ID: <7cbb093d-bfd7-4efb-899d-f888ee20feee@lunn.ch> References: <20261201094454.1150-1-javen_xu@realsil.com.cn> <20261201094454.1150-3-javen_xu@realsil.com.cn> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201094454.1150-3-javen_xu@realsil.com.cn> On Tue, Dec 01, 2026 at 05:44:52PM +0800, javen wrote: > From: Javen Xu > > rtl_fw_write_firmware() accesses PHY registers directly, bypassing > phylib. Hold MDIO bus lock meanwhile, so other phylib users cannot > interleave their accesses with the firmware sequence. More signs you really do need to clean up this mess and use phylink/phylib correctly. Why is the MAC driver downloading firmware into the PHY? The PHY driver should do this. All the locking issues then go away. Andrew