Thread (16 messages) 16 messages, 3 authors, 24d ago

AW: [PATCH net-next v2 2/8] net: mdio: realtek-rtl9300: Add page tracking

From: Markus Stockhausen <hidden>
Date: 2026-06-29 17:26:18
Also in: linux-devicetree

Von: Andrew Lunn [off-list ref] 
Gesendet: Montag, 29. Juni 2026 18:29
An: Markus Stockhausen [off-list ref]
Betreff: Re: [PATCH net-next v2 2/8] net: mdio: realtek-rtl9300: Add page
tracking
...
quoted
Intercept access to register 31 and store the desired value for each
port
quoted
in the driver. When issuing access to other registers add the saved
page.
quoted
This given, the hardware will run two consecutive c22 commands that are
not interrupted by polling.

  ... hardware poll ...
  phy_write(phy, 31, page)
  phy_write(phy, reg, value)
  ... hardware poll ...
How do you guarantee the polling will not get between?
The page is part of a single command towards the controller.
If a page is given the hardware will make the above two MDIO 
commands out of this without any polling in between.

I will clarify this in the next version.

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