]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
p2sb: Introduce the global flag p2sb_hidden_by_bios
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 28 Nov 2024 00:28:34 +0000 (09:28 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 13:01:58 +0000 (14:01 +0100)
commitde96c4de9c87bf22707a2c277e12308b3d94c51d
tree3510d3937eaaf5a0a35f4187ad2d8071661e6c30
parente6e1555d217063ffcd019aeee8a92acd25d3e61d
p2sb: Introduce the global flag p2sb_hidden_by_bios

[ Upstream commit ae3e6ebc5ab046d434c05c58a3e3f7e94441fec2 ]

To prepare for the following fix, introduce the global flag
p2sb_hidden_by_bios. Check if the BIOS hides the P2SB device and store
the result in the flag. This allows to refer to the check result across
functions.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241128002836.373745-3-shinichiro.kawasaki@wdc.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Stable-dep-of: 360c400d0f56 ("p2sb: Do not scan and remove the P2SB device when it is unhidden")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/p2sb.c