i2c: davinci: Avoid zero value of CLKH
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Fri, 13 Jul 2018 15:20:17 +0000 (17:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 23 Jul 2018 18:04:35 +0000 (20:04 +0200)
commitcc8de9a68599b261244ea453b38678229f06ada7
tree6a044d0fa318471d034ee0fc011fa1b745290c53
parentd72e90f33aa4709ebecc5005562f52335e106a60
i2c: davinci: Avoid zero value of CLKH

If CLKH is set to 0 I2C clock is not generated at all, so avoid this value
and stretch the clock in this case.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-davinci.c