]> asedeno.scripts.mit.edu Git - linux.git/commit
i2c: sh_mobile: send STOP according to datasheet
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 10 Nov 2017 11:52:10 +0000 (12:52 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 27 Nov 2017 17:53:29 +0000 (18:53 +0100)
commita4fde7e5c9d6432ba863ee53debf27f10b370678
treec9dd3e78e90f63d69a2763a8675d46802031feb5
parent2967f9ca8b0dc8d924e0f14c55d1e73d9c6c4975
i2c: sh_mobile: send STOP according to datasheet

We initiate STOP (or REP_START) on the second last WAIT interrupt
currently. This works fine but is not according to the datasheet which
says to do it on the last WAIT interrupt. This also simplifies the code
quite a lot, so let's do it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sh_mobile.c