Re: [PATCH net-next v2 1/4] net: dsa: qca8k: read each register into its own word over MDIO

From: Alexey Immoreev

Date: Fri Nov 06 2026 - 22:11:10 EST


Hi Stanislaw,

While investigating qca8k bulk reads for OpenWrt, I independently
arrived at the same destination-stride fix, with AI assistance.
Your patch contains the identical one-line change.

An AI-assisted host-side regression against current net
(30c71476d842) extracts and executes the actual callback with mocked
transports. The original fails and the fixed callback passes,
covering MDIO-only reads, Ethernet success and fallback, and MDIO
error handling. A separate UBSan run also detects misaligned stores
with the original code and passes with the fix.

These are callback-level tests, not hardware testing of your series.

> last three bytes of a three-register read are never written.

Small wording correction: I believe this should be "last six bytes".
The four-byte stores start at offsets 0, 1 and 2, covering bytes 0-5
of the 12-byte buffer.

Thanks for posting the fix!

Alexey