<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/platform, branch v3.2-rc1</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux</title>
<updated>2011-11-07T03:44:47+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-11-07T03:44:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=32aaeffbd4a7457bf2f7448b33b5946ff2a960eb'/>
<id>32aaeffbd4a7457bf2f7448b33b5946ff2a960eb</id>
<content type='text'>
* 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
  Revert "tracing: Include module.h in define_trace.h"
  irq: don't put module.h into irq.h for tracking irqgen modules.
  bluetooth: macroize two small inlines to avoid module.h
  ip_vs.h: fix implicit use of module_get/module_put from module.h
  nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
  include: replace linux/module.h with "struct module" wherever possible
  include: convert various register fcns to macros to avoid include chaining
  crypto.h: remove unused crypto_tfm_alg_modname() inline
  uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
  pm_runtime.h: explicitly requires notifier.h
  linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
  miscdevice.h: fix up implicit use of lists and types
  stop_machine.h: fix implicit use of smp.h for smp_processor_id
  of: fix implicit use of errno.h in include/linux/of.h
  of_platform.h: delete needless include &lt;linux/module.h&gt;
  acpi: remove module.h include from platform/aclinux.h
  miscdevice.h: delete unnecessary inclusion of module.h
  device_cgroup.h: delete needless include &lt;linux/module.h&gt;
  net: sch_generic remove redundant use of &lt;linux/module.h&gt;
  net: inet_timewait_sock doesnt need &lt;linux/module.h&gt;
  ...

Fix up trivial conflicts (other header files, and  removal of the ab3550 mfd driver) in
 - drivers/media/dvb/frontends/dibx000_common.c
 - drivers/media/video/{mt9m111.c,ov6650.c}
 - drivers/mfd/ab3550-core.c
 - include/linux/dmaengine.h
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
  Revert "tracing: Include module.h in define_trace.h"
  irq: don't put module.h into irq.h for tracking irqgen modules.
  bluetooth: macroize two small inlines to avoid module.h
  ip_vs.h: fix implicit use of module_get/module_put from module.h
  nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
  include: replace linux/module.h with "struct module" wherever possible
  include: convert various register fcns to macros to avoid include chaining
  crypto.h: remove unused crypto_tfm_alg_modname() inline
  uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
  pm_runtime.h: explicitly requires notifier.h
  linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
  miscdevice.h: fix up implicit use of lists and types
  stop_machine.h: fix implicit use of smp.h for smp_processor_id
  of: fix implicit use of errno.h in include/linux/of.h
  of_platform.h: delete needless include &lt;linux/module.h&gt;
  acpi: remove module.h include from platform/aclinux.h
  miscdevice.h: delete unnecessary inclusion of module.h
  device_cgroup.h: delete needless include &lt;linux/module.h&gt;
  net: sch_generic remove redundant use of &lt;linux/module.h&gt;
  net: inet_timewait_sock doesnt need &lt;linux/module.h&gt;
  ...

Fix up trivial conflicts (other header files, and  removal of the ab3550 mfd driver) in
 - drivers/media/dvb/frontends/dibx000_common.c
 - drivers/media/video/{mt9m111.c,ov6650.c}
 - drivers/mfd/ab3550-core.c
 - include/linux/dmaengine.h
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'akpm' (Andrew's incoming)</title>
<updated>2011-11-01T00:46:07+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-11-01T00:46:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=094803e0aab3fe75bbf8202a8f4b5280eaade375'/>
<id>094803e0aab3fe75bbf8202a8f4b5280eaade375</id>
<content type='text'>
Quoth Andrew:

 - Most of MM.  Still waiting for the poweroc guys to get off their
   butts and review some threaded hugepages patches.

 - alpha

 - vfs bits

 - drivers/misc

 - a few core kerenl tweaks

 - printk() features

 - MAINTAINERS updates

 - backlight merge

 - leds merge

 - various lib/ updates

 - checkpatch updates

* akpm: (127 commits)
  epoll: fix spurious lockdep warnings
  checkpatch: add a --strict check for utf-8 in commit logs
  kernel.h/checkpatch: mark strict_strto&lt;foo&gt; and simple_strto&lt;foo&gt; as obsolete
  llist-return-whether-list-is-empty-before-adding-in-llist_add-fix
  wireless: at76c50x: follow rename pack_hex_byte to hex_byte_pack
  fat: follow rename pack_hex_byte() to hex_byte_pack()
  security: follow rename pack_hex_byte() to hex_byte_pack()
  kgdb: follow rename pack_hex_byte() to hex_byte_pack()
  lib: rename pack_hex_byte() to hex_byte_pack()
  lib/string.c: fix strim() semantics for strings that have only blanks
  lib/idr.c: fix comment for ida_get_new_above()
  lib/percpu_counter.c: enclose hotplug only variables in hotplug ifdef
  lib/bitmap.c: quiet sparse noise about address space
  lib/spinlock_debug.c: print owner on spinlock lockup
  lib/kstrtox: common code between kstrto*() and simple_strto*() functions
  drivers/leds/leds-lp5521.c: check if reset is successful
  leds: turn the blink_timer off before starting to blink
  leds: save the delay values after a successful call to blink_set()
  drivers/leds/leds-gpio.c: use gpio_get_value_cansleep() when initializing
  drivers/leds/leds-lm3530.c: add __devexit_p where needed
  ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Quoth Andrew:

 - Most of MM.  Still waiting for the poweroc guys to get off their
   butts and review some threaded hugepages patches.

 - alpha

 - vfs bits

 - drivers/misc

 - a few core kerenl tweaks

 - printk() features

 - MAINTAINERS updates

 - backlight merge

 - leds merge

 - various lib/ updates

 - checkpatch updates

* akpm: (127 commits)
  epoll: fix spurious lockdep warnings
  checkpatch: add a --strict check for utf-8 in commit logs
  kernel.h/checkpatch: mark strict_strto&lt;foo&gt; and simple_strto&lt;foo&gt; as obsolete
  llist-return-whether-list-is-empty-before-adding-in-llist_add-fix
  wireless: at76c50x: follow rename pack_hex_byte to hex_byte_pack
  fat: follow rename pack_hex_byte() to hex_byte_pack()
  security: follow rename pack_hex_byte() to hex_byte_pack()
  kgdb: follow rename pack_hex_byte() to hex_byte_pack()
  lib: rename pack_hex_byte() to hex_byte_pack()
  lib/string.c: fix strim() semantics for strings that have only blanks
  lib/idr.c: fix comment for ida_get_new_above()
  lib/percpu_counter.c: enclose hotplug only variables in hotplug ifdef
  lib/bitmap.c: quiet sparse noise about address space
  lib/spinlock_debug.c: print owner on spinlock lockup
  lib/kstrtox: common code between kstrto*() and simple_strto*() functions
  drivers/leds/leds-lp5521.c: check if reset is successful
  leds: turn the blink_timer off before starting to blink
  leds: save the delay values after a successful call to blink_set()
  drivers/leds/leds-gpio.c: use gpio_get_value_cansleep() when initializing
  drivers/leds/leds-lm3530.c: add __devexit_p where needed
  ...
</pre>
</div>
</content>
</entry>
<entry>
<title>lis3: change exported function to use passed parameter</title>
<updated>2011-11-01T00:30:52+00:00</updated>
<author>
<name>Éric Piel</name>
<email>eric.piel@tremplin-utc.net</email>
</author>
<published>2011-11-01T00:11:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=e1e5687d75ef0ea5cbae63df48ff2fdcb5306f66'/>
<id>e1e5687d75ef0ea5cbae63df48ff2fdcb5306f66</id>
<content type='text'>
Change exported functions to use the device given as parameter
instead of the global one.

Signed-off-by: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Signed-off-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Witold Pilat &lt;witold.pilat@gmail.com&gt;
Cc: Lyall Pearce &lt;lyall.pearce@hp.com&gt;
Cc: Malte Starostik &lt;m-starostik@versanet.de&gt;
Cc: Thadeu Lima de Souza Cascardo &lt;cascardo@holoscopio.com&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change exported functions to use the device given as parameter
instead of the global one.

Signed-off-by: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Signed-off-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Witold Pilat &lt;witold.pilat@gmail.com&gt;
Cc: Lyall Pearce &lt;lyall.pearce@hp.com&gt;
Cc: Malte Starostik &lt;m-starostik@versanet.de&gt;
Cc: Thadeu Lima de Souza Cascardo &lt;cascardo@holoscopio.com&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hp_accel: add HP ProBook 655x</title>
<updated>2011-11-01T00:30:52+00:00</updated>
<author>
<name>Éric Piel</name>
<email>eric.piel@tremplin-utc.net</email>
</author>
<published>2011-11-01T00:10:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=d0b6a971ed034054897df42f3e3000b4f57cccc5'/>
<id>d0b6a971ed034054897df42f3e3000b4f57cccc5</id>
<content type='text'>
Add axis correction for HP ProBook 6555b.

Signed-off-by: Malte Starostik &lt;m-starostik@versanet.de&gt;
Signed-off-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Witold Pilat &lt;witold.pilat@gmail.com&gt;
Cc: Lyall Pearce &lt;lyall.pearce@hp.com&gt;
Cc: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Cc: Thadeu Lima de Souza Cascardo &lt;cascardo@holoscopio.com&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add axis correction for HP ProBook 6555b.

Signed-off-by: Malte Starostik &lt;m-starostik@versanet.de&gt;
Signed-off-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Witold Pilat &lt;witold.pilat@gmail.com&gt;
Cc: Lyall Pearce &lt;lyall.pearce@hp.com&gt;
Cc: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Cc: Thadeu Lima de Souza Cascardo &lt;cascardo@holoscopio.com&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lis3: add support for HP EliteBook 8540w</title>
<updated>2011-11-01T00:30:52+00:00</updated>
<author>
<name>Éric Piel</name>
<email>eric.piel@tremplin-utc.net</email>
</author>
<published>2011-11-01T00:10:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=cdeaf62255d171dd159f0bdc453efd7ff31c6916'/>
<id>cdeaf62255d171dd159f0bdc453efd7ff31c6916</id>
<content type='text'>
Add axis correction for HP EliteBook 8540w.

Reported-by: Lyall Pearce &lt;lyall.pearce@hp.com&gt;
Signed-off-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Witold Pilat &lt;witold.pilat@gmail.com&gt;
Cc: Malte Starostik &lt;m-starostik@versanet.de&gt;
Cc: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Cc: Thadeu Lima de Souza Cascardo &lt;cascardo@holoscopio.com&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add axis correction for HP EliteBook 8540w.

Reported-by: Lyall Pearce &lt;lyall.pearce@hp.com&gt;
Signed-off-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Witold Pilat &lt;witold.pilat@gmail.com&gt;
Cc: Malte Starostik &lt;m-starostik@versanet.de&gt;
Cc: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Cc: Thadeu Lima de Souza Cascardo &lt;cascardo@holoscopio.com&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lis3: add support for HP EliteBook 2730p</title>
<updated>2011-11-01T00:30:52+00:00</updated>
<author>
<name>Éric Piel</name>
<email>eric.piel@tremplin-utc.net</email>
</author>
<published>2011-11-01T00:10:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a17b81beeb76a7cc3551fc17d7aa73b303dee52c'/>
<id>a17b81beeb76a7cc3551fc17d7aa73b303dee52c</id>
<content type='text'>
Add axis correction for HP EliteBook 2730p.

Tested-by: Witold Pilat &lt;witold.pilat@gmail.com&gt;
Signed-off-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Lyall Pearce &lt;lyall.pearce@hp.com&gt;
Cc: Malte Starostik &lt;m-starostik@versanet.de&gt;
Cc: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Cc: Thadeu Lima de Souza Cascardo &lt;cascardo@holoscopio.com&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add axis correction for HP EliteBook 2730p.

Tested-by: Witold Pilat &lt;witold.pilat@gmail.com&gt;
Signed-off-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Lyall Pearce &lt;lyall.pearce@hp.com&gt;
Cc: Malte Starostik &lt;m-starostik@versanet.de&gt;
Cc: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Cc: Thadeu Lima de Souza Cascardo &lt;cascardo@holoscopio.com&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lis3lv02d: avoid divide by zero due to unchecked</title>
<updated>2011-11-01T00:30:51+00:00</updated>
<author>
<name>Éric Piel</name>
<email>eric.piel@tremplin-utc.net</email>
</author>
<published>2011-11-01T00:10:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=1510dd5954be5070e46b155eb32362dc73d9e9cb'/>
<id>1510dd5954be5070e46b155eb32362dc73d9e9cb</id>
<content type='text'>
After an "unexpected" reboot, I found this Oops in my logs:

divide error: 0000 [#1] PREEMPT SMP=20
CPU 0=20
Modules linked in: lis3lv02d hp_wmi input_polldev [...]
Pid: 390, comm: modprobe Tainted: G         C  2.6.39-rc7-wl+=20
RIP: 0010:[&lt;ffffffffa014b427&gt;]  [&lt;ffffffffa014b427&gt;]
		 lis3lv02d_poweron+0x4e/0x94 [lis3lv02d]
RSP: 0018:ffff8801d6407cf8  EFLAGS: 00010246
RAX: 0000000000000bb8 RBX: ffffffffa014e000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffea00066e4708 RDI: ffff8801df002700
RBP: ffff8801d6407d18 R08: ffffea00066c5a30 R09: ffffffff812498c9
R10: ffff8801d7bfcea0 R11: ffff8801d7bfce10 R12: 0000000000000bb8
R13: 00000000ffffffda R14: ffffffffa0154120 R15: ffffffffa0154030
=46S:  00007fc0705db700(0000) GS:ffff8801dfa00000(0000) knlGS:0
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00007f33549174f0 CR3: 00000001d65c9000 CR4: 00000000000406f0
Process modprobe (pid: 390, threadinfo ffff8801d6406000, task ffff8801d6b40=
000)
Stack:
 ffffffffa0154120 62ffffffa0154030 ffffffffa014e000 00000000ffffffea
 ffff8801d6407d58 ffffffffa014bcc1 0000000000000000 0000000000000048
 ffff8801d8bae800 00000000ffffffea 00000000ffffffda ffffffffa0154120
Call Trace:
 [&lt;ffffffffa014bcc1&gt;] lis3lv02d_init_device+0x1ce/0x496 [lis3lv02d]
 [&lt;ffffffffa01522ff&gt;] lis3lv02d_add+0x10f/0x17c [hp_accel]
 [&lt;ffffffff81233e11&gt;] acpi_device_probe+0x49/0x117
[...]
Code: 3a 75 06 80 4d ef 50 eb 04 80 4d ef 40 0f b6 55 ef be 21
00 00 00 48 89 df ff 53 18 44 8b 63 6c e8 3e fc ff ff 89 c1 44
89 e0 99 &lt;f7&gt; f9 89 c7 e8 93 82 ef e0 48 83 7b 30 00 74 2d 45
31 e4 80 7b=20
RIP  [&lt;ffffffffa014b427&gt;] lis3lv02d_poweron+0x4e/0x94 [lis3lv02d]
 RSP &lt;ffff8801d6407cf8&gt;

&gt;From my POV, it looks like the hardware is not working as expected
and returns a bogus data rate. The driver doesn't check the result
and directly uses it as some sort of divisor in some places:

msleep(lis3-&gt;pwron_delay / lis3lv02d_get_odr());

Under this circumstances, this could very well cause the
"divide by zero" exception from above.

For now, I fixed it the easiest and most obvious way:
Check if the result is sane and if it isn't use a sane default
instead. I went for "100" in the latter case, simply because
/sys/devices/platform/lis3lv02d/rate returns it on a successful
boot.

Signed-off-by: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Witold Pilat &lt;witold.pilat@gmail.com&gt;
Cc: Lyall Pearce &lt;lyall.pearce@hp.com&gt;
Cc: Malte Starostik &lt;m-starostik@versanet.de&gt;
Cc: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Cc: Thadeu Lima de Souza Cascardo &lt;cascardo@holoscopio.com&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After an "unexpected" reboot, I found this Oops in my logs:

divide error: 0000 [#1] PREEMPT SMP=20
CPU 0=20
Modules linked in: lis3lv02d hp_wmi input_polldev [...]
Pid: 390, comm: modprobe Tainted: G         C  2.6.39-rc7-wl+=20
RIP: 0010:[&lt;ffffffffa014b427&gt;]  [&lt;ffffffffa014b427&gt;]
		 lis3lv02d_poweron+0x4e/0x94 [lis3lv02d]
RSP: 0018:ffff8801d6407cf8  EFLAGS: 00010246
RAX: 0000000000000bb8 RBX: ffffffffa014e000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffea00066e4708 RDI: ffff8801df002700
RBP: ffff8801d6407d18 R08: ffffea00066c5a30 R09: ffffffff812498c9
R10: ffff8801d7bfcea0 R11: ffff8801d7bfce10 R12: 0000000000000bb8
R13: 00000000ffffffda R14: ffffffffa0154120 R15: ffffffffa0154030
=46S:  00007fc0705db700(0000) GS:ffff8801dfa00000(0000) knlGS:0
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00007f33549174f0 CR3: 00000001d65c9000 CR4: 00000000000406f0
Process modprobe (pid: 390, threadinfo ffff8801d6406000, task ffff8801d6b40=
000)
Stack:
 ffffffffa0154120 62ffffffa0154030 ffffffffa014e000 00000000ffffffea
 ffff8801d6407d58 ffffffffa014bcc1 0000000000000000 0000000000000048
 ffff8801d8bae800 00000000ffffffea 00000000ffffffda ffffffffa0154120
Call Trace:
 [&lt;ffffffffa014bcc1&gt;] lis3lv02d_init_device+0x1ce/0x496 [lis3lv02d]
 [&lt;ffffffffa01522ff&gt;] lis3lv02d_add+0x10f/0x17c [hp_accel]
 [&lt;ffffffff81233e11&gt;] acpi_device_probe+0x49/0x117
[...]
Code: 3a 75 06 80 4d ef 50 eb 04 80 4d ef 40 0f b6 55 ef be 21
00 00 00 48 89 df ff 53 18 44 8b 63 6c e8 3e fc ff ff 89 c1 44
89 e0 99 &lt;f7&gt; f9 89 c7 e8 93 82 ef e0 48 83 7b 30 00 74 2d 45
31 e4 80 7b=20
RIP  [&lt;ffffffffa014b427&gt;] lis3lv02d_poweron+0x4e/0x94 [lis3lv02d]
 RSP &lt;ffff8801d6407cf8&gt;

&gt;From my POV, it looks like the hardware is not working as expected
and returns a bogus data rate. The driver doesn't check the result
and directly uses it as some sort of divisor in some places:

msleep(lis3-&gt;pwron_delay / lis3lv02d_get_odr());

Under this circumstances, this could very well cause the
"divide by zero" exception from above.

For now, I fixed it the easiest and most obvious way:
Check if the result is sane and if it isn't use a sane default
instead. I went for "100" in the latter case, simply because
/sys/devices/platform/lis3lv02d/rate returns it on a successful
boot.

Signed-off-by: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Éric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Witold Pilat &lt;witold.pilat@gmail.com&gt;
Cc: Lyall Pearce &lt;lyall.pearce@hp.com&gt;
Cc: Malte Starostik &lt;m-starostik@versanet.de&gt;
Cc: Ilkka Koskinen &lt;ilkka.koskinen@nokia.com&gt;
Cc: Thadeu Lima de Souza Cascardo &lt;cascardo@holoscopio.com&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>x86: fix up files really needing to include module.h</title>
<updated>2011-10-31T23:30:36+00:00</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2011-05-27T16:33:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=7c52d55170ce84ddf9c0ad4e020ef1d7a97975a7'/>
<id>7c52d55170ce84ddf9c0ad4e020ef1d7a97975a7</id>
<content type='text'>
These files aren't just exporting symbols -- they are also defining
a MODULE_LICENSE etc. so give them the full module.h file.

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These files aren't just exporting symbols -- they are also defining
a MODULE_LICENSE etc. so give them the full module.h file.

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86</title>
<updated>2011-10-31T23:10:33+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-10-31T23:10:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=91e67a996c60a347ad7b918a74efb0f6b3b274c3'/>
<id>91e67a996c60a347ad7b918a74efb0f6b3b274c3</id>
<content type='text'>
* 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86: (45 commits)
  acer-wmi: replaced the hard coded bitmap by the communication devices bitmap from SMBIOS
  acer-wmi: check the existence of internal wireless device when set capability
  acer-wmi: add ACER_WMID_v2 interface flag to represent new notebooks
  sony-laptop:irq: Remove IRQF_DISABLED
  asus-laptop: Add rfkill support for Pegatron Lucid tablet
  asus-laptop: pega_accel - Report accelerometer orientation change through udev
  asus-laptop: fix module description
  asus-laptop: hide leds on Pegatron Lucid
  asus-laptop: Pegatron Lucid accelerometer
  asus-laptop: allow boot time control of Pegatron ALS sensor
  Platform: samsung_laptop: add support for X520 machines.
  platform: samsung_laptop: add dmi information for Samsung R700 laptops
  hp_accel: Add axis-mapping for HP ProBook / EliteBook
  hp_accel: Add a new PNP id
  WMI: properly cleanup devices to avoid crashes
  ideapad: remove sysfs node for cfg
  ideapad: add debugfs support
  ideapad: add event for Novo key
  ideapad: change parameter of ideapad_sync_rfk_state
  ideapad: define vpc commands
  ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86: (45 commits)
  acer-wmi: replaced the hard coded bitmap by the communication devices bitmap from SMBIOS
  acer-wmi: check the existence of internal wireless device when set capability
  acer-wmi: add ACER_WMID_v2 interface flag to represent new notebooks
  sony-laptop:irq: Remove IRQF_DISABLED
  asus-laptop: Add rfkill support for Pegatron Lucid tablet
  asus-laptop: pega_accel - Report accelerometer orientation change through udev
  asus-laptop: fix module description
  asus-laptop: hide leds on Pegatron Lucid
  asus-laptop: Pegatron Lucid accelerometer
  asus-laptop: allow boot time control of Pegatron ALS sensor
  Platform: samsung_laptop: add support for X520 machines.
  platform: samsung_laptop: add dmi information for Samsung R700 laptops
  hp_accel: Add axis-mapping for HP ProBook / EliteBook
  hp_accel: Add a new PNP id
  WMI: properly cleanup devices to avoid crashes
  ideapad: remove sysfs node for cfg
  ideapad: add debugfs support
  ideapad: add event for Novo key
  ideapad: change parameter of ideapad_sync_rfk_state
  ideapad: define vpc commands
  ...
</pre>
</div>
</content>
</entry>
<entry>
<title>acer-wmi: replaced the hard coded bitmap by the communication devices bitmap from SMBIOS</title>
<updated>2011-10-24T14:52:42+00:00</updated>
<author>
<name>Lee, Chun-Yi</name>
<email>joeyli.kernel@gmail.com</email>
</author>
<published>2011-10-06T11:06:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=1d1fc8a75fec3a2b29cc5864d45c5d03048f62e0'/>
<id>1d1fc8a75fec3a2b29cc5864d45c5d03048f62e0</id>
<content type='text'>
Before set communication devices state, we need query out all devices state to set
the states bitmap. That will be better use the devices bitmap in SMBIOS type Aah
instead of hardcode in driver.

Tested on Acer Travelmate 8572.

Cc: Carlos Corbacho &lt;carlos@strangeworlds.co.uk&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Dmitry Torokhov &lt;dtor@mail.ru&gt;
Cc: Corentin Chary &lt;corentincj@iksaif.net&gt;
Cc: Thomas Renninger &lt;trenn@suse.de&gt;
Signed-off-by: Lee, Chun-Yi &lt;jlee@suse.com&gt;
Signed-off-by: Matthew Garrett &lt;mjg@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before set communication devices state, we need query out all devices state to set
the states bitmap. That will be better use the devices bitmap in SMBIOS type Aah
instead of hardcode in driver.

Tested on Acer Travelmate 8572.

Cc: Carlos Corbacho &lt;carlos@strangeworlds.co.uk&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Dmitry Torokhov &lt;dtor@mail.ru&gt;
Cc: Corentin Chary &lt;corentincj@iksaif.net&gt;
Cc: Thomas Renninger &lt;trenn@suse.de&gt;
Signed-off-by: Lee, Chun-Yi &lt;jlee@suse.com&gt;
Signed-off-by: Matthew Garrett &lt;mjg@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
