mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +00:00
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:
parent
d0cc25f770
commit
493715f9b8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user