Re: [PATCH] rust: net: phy: fix off-by-one bit positions in device status accessors

Miguel Ojeda <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.rust-for-linux
Message-ID <CANiq72mUbkEcvffQV-mNLfCxGkgTqwq1qQLuWpENsUCCBAHOqw@mail.gmail.com>
On Sun, Aug 23, 2026 at 12:37 PM Chunfeng Song
<[email protected]> wrote:
>
> Fixes: f20fd5449ada ("rust: core abstractions for network PHY drivers")
> Link: https://www.spinics.net/lists/netdev/msg951815.html (v8 cover letter, where the bitfield access was flagged as needing a fix)

I assume that this will need:

| Cc: [email protected]

By the way, a link to lore.kernel.org would be better.

In addition, is there a way to avoid this to begin with? e.g. why are
hardcoded literals used?

Thanks!

Cheers,
Miguel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.