Re: [PATCH net-next v3 2/3] net: mdio: Add Cortina CS7542 bus controller
From: Fil Dunsky
Date: Thu Nov 26 2026 - 10:46:39 EST
Hi Andrew,
The vendor register definitions describe automatic PHY polling: the auto
configuration register at +0x14 selects a PHY start/end index and the
register to read, and +0x18 contains poll_wait_cycles. I have exercised
only software-initiated transactions, not that automatic polling mode.
Agreed about the comment. The MDC prescaler is bits 31:16 of
PER_MDIO_CFG itself. I have changed the comment to:
/*
* Select software-initiated accesses instead of automatic PHY polling.
* Read-modify-write preserves the firmware MDC prescaler in bits 31:16.
*/
The code still changes only bit 0, retaining the firmware prescaler;
this clarification does not change the divider or transaction sequence.
Thanks,
Fil