mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 20:32:22 +00:00
1a2f474d32
If the I2C adapter that the PD controller is attached to
does not support SMBus protocol, the driver needs to handle
block reads separately. The first byte returned in block
read protocol will show the total number of bytes. It needs
to be stripped away.
This is handled separately in the driver only because right
now we have no way of requesting the used protocol with
regmap-i2c. This is in practice a workaround for what is
really a problem in regmap-i2c. The other option would have
been to register custom regmap, or not use regmap at all,
however, since the solution is very simple, I choose to use
it in this case for convenience. It is easy to remove once
we figure out how to handle this kind of cases in
regmap-i2c.
Fixes:
|
||
---|---|---|
.. | ||
fusb302 | ||
mux | ||
ucsi | ||
class.c | ||
Kconfig | ||
Makefile | ||
mux.c | ||
tcpm.c | ||
tps6598x.c | ||
typec_wcove.c |