thermal: int340x: Fix VCoRefLow MMIO bit offset for TGL
authorSumeet Pawnikar <sumeet.r.pawnikar@intel.com>
Tue, 7 Dec 2021 12:35:39 +0000 (18:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Dec 2021 09:57:14 +0000 (10:57 +0100)
commit021ae1e11dfc33b03b1cc83a2d76431aa5de1e20
treea21075944a69d4714062516220c8d929352bd279
parent0138d396ffcecf9031fc5f2be9f5480938c1efe7
thermal: int340x: Fix VCoRefLow MMIO bit offset for TGL

commit f872f73601b92c86f3da8bdf3e19abd0f1780eb9 upstream.

The VCoRefLow CPU FIVR register definition for Tiger Lake is incorrect.

Current implementation reads it from MMIO offset 0x5A18 and bit
offset [12:14], but the actual correct register definition is from
bit offset [11:13].

Update to fix the bit offset.

Fixes: 473be51142ad ("thermal: int340x: processor_thermal: Add RFIM driver")
Signed-off-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com>
Cc: 5.14+ <stable@vger.kernel.org> # 5.14+
[ rjw: New subject, changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thermal/intel/int340x_thermal/processor_thermal_rfim.c