Skip to contentSkip to conversation

usb: typec: tps6598x: handle block reads separately with plain-I2C adapters

PATCH Superseded Heikki Krogerus 1 participant 1 message Apr 24, 2018

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 usb: typec: tps6598x: handle block reads separately with plain-I2C adapters

Quoted 4 lines · Guenter Roeck

The chip should return the number of bytes it has available and then NAK the transfer. The chip driver should then report the number of bytes read to its caller. This is why i2c_smbus_read_block_data() and friends return not just 0/-errno, but the number of bytes read.

Thanks for the info.

Br,