Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <zhaojh329@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Jianhui Zhao and committed by
Herbert Xu
2638268f 0b5e43bc

+2 -1
+2 -1
drivers/crypto/atmel-i2c.c
··· 176 176 * device is idle, asleep or during waking up. Don't check for error 177 177 * when waking up the device. 178 178 */ 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); 180 181 181 182 /* 182 183 * Wait to wake the device. Typical execution times for ecdh and genkey