[Galaxy S II Q&A, Help & Troubleshooting] voku1987:
<4>6max8997-charger max8997-charger: max8997_charger_probe : MAX8997 Charger Driver Loading
<4>6max8922-charger max8922-charger: max8922_probe : MAX8922 Charger Driver Loading
<4>6max8922-charger max8922-charger: max8922_is_charging: charging state = 0x0
<4>6max8922-charger max8922-charger: max8922_is_charging: charging state = 0x1
<4>6max17042 9-0036: max17042_probe: MAX17042 Driver Loading
<4>6max17042 9-0036: max17042_probe : is enable (1)
<4>6max17042 9-0036: max17042_init_regs
<4>6max17042 9-0036: fuel alert soc (2)
<4>6max17042 9-0036: max17042_alert_init
<4>6wake enabled for irq 371
[COLOR="red"]<4>6max17042 9-0036: max17042_check_status : status_reg(0000)
<4>6max17042 9-0036: max17042_irq_init : config_reg(2314) irq(371)[/COLOR]
<4>6max17042 9-0036: MAX17042 Fuel-Gauge Ver 1460
<4>6max17042 9-0036: max17042_probe: MAX17042 Driver Loaded
<4>4i2c-core: driver [max17042] using legacy suspend method
<4>4i2c-core: driver [max17042] using method
[COLOR="Red"]<4>3max17042_low_batt_cb: fail to get battery ps
<4>6max17042 9-0036: fuel alert activated by polling check (raw:1)[/COLOR]
<4>6device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-devel@redhat.com
<4>6Bluetooth: HCI UART driver ver 2.2
<4>6Bluetooth: HCI H4 protocol initialized
<4>6cpuidle: using governor ladder
<4>6cpuidle: using governor menu
<4>6mshci: Mobile Storage Host Controller Interface driver
<4>6mshci: Copyright (c) 2011 Samsung Electronics Co., Ltd
<4>6dw_mmc dw_mmc: clock source 0: sclk_dwmci (90316800 Hz)
<4>3mmc0: Version ID 0x5342230a.
<4>6mmc0: FIFO WMARK FOR RX 0x20 WX 0x10. ###########
<4>6mmc0: MSHCI controller on samsung-mshci [dw_mmc] using IDMA
<4>6sdhci: Secure Digital Host Controller Interface driver
<4>6sdhci: Copyright(c) Pierre Ossman
<4>6s3c-sdhci s3c-sdhci.2: clock source 2: sclk_mmc (8888888 Hz)
<4>6mmc1: vtf_2.8v regulator found
<4>6mmc0: VYL00M: 15010056594c30304d19fc6c66369e25
<4>6mmc0 : 00 : 25 : 20110416 : 0.
<4>6mmc0: new high speed DDR MMC card at address 0001
<4>mmc_can_erase: called
<4>6mmcblk0: mmc0:0001 VYL00M 14.6 GiB
<4>4GPT:Primary header thinks Alt. header is not at the end of the disk.
<4>4GPT:30775295 != 30777343
<4>4GPT:Alternate GPT header not at the end of the disk.
<4>4GPT:30775295 != 30777343
<4>4GPT: Use GNU Parted to correct GPT errors.
<4>6 mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12
[COLOR="red"]<4>6max17042 9-0036: max17042_irq_thread : low batt released!! config_reg(2314)[/COLOR]
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_VCELL(ae96)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_TEMPERATURE(1f00)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_CONFIG(2314)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_VFOCV(ad92)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_SOC_VF(0189)
<4>3max17042 9-0036: max17042_irq_thread : PMIC IRQ (1), FUEL GAUGE IRQ (1)
[COLOR="red"]<4>6max17042 9-0036: max17042_check_status : status_reg(0400)
<4>3max17042_low_batt_cb: fail to get battery ps
<4>6max17042 9-0036: max17042_irq_thread : low batt alerted!! config_reg(2b14)[/COLOR]
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_VCELL(ae96)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_TEMPERATURE(1f00)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_CONFIG(2b14)
<4>6mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.2] using ADMA
<4>6wake enabled for irq 380
<4>6mmc1: card inserted.
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_VFOCV(ad92)
<4>6s3c-sdhci s3c-sdhci.3: clock source 2: sclk_mmc (8888888 Hz)
<4>6mmc2: no vmmc regulator found
<4>6mmc2: SDHCI controller on samsung-hsmmc [s3c-sdhci.3] using ADMA
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_SOC_VF(0189)
<4>3max17042 9-0036: max17042_irq_thread : PMIC IRQ (1), FUEL GAUGE IRQ (0)
[COLOR="red"]<4>6max17042 9-0036: max17042_check_status : status_reg(0400)
<4>3max17042 9-0036: failed to call low_batt_cb()
<4>6max17042 9-0036: max17042_irq_thread : low batt alerted!! config_reg(2b14)[/COLOR]
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_VCELL(adc8)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_TEMPERATURE(1f00)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_CONFIG(2b14)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_VFOCV(ad92)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_SOC_VF(0189)
<4>3max17042 9-0036: max17042_irq_thread : PMIC IRQ (1), FUEL GAUGE IRQ (0)
[COLOR="red"]<4>6max17042 9-0036: max17042_check_status : status_reg(0400)
<4>3max17042 9-0036: failed to call low_batt_cb()
<4>6max17042 9-0036: max17042_irq_thread : low batt alerted!! config_reg(2b14)[/COLOR]
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_VCELL(adc8)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_TEMPERATURE(1f00)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_CONFIG(2b14)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_VFOCV(ad92)
<4>6max17042 9-0036: max17042_irq_thread : MAX17042_REG_SOC_VF(0189)
<4>3max17042 9-0036: max17042_irq_thread : PMIC IRQ (1), FUEL GAUGE IRQ (0)
<4>6max17042 9-0036: max17042_check_status : status_reg(0400)
<4>3max17042 9-0036: failed to call low_batt_cb()
... loop ... and SOD

I read this from the log:

1.) If we boot with low battery (drivers/power/max17042_fuelgauge_u1.c -> max17042_work() -> "fuel alert activated by polling check") then "chip->is_fuel_alerted" is set to TRUE

1.1) for now we still have the same "irq"-value (MAX17042_REG_CONFIG(2b14)), but after "max17042_check_status" we have a new "irq"-value (MAX17042_REG_CONFIG(2b14)) ?!?

2.) but maybe the reason is "fail to get battery ps" -> drivers/power/max17042_fuelgauge_u1.c -> power_supply_get_by_name("battery"); ?!?

------------------

also if this isn't the dev-thread ;) here my suggestion to fix the problem (need testing) -> https://github.com/voku/siyahkernel3/commit/5c791d885b97aa749063906136ec4e85bbea9f16 && https://github.com/voku/siyahkernel3/commit/c26fd80d78645906a813b49e42585b16e8523f08