mfd: intel_soc_pmic: Use CPU-id check instead of _HRV check to differentiate variants
authorHans de Goede <hdegoede@redhat.com>
Mon, 6 Dec 2021 17:48:06 +0000 (18:48 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 29 Dec 2021 13:32:08 +0000 (13:32 +0000)
commit5b78223f55a0f516a1639dbe11cd4324d4aaee20
tree7fb0416b6654e365ab3caaf2c4e91cc9fbb497c9
parente6b142060b24014bfcf86ae5b1facc5e99e84176
mfd: intel_soc_pmic: Use CPU-id check instead of _HRV check to differentiate variants

The Intel Crystal Cove PMIC has 2 different variants, one for use with
Bay Trail (BYT) SoCs and one for use with Cherry Trail (CHT) SoCs.

So far we have been using an ACPI _HRV check to differentiate between
the 2, but at least on the Microsoft Surface 3, which is a CHT device,
the wrong _HRV value is reported by ACPI.

So instead switch to a CPU-ID check which prevents us from relying on
the possibly wrong ACPI _HRV value.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reported-by: Tsuchiya Yuto <kitakar@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211206174806.197772-2-hdegoede@redhat.com
drivers/mfd/intel_soc_pmic_core.c