Re: [PATCH 1/1] net: stmmac: dwmac4: extract MAC_HW_Feature regs MSB first

From: Andrew Lunn
Date: Thu Aug 10 2023 - 09:59:43 EST


On Thu, Aug 10, 2023 at 05:59:29PM +0800, Furong Xu wrote:
> The bit extraction sequences are a little messy.
> No code changes, just reorder them.

How is this substantially better?

If bugs are found in this code, your change is going to make it harder
to back port the fixes to stable kernels. cherry-pick is unlikely to
work, it will need a human to look at it. Not hard, but still effort
for somebody.

So i think there needs to be a clear benefit to this, and you should
mention the benefit in the commit message.

Andrew