|SUCCESS| [2/2] net/ngbe: fix YT8531S-CA interrupt in combo mode
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Wed Nov 25 13:10:36 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/173146
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-25
Patch 2/2 (net/ngbe: fix YT8531S-CA interrupt in combo mode)
Info:
1. The return value of the YT_INTR read is ignored, so a failed read silently selects the special-config path.
```c
ngbe_read_phy_reg_mdi(hw, YT_INTR, 0, &value);
```
`value` is pre-initialised to 0. If the MDIO read fails, `value` stays 0 and the `value != 0x31 && value != 0x32` branch runs. That writes the extended config to a part the commit message says should skip it. Consider checking the return value and skipping the extra writes when the read fails.
2. The new config block uses undocumented magic register addresses and values, and the 0x31/0x32 discriminator is not explained.
```c
ngbe_write_phy_reg_ext_yt(hw, 0xa071, 0, 0x9007);
ngbe_write_phy_reg_ext_yt(hw, 0x52, 0, 0x231d);
```
A short comment would help future maintainers of this base code. It should say what the 0x31/0x32 values in YT_INTR identify and what the extended writes configure.
Review-Result: CLEAN
More information about the test-report
mailing list