]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "i2c: designware: detect when dynamic tar update is possible"
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Mon, 13 Feb 2017 09:18:19 +0000 (11:18 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 14 Feb 2017 21:10:26 +0000 (22:10 +0100)
commitf5272a4fc0a57d863eae8f89087e2297a7fb3227
tree386cd553531c6273bbcc0bdb672c671877c3ad4d
parentd8a6c3ea611576160f8ad3c7ef23dbc17d0dfa8e
Revert "i2c: designware: detect when dynamic tar update is possible"

This reverts commit f50a7d6a96d1d9b451e6ecf665fb472cee8bbff6.

It caused a regression on platforms where I2C controller is synthesized
with dynamic TAR update disabled. Detection code is testing is bit
DW_IC_CON_10BITADDR_MASTER in register DW_IC_CON read-only but fails to
restore original value in case bit is read-write.

Instead of fixing this we revert the commit since it was preparation for
the commit 1aa5930a8236 ("i2c: designware: do not disable adapter after
transfer") which was also reverted.

Reported-by: Shah Nehal-Bakulchandra <Nehal-bakulchandra.Shah@amd.com>
Reported-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Acked-By: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: <stable@vger.kernel.org> # v4.9+
Fixes: f50a7d6a96d1 ("i2c: designware: detect when dynamic tar update is possible")
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.c
drivers/i2c/busses/i2c-designware-core.h