summaryrefslogtreecommitdiff
path: root/lib/test_bitmap.c
diff options
context:
space:
mode:
authorAlexander Monakov <amonakov@ispras.ru>2018-04-28 16:56:06 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-22 18:53:58 +0200
commitf4f05f62d3d19fc9c541a9186e511584ff9000b2 (patch)
tree946b86b877877c0e1162beacb02fa24d86017d49 /lib/test_bitmap.c
parentf9882808e355376a524c53bf2e66af12c775eb5b (diff)
i2c: designware: fix poll-after-enable regression
commit 06cb616b1bca7080824acfedb3d4c898e7a64836 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: fba4adbbf670 ("i2c: designware: must wait for enable") Signed-off-by: Alexander Monakov <amonakov@ispras.ru> Tested-by: Ben Gardner <gardner.ben@gmail.com> Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions