aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2026-01-08 13:49:38 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2026-01-12 21:02:18 +0000
commit202dd86ec01f958d06485c6b6a35c84f1ccffe6a (patch)
treebe3dff32b88a9128b3bcf98799a5e1535f1042aa
parentef8c912aadadbdf40416cfde9241c56a08528e9a (diff)
bnxt: fix i2c read to allow access to different addresses
Allow reading of i2c addresses other than A0. A0 does provide most information, but doesn't provide things like module temps, and optical signal levels. Sponsored by: Netflix Reviewed by: sumit.saxena_broadcom.com Differential Revision: https://reviews.freebsd.org/D54590 MFC after: 3 days (cherry picked from commit b72cb305899ed30daf103b92818c199ccfc52378)
-rw-r--r--sys/dev/bnxt/bnxt_en/if_bnxt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bnxt/bnxt_en/if_bnxt.c b/sys/dev/bnxt/bnxt_en/if_bnxt.c
index 471e26a4b252..fa37d04e0884 100644
--- a/sys/dev/bnxt/bnxt_en/if_bnxt.c
+++ b/sys/dev/bnxt/bnxt_en/if_bnxt.c
@@ -4295,7 +4295,7 @@ bnxt_i2c_req(if_ctx_t ctx, struct ifi2creq *i2c)
return -EOPNOTSUPP;
- rc = bnxt_read_sfp_module_eeprom_info(softc, I2C_DEV_ADDR_A0, 0, 0, 0,
+ rc = bnxt_read_sfp_module_eeprom_info(softc, i2c->dev_addr, 0, 0, 0,
i2c->offset, i2c->len, data);
return rc;