aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iicbus/iic_recover_bus.h
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Clean up some of my copyrights; add SPDX tag and remove All rights reserved.Ian Lepore2019-12-131-1/+2
| | | | Notes: svn path=/head/; revision=355685
* Add iic_recover_bus(), a helper function that can be used by any i2c driverIan Lepore2017-06-291-0/+57
which is able to manipulate the clock and data lines directly. When an i2c bus is hung by a slave device stuck in the middle of a transaction that didn't complete properly, this function manipulates the clock and data lines in a sequence known to reliably reset slave devices. The most common cause of a hung i2c bus is a system reboot in the middle of an i2c transfer (so it doesnt' happen often, but now there is a way other than power cycling to recover from it). Notes: svn path=/head/; revision=320461