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

            Bug ID: 90161
           Summary: Can't register new acpi battery -> No battery life on
                    laptop
           Product: ACPI
           Version: 2.5
    Kernel Version: v3.19-rc1
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: low
          Priority: P1
         Component: Power-Battery
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Hi,

I am running kernel 3.19-rc1 on a "Mircosoft surface 3" .However recent (23
Nov) changes made in the file 'drivers/acpi/battery.c' in the commit
40e7fcb19293cbdff02c74cb0668413480f82ea1 will prevent the battery of my laptop
to be registered. the result in that the Battery driver will deferring the
Probing of the device forever. 
Removing the 2 commited lines (1181) fixes the issues in my case and the
battery shows up in '/sys/class/power_supply/BAT0'. 

Regards
--

**dmesg: Warning message before patch below :
[ 8551.693540] acpi PNP0C0A:00: Driver battery requests probe deferral

**dmesg: After the patch only one message is displayed about the battery :
[ 0.600055] ACPI: Battery Slot [BAT0] (battery present)



Specific patch reverting the commit:

diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index d98ba43..4983b98 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -1181,9 +1181,6 @@ static int acpi_battery_add(struct acpi_device *device)
     if (!device)
         return -EINVAL;

-    if (device->dep_unmet)
-        return -EPROBE_DEFER;
-
     battery = kzalloc(sizeof(struct acpi_battery), GFP_KERNEL);
     if (!battery)
         return -ENOMEM;
diff --git a/scripts/depmod.sh b/scripts/depmod.sh
index 122599b..9535d73 100755
--- a/scripts/depmod.sh
+++ b/scripts/depmod.sh
@@ -1,4 +1,5 @@
 #!/bin/sh
+exit 0
 #
 # A depmod wrapper used by the toplevel Makefile

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

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
acpi-bugzilla mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to