lkml.org 
[lkml]   [2021]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] i2c: exynos5: Preserve high speed master code
On Tue, Feb 16, 2021 at 11:25:38PM +0100, Mårten Lindahl wrote:
> From: Mårten Lindahl <martenli@axis.com>
>
> 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 <martenli@axis.com>
> ---
> 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

\
 
 \ /
  Last update: 2021-02-17 11:39    [W:0.051 / U:2.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site