Message ID | 20200310122551.27831-1-zhaojh329@gmail.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 2638268fa9ebe4f13a8aee89044719f2084f80c8 |
Headers | show |
Series | [v2] crypto: atmel-i2c - Fix wakeup fail | expand |
On Tue, Mar 10, 2020 at 08:25:51PM +0800, Jianhui Zhao wrote: > The wake token cannot be sent without ignoring the nack for the > device address > > Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com> > --- > drivers/crypto/atmel-i2c.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Patch applied. Thanks.
diff --git a/drivers/crypto/atmel-i2c.c b/drivers/crypto/atmel-i2c.c index 1d3355913b40..e8e8281e027d 100644 --- a/drivers/crypto/atmel-i2c.c +++ b/drivers/crypto/atmel-i2c.c @@ -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
The wake token cannot be sent without ignoring the nack for the device address Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com> --- drivers/crypto/atmel-i2c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)