Skip to contentSkip to conversation

crypto: atmel-i2c - Fix wakeup fail

PATCH In review Jianhui Zhao 2 participants 2 messages Mar 10, 2020 – Mar 20, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 crypto: atmel-i2c - Fix wakeup fail

The wake token cannot be sent without ignoring the nack for the device address

---
 drivers/crypto/atmel-i2c.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/crypto/atmel-i2c.c +2 -1
index 1d3355913b40..e8e8281e027d 100644
@@ -176,7 +176,8 @@ static int atmel_i2c_wakeup(struct i2c_client *client)
 	 * device is idle, asleep or during waking up. Don't check for error
 	 * when waking up the device.
 	 */
-	i2c_master_send(client, i2c_priv->wake_token, i2c_priv->wake_token_sz);
+	i2c_transfer_buffer_flags(client, i2c_priv->wake_token,
+				i2c_priv->wake_token_sz, I2C_M_IGNORE_NAK);
 
 	/*
 	 * Wait to wake the device. Typical execution times for ecdh and genkey
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 7 lines · Jianhui Zhao

The wake token cannot be sent without ignoring the nack for the device address

---
 drivers/crypto/atmel-i2c.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt