1. 13 3月, 2009 2 次提交
    • D
      ds2760_battery.c: fix division by zero · a4e3f91b
      Daniel Mack 提交于
      The 'battery remaining capacity' calculation in
      drivers/power/ds2760_battery.c lacks a parameter check to a division
      operation which causes the kernel to oops on my board.
      
      [   21.233750] Division by zero in kernel.
      [   21.237646] [<c002955c>] (__div0+0x0/0x20) from [<c012561c>] (Ldiv0+0x8/0x10)
      [   21.244816] [<c01bef34>] (ds2760_battery_read_status+0x0/0x2a4) from [<c01bf3a4>] (ds2760_battery_get_property+0x30/0xdc)
      [   21.255803]  r8:c03a22c0 r7:c7886100 r6:00000009 r5:c782fe7c r4:c7886084
      [   21.262518] [<c01bf374>] (ds2760_battery_get_property+0x0/0xdc) from [<c01bde98>] (power_supply_show_property+0x48/0x114)
      [   21.273480]  r6:c7996000 r5:00000009 r4:00000000
      [   21.278111] [<c01bde50>] (power_supply_show_property+0x0/0x114) from [<c01be158>] (power_supply_uevent+0x188/0x280)
      [   21.288537]  r8:00000001 r7:c7886100 r6:c7996000 r5:000000b4 r4:00000000
      [   21.295222] [<c01bdfd0>] (power_supply_uevent+0x0/0x280) from [<c015c664>] (dev_uevent+0xd4/0x10c)
      [   21.304199] [<c015c590>] (dev_uevent+0x0/0x10c) from [<c0128440>] (kobject_uevent_env+0x180/0x390)
      [   21.313170]  r5:00000000 r4:c78860ac
      [   21.316725] [<c01282c0>] (kobject_uevent_env+0x0/0x390) from [<c0128664>] (kobject_uevent+0x14/0x18)
      [   21.325850] [<c0128650>] (kobject_uevent+0x0/0x18) from [<c01bdc34>] (power_supply_changed_work+0x5c/0x70)
      [   21.335506] [<c01bdbd8>] (power_supply_changed_work+0x0/0x70) from [<c004d290>] (run_workqueue+0xbc/0x144)
      [   21.345167]  r4:c7812040
      [   21.347716] [<c004d1d4>] (run_workqueue+0x0/0x144) from [<c004d94c>] (worker_thread+0xa8/0xbc)
      [   21.356296]  r7:c7812040 r6:c7820b00 r5:c782ffa4 r4:c7812048
      [   21.361957] [<c004d8a4>] (worker_thread+0x0/0xbc) from [<c0051008>] (kthread+0x5c/0x94)
      [   21.369971]  r7:00000000 r6:c004d8a4 r5:c7812040 r4:c782e000
      [   21.375612] [<c0050fac>] (kthread+0x0/0x94) from [<c00403d0>] (do_exit+0x0/0x688)
      Signed-off-by: NDaniel Mack <daniel@caiaq.de>
      Cc: Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>
      Acked-by: NMatt Reimer <mreimer@vpop.net>
      Acked-by: NAnton Vorontsov <cbou@mail.ru>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a4e3f91b
    • D
      drivers/w1/masters/w1-gpio.c: fix read_bit() · 8d0df7a3
      Daniel Mack 提交于
      W1 master implementations are expected to return 0 or 1 from their
      read_bit() function.  However, not all platforms do return these values
      from gpio_get_value() - namely PXAs won't.  Hence the w1 gpio-master needs
      to break the result down to 0 or 1 itself.
      Signed-off-by: NDaniel Mack <daniel@caiaq.de>
      Cc: Ville Syrjala <syrjala@sci.fi>
      Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
      Cc: David Brownell <david-b@pacbell.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8d0df7a3
  2. 12 3月, 2009 2 次提交
  3. 11 3月, 2009 17 次提交
  4. 10 3月, 2009 2 次提交
    • M
      video: deferred io cleanup fix for sh_mobile_lcdcfb · 467fc498
      Magnus Damm 提交于
      Fix deferred io cleanup patch in the sh_mobile_lcdcfb driver.
      
      If probe() fails early the sh_mobile_lcdc_stop() function will
      be called to clean up deferred io. This patch modifies the
      code to only call fb_deferred_io_cleanup() after deferred io
      has been initialized.
      
      With this patch applied we no longer hit BUG_ON() inside
      fb_deferred_io_cleanup(). Triggers on a Migo-R with the
      SYS QVGA panel board unmounted.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      467fc498
    • D
      Revert "[CPUFREQ] Disable sysfs ui for p4-clockmod." · 129f8ae9
      Dave Jones 提交于
      This reverts commit e088e4c9.
      
      Removing the sysfs interface for p4-clockmod was flagged as a
      regression in bug 12826.
      
      Course of action:
       - Find out the remaining causes of overheating, and fix them
         if possible. ACPI should be doing the right thing automatically.
         If it isn't, we need to fix that.
       - mark p4-clockmod ui as deprecated
       - try again with the removal in six months.
      
      It's not really feasible to printk about the deprecation, because
      it needs to happen at all the sysfs entry points, which means adding
      a lot of strcmp("p4-clockmod".. calls to the core, which.. bleuch.
      Signed-off-by: NDave Jones <davej@redhat.com>
      129f8ae9
  5. 09 3月, 2009 2 次提交
  6. 08 3月, 2009 1 次提交
  7. 07 3月, 2009 1 次提交
  8. 06 3月, 2009 4 次提交
  9. 05 3月, 2009 9 次提交