[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2024041801-anteater-cultivate-d8a0@gregkh>
Date: Thu, 18 Apr 2024 15:10:36 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: FUJITA Tomonori <fujita.tomonori@...il.com>
Cc: netdev@...r.kernel.org, andrew@...n.ch, rust-for-linux@...r.kernel.org,
tmgross@...ch.edu
Subject: Re: [PATCH net-next v1 4/4] net: phy: add Applied Micro QT2025 PHY
driver
On Thu, Apr 18, 2024 at 10:00:47PM +0900, FUJITA Tomonori wrote:
> >> + if i == 0x4000 {
> >
> > What does 0x4000 mean here?
> >
> >> + a = MDIO_MMD_PHYXS;
> >> + j = 0x8000;
> >
> > What does 0x8000 mean here?
> >
> >> + }
> >> + dev.c45_write(a, j, (*val).into())?;
> >> +
> >> + j += 1;
> >> + }
> >> + dev.c45_write(MDIO_MMD_PCS, 0xe854, 0x0040)?;
> >
> > Lots of magic values in this driver, is that intentional?
>
> The original driver uses lots of magic values. I simply use them. As
> Andrew wrote, we could infer some. I'll try to comment these.
Wait, this is a rewrite of an existing driver in the tree into Rust?
Why is that happening again? Why not a new one instead?
thanks,
greg k-h
Powered by blists - more mailing lists