]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: pmc_atom: Fix SLP_TYPx bitfield mask
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 1 Aug 2022 11:37:31 +0000 (14:37 +0300)
committerHans de Goede <hdegoede@redhat.com>
Mon, 15 Aug 2022 11:20:10 +0000 (13:20 +0200)
commit250c34ff81753c71fdef32ffcb4e0bdc8a3bcc0e
treed0c1edf843da591c578b3097c882125878615d51
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
platform/x86: pmc_atom: Fix SLP_TYPx bitfield mask

On Intel hardware the SLP_TYPx bitfield occupies bits 10-12 as per ACPI
specification (see Table 4.13 "PM1 Control Registers Fixed Hardware
Feature Control Bits" for the details).

Fix the mask and other related definitions accordingly.

Fixes: b699f9a5fe79 ("x86/platform: New Intel Atom SOC power management controller driver")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220801113734.36131-1-andriy.shevchenko@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/pmc_atom.c
include/linux/platform_data/x86/pmc_atom.h