https://bugzilla.kernel.org/show_bug.cgi?id=218343

--- Comment #3 from Marc Dietrich (marvi...@gmx.de) ---
I guess this one here is the FW bug (from \_SB_.PCI0.LPCB.EC0_.BTST)

              DerefOf (NBST [Arg0]) [Zero] = Local0 // Battery state
                If ((Local0 & One))   // discharging ?
                {
                    // yes -> range check of current rate (local3)
                    If (((Local3 < 0x0190) || (Local3 > 0x1964)))
                    {
                        // out of range? use old rate
                        Local5 = DerefOf (DerefOf (NBST [Arg0]) [One])
                        // also out of range?
                        If (((Local5 < 0x0190) || (Local5 > 0x1964)))
                        {
                            Local3 = 0x0D7A  // 3450
                        }
                        Else
                        {
                            Local3 = Local5 // old rate
                        }
                    }

                    // ups, now always overwrite current rate with -1 !
                    Local3 = 0xFFFFFFFF  
                }
                ElseIf (((Local0 & 0x02) == Zero))   // not charging?
                {
                    Local3 = Zero
                }

So, I guess clearly a FW bug, a direct call to \_SB_.PCI0.LPCB.EC0_.BPR_ gives
the correct current while discharging and charging.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to