Revert "platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe"
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 4 Jan 2024 11:40:50 +0000 (20:40 +0900)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 4 Jan 2024 16:16:51 +0000 (18:16 +0200)
commitb20712e853305cbd04673f02b7e52ba5b12c11a9
tree8ce3ea5cd203f7f7ced511239e26604fb7cd5a2b
parent70681aa0746ae61d7668b9f651221fad5e30c71e
Revert "platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe"

This reverts commit b28ff7a7c3245d7f62acc20f15b4361292fe4117.

The commit introduced P2SB device scan and resource cache during the
boot process to avoid deadlock. But it caused detection failure of
IDE controllers on old systems [1]. The IDE controllers on old systems
and P2SB devices on newer systems have same PCI DEVFN. It is suspected
the confusion between those two is the failure cause. Revert the change
at this moment until the proper solution gets ready.

Link: https://lore.kernel.org/platform-driver-x86/CABq1_vjfyp_B-f4LAL6pg394bP6nDFyvg110TOLHHb0x4aCPeg@mail.gmail.com/T/#m07b30468d9676fc5e3bb2122371121e4559bb383
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Link: https://lore.kernel.org/r/20240104114050.3142690-1-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>
drivers/platform/x86/p2sb.c