summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-stu300.c
diff options
context:
space:
mode:
authorKamlakant Patel <kamlakant.patel@cavium.com>2017-10-10 08:27:56 +0200
committerWolfram Sang <wsa@the-dreams.de>2017-10-17 23:53:28 +0200
commit5515ae112172e20667f02b16f45fbf992923dcb0 (patch)
tree8f55504663432f580091f434941c3a3c268671ca /drivers/i2c/busses/i2c-stu300.c
parenti2c: xlp9xx: Get clock frequency with clk API (diff)
downloadlinux-5515ae112172e20667f02b16f45fbf992923dcb0.tar.xz
linux-5515ae112172e20667f02b16f45fbf992923dcb0.zip
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-stu300.c')
0 files changed, 0 insertions, 0 deletions