Skip to content
Commit 8b062608 authored by Jan Luebbe's avatar Jan Luebbe Committed by Wolfram Sang
Browse files

i2c: core: only use set_scl for bus recovery after calling prepare_recovery



Using set_scl may be ineffective before calling the driver specific
prepare_recovery callback, which might change into a test mode. So
instead of setting SCL in i2c_generic_scl_recovery, move it to
i2c_generic_recovery (after the optional prepare_recovery).

Signed-off-by: default avatarJan Luebbe <jlu@pengutronix.de>
Acked-by: default avatarAlexander Sverdlin <alexander.sverdlin@nokia.com>
Tested-by: default avatarAlexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent d12c0aaf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment