git: afe3bfec65da - main - iichid(4): Expect I2C address provided by iicbus(4) to be in 8-bit

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Fri, 27 Nov 2026 14:20:18 UTC
The branch main has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=afe3bfec65daf8d792528709d0df1bb97dda5376

commit afe3bfec65daf8d792528709d0df1bb97dda5376
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2026-11-27 14:19:56 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2026-11-27 14:19:56 +0000

    iichid(4): Expect I2C address provided by iicbus(4) to be in 8-bit
    
    format rather than in 7-bit to chase "acpi_iicbus: shift the ACPI slave
    address into the form iicbus(4) stores" commit.
---
 sys/dev/iicbus/iichid.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/iicbus/iichid.c b/sys/dev/iicbus/iichid.c
index e31f2cf5d575..bc19127ddf2b 100644
--- a/sys/dev/iicbus/iichid.c
+++ b/sys/dev/iicbus/iichid.c
@@ -1086,7 +1086,7 @@ iichid_probe(device_t dev)
 	if (acpi_disabled("iichid"))
 		return (ENXIO);
 
-	sc->addr = iicbus_get_addr(dev) << 1;
+	sc->addr = iicbus_get_addr(dev);
 	if (sc->addr == 0)
 		return (ENXIO);
 
@@ -1104,7 +1104,7 @@ iichid_probe(device_t dev)
 	} else
 		config_reg = (uint16_t)reg;
 
-	DPRINTF(sc, "  IICbus addr       : 0x%02X\n", sc->addr >> 1);
+	DPRINTF(sc, "  IICbus addr       : 0x%02X\n", sc->addr);
 	DPRINTF(sc, "  HID descriptor reg: 0x%02X\n", config_reg);
 
 	error = iichid_cmd_get_hid_desc(sc, config_reg, &sc->desc);