summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>2018-09-03 15:11:11 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-26 08:33:53 +0200
commit933ce26bda5c1caa2e3cd77f0a6d93ce53f9a63a (patch)
tree1a89b563462946008ebe08af89dfc5877fb87bee /block
parentcb4009e1c6baf715a241ddc508ccf5c5f456f60e (diff)
downloadlinux-rt-933ce26bda5c1caa2e3cd77f0a6d93ce53f9a63a.tar.gz
i2c: xiic: Make the start and the byte count write atomic
commit ae7304c3ea28a3ba47a7a8312c76c654ef24967e upstream. Disable interrupts while configuring the transfer and enable them back. We have below as the programming sequence 1. start and slave address 2. byte count and stop In some customer platform there was a lot of interrupts between 1 and 2 and after slave address (around 7 clock cyles) if 2 is not executed then the transaction is nacked. To fix this case make the 2 writes atomic. Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> [wsa: added a newline for better readability] 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 'block')
0 files changed, 0 insertions, 0 deletions