Searched hist:c9b0fa310ccc735f11afe52d3b14021c607931e4 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/power/fuel_gauge/ |
| H A D | fg_max17042.c | c9b0fa310ccc735f11afe52d3b14021c607931e4 Mon Dec 30 10:24:32 UTC 2013 Przemyslaw Marczak <p.marczak@samsung.com> fuelgauge: max17042: fix i2c read issue which causes infinity loop.
Issues: - reading i2c data by passing u16 pointer causes errors in read data. - max17042 status register fields have not only Power On Reset meaning so using proper mask is required.
Changes: - read i2c data to type u32 instead of u16 - avoids buffer overflow - compare FG status register using mask not just one bit value - add checking return value to functions fg read/write - add model lock and model check count - add debug msg
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Minkyu Kang <mk7.kang@samsung.com>
|