]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r273329, r273337 and r274415
authorloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 9 Jan 2015 02:25:19 +0000 (02:25 +0000)
committerloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 9 Jan 2015 02:25:19 +0000 (02:25 +0000)
commit2d03785fa3757db1d14204d9f50f9c53fb5d1d8d
tree2fb16f9e5a2b620c18b553496a981631866cce55
parent3bd92bbd41441537b2caa421784fae2cdfc74fe2
MFC r273329, r273337 and r274415

Add another wakeup() after actually set the bus as free.

This fix a race where the threads waiting for the bus would wake up early
and still see bus as busy.

While here, give a better description to wmesg for the two use cases we
have (bus and io waiting).

Fix the mtx_sleep() error checking, catch all errors and not only
EWOULDBLOCK.

Do not print any message at errors.  The errors are properly sent to upper
layers which should be able to deal with it, including printing the errors
when they need to.

The error message was quite annoying while scanning the i2c bus.

git-svn-id: svn://svn.freebsd.org/base/stable/10@276868 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/arm/broadcom/bcm2835/bcm2835_bsc.c