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=1796145839; b=M5ayo2lvjZHTjHhTHYc+5B5G1301POF6veujNYWVpEKJba2NaZZWwKNEcNISkgJZsyDJ SGQmbPlpP2JbRDM6/uufu49q2f9SRMBeXaT8qAdtylWUVugaFuwjb5Y35pxtn9lUu9Fe/ qLFRQibWYhtJf72hS6zJwrvYgn8wc2BCUwqmPDcedS0qM91ax13OWivSsB6Ns+xB2tXan +7zWxQEwm4YuL6KvCM7rplzTr/wuDt0h6uXCHXP9J+Kj4yW6x0XvD5TqcpV2f15cVUWRW q2wWiltua3FKqYhS07jwkKfW/tX8R4Za+iBV3im6CTYMQ9S1IyFm+8EMFhykePWlKEQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796145839; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=kGsPHn8OaOcCbl/IG1t0Aq3/J1xFRQYYeHnZiCJWSlk=; b=mle9fnfl0jFLA4cN38tZvGW7ofj/sHLxyXiiE43rrJBalD/FbduC662qgSj6IQ1je3PT XLeBu2Um5yNMnjQc9yOB/rXbbDxggwcG0zRHkCY2Gtujl/QI/fSbd9SdkM22tpo5rWK5/ zuKhj60230Dc5pI52LysM4GOTerfQKOBwCFYLgvZt//Q+HKMH4qmww5iMS8Rzf4iZTtMF JeU4TDz0KySg1rpplJqZ/04nSlUj1JGL+Y3XvXTibofV3bJCCwjDeOZedqD72Vnlg+T+n GEqJp/a+cS8hWokyW2R93ogB9XCoTuLGGWfbXDPGzi8nOZPEEWM4t4hndLXVCgtY8dA== 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=53TePj2x; 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 8C7D5606A32F; Tue, 1 Dec 2026 17:23:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8C7D5606A32F 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) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=53TePj2x 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=kGsPHn8OaOcCbl/IG1t0Aq3/J1xFRQYYeHnZiCJWSlk=; b=53TePj2x/JG+d47QNmvjY/YnVS un2ffpFaspPfNjFqwm7JdRtPvU/6titZwGmSnjJzECDq3j48n5nby4EiTEkv4DZXOGiV8QqD5STm1 KGHxgNFNmXVR6H81mHSoUf0J9lk0W6dzRrfOMo2myBpt+aCk8tALFNdeDVCbmhhGmJgw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xYRZu-002eoE-HS; Tue, 01 Dec 2026 18:23:42 +0100 Date: Tue, 1 Dec 2026 18:23:42 +0100 From: Andrew Lunn To: Jisheng Zhang Cc: Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Hesselbarth , Maxime Chevallier , Maxime Coquelin , Alexandre Torgue , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next v3 2/2] net: stmmac: Add glue layer for Synaptics SL2610 SoC Message-ID: <6dc032b7-5b12-4e27-a238-cf0e2b202944@lunn.ch> References: <20261201143753.13916-1-jszhang@kernel.org> <20261201143753.13916-3-jszhang@kernel.org> 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: <20261201143753.13916-3-jszhang@kernel.org> > +/* Protect the list of MDIO providers, keyed by their shared syscon regmap. */ > +static DEFINE_MUTEX(syna_mdio_lock); > +static LIST_HEAD(syna_mdio_owners); A linked list seems a bit over the top. syna_dwmac_claim_mdio() could use test_and_set_bit(), which is atomic, no need for a mutex, and if the bit is already set, return EINVAL. The release method can probably use clear_bit(). Andrew --- pw-bot: cr Andrew