* bmc150_accel i2c-BMA250E:00: Invalid chip f8
@ 2015-07-22 18:48 Bastien Nocera
2015-07-23 9:37 ` Tirdea, Irina
2015-07-23 13:59 ` jic23
0 siblings, 2 replies; 6+ messages in thread
From: Bastien Nocera @ 2015-07-22 18:48 UTC (permalink / raw)
To: linux-iio@vger.kernel.org
Hey,
Running kernel 4.0.8 on a WinBook TW100 tablet, I get the error message
in the subject line when loading the bmc150_accel driver.
The 2 items in udev about that device:
P: /devices/LNXSYSTM:00/LNXSYBUS:00/80860F41:04/BMA250E:00
E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/80860F41:04/BMA250E:00
E: MODALIAS=acpi:BMA250E:BMA250E:
E: SUBSYSTEM=acpi
and:
P: /devices/platform/80860F41:04/i2c-12/i2c-BMA250E:00
E: DEVPATH=/devices/platform/80860F41:04/i2c-12/i2c-BMA250E:00
E: MODALIAS=acpi:BMA250E:BMA250E:
E: SUBSYSTEM=i2c
And the DSDT for the device:
https://people.gnome.org/~hadess/Winbook%20TW100%20DSDT.dsl
Any ideas what I should try (apart from a more recent kernel, I'm onto
that...)
Cheers
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: bmc150_accel i2c-BMA250E:00: Invalid chip f8
2015-07-22 18:48 bmc150_accel i2c-BMA250E:00: Invalid chip f8 Bastien Nocera
@ 2015-07-23 9:37 ` Tirdea, Irina
2015-07-23 9:41 ` Bastien Nocera
2015-07-23 13:59 ` jic23
1 sibling, 1 reply; 6+ messages in thread
From: Tirdea, Irina @ 2015-07-23 9:37 UTC (permalink / raw)
To: Bastien Nocera, linux-iio@vger.kernel.org
DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogbGludXgtaWlvLW93bmVy
QHZnZXIua2VybmVsLm9yZyBbbWFpbHRvOmxpbnV4LWlpby1vd25lckB2Z2VyLmtlcm5lbC5vcmdd
IE9uIEJlaGFsZiBPZiBCYXN0aWVuIE5vY2VyYQ0KPiBTZW50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gaHR0cDovL3ZnZXIua2Vy
bmVsLm9yZy9tYWpvcmRvbW8taW5mby5odG1sDQo=
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bmc150_accel i2c-BMA250E:00: Invalid chip f8
2015-07-23 9:37 ` Tirdea, Irina
@ 2015-07-23 9:41 ` Bastien Nocera
0 siblings, 0 replies; 6+ messages in thread
From: Bastien Nocera @ 2015-07-23 9:41 UTC (permalink / raw)
To: Tirdea, Irina, linux-iio@vger.kernel.org
On Thu, 2015-07-23 at 09:37 +0000, Tirdea, Irina wrote:
>
> > -----Original Message-----
> > From: linux-iio-owner@vger.kernel.org [mailto:
> > linux-iio-owner@vger.kernel.org] On Behalf Of Bastien Nocera
> > Sent: 22 July, 2015 21:49
> > To: linux-iio@vger.kernel.org
> > Subject: bmc150_accel i2c-BMA250E:00: Invalid chip f8
> >
> > Hey,
> >
> > Running kernel 4.0.8 on a WinBook TW100 tablet, I get the error
> > message
> > in the subject line when loading the bmc150_accel driver.
> >
> > The 2 items in udev about that device:
> > P: /devices/LNXSYSTM:00/LNXSYBUS:00/80860F41:04/BMA250E:00
> > E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/80860F41:04/BMA250E:00
> > E: MODALIAS=acpi:BMA250E:BMA250E:
> > E: SUBSYSTEM=acpi
> >
> > and:
> > P: /devices/platform/80860F41:04/i2c-12/i2c-BMA250E:00
> > E: DEVPATH=/devices/platform/80860F41:04/i2c-12/i2c-BMA250E:00
> > E: MODALIAS=acpi:BMA250E:BMA250E:
> > E: SUBSYSTEM=i2c
> >
> > And the DSDT for the device:
> > https://people.gnome.org/~hadess/Winbook%20TW100%20DSDT.dsl
> >
> > Any ideas what I should try (apart from a more recent kernel, I'm
> > onto
> > that...)
>
> Hi Bastien,
>
> Seems to me that the ACPI table declares you have BMA250E chip, but
> the hardware is actually BMA222E. Bosh accelerometer BMA250E has chip
> ID 0xF9 [1], while BMA222E has chip ID 0xF8 [2].
I gathered as much from reading the driver.
> These chips are very similar, except for the chip id and x/y/z
> resolution.
>
> You could try forcing the driver to use bma222e for your ACPI ID and
> see
> if the values you get for acceleration are OK.
Will try that.
<snip>
> In case it works you probably need to modify your ACPI table.
But I won't do that. Windows works on the same system, and so should
Linux. I'm guessing that the Linux driver is more stringent than the
Windows one.
I'd do something like:
- ACPI ID just tells you which driver to load, not which variant it
actually is.
- Use the chip ID to see which variant of the chipset it is
I'll test that after identifying which of the variants it is.
Cheers
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bmc150_accel i2c-BMA250E:00: Invalid chip f8
2015-07-22 18:48 bmc150_accel i2c-BMA250E:00: Invalid chip f8 Bastien Nocera
2015-07-23 9:37 ` Tirdea, Irina
@ 2015-07-23 13:59 ` jic23
2015-07-23 14:01 ` jic23
2015-07-23 15:22 ` Bastien Nocera
1 sibling, 2 replies; 6+ messages in thread
From: jic23 @ 2015-07-23 13:59 UTC (permalink / raw)
To: Bastien Nocera; +Cc: linux-iio@vger.kernel.org
Bastien Nocera writes:
> Hey,
>
> Running kernel 4.0.8 on a WinBook TW100 tablet, I get the error message
> in the subject line when loading the bmc150_accel driver.
>
> The 2 items in udev about that device:
> P: /devices/LNXSYSTM:00/LNXSYBUS:00/80860F41:04/BMA250E:00
> E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/80860F41:04/BMA250E:00
> E: MODALIAS=acpi:BMA250E:BMA250E:
> E: SUBSYSTEM=acpi
>
> and:
> P: /devices/platform/80860F41:04/i2c-12/i2c-BMA250E:00
> E: DEVPATH=/devices/platform/80860F41:04/i2c-12/i2c-BMA250E:00
> E: MODALIAS=acpi:BMA250E:BMA250E:
> E: SUBSYSTEM=i2c
>
> And the DSDT for the device:
> https://people.gnome.org/~hadess/Winbook%20TW100%20DSDT.dsl
>
> Any ideas what I should try (apart from a more recent kernel, I'm onto
> that...)
Odd. The bma250e is documented as having an id of 0xf9 not 0xf8.
http://ae-bst.resource.bosch.com/media/products/dokumente/bma250e/BST-BMA250
E-DS004-05_published.pdf
So all I can think of is that the chip is a bma222e (or something else
with the 0xf8 chip id) or there are some bma250e's out there with
the wrong ID...
Someone changed a part on the device and thought no one would notice
and hence didn't update the bios? (even if it has a totally different
range)
I guess if you frig the driver to load anyway we can see what value
it is giving for g and that should give us more of a clue.
Jonathan
>
> Cheers
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bmc150_accel i2c-BMA250E:00: Invalid chip f8
2015-07-23 13:59 ` jic23
@ 2015-07-23 14:01 ` jic23
2015-07-23 15:22 ` Bastien Nocera
1 sibling, 0 replies; 6+ messages in thread
From: jic23 @ 2015-07-23 14:01 UTC (permalink / raw)
To: jic23; +Cc: Bastien Nocera, linux-iio@vger.kernel.org
jic23@jic23.retrosnub.co.uk writes:
> Bastien Nocera writes:
>
>> Hey,
>>
>> Running kernel 4.0.8 on a WinBook TW100 tablet, I get the error message
>> in the subject line when loading the bmc150_accel driver.
>>
>> The 2 items in udev about that device:
>> P: /devices/LNXSYSTM:00/LNXSYBUS:00/80860F41:04/BMA250E:00
>> E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/80860F41:04/BMA250E:00
>> E: MODALIAS=acpi:BMA250E:BMA250E:
>> E: SUBSYSTEM=acpi
>>
>> and:
>> P: /devices/platform/80860F41:04/i2c-12/i2c-BMA250E:00
>> E: DEVPATH=/devices/platform/80860F41:04/i2c-12/i2c-BMA250E:00
>> E: MODALIAS=acpi:BMA250E:BMA250E:
>> E: SUBSYSTEM=i2c
>>
>> And the DSDT for the device:
>> https://people.gnome.org/~hadess/Winbook%20TW100%20DSDT.dsl
>>
>> Any ideas what I should try (apart from a more recent kernel, I'm onto
>> that...)
>
> Odd. The bma250e is documented as having an id of 0xf9 not 0xf8.
> http://ae-bst.resource.bosch.com/media/products/dokumente/bma250e/BST-BMA2
> 50 E-DS004-05_published.pdf
>
> So all I can think of is that the chip is a bma222e (or something else
> with the 0xf8 chip id) or there are some bma250e's out there with
> the wrong ID...
>
> Someone changed a part on the device and thought no one would notice
> and hence didn't update the bios? (even if it has a totally different
> range)
>
> I guess if you frig the driver to load anyway we can see what value
> it is giving for g and that should give us more of a clue.
>
> Jonathan
>
Sorry, on webmail today and missed the existing follow ups!
>
>>
>> Cheers
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bmc150_accel i2c-BMA250E:00: Invalid chip f8
2015-07-23 13:59 ` jic23
2015-07-23 14:01 ` jic23
@ 2015-07-23 15:22 ` Bastien Nocera
1 sibling, 0 replies; 6+ messages in thread
From: Bastien Nocera @ 2015-07-23 15:22 UTC (permalink / raw)
To: jic23; +Cc: linux-iio@vger.kernel.org
On Thu, 2015-07-23 at 14:59 +0100, jic23@jic23.retrosnub.co.uk wrote:
>
<snip>
> Odd. The bma250e is documented as having an id of 0xf9 not 0xf8.
> http://ae-bst.resource.bosch.com/media/products/dokumente/bma250e/BST
> -BMA250
> E-DS004-05_published.pdf
>
> So all I can think of is that the chip is a bma222e (or something
> else
> with the 0xf8 chip id) or there are some bma250e's out there with
> the wrong ID...
>
> Someone changed a part on the device and thought no one would notice
> and hence didn't update the bios? (even if it has a totally different
> range)
>
> I guess if you frig the driver to load anyway we can see what value
> it is giving for g and that should give us more of a clue.
I've sent 1 preparation patch, and one fixup patch to ignore the
ACPI/I2C ID when selecting the chip type.
Cheers
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-07-23 15:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-22 18:48 bmc150_accel i2c-BMA250E:00: Invalid chip f8 Bastien Nocera
2015-07-23 9:37 ` Tirdea, Irina
2015-07-23 9:41 ` Bastien Nocera
2015-07-23 13:59 ` jic23
2015-07-23 14:01 ` jic23
2015-07-23 15:22 ` Bastien Nocera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).