Revert "power: supply: sbs-battery: simplify read_read_string_data"
authorSebastian Reichel <sre@kernel.org>
Tue, 2 Jun 2020 14:49:08 +0000 (16:49 +0200)
committerSebastian Reichel <sre@kernel.org>
Tue, 2 Jun 2020 15:08:33 +0000 (17:08 +0200)
commit972eabb97aab8e5d86c79f28a707e0d1e8a1d1a0
tree3026860565d596c3c6ee878d53ac0c003eaef3bb
parentcf1eb321d1cd134da0083f6430301a09f8012de1
Revert "power: supply: sbs-battery: simplify read_read_string_data"

The commit is a nice cleanup, but breaks booting on exynos5 based
chromebooks. It's seems to come down to exynos5's i2c driver not
implementing I2C_FUNC_SMBUS_READ_BLOCK_DATA. It's not yet clear
why that breaks boot / massively slows it down when userspace
starts, so revert the problematic patch.

This reverts commit c4b12a2f3f3de670f6be5e96092a2cab0b877f1a.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sbs-battery.c