]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
p2sb: Move P2SB hide and unhide code to p2sb_scan_and_cache()
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 28 Nov 2024 00:28:35 +0000 (09:28 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 12:52:53 +0000 (13:52 +0100)
commit8fc1667bf9dd90b31171718627f030ff5bc2c149
treed2643bbd7bbdbb4bd6d1e8ae60281a11c8f7a42e
parentd552e2e0687228be734cefa57310d9a3b9f081c2
p2sb: Move P2SB hide and unhide code to p2sb_scan_and_cache()

[ Upstream commit 0286070c74ee48391fc07f7f617460479472d221 ]

To prepare for the following fix, move the code to hide and unhide the
P2SB device from p2sb_cache_resources() to p2sb_scan_and_cache().

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-4-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