Re: [PATCH v7 3/9] PCI: Avoid saving config space state if inaccessible
From: Niklas Schnelle
Date: Tue Jan 20 2026 - 17:13:59 EST
On Wed, 2026-01-07 at 10:32 -0800, Farhan Ali wrote:
> The current reset process saves the device's config space state before reset
> and restores it afterward. However errors may occur unexpectedly and it may
> then be impossible to save config space because the device may be inaccessible
> (e.g. DPC) or config space may be corrupted. This results in saving corrupted
> values that get written back to the device during state restoration.
>
> With a reset we want to recover/restore the device into a functional
> state. So avoid saving the state of the config space when the device config
> space is inaccessible.
>
> Signed-off-by: Farhan Ali <alifm@xxxxxxxxxxxxx>
> ---
Running checkpatch.pl with "--strict" on the series it pointed out that
this commit description has lines over 75 characters.
Thanks,
Niklas