[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251210182947.3f628953@kernel.org>
Date: Wed, 10 Dec 2025 18:29:47 +0900
From: Jakub Kicinski <kuba@...nel.org>
To: david.laight.linux@...il.com
Cc: Yury Norov <yury.norov@...il.com>, Rasmus Villemoes
<linux@...musvillemoes.dk>, linux-kernel@...r.kernel.org,
linux-usb@...r.kernel.org, Geert Uytterhoeven <geert+renesas@...der.be>,
Alexandre Belloni <alexandre.belloni@...tlin.com>, Jonathan Cameron
<Jonathan.Cameron@...wei.com>, Crt Mori <cmo@...exis.com>, Richard Genoud
<richard.genoud@...tlin.com>, Andy Shevchenko
<andriy.shevchenko@...el.com>, Luo Jie <quic_luoj@...cinc.com>, Peter
Zijlstra <peterz@...radead.org>, netdev@...r.kernel.org, "David S . Miller"
<davem@...emloft.net>, Simon Horman <simon.horman@...ronome.com>, Mika
Westerberg <mika.westerberg@...ux.intel.com>, Andreas Noever
<andreas.noever@...il.com>, Yehezkel Bernat <YehezkelShB@...il.com>,
Nicolas Frattaroli <nicolas.frattaroli@...labora.com>
Subject: Re: [PATCH 1/9] nfp: Call FIELD_PREP() in NFP_ETH_SET_BIT_CONFIG()
wrapper
On Tue, 9 Dec 2025 10:03:05 +0000 david.laight.linux@...il.com wrote:
> Rather than use a define that should be internal to the implementation
> of FIELD_PREP(), pass the shifted 'val' to nfp_eth_set_bit_config()
> and change the test for 'value unchanged' to match.
>
> This is a simpler change than the one used to avoid calling both
> FIELD_GET() and FIELD_PREP() with non-constant mask values.
I'd like this code to be left out of the subjective churn please.
I like it the way I wrote it. I also liked the bitfield.h the way
I wrote it but I guess that part "belongs" to the community at large.
FWIW - thumbs up for patch 8, no opinion on the rest.
Powered by blists - more mailing lists