Repository navigation
WORKAROUND: PCI/pwrctrl: tc9563: Fix endpoint reset GPIO direction and PERST# handling - #2417
Conversation
…d gpio-controller usage Document the standard reset-gpios property for downstream ports, used by pci-pwrctrl-tc9563.c to drive the endpoint reset line through the TC9563 embedded GPIO controller. Update the example to mark pcie@0,0 as a gpio-controller, drop the stray duplicate gpio-controller/ remove the now-redundant ep-reset-gpio from the pcie@2,0 example. Signed-off-by: Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com> (cherry picked from commit 974b63200bccd1718486fb839e24c25567ac1416)
…# GPIOs Create the pwrctrl devices before parsing the Root Port nodes, since a downstream PCIe device (e.g., the TC9563 switch acting as a GPIO controller) may provide the PERST# GPIO for its own downstream ports. Such a provider is not yet powered/probed at the point the RC node's own PERST# is normally requested, so request it with GPIOD_ASIS instead of GPIOD_OUT_HIGH and leave its state untouched until the pwrctrl driver powers the device on and the PCI client driver takes over control of it. Also plug a PHY leak on the parse_perst() failure path in qcom_pcie_parse_port(), and destroy the pwrctrl devices on the corresponding qcom_pcie_probe() error paths. Signed-off-by: Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com> (cherry picked from commit 93dff6f2a2b5f115c89533072daec6661c52b76a)
…n after power-on The PCIe host controller driver may request the endpoint reset GPIOs before the switch is powered. gpiolib cannot read their direction then, and refuses to drive a line it does not know to be an output. Now that the switch is accessible and the lines are outputs, make gpiolib read the direction again. Signed-off-by: Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com> (cherry picked from commit a78a949d23eb7f1e1cca13359e190d94d3c808f3)
Topic branch CI failed — tree reproductionThis branch is not built on its own. CI rebuilds the whole
Rebuild the exact treemkdir qcom-topic-repro && cd qcom-topic-repro
# 1. Topic config, at the exact commit this run used
git clone https://github.com/qualcomm-linux/kernel-config.git
git -C kernel-config checkout 2b90a827854a601e382b13289c745137becba642
# 2. Scratch tree; ci-merge resets it to the baseline named in the config
git clone https://github.com/qualcomm-linux/kernel.git
# 3. automerge tooling, same branch CI uses
git clone --branch sha_config_yaml https://github.com/sgaud-quic/automerge.git
# 4. Override only this topic with the PR head
cp kernel-config/qcom-next.yaml qcom-next-pr.yaml
# In qcom-next-pr.yaml, under the entry for 'tech/all/workaround', set:
# sha: 6467a490557b822e928731fee2eabe6505fe1f61
# tag: null
# Repeat for every branch named by a 'Depends-on:' line in the PR body.
# 5. Reassemble the tree
cd kernel
git config user.email you@example.com
git config user.name "Your Name"
../automerge/ci-merge --yaml-config ../qcom-next-pr.yaml \
-t head -i qcom-next \
-c https://github.com/qualcomm-linux/kernel-rrcache \
-n -p | tee ../merge.log
# 6. Merge this PR on top, as CI does
git fetch https://github.com/qualcomm-linux/kernel-topics.git pull/2417/head:pr-2417
git merge pr-2417
# 7. Confirm the tree matches the run
grep '^Merge successful' ../merge.log
git log --oneline -1The run log for the failed stage contains the same Note: automerge and the rerere cache are tracked by branch, not pinned, so a |
🔨 Build Failure Analysis — PR #2417PR: #2417
VerdictThis is a merge conflict, not a compilation error. The PR cannot be automatically merged into the qcom-next integration branch due to conflicting changes in the device tree binding documentation. 📎 Detailed analysis: Full report |
🔨 Build Failure Analysis — PR #2417PR: #2417
VerdictThis is a merge conflict, not a compilation error. The build failed during the integration phase before any compilation occurred. The PR introduces changes to 📎 Detailed analysis: Full report |
PR #2417 — validate-patchPR: #2417
Final Summary
|
PR #2417 — checker-log-analyzerPR: #2417
Detailed report: Full report
|
Updates the TC9563 PCIe switch's reset-GPIO handling to match this
repo's GPIO descriptor API (1dc6273, "PCI/pwrctrl: tc9563: Switch
per-port reset to GPIO descriptor API").
dt-bindings: PCI: toshiba,tc9563: Document reset-gpios and
gpio-controller usage
Updates the binding doc to the current reset-gpios /
gpio-controller property names; drops stale ep-reset-gpio /
ep-pwr-en-gpio docs.
PCI: qcom: Allow downstream PCIe devices to provide PERST# GPIOs
Lets a downstream PCIe device supply its own PERST# GPIO to the
qcom PCIe host controller driver.
PCI/pwrctrl: tc9563: Re-sync endpoint reset GPIO direction after
power-on
Adds tc9563_pwrctrl_sync_gpio_direction(), invoked at the end of
power_on(), so gpiolib re-reads direction on the DSP1/DSP2 reset
lines once the switch is powered and I2C-accessible. A line
requested with GPIOD_ASIS before the switch is up has unknown
cached direction, and gpiod_set_value_cansleep() refuses to drive
it until that happens.
CRs-fixed: 4732833
QLIJIRA exceptions: [QLIJIRA-250] Temporary downstream exception to fix Wi-Fi failures after resume. - Qualcomm JIRA DC