]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 10:04:50 +0000 (12:04 +0200)
commit07bf228143a217c512346449ae621d42c82a752b
tree1ef47d4c76ed5d92d0ce4366e02e5ad1666b5d63
parent212d2477884fdc839b77a018012278d7b8722f5b
platform/x86: pmc_atom: Fix SLP_TYPx bitfield mask

[ Upstream commit 024fca057b0eb302c90e1b64571c8df09102269c ]

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: 3d05dbf26325 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/pmc_atom.c
include/linux/platform_data/x86/pmc_atom.h