]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: sh_mobile: make sure to not accidently trigger STOP
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 15 Nov 2017 14:32:21 +0000 (15:32 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 27 Nov 2017 17:53:34 +0000 (18:53 +0100)
commit6cdbd701a5cad2d37249dd4a77fbde7a896df1b7
tree9a7ef07607e77a84ed80bdb4bc631147fb805302
parentd7a140b386b9c8be1d2acb8a54e29cbc30497f4e
i2c: sh_mobile: make sure to not accidently trigger STOP

The datasheet was a bit vague, but after consultation with HW designers,
we came to the conclusion that we should set the SCP bit always when
dealing only with the ICE bit. A set SCP bit is ignored, and thus fine,
a cleared one may trigger STOP on the bus.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sh_mobile.c