Skip to content

Commit 2638268

Browse files
zhaojh329herbertx
authored andcommitted
crypto: atmel-i2c - Fix wakeup fail
The wake token cannot be sent without ignoring the nack for the device address Signed-off-by: Jianhui Zhao <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 0b5e43b commit 2638268

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/crypto/atmel-i2c.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ static int atmel_i2c_wakeup(struct i2c_client *client)
176176
* device is idle, asleep or during waking up. Don't check for error
177177
* when waking up the device.
178178
*/
179-
i2c_master_send(client, i2c_priv->wake_token, i2c_priv->wake_token_sz);
179+
i2c_transfer_buffer_flags(client, i2c_priv->wake_token,
180+
i2c_priv->wake_token_sz, I2C_M_IGNORE_NAK);
180181

181182
/*
182183
* Wait to wake the device. Typical execution times for ecdh and genkey

0 commit comments

Comments
 (0)