Skip to content

Commit b1ac670

Browse files
osctobeWolfram Sang
authored andcommitted
i2c: at91: fix clk_offset for sama5d2
In SAMA5D2 datasheet, TWIHS_CWGR register rescription mentions clock offset of 3 cycles (compared to 4 in eg. SAMA5D3). Cc: stable@vger.kernel.org # 5.2.x [needs applying to i2c-at91.c instead for earlier kernels] Fixes: 0ef6f32 ("i2c: at91: add support for new alternative command mode") Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
1 parent d12e3aa commit b1ac670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-at91-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static struct at91_twi_pdata sama5d4_config = {
142142

143143
static struct at91_twi_pdata sama5d2_config = {
144144
.clk_max_div = 7,
145-
.clk_offset = 4,
145+
.clk_offset = 3,
146146
.has_unre_flag = true,
147147
.has_alt_cmd = true,
148148
.has_hold_field = true,

0 commit comments

Comments
 (0)