Commit f4f05f62 authored by Alexander Monakov's avatar Alexander Monakov Committed by Greg Kroah-Hartman
Browse files

i2c: designware: fix poll-after-enable regression



commit 06cb616b upstream.

Not all revisions of DW I2C controller implement the enable status register.
On platforms where that's the case (e.g. BG2CD and SPEAr ARM SoCs), waiting
for enable will time out as reading the unimplemented register yields zero.

It was observed that reading the IC_ENABLE_STATUS register once suffices to
avoid getting it stuck on Bay Trail hardware, so replace polling with one
dummy read of the register.

Fixes: fba4adbb ("i2c: designware: must wait for enable")
Signed-off-by: default avatarAlexander Monakov <amonakov@ispras.ru>
Tested-by: default avatarBen Gardner <gardner.ben@gmail.com>
Acked-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f9882808
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment