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: NYicong Yang <yangyicong@hisilicon.com> Signed-off-by: NWangming Shao <shaowangming@h-partners.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com> Reviewed-by: NYicong Yang <yangyicong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录