Thread (13 messages) flat view 13 messages, 3 authors, 2026-01-18

Re: [v2,2/5] net: phy: realtek: simplify C22 reg access via MDIO_MMD_VEND2

From: Chris Mason <hidden>
Date: 2026-01-18 00:10:53
Also in: lkml

On 1/17/26 6:55 PM, Jakub Kicinski wrote:
On Sat, 17 Jan 2026 23:40:36 +0000 Daniel Golle wrote:
quoted
quoted
quoted
@@ -1156,7 +1156,8 @@ static int rtlgen_read_status(struct phy_device *phydev)
 	if (!phydev->link)
 		return 0;

-	val = phy_read(phydev, RTL_PHYSR);
+	val = phy_read_paged(phydev, RTL822X_VND2_TO_PAGE(RTL_VND2_PHYSR),
+			     RTL822X_VND2_TO_PAGE_REG(RTL_VND2_PHYSR));  
This changes rtlgen_read_status() from reading C22 register MII_RESV2
(0x1a) directly to using paged access at page 0xa43, register 18.  
Yeah. Just that this is not part of the series submitted.
It's rather a (halucinated) partial revert of
[v2,4/5] net: phy: realtek: demystify PHYSR register location
Oh wow, that's a first. No idea how this happened. Is the chunk if
hallucinated from another WIP patch set?

Chris, FWIW this is before we added lore indexing so I don't think 
it got it from the list. Is it possible that semcode index is polluted
by previous submissions? Still, even if, it's weird that it'd
hallucinate a chunk of a patch.
We've definitely had it mix up hunks from other commits, but not since I
changed the prompts to make it re-read the files before writing
review-inline.txt.

But, it absolutely does ignore parts of the prompt sometimes.  I'll give
the logs a read and see if there are any clues, thanks for flagging it.

-chris
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help