]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lis3: fix regression of HP DriveGuard with 8bit chip
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Oct 2011 01:09:14 +0000 (18:09 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:16:09 +0000 (11:16 -0800)
commite222ba544de3bd21a51ffa6a9cfc5e71a4556f0f
tree214373a15fa07fb9e910803695845c34229c176d
parentd6974929c1b35375af4da3fb2e05627b3e411ad2
lis3: fix regression of HP DriveGuard with 8bit chip

commit 05faadcf59507e8eea57ffbeea9cbb14c9a2ab3d upstream.

Commit 2a7fade7e03 ("hwmon: lis3: Power on corrections") caused a
regression on HP laptops with 8bit chip.  Writing CTRL2_BOOT_8B bit seems
clearing the BIOS setup, and no proper interrupt for DriveGuard will be
triggered any more.

Since the init code there is basically only for embedded devices, put a
pdata check so that the problematic initialization will be skipped for
hp_accel stuff.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Cc: Eric Piel <eric.piel@tremplin-utc.net>
Cc: Samu Onkalo <samu.p.onkalo@nokia.com>
Signed-off-by: Andrew Morton <akpm@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/misc/lis3lv02d/lis3lv02d.c