From: Mårten Lindahl <redacted>
When the driver starts to send a message with the MASTER_ID field
set (high speed), the whole I2C_ADDR register is overwritten including
MASTER_ID as the SLV_ADDR_MAS field is set.
This patch preserves already written fields in I2C_ADDR when writing
SLV_ADDR_MAS.
Signed-off-by: Mårten Lindahl <redacted>
---
v2:
- Change commit message as the problem is not in the controller but in
the driver.
- Use MASTER_ID macro instead of reading back register contents.
drivers/i2c/busses/i2c-exynos5.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
From: Krzysztof Kozlowski <krzk@kernel.org> Date: 2021-02-17 08:36:23
On Tue, Feb 16, 2021 at 11:25:38PM +0100, Mårten Lindahl wrote:
From: Mårten Lindahl <redacted>
When the driver starts to send a message with the MASTER_ID field
set (high speed), the whole I2C_ADDR register is overwritten including
MASTER_ID as the SLV_ADDR_MAS field is set.
This patch preserves already written fields in I2C_ADDR when writing
SLV_ADDR_MAS.
Signed-off-by: Mårten Lindahl <redacted>
---
v2:
- Change commit message as the problem is not in the controller but in
the driver.
- Use MASTER_ID macro instead of reading back register contents.
drivers/i2c/busses/i2c-exynos5.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Tested-by: Krzysztof Kozlowski <krzk@kernel.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Wolfram Sang <wsa@kernel.org> Date: 2021-02-26 10:37:23
On Tue, Feb 16, 2021 at 11:25:38PM +0100, Mårten Lindahl wrote:
From: Mårten Lindahl <redacted>
When the driver starts to send a message with the MASTER_ID field
set (high speed), the whole I2C_ADDR register is overwritten including
MASTER_ID as the SLV_ADDR_MAS field is set.
This patch preserves already written fields in I2C_ADDR when writing
SLV_ADDR_MAS.
Signed-off-by: Mårten Lindahl <redacted>
From: Krzysztof Kozlowski <krzk@kernel.org> Date: 2021-02-26 10:41:15
On Fri, 26 Feb 2021 at 11:34, Wolfram Sang [off-list ref] wrote:
On Tue, Feb 16, 2021 at 11:25:38PM +0100, Mårten Lindahl wrote:
quoted
From: Mårten Lindahl <redacted>
When the driver starts to send a message with the MASTER_ID field
set (high speed), the whole I2C_ADDR register is overwritten including
MASTER_ID as the SLV_ADDR_MAS field is set.
This patch preserves already written fields in I2C_ADDR when writing
SLV_ADDR_MAS.
Signed-off-by: Mårten Lindahl <redacted>
Looks good. Is there a Fixes-tag we could apply?
The first commit, 2013 :)
Fixes: 8a73cd4cfa15 ("i2c: exynos5: add High Speed I2C controller driver")
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Wolfram Sang <wsa@kernel.org> Date: 2021-02-26 10:49:19
On Fri, Feb 26, 2021 at 11:40:00AM +0100, Krzysztof Kozlowski wrote:
On Fri, 26 Feb 2021 at 11:34, Wolfram Sang [off-list ref] wrote:
quoted
On Tue, Feb 16, 2021 at 11:25:38PM +0100, Mårten Lindahl wrote:
quoted
From: Mårten Lindahl <redacted>
When the driver starts to send a message with the MASTER_ID field
set (high speed), the whole I2C_ADDR register is overwritten including
MASTER_ID as the SLV_ADDR_MAS field is set.
This patch preserves already written fields in I2C_ADDR when writing
SLV_ADDR_MAS.
Signed-off-by: Mårten Lindahl <redacted>
Looks good. Is there a Fixes-tag we could apply?
The first commit, 2013 :)
Fixes: 8a73cd4cfa15 ("i2c: exynos5: add High Speed I2C controller driver")