Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5515ae11 authored by Kamlakant Patel's avatar Kamlakant Patel Committed by Wolfram Sang
Browse files

i2c: xlp9xx: Handle I2C_M_RECV_LEN in msg->flags



The driver needs to handle the flag I2C_M_RECV_LEN during receive to
support SMBus emulation.

Update receive logic to handle the case where the length is received
as the first byte of a transaction.

Also update the code to handle I2C_CLIENT_PEC, which is set when the
client sends a packet error checking code byte.

Signed-off-by: default avatarJayachandran C <jnair@caviumnetworks.com>
Signed-off-by: default avatarKamlakant Patel <kamlakant.patel@cavium.com>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent c347b8fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment