Article View: linux.kernel.netdev
Article #17907Re: [PATCH net-next v4 1/2] net: phy: move DECLARE_PHY_INTERFACE_MASK_ZERO to core
From: Andrew Lunn
Date: Tue, 17 Nov 2026 14:04
Date: Tue, 17 Nov 2026 14:04
16 lines
9338 bytes
9338 bytes
> I understand your concern that hiding the init inside the macro seems
> subjective. Since you mentioned an Andrew ack is needed, and he is the
> net PHY maintainer (who also looks after the WX driver),
I don't look after the WX driver. I comment on it, as i comment on
lots of drivers.
> If Andrew also feels this doesn't belong in the core, I will drop the
> macro entirely and switch to explicit manual initialization using
> phy_interface_zero() in both drivers.
Using phy_interface_zero() is what current code does. I would also say
using explicate = {0, } is O.K, but i would not hide it in the macro.
Andrew
Technical Details
Message-ID:
<e3c5f034-1b05-4fcf-bbe1-8b473a8d2a0f@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365331-linux-kernel-netdev=dewy.ruReferences:
<20261110160554.918652-1-coiaprant@gmail.com> <20261110160554.918652-2-coiaprant@gmail.com> <20261116183012.11a7ba72@kernel.org> <CALj3r0gTuJEDd==WzAQ+cK3Og-2zMqvmBrhrd2ARbKJctG5ZAQ@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365331-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 1/2] net: phy: move DECLARE_PHY_INTERFACE_MASK_ZERO to core Date: Tue, 17 Nov 2026 15:04:07 +0100 Organization: Usenet Network Message-ID: <e3c5f034-1b05-4fcf-bbe1-8b473a8d2a0f@lunn.ch> References: <20261110160554.918652-1-coiaprant@gmail.com> <20261110160554.918652-2-coiaprant@gmail.com> <20261116183012.11a7ba72@kernel.org> <CALj3r0gTuJEDd==WzAQ+cK3Og-2zMqvmBrhrd2ARbKJctG5ZAQ@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2347773"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:eATlVHpnQWEIW2kOIas8Pikmdfk= sha256:9RbfH3g5VjmNXvJ1gHAjHKyXQYuStw9cBR5srH8QPKk= sha1:du7K2i59GuXBLV1umZeg+tkQvnQ= sha256:phB/R+vrHVa1SJcZhs/WY4qxdF4IZ8ut1+Hby/70APg= 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 07C1A114F98; Tue, 17 Nov 2026 17:04:56 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 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] 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 3fmWub-kpa5B; Tue, 17 Nov 2026 17:04:52 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-365331-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id C0DF2114F74; Tue, 17 Nov 2026 17:04:34 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 6875833B7F; Tue, 17 Nov 2026 14:04:33 +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=1794924272; b=G5ERtz84flzgE/HiN05xLDCXi6cutFma8JWTpzXLXAO8boTDcSR6LJsrEssMCyTR1LkS CHoippjm1uCQtbfOeJcMregTz8ziNf91pgko+vixk16sX8Ja7gmspu6OD1HeitwChyh2n kbTBVWpSO6IdjzKq5X6QH+/KSppAbQoaHHfHBlSiRorlgQhhjkFdlk9FCLxb7qafTU1uD NT2UJB/Jsw1Q+Ze9fZDsFOv+B236H3N1ZnltZTY6+981oJ4808oD//Sx/UhCy/wPJA6E+ 18nULq5T5cq6UFNU1xPsbvARtlmu1UA3ferDhH0ZOjbLK2CQGE4nkiiyp+KxLkrLK6w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794924272; 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=9ammhtwy9K590KTiGuFRN9TiLwSY3ErK147SvQ2LZpc=; b=LrPRMKzx83Pgr7dXa9GapBYfeSZFKuFLJUfx38oMep7wFrj7R+YwNQpsjLNfQgO0H/q+ lGH+e74tg4LF1mkBfo9w1xljpZPEev3HqgFVNLbkEtE/RfJoHQ7QnGhv+jtCAJWh8oNWP g2fm217o70ubqtKXLQakXdstNCypl/Gt6U/PLMEx0S6VhrZJtpXl1bmd84jMqFZZN0OiW tvO67EZLdNLYTyXQd0NV/PPqeSF/wXFDlHdQsEIn8VFtUlKPAdOK/WQOKGmHsrMG8rnBv CKr0E0cE+F9jij8BiyGDYyji7er7oqyRQFATwmUOeqIBmaIIbNUiAKiH3wj8oUrj28A== 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="VQp/2GAu"; 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 5794D606A337; Tue, 17 Nov 2026 14:04:32 +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=VQp/2GAu 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=1794924271; b=pJBEwOXfaANpSrV2y3lEDjox7EKYCrpyIsSB2o2a9fmCDu7sq5+t4CNpMbXPcbXlfvNc Kf9UDJFcLjj6xjyW+UyFg1Gh7FDWcV/ixTIcjHOv7vu/KLoBfZwN6mEz/eyjE+1oaKdFL uboOruc/lxPv8r4O0wTc9Aa70m1exlDJdzwb46C9Fj1sKnOHwvbta8wFKTe02M9G2T6k2 JyqwnB7yMyJ8D5G9MibwnCurzOJUESiUCS7MFJaUwVbNADdO8lyI6A+sjNWfSkW2TOlQ0 UGxuFGmiDVUXxIwjwP7zPOXddR/tKCWtKMCncKOG4GS7yNyQ0T3jEtIDHu40cT8dgEw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794924271; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=9ammhtwy9K590KTiGuFRN9TiLwSY3ErK147SvQ2LZpc=; b=I1fTclFmbtTjwFrTA87ezm86CyWlaJ+imqFOM2oLYn0NCWJMten5Buznc5qjeBZqmh9/ wBkko7OoZVXgtsIoJHqL9JqCwwu7b7PVjDRzR45IiSYD3/UMWqoaDk4m4X+gQDSpbcrnr V8m7m6exbi5PtUAWt51gB4fKx18hQdmvpGvmJqzPOaBkQWMmqELFRO6cAOA1HUqxh3T/0 q65PyakCzK75I3WfPYEITRysvJhDN5iH8JP2hrZMbLf1VnU5If16n2OdIBUXWBh2ATYyV apbaPjmzW4ZCxVqj35LuCjdnGYMtWy/PQr6NKaNTC9XRWNyoGa/tKhUidRYY27oReag== 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="VQp/2GAu"; 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 329DF606A323; Tue, 17 Nov 2026 14:04:30 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 329DF606A323 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=9ammhtwy9K590KTiGuFRN9TiLwSY3ErK147SvQ2LZpc=; b=VQp/2GAugCh6U8BjJBR2NURYTx 4wBg5YZIZUjRVRmHsptsQ+NJ5DwvHgOmov8GesBSEqbjAzFsfCODuI0UrioOSMU5J3PY/B0t5+nbB JD1/lKnuopmhJN1FIGlGWWR5xShBob2ACFCt8TlzzJVpyQLQviO1rUVqOQJOD46I9yqs=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xTJn5-00HAGJ-QD; Tue, 17 Nov 2026 15:04:07 +0100 X-Cc: Jakub Kicinski <kuba@kernel.org>, Andrew Lunn <andrew+netdev@lunn.ch>, Paolo Abeni <pabeni@redhat.com>, Jiawen Wu <jiawenwu@trustnetic.com>, Mengyuan Lou <mengyuanlou@net-swift.com>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, Heiko Stuebner <heiko@sntech.de>, Aleksandr Loktionov <aleksandr.loktionov@intel.com>, Fabio Baltieri <fabio.baltieri@gmail.com>, netdev@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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: <CALj3r0gTuJEDd==WzAQ+cK3Og-2zMqvmBrhrd2ARbKJctG5ZAQ@mail.gmail.com>