]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: cadence: Fix the hold bit setting
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Tue, 5 Feb 2019 11:12:53 +0000 (16:42 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 15 Feb 2019 08:42:17 +0000 (09:42 +0100)
commita316dd79f1e731496d6ea5ceaed62d191c3c01fe
tree9b4bb7c99fa280365631179c3d71a44d2fd90369
parent4e909529f516bd2147809e584362606ca0f558b7
i2c: cadence: Fix the hold bit setting

In case the hold bit is not needed we are carrying the old values.
Fix the same by resetting the bit when not needed.

Fixes the sporadic i2c bus lockups on National Instruments
Zynq-based devices.

Fixes: 0a7c1ea03557 ("i2c: Add driver for Cadence I2C controller")
Reported-by: Kyle Roeschley <kyle.roeschley@ni.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Tested-by: Kyle Roeschley <kyle.roeschley@ni.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-cadence.c