Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PCI: aardvark: Fix preserving PCI_EXP_RTCTL_CRSSVE flag on emulated b…
…ridge Commit 43f5c77 ("PCI: aardvark: Fix reporting CRS value") started using CRSSVE flag for handling CRS responses. PCI_EXP_RTCTL_CRSSVE flag is stored only in emulated config space buffer and there is handler for PCI_EXP_RTCTL register. So every read operation from config space automatically clears CRSSVE flag as it is not defined in PCI_EXP_RTCTL read handler. Fix this by reading current CRSSVE bit flag from emulated space buffer and appending it to PCI_EXP_RTCTL read response. Link: https://lore.kernel.org/r/[email protected] Fixes: 43f5c77 ("PCI: aardvark: Fix reporting CRS value") Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Marek Behún <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Marek Behún <[email protected]>
- Loading branch information