<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/platform, branch v3.2-rc2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v3.2-rc2</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.2-rc2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2011-11-08T20:49:29Z</updated>
<entry>
<title>x86 platform drivers: add POWER_SUPPLY to selected drivers for Dell</title>
<updated>2011-11-08T20:49:29Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-11-08T20:49:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=dccefb3729c8c2b17e45c68cdc0d575f2473a5f0'/>
<id>urn:sha1:dccefb3729c8c2b17e45c68cdc0d575f2473a5f0</id>
<content type='text'>
The Kconfig loop detection goes crazy without this.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>x86 platform drivers: make Dell laptop driver select needed LED support</title>
<updated>2011-11-08T20:17:25Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-11-08T20:17:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b9c913f327ccc5cf422b6dc9b5acfbc9b86e7b62'/>
<id>urn:sha1:b9c913f327ccc5cf422b6dc9b5acfbc9b86e7b62</id>
<content type='text'>
Otherwise we get compile errors like this:

  ERROR: "led_classdev_unregister" [drivers/platform/x86/dell-laptop.ko] undefined!
  ERROR: "led_classdev_register" [drivers/platform/x86/dell-laptop.ko] undefined!
  make[1]: *** [__modpost] Error 1
  make: *** [modules] Error 2

when the dell-laptop support is enabled without the necessary LED
support being enabled.

Reported-by: Alessandro Suardi &lt;alessandro.suardi@gmail.com&gt;
Acked-by: Matthew Garrett &lt;mjg59@srcf.ucam.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<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:47Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-11-07T03:44:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=32aaeffbd4a7457bf2f7448b33b5946ff2a960eb'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>Merge branch 'akpm' (Andrew's incoming)</title>
<updated>2011-11-01T00:46:07Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-11-01T00:46:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=094803e0aab3fe75bbf8202a8f4b5280eaade375'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>lis3: change exported function to use passed parameter</title>
<updated>2011-11-01T00:30:52Z</updated>
<author>
<name>Éric Piel</name>
<email>eric.piel@tremplin-utc.net</email>
</author>
<published>2011-11-01T00:11:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e1e5687d75ef0ea5cbae63df48ff2fdcb5306f66'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>hp_accel: add HP ProBook 655x</title>
<updated>2011-11-01T00:30:52Z</updated>
<author>
<name>Éric Piel</name>
<email>eric.piel@tremplin-utc.net</email>
</author>
<published>2011-11-01T00:10:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d0b6a971ed034054897df42f3e3000b4f57cccc5'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>lis3: add support for HP EliteBook 8540w</title>
<updated>2011-11-01T00:30:52Z</updated>
<author>
<name>Éric Piel</name>
<email>eric.piel@tremplin-utc.net</email>
</author>
<published>2011-11-01T00:10:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=cdeaf62255d171dd159f0bdc453efd7ff31c6916'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>lis3: add support for HP EliteBook 2730p</title>
<updated>2011-11-01T00:30:52Z</updated>
<author>
<name>Éric Piel</name>
<email>eric.piel@tremplin-utc.net</email>
</author>
<published>2011-11-01T00:10:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a17b81beeb76a7cc3551fc17d7aa73b303dee52c'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>lis3lv02d: avoid divide by zero due to unchecked</title>
<updated>2011-11-01T00:30:51Z</updated>
<author>
<name>Éric Piel</name>
<email>eric.piel@tremplin-utc.net</email>
</author>
<published>2011-11-01T00:10:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1510dd5954be5070e46b155eb32362dc73d9e9cb'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>x86: fix up files really needing to include module.h</title>
<updated>2011-10-31T23:30:36Z</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2011-05-27T16:33:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7c52d55170ce84ddf9c0ad4e020ef1d7a97975a7'/>
<id>urn:sha1: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>
</entry>
</feed>
