OSDN Git Service

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)
commit4ed152c4daf32d2cd4a5285f3aaca3a4c89a31fb
tree9a7ef07607e77a84ed80bdb4bc631147fb805302
parenta4fde7e5c9d6432ba863ee53debf27f10b370678
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