Article View: linux.kernel.netdev
Article #25386Re: [PATCH net-next v3 2/2] net: stmmac: Add glue layer for Synaptics SL2610 SoC
From: Andrew Lunn
Date: Tue, 01 Dec 2026 17:23
Date: Tue, 01 Dec 2026 17:23
15 lines
9055 bytes
9055 bytes
> +/* 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
Technical Details
Message-ID:
<6dc032b7-5b12-4e27-a238-cf0e2b202944@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375243-linux-kernel-netdev=dewy.ruReferences:
<20261201143753.13916-1-jszhang@kernel.org> <20261201143753.13916-3-jszhang@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375243-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3 2/2] net: stmmac: Add glue layer for Synaptics SL2610 SoC Date: Tue, 1 Dec 2026 18:23:42 +0100 Organization: Usenet Network Message-ID: <6dc032b7-5b12-4e27-a238-cf0e2b202944@lunn.ch> References: <20261201143753.13916-1-jszhang@kernel.org> <20261201143753.13916-3-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1777187"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:eeMGgPvcJxIuk7zV5i7x8FkPp8E= sha256:fPLL60PxtXYrg6a5QaN6jJTUBM/+F3fBTnt8E37wFVE= sha1:8uPXeLDiMrkKQiA4c+mp7vvFpT8= sha256:Q5BhM9URERKffBYroOXCIvvX4yfzb3D6FV2gKnN++OY= Content-Disposition: inline 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 10279117436; Tue, 1 Dec 2026 20:24:23 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch 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 dpFmv5Cv-KkJ; Tue, 1 Dec 2026 20:24:19 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-375243-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id B69F3117408; Tue, 1 Dec 2026 20:24:09 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id F1A7A250EA; Tue, 1 Dec 2026 17:24:07 +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=1796145844; b=J/O9EzAGMI50y/SPLu1NzCnAbVVfpjsWC9r5PpbNvfAw3J+hKPHLo6cP5ErqIkl2pRgQ RCWX8DJ4e9BaD9hUorudkrIW2q8dvU7X1CGwOg15t9pljAqTF8isTDn1ZBVxJxCEielbg tp6JcRPNpXuFuEv91VUSaCrmJ3RSqRuFzLZkuOPrpJORIvyWJq0BrGa3Lr+ioklfiIN7O c7I6hZ0ZnhoUO+Oreo5U4Jh5rHt13CO6DvpXVU1UnOhC6dQwfDBIJ0zFsjZQxfGYyneFD xGGhNHWoD530X6ZKfRbfqepsRtI9Or14VF7KnAL/gCDMH76Cg6tbEH/2yw4+QhZWLvQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796145844; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=kGsPHn8OaOcCbl/IG1t0Aq3/J1xFRQYYeHnZiCJWSlk=; b=fcANpWpzP7PHqzpRkk8Ucvs8RusAezJuAP76IfhdhgeMX3fBQCz82oXdae9s4SmQtGs/ f4rV+qzL+0ae98uoYSkLQedBfCmrkjBIvrduvKBgaZPQaafwGLpPvWYuis0pqjmDc3EiB xW9XeZaxh9XnV2jtrYp8C/dJqag/b1la5cOdbVykHpWGE7oQ0UgOdXaF0a5FmZ8AIU9xt o1Iwsg/4qQI/fmsIOo9BKN0wHxhrsw4PmaecZaXdPyy4il+PPeYGUHVX6W33SBUtul/Z5 shnLR3c1/I1xCzBtrtyz8FWusf50Npcr96PTPH9QaZj2kK1xbomDmuetdbLKHgon5Yg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=53TePj2x; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; 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 D8440606A688; Tue, 1 Dec 2026 17:24:04 +0000 (UTC) X-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 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-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== X-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== X-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 X-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) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8C7D5606A32F X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-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=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xYRZu-002eoE-HS; Tue, 01 Dec 2026 18:23:42 +0100 X-Cc: Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Maxime Chevallier <maxime.chevallier@bootlin.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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-In-Reply-To: <20261201143753.13916-3-jszhang@kernel.org>