fix review points.

This commit is contained in:
René van Dorst
2026-08-31 21:00:37 +02:00
parent f187261085
commit 2fa4686b33
+3 -1
View File
@@ -1833,10 +1833,12 @@ void init_smi(void)
SFR_DATA_U16 = 0x00ff; SFR_DATA_U16 = 0x00ff;
if (!machine_detected.isRTL8373) { if (!machine_detected.isRTL8373) {
if (machine.n_sfp == 2) { if (machine.n_sfp == 2) {
// 0x000000f0, only change the bytes that differs from the default.
SFR_DATA_0 = 0xf0; SFR_DATA_0 = 0xf0;
} else { } else {
// 0x000001f8, only change the bytes that differs from the default.
SFR_DATA_8 = 0x01;
SFR_DATA_0 = 0xf8; SFR_DATA_0 = 0xf8;
SFR_DATA_16 = 0x1f;
} }
} }
reg_write(RTL837X_REG_SMI_PORT_POLLING); reg_write(RTL837X_REG_SMI_PORT_POLLING);