Skip to content

Commit b2a5646

Browse files
paliLorenzo Pieralisi
authored andcommitted
PCI: aardvark: Add FIXME comment for PCIE_CORE_CMD_STATUS_REG access
This register is applicable only when the controller is configured for Endpoint mode, which is not the case for the current version of this driver. Attempting to remove this code though caused some ath10k cards to stop working, so for some unknown reason it is needed here. This should be investigated and a comment explaining this should be put before the code, so we add a FIXME comment for now. Link: https://lore.kernel.org/r/20200430080625.26070-7-pali@kernel.org Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com> Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
1 parent 5169a98 commit b2a5646

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎drivers/pci/controller/pci-aardvark.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,13 @@ static void advk_pcie_setup_hw(struct advk_pcie *pcie)
439439

440440
advk_pcie_train_link(pcie);
441441

442+
/*
443+
* FIXME: The following register update is suspicious. This register is
444+
* applicable only when the PCI controller is configured for Endpoint
445+
* mode, not as a Root Complex. But apparently when this code is
446+
* removed, some cards stop working. This should be investigated and
447+
* a comment explaining this should be put here.
448+
*/
442449
reg = advk_readl(pcie, PCIE_CORE_CMD_STATUS_REG);
443450
reg |= PCIE_CORE_CMD_MEM_ACCESS_EN |
444451
PCIE_CORE_CMD_IO_ACCESS_EN |

0 commit comments

Comments
 (0)