Re: [PATCH] PCI: take the rescan lock when adding devices during host probe
From: Konrad Dybcio
Date: Mon Sep 30 2024 - 12:14:16 EST
On 26.09.2024 3:09 PM, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> Since adding the PCI power control code, we may end up with a race
> between the pwrctl platform device rescanning the bus and the host
> controller probe function. The latter needs to take the rescan lock when
> adding devices or may crash.
>
> Reported-by: Konrad Dybcio <konradybcio@xxxxxxxxxx>
> Fixes: 4565d2652a37 ("PCI/pwrctl: Add PCI power control core code")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
> ---
Tested-by: Konrad Dybcio <konradybcio@xxxxxxxxxx>
Konrad