i2c: recovery: add get_bus_free callback

Some IP cores have an internal 'bus free' logic which may be more
advanced than just checking if SDA is high. Add a separate callback to
get this status. Filling it is optional.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
(cherry picked from commit 7ca5f6be7900ca753ed01c0202dc5f998a41f4ee)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2 files changed