git: 202dd86ec01f - stable/15 - bnxt: fix i2c read to allow access to different addresses
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 12 Jan 2026 21:29:44 UTC
The branch stable/15 has been updated by gallatin:
URL: https://cgit.FreeBSD.org/src/commit/?id=202dd86ec01f958d06485c6b6a35c84f1ccffe6a
commit 202dd86ec01f958d06485c6b6a35c84f1ccffe6a
Author: Andrew Gallatin <gallatin@FreeBSD.org>
AuthorDate: 2026-01-08 13:49:38 +0000
Commit: Andrew Gallatin <gallatin@FreeBSD.org>
CommitDate: 2026-01-12 21:02:18 +0000
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)
---
sys/dev/bnxt/bnxt_en/if_bnxt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;