]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: temperature: mlx90632 Relax the compatibility check
authorCrt Mori <cmo@melexis.com>
Thu, 23 May 2019 12:07:22 +0000 (14:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jun 2019 03:35:54 +0000 (11:35 +0800)
commite61e41ffcfeb1941f7c1650deb06f66e043b5d00
treeab2c95aefeb98c4b137f25283994b737b00b811f
parent303386b31bfb0a98391b7d098af296d6f9d1d61e
iio: temperature: mlx90632 Relax the compatibility check

commit 389fc70b60f534d679aea9a3f05146040ce20d77 upstream.

Register EE_VERSION contains mixture of calibration information and DSP
version. So far, because calibrations were definite, the driver
compatibility depended on whole contents, but in the newer production
process the calibration part changes. Because of that, value in EE_VERSION
will be changed and to avoid that calibration value is same as DSP version
the MSB in calibration part was fixed to 1.
That means existing calibrations (medical and consumer) will now have
hex values (bits 8 to 15) of 83 and 84 respectively. Driver compatibility
should be based only on DSP version part of the EE_VERSION (bits 0 to 7)
register.

Signed-off-by: Crt Mori <cmo@melexis.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/temperature/mlx90632.c