i2c: bcm2835: Set up the rising/falling edge delays
authorEric Anholt <eric@anholt.net>
Thu, 8 Feb 2018 13:54:05 +0000 (14:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Feb 2018 09:19:39 +0000 (10:19 +0100)
commitfa465cd5681334cc7db63c9da999dcbb0137fb8c
tree551fce2b9b852c447f587e99e71ae4d4db5e9d2d
parent3e1d63cc7a5f6580c751d8f9e6be8c95791aa1cb
i2c: bcm2835: Set up the rising/falling edge delays

commit fe32a815f05c8568669a062587435e15f9345764 upstream.

We were leaving them in the power on state (or the state the firmware
had set up for some client, if we were taking over from them).  The
boot state was 30 core clocks, when we actually want to sample some
time after (to make sure that the new input bit has actually arrived).

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-bcm2835.c