i2c: hisi: Add gpio bus recovery support
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I610G3 -------------------------------------------------------------- Add generic GPIO bus recovery support for i2c-hisi driver by registering the recovery information with core provided i2c_generic_scl_recovery() method. As the SCL/SDA pins are multiplexed with GPIO, we need to switch the pins mux to GPIO before recovery and switch back after recovery. It's implemented by the ACPI method in the i2c_bus_recovery_info->{prepare,unprepare}_recovery() method. Signed-off-by:Yicong Yang <yangyicong@hisilicon.com> Signed-off-by:
Wangming Shao <shaowangming@h-partners.com> Acked-by:
Xie XiuQi <xiexiuqi@huawei.com> Reviewed-by:
Yicong Yang <yangyicong@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment