mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +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;
|
rpstart = !stop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (error == IIC_ENOACK && bootverbose)
|
||||||
|
device_printf(dev, "Warning: NACK for slave address 0x%x\n",
|
||||||
|
msgs[i].slave >> 1);
|
||||||
|
|
||||||
if (!allocated)
|
if (!allocated)
|
||||||
sx_unlock(&sc->call_lock);
|
sx_unlock(&sc->call_lock);
|
||||||
return (error);
|
return (error);
|
||||||
|
|
Loading…
Reference in a new issue