]> git.baikalelectronics.ru Git - kernel.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)
commitd7a140b386b9c8be1d2acb8a54e29cbc30497f4e
treec9dd3e78e90f63d69a2763a8675d46802031feb5
parentbe9bda708ed5effc58e8dfea4dfbaa63859af1c7
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