|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:00:35 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: the return value of `ngbe_read_phy_reg_mdi()` is ignored.
```c
	ngbe_read_phy_reg_mdi(hw, YT_INTR, 0, &value);
```
If the MDIO read fails, `value` stays 0 and the extra configuration below is applied to the part anyway. Consider checking the return and either skipping the extra writes or propagating the error.

Info: the new register writes use bare magic numbers.
```c
	ngbe_write_phy_reg_ext_yt(hw, 0xa071, 0, 0x9007);
	ngbe_write_phy_reg_ext_yt(hw, 0x52, 0, 0x231d);
	ngbe_write_phy_reg_ext_yt(hw, 0x51, 0, 0x04a9);
	ngbe_write_phy_reg_ext_yt(hw, 0x57, 0, 0x274c);
```
The same applies to the `0x31`/`0x32` YT_INTR comparison values. Named defines, or a short comment saying what each write configures, would make the sequence easier to maintain.

Review-Result: CLEAN


More information about the test-report mailing list