]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: mediatek-gen3: Avoid PCIe resetting via PERST# for Airoha EN7581 SoC
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 8 Jan 2025 23:30:45 +0000 (00:30 +0100)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Mon, 13 Jan 2025 07:09:42 +0000 (07:09 +0000)
commit491cb9c5084790aafa02e843349492c284373231
treedbc37890b87194595d4a8e5b917f8594c3b18bd4
parentc98bee18d0a094e37100c85effe5e161418f8644
PCI: mediatek-gen3: Avoid PCIe resetting via PERST# for Airoha EN7581 SoC

Airoha EN7581 has a hw bug asserting/releasing PERST# signal causing
occasional PCIe link down issues. In order to overcome the problem,
PERST# signal is not asserted/released during device probe or
suspend/resume phase and the PCIe block is reset using
en7523_reset_assert() and en7581_pci_enable().

Introduce flags field in the mtk_gen3_pcie_pdata struct in order to
specify per-SoC capabilities.

Link: https://lore.kernel.org/r/20250109-pcie-en7581-rst-fix-v4-1-4a45c89fb143@kernel.org
Tested-by: Hui Ma <hui.ma@airoha.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
drivers/pci/controller/pcie-mediatek-gen3.c