]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a default implementation that returns ENODEV for start, repeat_start,
authorian <ian@FreeBSD.org>
Mon, 11 Sep 2017 23:47:49 +0000 (23:47 +0000)
committerian <ian@FreeBSD.org>
Mon, 11 Sep 2017 23:47:49 +0000 (23:47 +0000)
commit5623dee89935374b7e4fc16ad361bcc0636a89eb
treef3faa3ff293ce3b43d5c824c65d12c83585c13ba
parent698de0bfc6c729194244b5eb1decdeb2381cf6f2
Add a default implementation that returns ENODEV for start, repeat_start,
stop, read, and write methods.  Some controllers don't implement these
individual operations and have only a transfer method.  In that case, we
should return an indication that the device is present but doesn't support
the method, as opposed to the kobj default error ENXIO which makes it
look like the whole device is missing.  Userland tools such as i2c(8) can
use the differing return values to switch between the two different i2c
IO mechanisms.
sys/dev/iicbus/iicbus_if.m