aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorSebastian Reichel <[email protected]>2020-05-13 20:56:03 +0200
committerSebastian Reichel <[email protected]>2020-05-29 00:39:12 +0200
commitc4b12a2f3f3de670f6be5e96092a2cab0b877f1a (patch)
tree54910fad04ddaf449a400d25fd5a2f03da92d03e /scripts/gdb/linux/tasks.py
parentd6f56321089203a9f740c7dd7eba4de88f98f993 (diff)
power: supply: sbs-battery: simplify read_read_string_data
The SBS battery implements SMBus block reads. Currently the driver "emulates" this by doing an I2C byte read for the length followed by an I2C block read. The I2C subsystem actually provides a proper API for doing SMBus block reads, which can and should be used instead. The current implementation does not properly handle packet error checking (PEC). This change requires, that I2C bus drivers support I2C_M_RECV_LEN or directly provide the SMBus API to access device manufacturer and model name. Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions