Skip to content

PCI: mediatek-gen3: Fix the control timing of PERST#

Jian Yang linux-mediatek linux-pci lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2PCI: mediatek-gen3: Fix PERST# control timing during system startupdrivers/pci/controller/pcie-mediatek-gen3.c+22 -30 replies
2/2PCI: mediatek-gen3: Add a shutdown callback to cotnrol PERST# signaldrivers/pci/controller/pcie-mediatek-gen3.c+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] PCI: mediatek-gen3: Fix the control timing of PERST#

Dear maintainers,

The purpose of this patch series is to fix the PERST# control timing in the MediaTek PCIe Gen3 controller driver so that it complies with the PCIe CEM specification.

In the current MediaTek PCIe Gen3 controller driver, there are two issues with PERST# timing:
1. During the power-up phase (i.e., before PCIe link-up), on some MediaTek SoCs PERST# is de-asserted before the REFCLK becomes stable;
2. During system shutdown, PERST# is not asserted before power is removed.

Patch 1 fixes the reset signal sequencing during the power-up phase.

Patch 2 adds a shutdown callback to control PERST# during system shutdown.

Best regards,
Jian Yang

Jian Yang (2):
PCI: mediatek-gen3: Fix PERST# control sequence at system startup
phase
PCI: mediatek-gen3: Add shutdown callback to cotnrol PERST# signal

 drivers/pci/controller/pcie-mediatek-gen3.c | 30 ++++++++++++++++++---
 1 file changed, 27 insertions(+), 3 deletions(-)
Signature · 1 line
2.45.2