From: Eric Piel <eric.piel@tremplin-utc.net>
To: Riku Voipio <riku.voipio@movial.fi>
Cc: Yan Burman <burman.yan@gmail.com>,
LKML <linux-kernel@vger.kernel.org>,
HWMON <lm-sensors@lm-sensors.org>,
spi-devel-general@lists.sourceforge.net, jic23@cam.ac.uk,
pau@eslack.org
Subject: Re: [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver
Date: Thu, 05 Jun 2008 10:28:53 +0200 [thread overview]
Message-ID: <4847A3C5.60600@tremplin-utc.net> (raw)
In-Reply-To: <48479922.6050003@movial.fi>
Riku Voipio wrote:
> Yan Burman wrote:
>> +==================
>> +
>> +Supported chips:
>> +
>> + * STMicroelectronics LIS3LV02DL and LIS3LV02DQ
>> +
> These chips are connected to either I2C or SPI - This is the 4th driver for
> (apparently) these same chips:
>
> http://docwiki.gumstix.org/Lis3lv02dq_spi.c
> http://svn.openmoko.org/branches/src/target/kernel/2.6.24.x/patches/lis302dl.patch
>
> http://article.gmane.org/gmane.linux.kernel.spi.devel/1010
Hi!
Thanks a lot for these links (which I was not aware of). They indeed
seem to handle the same hardware (all via spi). To be even more
complete, here is a link we received off-list for accessing the same
hardware via I²C:
http://pof.eslack.org/HTC/shift/i2c-gsensor.tar.gz
There are for sure some nice things we could borrow ;-)
>
>> + depends on ACPI && INPUT && X86
>>
>
>
>> +/* The actual chip is STMicroelectronics LIS3LV02DL or LIS3LV02DQ
>> + * that seems to be connected via SPI */
>>
> Perhaps it would make more sense implement support for SPI
> bus on the laptop and use the SPI interface directly instead or
> routing via the ACPI hiding layer?
Getting rid of ACPI could be nice, as it tends to be rather slow.
However, so far we've stick to it because it ensures that for the ~15
different models of HP laptop, we can access the hardware exactly the
same way. I have the gut feeling that if HP spent some time to add an
interface in ACPI, there was some kind of reason.
However, I know nothing about SPI. Maybe you'll tell that if this chip
is on the SPI bus, it will always be accessed the same way, located at
the same address... or whatever that can ensure us that from the moment
we know this device is in the laptop (and that's easy via HPQ0004) we
cannot mess up. In that case, going to SPI would be definitely worthy.
Eric
prev parent reply other threads:[~2008-06-05 8:29 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-31 12:05 [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver Yan Burman
2008-06-04 19:24 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Éric Piel
2008-06-04 20:58 ` Jean Delvare
2008-06-04 22:57 ` Éric Piel
2008-06-05 6:27 ` Jean Delvare
2008-06-04 23:05 ` Pavel Machek
2008-06-04 23:43 ` Éric Piel
2008-06-05 6:29 ` Jean Delvare
2008-06-05 9:38 ` [lm-sensors] " Jonathan Cameron
2008-06-05 20:34 ` Éric Piel
2008-06-05 22:27 ` Pau Oliva Fora
2008-06-06 14:24 ` Dmitry Torokhov
2008-06-06 15:29 ` Pau Oliva Fora
2008-06-06 14:56 ` Eric Piel
2008-06-06 15:30 ` Pau Oliva Fora
2008-06-06 8:51 ` Jonathan Cameron
2008-06-04 23:03 ` Pavel Machek
2008-06-04 23:29 ` Éric Piel
2008-06-05 1:06 ` Henrique de Moraes Holschuh
2008-06-05 8:19 ` Pavel Machek
2008-06-06 14:27 ` Dmitry Torokhov
2008-06-06 14:59 ` Eric Piel
2008-06-06 15:11 ` Dmitry Torokhov
2008-06-06 15:37 ` Pau Oliva Fora
2008-06-05 5:17 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver Andrew Morton
2008-06-05 7:43 ` [lm-sensors] " Riku Voipio
2008-06-05 8:28 ` Eric Piel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4847A3C5.60600@tremplin-utc.net \
--to=eric.piel@tremplin-utc.net \
--cc=burman.yan@gmail.com \
--cc=jic23@cam.ac.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=pau@eslack.org \
--cc=riku.voipio@movial.fi \
--cc=spi-devel-general@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox