* [PATCH] i2c: designware: Fix standard mode speed when configuring the slave mode
@ 2017-08-09 12:24 Jarkko Nikula
2017-08-14 19:13 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: Jarkko Nikula @ 2017-08-09 12:24 UTC (permalink / raw)
To: linux-i2c
Cc: Andy Shevchenko, Mika Westerberg, Wolfram Sang, Luis Oliveira,
Jarkko Nikula
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>
---
drivers/i2c/busses/i2c-designware-platdrv.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
index efb7191c6a6c..f55f2cdbbae3 100644
--- a/drivers/i2c/busses/i2c-designware-platdrv.c
+++ b/drivers/i2c/busses/i2c-designware-platdrv.c
@@ -198,8 +198,7 @@ static void i2c_dw_configure_slave(struct dw_i2c_dev *dev)
dev->functionality = I2C_FUNC_SLAVE | DW_IC_DEFAULT_FUNCTIONALITY;
dev->slave_cfg = DW_IC_CON_RX_FIFO_FULL_HLD_CTRL |
- DW_IC_CON_RESTART_EN | DW_IC_CON_STOP_DET_IFADDRESSED |
- DW_IC_CON_SPEED_FAST;
+ DW_IC_CON_RESTART_EN | DW_IC_CON_STOP_DET_IFADDRESSED;
dev->mode = DW_IC_SLAVE;
--
2.13.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] i2c: designware: Fix standard mode speed when configuring the slave mode
2017-08-09 12:24 [PATCH] i2c: designware: Fix standard mode speed when configuring the slave mode Jarkko Nikula
@ 2017-08-14 19:13 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2017-08-14 19:13 UTC (permalink / raw)
To: Jarkko Nikula; +Cc: linux-i2c, Andy Shevchenko, Mika Westerberg, Luis Oliveira
[-- Attachment #1: Type: text/plain, Size: 493 bytes --]
On Wed, Aug 09, 2017 at 03:24:44PM +0300, Jarkko Nikula wrote:
> 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>
Applied to for-current, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-14 19:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-09 12:24 [PATCH] i2c: designware: Fix standard mode speed when configuring the slave mode Jarkko Nikula
2017-08-14 19:13 ` Wolfram Sang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.