i2c: designware: Fix standard mode speed when configuring the slave mode
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Wed, 9 Aug 2017 12:24:44 +0000 (15:24 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 14 Aug 2017 19:13:29 +0000 (21:13 +0200)
commit4e2d93de070ceaca5097f7ee5c311731b83208a0
tree62078d5e364e08b825ae829a8dca5c1dafa9a49f
parent984277a041d5ee4a65aaadf0307d67a7c401e11c
i2c: designware: Fix standard mode speed when configuring the slave mode

Code sets bit DW_IC_CON_SPEED_FAST (0x4) always when configuring the slave
mode. This results incorrect register value DW_IC_CON_SPEED_HIGH (0x6)
when OR'ed together with DW_IC_CON_SPEED_STD (0x2).

Remove this and let the code set the speed mode bits according to clock
frequency or default to fast mode.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-platdrv.c