linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG: iio: mpu3050: Wrong temperature scale
@ 2021-04-19  6:06 Dmitry Osipenko
  2021-04-19 10:07 ` Linus Walleij
  0 siblings, 1 reply; 13+ messages in thread
From: Dmitry Osipenko @ 2021-04-19  6:06 UTC (permalink / raw)
  To: Linus Walleij, Jonathan Cameron, linux-iio,
	Linux Kernel Mailing List, Svyatoslav Ryhel

Hello,

Svyatoslav and me found that the MPU3050 IIO driver reports temperature
that is x10 larger than it should be on Asus Transformer TF201 and Acer
A500 tablet devices running mainline kernel. The driver uses
(x+23000)/280 formula for the conversion of raw temperature value, which
gives 82C for x=0, thus apparently formula is wrong because x=50000
should give us ~25C.

I tried to search for the datasheet with the formula, but couldn't find it.

Linus, will you be able to check whether the formula used by the driver
is correct? Thanks in advance.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-04-21 23:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19  6:06 BUG: iio: mpu3050: Wrong temperature scale Dmitry Osipenko
2021-04-19 10:07 ` Linus Walleij
2021-04-20 21:26   ` Dmitry Osipenko
2021-04-21  9:54     ` Linus Walleij
2021-04-21 19:05       ` Andy Shevchenko
2021-04-21 19:41         ` Andy Shevchenko
2021-04-21 20:00           ` Lars-Peter Clausen
2021-04-21 20:02             ` Andy Shevchenko
2021-04-21 20:04               ` Andy Shevchenko
2021-04-21 20:58                 ` Dmitry Osipenko
2021-04-21 20:11             ` Andy Shevchenko
2021-04-21 23:02             ` Linus Walleij
2021-04-21 23:10               ` Dmitry Osipenko

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).