ig4_iic: Warn on NACK

Some DSDTs define non-existent devices, warn the user when an access is attempted on one of these devices.

Reviewed by: imp, markj, Elliott Mitchell
Pull Request: https://github.com/freebsd/freebsd-src/pull/1125
This commit is contained in:
Ahmad Khalifa 2024-04-19 16:43:19 -06:00 committed by Warner Losh
parent d0cc25f770
commit 493715f9b8

View File

@ -675,6 +675,10 @@ ig4iic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs)
rpstart = !stop;
}
if (error == IIC_ENOACK && bootverbose)
device_printf(dev, "Warning: NACK for slave address 0x%x\n",
msgs[i].slave >> 1);
if (!allocated)
sx_unlock(&sc->call_lock);
return (error);