Subject: Re: [PATCH net-next v3 1/4] net: eth: fbnic: Fix addr validation in pcs write

From: Jakub Kicinski <[email-masked]>
Date: Wed, 6 May 2026 18:58:19 -0700

On Mon,  4 May 2026 09:58:12 -0400 [email-masked] wrote:
> From: "Mike Marciniszyn (Meta)" <[email-masked]>
> 
> The DW IP has two distinct PCS address ranges cooresponding
> to the C45 PCS registers.
> 
> The shim translates the PCS addr/regno into specific CSR writes
> into one of those two zero-relative.
> 
> This patch fixes a one off in the test that could allow an invalid
> CSR write if an addr == 2 was called.
> 
> This patch contains a fix for addr validation in fbnic_mdio_write_pcs()
> to only return actual CSR reads for addr 0 and 1.
> 
> There are as of yet, no real impact for the bug as no PCS writes are
> not yet present.

Hi Paolo! Was there a reason / do you recall why this was not applied?
(I dropped it from patchwork now. If the omission was accidental it has
to be reposted)