Home
last modified time | relevance | path

Searched hist:"5515 ae11" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/i2c/busses/
H A Di2c-xlp9xx.c5515ae11 Tue Oct 10 01:27:56 CDT 2017 Kamlakant Patel <kamlakant.patel@cavium.com> 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: Jayachandran C <jnair@caviumnetworks.com>
Signed-off-by: Kamlakant Patel <kamlakant.patel@cavium.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
5515ae11 Tue Oct 10 01:27:56 CDT 2017 Kamlakant Patel <kamlakant.patel@cavium.com> 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: Jayachandran C <jnair@caviumnetworks.com>
Signed-off-by: Kamlakant Patel <kamlakant.patel@cavium.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>