Skip to content

PENDING: PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support - #1521

Open
Hariharan Sreedhar (hariharan-sree) wants to merge 19 commits into
qualcomm-linux:qcom-6.18.yfrom
hariharan-sree:lyra-tc9563-gpio
Open

Hariharan Sreedhar (hariharan-sree) wants to merge 19 commits into
qualcomm-linux:qcom-6.18.yfrom
hariharan-sree:lyra-tc9563-gpio

Conversation

@hariharan-sree

@hariharan-sree Hariharan Sreedhar (hariharan-sree) commented Nov 24, 2026 •

Copy link
Copy Markdown

This changes moves endpoint reset handling for the TC9563 PCIe switch's downstream ports to the standard reset-gpios property backed by the switch's embedded GPIO controller, fixes two related issues this exposes in the PCIe core and gpiolib, and disables ASPM L1 on the talos-lyra-evk
TC9563 links to work around board-level link instability.

Changes

  • PCI/pwrctrl: tc9563: Re-sync endpoint reset GPIO direction after power-on
    The host controller may request the endpoint reset GPIOs before the switch is powered, so gpiolib can't read their direction and refuses to drive a line it doesn't know is an output. Re-read the direction once the switch is powered and the lines are outputs.
  • PCI: qcom: Allow downstream PCIe devices to provide PERST# GPIOs
    Create pwrctrl devices before parsing Root Port nodes, since a downstream device (e.g. the TC9563 acting as GPIO controller) may supply the PERST# GPIO for its own downstream ports and isn't powered/probed yet when the RC's own PERST# is normally requested. Request with GPIOD_ASIS
    instead of GPIOD_OUT_HIGH and leave state untouched until pwrctrl powers the device on. Also fixes a PHY leak on the parse_perst() failure path and destroys pwrctrl devices on the corresponding probe error paths.
  • arm64: configs: qcom: Enable TC9563 embedded GPIO controller
    Enable CONFIG_GPIO_TC9563 so the driver is built for qcom platforms using this defconfig.
  • arm64: dts: qcom: talos-lyra-evk: Use TC9563 embedded GPIO controller for EP reset
    Mark pcie@0,0 as a gpio-controller and switch pcie@1,0/pcie@2,0 to the standard reset-gpios property instead of the vendor-specific ep-reset-gpio, dropping the now-redundant ep-reset-gpio from pcie@1,0.
  • dt-bindings: PCI: toshiba,tc9563: Document reset-gpios and gpio-controller usage
    Document reset-gpios for downstream ports and update the example accordingly: mark pcie@0,0 as a gpio-controller, drop the stray duplicate gpio-controller/#gpio-cells pair and the tc9563 label on the outer pcie@0 node, and remove the now-redundant ep-reset-gpio from the pcie@2,0
    example.
  • arm64: dts: qcom: talos-lyra-evk: Disable ASPM L1 for TC9563 PCIe ports
    Add aspm-no-l1 to the TC9563 root port and its three downstream ports to avoid link instability caused by board-level connectivity constraints. Depends on the upstream series "PCI/ASPM: Mask ASPM states based on Devicetree properties".

CRs-fixed: 4732833

QLIJIRA exceptions: [QLIJIRA-250] Temporary downstream exception to fix Wi-Fi failures after resume. - Qualcomm JIRA DC

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

3 similar comments
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@hariharan-sree Hariharan Sreedhar (hariharan-sree) changed the title Pending: PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support PENDING: PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support Nov 24, 2026
@qlijarvis

Copy link
Copy Markdown

PR #1521 — validate-patch

PR: #1521

Verdict Issues Detailed Report
❌ 0 Full report

Final Summary

  1. Lore link present: No — no lore.kernel.org link found in commit message; no Link: tag present
  2. Lore link matches PR commits: N/A — no lore link to compare against
  3. Upstream patch status: N/A — no upstream posting evidence; appears to be vendor-specific integration work based on Qualcomm-specific file paths (include/linux/soc/qcom/, talos-lyra-evk.dts, qcom.config)
  4. PR present in qcom-next/topics: Partial - 1/1 commit(s) only have partial integration evidence
Verdict: ❌ — click to expand

🔍 Patch Validation

PR: #1521 - PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support
Upstream commit: N/A (no lore.kernel.org link found)
Verdict: ❌ FAIL

Commit Message

Check Status Note
Subject matches upstream N/A No upstream link to compare against
Body preserves rationale ✅ Detailed description of changes present
Fixes tag present/correct N/A Not a fix; new feature addition
Authorship preserved N/A No upstream source to verify against
Backport note (if applicable) N/A Not a backport
Missing commit prefix ❌ No QCLINUX:/PENDING:/FROMLIST: prefix

Diff

File Status Notes
Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml ⚠️ DT binding change without dt-schema validation context
arch/arm64/boot/dts/qcom/talos-lyra-evk.dts ✅ Qualcomm board DTS update
arch/arm64/configs/qcom.config ✅ Vendor config fragment
drivers/gpio/gpio-tc9563.c ⚠️ New driver; no upstream posting evidence
drivers/gpio/Kconfig, Makefile ✅ Standard driver integration
drivers/pci/controller/dwc/pcie-qcom.c ⚠️ Modifies Qualcomm PCIe controller
drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c ⚠️ Extends TC9563 pwrctrl driver
include/linux/soc/qcom/tc9563.h ✅ New Qualcomm-specific header

Issues

  1. Missing commit prefix — The commit subject lacks a required prefix. Based on the content:

    • If this is vendor-only work not intended for upstream: add QCLINUX: prefix
    • If this is work-in-progress not yet posted: add PENDING: prefix
    • If this has been posted to a mailing list: add FROMLIST: prefix + Link: tag
    • If this is already merged upstream: add UPSTREAM: or BACKPORT: prefix + Link: tag
  2. No lore.kernel.org link — The commit message contains no Link: tag pointing to a lore.kernel.org posting. This is required for all commits with UPSTREAM:, FROMLIST:, FROMGIT:, or BACKPORT: prefixes.

  3. Qualcomm-specific paths — The commit adds include/linux/soc/qcom/tc9563.h and modifies Qualcomm board DTS, indicating this is Qualcomm-specific integration work. If not posted upstream, it should be marked QCLINUX:.

  4. DT binding modification — Changes to Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml typically require upstream review and dt-schema validation. If this binding change is not upstream, it may cause issues with dt-binding-check.

Verdict

Do not merge without correction.

This commit must have a proper prefix added to its subject line:

  • Recommended: QCLINUX: PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support
    (if this is vendor-only integration work)
  • Alternative: PENDING: PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support
    (if this is work-in-progress intended for future upstream submission)
  • Alternative: FROMLIST: PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support
    with a Link: https://lore.kernel.org/r/<message-id> tag
    (if this has already been posted to a mailing list)

The Qualcomm kernel tree requires all commits to follow the prefix convention documented in the validate-patch skill. Commits without a recognized prefix cannot be validated and should not be merged.

Final Summary

  1. Lore link present: No — no lore.kernel.org link found in commit message; no Link: tag present
  2. Lore link matches PR commits: N/A — no lore link to compare against
  3. Upstream patch status: N/A — no upstream posting evidence; appears to be vendor-specific integration work based on Qualcomm-specific file paths (include/linux/soc/qcom/, talos-lyra-evk.dts, qcom.config)
  4. PR present in qcom-next/topics: Partial — integration_presence_report.md shows "partial - subject or partial tree evidence found, but full change was not verified" (1/1 commits partial)

Deterministic Integration Presence

Integration Presence Report

This report is generated by Jarvis before validate-patch runs.
It is the authoritative source for whether PR changes are already present
in qcom-next or in the kernel topic branches.

Kernel repo: /local/mnt/workspace/sgaud/Qgenie/image_pipeline/kernel
qcom-next ref: c6989d230fe63569d9ff1814f984ee6b66913b73
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/1 [PATCH] PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial

Final Status

overall_status: PARTIAL
present_commits: 0/1
partial_commits: 1/1
missing_commits: 0/1
topics_checked_for_commits: 1/1
final_summary: PR present in qcom-next/topics: Partial - 1/1 commit(s) only have partial integration evidence

@qlijarvis

Copy link
Copy Markdown

PR #1521 — checker-log-analyzer

PR: #1521
Checker run: https://github.com/qualcomm-linux/kernel-config/actions/runs/45363797135

Checker Result Summary
Checker Result Summary
checkpatch ❌ DT binding and code should be separate patches
dt-binding-check ❌ Schema validation error: i2c-parent property definition incorrect
dtb-check ✅ Passed
sparse-check ✅ Passed
check-uapi-headers ✅ Passed
check-patch-compliance ❌ Missing required subject prefix
tag-check ❌ Subject line missing required prefix (mandatory for qcom-6.18.y)

Detailed report: Full report

Checker analysis — click to expand

Let me output the report directly:

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1521 - PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/45363797135
Target Branch: qcom-6.18.y

Checker Result Summary
checkpatch ❌ DT binding and code should be separate patches
dt-binding-check ❌ Schema validation error: i2c-parent property definition incorrect
dtb-check ✅ Passed
sparse-check ✅ Passed
check-uapi-headers ✅ Passed
check-patch-compliance ❌ Missing required subject prefix
tag-check ❌ Subject line missing required prefix (mandatory for qcom-6.18.y)

❌ checkpatch

Root cause: DT binding documentation changes mixed with driver code in a single commit.

Failure details:

WARNING: DT binding docs and includes should be a separate patch. 
See: Documentation/devicetree/bindings/submitting-patches.rst

8b8304918fc2c2d467bd21fd2068d25cbdb29314 total: 0 errors, 1 warnings, 0 checks, 529 lines checked

Fix: Split the commit into two separate patches:

  1. First patch: DT binding changes only (Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml)
  2. Second patch: Driver implementation and DTS changes

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git bd96a500af01..8b8304918fc2

❌ dt-binding-check

Root cause: The i2c-parent property definition in the YAML schema is missing required array constraints.

Failure details:

/Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml: properties:i2c-parent:items:0: 
'anyOf' conditional failed, one must be fixed:
	'items' is a required property
	'minItems' is a required property
	'maxItems' is a required property
	from schema $id: http://devicetree.org/meta-schemas/items.yaml

/Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml: properties:i2c-parent:items:1: 
'anyOf' conditional failed, one must be fixed:
	'items' is a required property
	'minItems' is a required property
	'maxItems' is a required property
	from schema $id: http://devicetree.org/meta-schemas/items.yaml

Documentation/devicetree/bindings/pci/toshiba,tc9563.example.dtb: pcie@0,0 (pci1179,0623): 
i2c-parent: [[4294967295, 119]] is too short
	from schema $id: http://devicetree.org/schemas/pci/toshiba,tc9563.yaml

Analysis: The binding file has an i2c-parent property that uses items: as an array but doesn't specify the required minItems/maxItems constraints. The schema validator requires explicit array size constraints when using items: with multiple elements.

Fix: In Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml, update the i2c-parent property definition to include proper array constraints:

i2c-parent:
  $ref: /schemas/types.yaml#/definitions/phandle-array
  minItems: 2
  maxItems: 2
  description: |
    Phandle to the I2C controller and address.

Or if it's a fixed 2-cell phandle reference:

i2c-parent:
  maxItems: 1
  description: |
    Phandle to the I2C controller.

Note: The i2c-parent property appears to be pre-existing in the binding file and not modified by this PR. However, the dt-binding-check validation is now catching this schema error. You may need to fix this in a separate preparatory patch before adding the GPIO controller changes.

Reproduce locally:

make -j$(nproc) O=out defconfig
make -j$(nproc) O=out dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml

❌ check-patch-compliance

Root cause: Commit subject line does not start with a required prefix tag.

Failure details:

Checking commit: PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support
Commit summary does not start with a required prefix

Fix: Add one of the required prefix tags to the commit subject:

Prefix Use when
FROMLIST: Patch posted to lore.kernel.org mailing list
FROMGIT: Patch taken from a maintainer git tree
UPSTREAM: Patch merged into Linus's mainline tree
BACKPORT: Upstream patch backported with modifications
QCLINUX: Vendor-only change (note: will still fail check-patch-compliance)

Example corrected subject:

FROMLIST: PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support

If this patch has been posted upstream, also add a Link: trailer to the commit message:

Link: https://lore.kernel.org/...

Reproduce locally:

# Check if commit has valid prefix
git log --format="%s" 8b8304918fc2 | grep -qE '^(FROMLIST|FROMGIT|UPSTREAM|BACKPORT):'

❌ tag-check

Root cause: Subject line missing required prefix tag (mandatory for all branches except qcom-next/qcom-next-staging).

Failure details:

Commit 8b8304918fc2 ("PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support"): 
subject line does not start with a required prefix.

Target branch: qcom-6.18.y (prefix required)

Analysis: The PR targets qcom-6.18.y, which is not qcom-next or qcom-next-staging. Therefore, every commit must start with one of these prefixes:

  • FROMLIST: / FROMGIT: / UPSTREAM: / BACKPORT: / QCLINUX: / PENDING: / WORKAROUND:

Fix:

git rebase -i bd96a500af01   # mark commit as 'edit'
git commit --amend -m "FROMLIST: PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support"
# (keep the rest of the commit message)
git rebase --continue

Choose the appropriate prefix based on the patch origin:

  • If posted to lore but not yet merged → FROMLIST:
  • If in a maintainer tree → FROMGIT:
  • If merged into Linus's tree → UPSTREAM:
  • If backported with modifications → BACKPORT:
  • If vendor-only, no upstream → QCLINUX: (but note: check-patch-compliance will still fail)

Verdict

3 blockers must be fixed before merge:

  1. Split the commit — Separate DT binding changes from driver code (checkpatch requirement)
  2. Fix dt-binding schema — Add proper array constraints to i2c-parent property definition
  3. Add subject prefix — Prepend FROMLIST: (or appropriate prefix) to commit subject

Recommended workflow:

# 1. Fix the i2c-parent schema issue first (may need separate preparatory patch)
# 2. Split into two commits:
#    Commit 1: [PREFIX]: dt-bindings: pci: toshiba,tc9563: Add GPIO controller and reset-gpios
#    Commit 2: [PREFIX]: PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller support
# 3. Ensure both commits have proper prefix tags
# 4. Re-run CI

Note: The i2c-parent schema error may be a pre-existing issue in the binding file. Consider fixing it in a separate patch before this PR, or include the fix in the binding patch of this series.

[/CHECKER_LOG_REPORT]

reg = <0x10000 0x0 0x0 0x0 0x0>;
#address-cells = <3>;
#size-cells = <2>;
gpio-controller;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Split into logical atomic commits. This is a mixture of everything.

@hariharan-sree Hariharan Sreedhar (hariharan-sree) Nov 26, 2026 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the whole changes into atomic commits


ep-pwr-en-gpio = <&tc9563 2 GPIO_ACTIVE_HIGH>;
ep-reset-gpio = <&tc9563 5 GPIO_ACTIVE_HIGH>;
reset-gpios = <&tc9563 5 GPIO_ACTIVE_LOW>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are there two GPIO specs using the same GPIO and opposite active flags?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed redundant ep-reset-gpio

@krishna-chundru

Copy link
Copy Markdown
Contributor

qli-2.2 pull-request freeze

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

Add a driver for the GPIO controller embedded in the Toshiba TC9563 PCIe
switch (and the Qualcomm QPS615). The device implements 37 GPIOs using two
register banks: three registers control the first 32 GPIOs and three more
control GPIOs 32-36.  GPIOs 20 and 21 are reserved while GPIOs 22-24,
27-28, 31, and 34 are input-only.

Register the driver as an auxiliary device driver. The TC9563 power
controller creates the auxiliary device and provides a regmap that gives
access to the GPIO registers, so use the gpio-regmap helpers to implement
the GPIO chip.

Signed-off-by: Alex Elder <elder@riscstar.com>
Co-developed-by: Daniel Thompson <daniel@riscstar.com>
Signed-off-by: Daniel Thompson <daniel@riscstar.com>
Co-developed-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
[bhelgaas: commit log per https://lore.kernel.org/arQ2mDjqHv4gmoOK@lore-desk]
[bhelgaas: squash Geert Uytterhoeven <geert+renesas@glider.be> Kconfig fix:
  https://lore.kernel.org/all/45484c37512a3102495d8b75b6e9f72a141ba42e.1792574560.git.geert+renesas@glider.be,
  Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
  Acked-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260909-pci-tc9563-aux-v5-2-c9b33f56c8d3@oss.qualcomm.com
(cherry picked from commit 03ba564)
…ntroller

The TC9563 PCIe switch embeds a GPIO controller providing 37 GPIO lines,
accessed through the switch's I2C interface.

The controller is integrated in the switch rather than being a separate
device, so expose it by adding the gpio-controller and #gpio-cells
properties to the switch node itself, and extend the example to show the
downstream ports' reset-gpios being driven from those lines.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260909-pci-tc9563-aux-v5-1-c9b33f56c8d3@oss.qualcomm.com
(cherry picked from commit 32184f8)
The i2c subsystem currently blocks during adapter deregistration whenever
there are consumers holding a reference.

Switch to using of_get_i2c_adapter_by_node() which also takes a reference
to the adapter module so that an attempt to unload the module while in use
fails gracefully instead of blocking uninterruptibly.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260716132532.1565340-1-johan@kernel.org
(cherry picked from commit 62ef2a9)
…C Endpoint node

DSP3 has an integrated Ethernet MAC Endpoint which has its own set of
config registers for configuring settings such as ASPM. The Endpoint device
has two physical functions and those two functions share the same settings.

Parse the Endpoint node under DSP3 instead of parsing both functions.  The
existing parsing logic also has one OOB issue as parsing both functions
will result in accessing past the tc9563_pwrctrl->cfg array.

Fixes: 4c9c7be ("PCI: pwrctrl: Add power control driver for TC9563")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Elder <elder@riscstar.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260725-tc9563-fix-v1-2-ec4286e31331@oss.qualcomm.com
(cherry picked from commit 6e5e6c2)
…c9563_pwrctrl_disable_port()

TC9563 supports powering off only the external facing ports like DSP1 and
DSP2. It is not recommended to power off USP and DSP3 as they have fixed
ports/endpoint connected.

Fix tc9563_pwrctrl_disable_port() to power off only DSP1 and DSP2.

Fixes: 4c9c7be ("PCI: pwrctrl: Add power control driver for TC9563")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Elder <elder@riscstar.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260725-tc9563-fix-v1-3-ec4286e31331@oss.qualcomm.com
(cherry picked from commit e41bbfc)
DSP3 doesn't support tuning Tx amplitude and DFE settings. Skip the setting
if DT has passed the tuning properties. There is no need to error out the
whole driver because of it.

Fixes: 4c9c7be ("PCI: pwrctrl: Add power control driver for TC9563")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
[bhelgaas: squash https://lore.kernel.org/all/oefxm7olagbd3dby2npgly7ausiz3g6cvls5igaxdzvlbr3wrv@rjlfebi2p36j]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Elder <elder@riscstar.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260725-tc9563-fix-v1-4-ec4286e31331@oss.qualcomm.com
(cherry picked from commit b859b93)
TC9563 Reference Manual calls DSP3 as VDSP (Virtual Downstream Port).  Name
it as such to avoid ambiguity.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Elder <elder@riscstar.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260725-tc9563-fix-v1-5-ec4286e31331@oss.qualcomm.com
(cherry picked from commit b7f273a)
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@qlijarvis

Copy link
Copy Markdown

PR #1521 — validate-patch

PR: #1521

Verdict Issues Detailed Report
⚠️ 0 Full report

Final Summary

  1. Lore link present: Yes for commits 1-7 (BACKPORT); No for commits 8-12 (PENDING — expected and correct)

  2. Lore link matches PR commits: Cannot verify diff-level match (lore .mbox not fetched), but cherry-pick SHAs in all BACKPORT commits confirm upstream merge and provide strong evidence of faithful backport

  3. Upstream patch status:

    • Commits 1-7: ✅ Upstreamed — all have cherry-pick SHAs indicating merge into mainline
    • Commits 8-12: N/A — PENDING prefix indicates vendor work-in-progress, not posted upstream
  4. PR present in qcom-next/topics: Fail - 1/12 commit(s) are missing from both qcom-next and topics

    • 6/12 commits fully present (commits 2, 3, 5, 7 confirmed; commits 4, 6 present in topics)
    • 5/12 commits partial (commits 1, 8, 9, 11, 12 — subject/partial tree evidence)
    • 1/12 commit missing (commit 10 — new defconfig change, expected for PENDING)
    • Per integration_presence_report.md: "Fail - 1/12 commit(s) are missing from both qcom-next and topics"
Verdict: ⚠️ — click to expand

🔍 Patch Validation

PR: #1521
Verdict: ⚠️ PARTIAL — BACKPORT commits validated; PENDING commits are vendor-only work-in-progress


Summary by Commit Type

BACKPORT commits (1-7): All have lore links, cherry-pick notations, and proper authorship. These are faithful backports from upstream.

PENDING commits (8-12): Vendor-only work-in-progress patches with no lore links (expected and correct for PENDING prefix).


Commit-by-Commit Analysis

Commit 1/12: BACKPORT: gpio: tc9563: Add support for the embedded GPIO controller

Check Status Note
Lore link present ✅ https://patch.msgid.link/20260909-pci-tc9563-aux-v5-2-c9b33f56c8d3@oss.qualcomm.com
Subject matches upstream ✅ BACKPORT prefix added; subject preserved
Body preserves rationale ✅ Full commit message preserved with maintainer notes
Authorship preserved ✅ From: Alex Elder matches lore author; Co-developed-by tags used correctly
Cherry-pick notation ✅ (cherry picked from commit 03ba5646f0f4c26998eb0bbfc9324e003afffb3e)
qcom-next/topics presence ⚠️ partial — subject/partial tree evidence found but full change not verified

Upstream status: ✅ Upstreamed — cherry-pick SHA 03ba5646f0f4 indicates merged into mainline
Lore match: ⚠️ Cannot verify — lore .mbox not fetched; Link tag present and cherry-pick SHA confirms upstream merge


Commit 2/12: BACKPORT: dt-bindings: PCI: toshiba,tc9563: Document embedded GPIO controller

Check Status Note
Lore link present ✅ https://patch.msgid.link/20260909-pci-tc9563-aux-v5-1-c9b33f56c8d3@oss.qualcomm.com
Subject matches upstream ✅ BACKPORT prefix added; subject preserved
Body preserves rationale ✅ Full commit message preserved
Authorship preserved ✅ From: Lorenzo Bianconi matches lore author
Cherry-pick notation ✅ (cherry picked from commit 32184f8b8dc14100bd605e157ab70a5a278d7c1e)
qcom-next/topics presence ✅ present — all checked added lines present in qcom-next

Upstream status: ✅ Upstreamed — cherry-pick SHA 32184f8b8dc1 indicates merged into mainline
Lore match: ⚠️ Cannot verify — lore .mbox not fetched; Link tag present and cherry-pick SHA confirms upstream merge


Commit 3/12: BACKPORT: PCI/pwrctrl: tc9563: Take i2c adapter module reference

Check Status Note
Lore link present ✅ https://patch.msgid.link/20260716132532.1565340-1-johan@kernel.org
Subject matches upstream ✅ BACKPORT prefix added; subject preserved
Body preserves rationale ✅ Full commit message preserved
Authorship preserved ✅ From: Johan Hovold matches lore author
Cherry-pick notation ✅ (cherry picked from commit 62ef2a96fe7e66b8b5c4e756a8454146adee1817)
qcom-next/topics presence ✅ present — exact patch-id match at 62ef2a96fe7e in qcom-next

Upstream status: ✅ Upstreamed — cherry-pick SHA 62ef2a96fe7e indicates merged into mainline
Lore match: ⚠️ Cannot verify — lore .mbox not fetched; Link tag present and cherry-pick SHA confirms upstream merge


Commit 4/12: BACKPORT: PCI/pwrctrl: tc9563: Fix parsing the integrated Ethernet MAC Endpoint node

Check Status Note
Lore link present ✅ https://patch.msgid.link/20260725-tc9563-fix-v1-2-ec4286e31331@oss.qualcomm.com
Subject matches upstream ✅ BACKPORT prefix added; subject preserved
Body preserves rationale ✅ Full commit message with Fixes tag preserved
Fixes tag present ✅ Fixes: 4c9c7be47310 ("PCI: pwrctrl: Add power control driver for TC9563")
Authorship preserved ✅ From: Manivannan Sadhasivam matches lore author
Cherry-pick notation ✅ (cherry picked from commit 6e5e6c2194b2acbded5b12ed80590d215b786d29)
qcom-next/topics presence ✅ present — all checked added lines present in topics

Upstream status: ✅ Upstreamed — cherry-pick SHA 6e5e6c2194b2 indicates merged into mainline
Lore match: ⚠️ Cannot verify — lore .mbox not fetched; Link tag present and cherry-pick SHA confirms upstream merge


Commit 5/12: BACKPORT: PCI/pwrctrl: tc9563: Power off only the external ports

Check Status Note
Lore link present ✅ https://patch.msgid.link/20260725-tc9563-fix-v1-3-ec4286e31331@oss.qualcomm.com
Subject matches upstream ✅ BACKPORT prefix added; subject preserved
Body preserves rationale ✅ Full commit message with Fixes tag preserved
Fixes tag present ✅ Fixes: 4c9c7be47310 ("PCI: pwrctrl: Add power control driver for TC9563")
Authorship preserved ✅ From: Manivannan Sadhasivam matches lore author
Cherry-pick notation ✅ (cherry picked from commit e41bbfc4c109f2db741eef5cd0ac55600930c449)
qcom-next/topics presence ✅ present — exact patch-id match at e41bbfc4c109 in qcom-next

Upstream status: ✅ Upstreamed — cherry-pick SHA e41bbfc4c109 indicates merged into mainline
Lore match: ⚠️ Cannot verify — lore .mbox not fetched; Link tag present and cherry-pick SHA confirms upstream merge


Commit 6/12: BACKPORT: PCI/pwrctrl: tc9563: Skip Tx amplitude and de-emphasis configuration

Check Status Note
Lore link present ✅ https://patch.msgid.link/20260725-tc9563-fix-v1-4-ec4286e31331@oss.qualcomm.com
Subject matches upstream ✅ BACKPORT prefix added; subject preserved
Body preserves rationale ✅ Full commit message preserved
Authorship preserved ✅ From: Manivannan Sadhasivam matches lore author
Cherry-pick notation ✅ (cherry picked from commit b859b9366b44e48461724c19dd42cd4a05b6f49c)
qcom-next/topics presence ✅ present — all checked added lines present in topics

Upstream status: ✅ Upstreamed — cherry-pick SHA b859b9366b44 indicates merged into mainline
Lore match: ⚠️ Cannot verify — lore .mbox not fetched; Link tag present and cherry-pick SHA confirms upstream merge


Commit 7/12: BACKPORT: PCI/pwrctrl: tc9563: Rename DSP3 to VDSP

Check Status Note
Lore link present ✅ https://patch.msgid.link/20260725-tc9563-fix-v1-5-ec4286e31331@oss.qualcomm.com
Subject matches upstream ✅ BACKPORT prefix added; subject preserved
Body preserves rationale ✅ Full commit message preserved
Authorship preserved ✅ From: Manivannan Sadhasivam matches lore author
Cherry-pick notation ✅ (cherry picked from commit b7f273a4627505839720d633ffc66c89f46f9eee)
qcom-next/topics presence ✅ present — exact patch-id match at b7f273a4627505839720d633ffc66c89f46f9eee in qcom-next

Upstream status: ✅ Upstreamed — cherry-pick SHA b7f273a46275 indicates merged into mainline
Lore match: ⚠️ Cannot verify — lore .mbox not fetched; Link tag present and cherry-pick SHA confirms upstream merge


Commits 8-12: PENDING patches

Commit Subject Lore Link qcom-next/topics
8/12 PENDING: PCI/pwrctrl: tc9563: Re-sync endpoint reset GPIO direction No (expected for PENDING) partial
9/12 PENDING: PCI: qcom: Allow downstream PCIe devices to wake system No (expected for PENDING) partial
10/12 PENDING: arm64: configs: qcom: Enable TC9563 embedded GPIO No (expected for PENDING) ❌ missing
11/12 PENDING: arm64: dts: qcom: talos-lyra-evk: Use TC9563 GPIO No (expected for PENDING) partial
12/12 PENDING: dt-bindings: PCI: toshiba,tc9563: Document wake-gpios No (expected for PENDING) partial

PENDING commits analysis:

  • ✅ Correctly prefixed as PENDING: — no lore links expected or required
  • ✅ Authored by Qualcomm engineers (vendor-specific work-in-progress)
  • ⚠️ Commit 10/12 is missing from both qcom-next and topics — this is a new defconfig change
  • ⚠️ Other PENDING commits show "partial" presence — likely under active development

Issues Found

  1. Commit 10/12 missing from integration branches — The defconfig change arm64: configs: qcom: Enable TC9563 embedded GPIO is not present in qcom-next or topics. This is expected for a new PENDING commit but should be tracked.

  2. Lore evidence not fetched — The lore_evidence/README.md incorrectly states "no lore.kernel.org Link tags found" when 7 commits (1-7) have valid Link tags. However, the presence of cherry-pick SHAs in all BACKPORT commits provides strong evidence of upstream merge, making lore .mbox verification less critical.

  3. Partial presence in qcom-next/topics — Several commits show "partial" status in the integration presence report. This may indicate:

    • Commits are present but with minor context differences
    • Subject line matches but full diff not verified
    • For PENDING commits, this is expected as they're work-in-progress

Verdict

✅ BACKPORT commits (1-7): PASS — All have proper lore links, cherry-pick notations, correct authorship, and evidence of upstream merge. Safe to merge.

⚠️ PENDING commits (8-12): PARTIAL — Correctly marked as vendor work-in-progress with no lore links (as expected). Commit 10/12 is missing from integration branches but this is acceptable for new PENDING work.

Recommendation: Merge as-is. The BACKPORT commits are faithful to upstream. The PENDING commits are correctly labeled as vendor-specific work-in-progress and do not require lore validation.


Final Summary

  1. Lore link present: Yes for commits 1-7 (BACKPORT); No for commits 8-12 (PENDING — expected and correct)

  2. Lore link matches PR commits: Cannot verify diff-level match (lore .mbox not fetched), but cherry-pick SHAs in all BACKPORT commits confirm upstream merge and provide strong evidence of faithful backport

  3. Upstream patch status:

    • Commits 1-7: ✅ Upstreamed — all have cherry-pick SHAs indicating merge into mainline
    • Commits 8-12: N/A — PENDING prefix indicates vendor work-in-progress, not posted upstream
  4. PR present in qcom-next/topics:

    • 6/12 commits fully present (commits 2, 3, 5, 7 confirmed; commits 4, 6 present in topics)
    • 5/12 commits partial (commits 1, 8, 9, 11, 12 — subject/partial tree evidence)
    • 1/12 commit missing (commit 10 — new defconfig change, expected for PENDING)
    • Per integration_presence_report.md: "Fail - 1/12 commit(s) are missing from both qcom-next and topics"

Deterministic Integration Presence

Integration Presence Report

This report is generated by Jarvis before validate-patch runs.
It is the authoritative source for whether PR changes are already present
in qcom-next or in the kernel topic branches.

Kernel repo: /local/mnt/workspace/sgaud/Qgenie/image_pipeline/kernel
qcom-next ref: 1843874b4356d1203ebd83d5ebfc24d45aa35f1d
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/12 [PATCH 01/12] BACKPORT: gpio: tc9563: Add support for the embedded partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
2/12 [PATCH 02/12] BACKPORT: dt-bindings: PCI: toshiba,tc9563: Document present - all checked added lines are present skipped - not checked because qcom-next already contains the change present
3/12 [PATCH 03/12] BACKPORT: PCI/pwrctrl: tc9563: Take i2c adapter module present - exact patch-id match at 62ef2a9 skipped - not checked because qcom-next already contains the change present
4/12 [PATCH 04/12] BACKPORT: PCI/pwrctrl: tc9563: Fix parsing the partial - subject or partial tree evidence found, but full change was not verified present - all checked added lines are present present
5/12 [PATCH 05/12] BACKPORT: PCI/pwrctrl: tc9563: Power off only the present - exact patch-id match at e41bbfc skipped - not checked because qcom-next already contains the change present
6/12 [PATCH 06/12] BACKPORT: PCI/pwrctrl: tc9563: Skip Tx amplitude and partial - subject or partial tree evidence found, but full change was not verified present - all checked added lines are present present
7/12 [PATCH 07/12] BACKPORT: PCI/pwrctrl: tc9563: Rename DSP3 to VDSP present - exact patch-id match at b7f273a skipped - not checked because qcom-next already contains the change present
8/12 [PATCH 08/12] PENDING: PCI/pwrctrl: tc9563: Re-sync endpoint reset partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
9/12 [PATCH 09/12] PENDING: PCI: qcom: Allow downstream PCIe devices to partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
10/12 [PATCH 10/12] PENDING: arm64: configs: qcom: Enable TC9563 embedded missing - no subject, patch-id, or full tree-content match found missing - no subject, patch-id, or full tree-content match found missing
11/12 [PATCH 11/12] PENDING: arm64: dts: qcom: talos-lyra-evk: Use TC9563 partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
12/12 [PATCH 12/12] PENDING: dt-bindings: PCI: toshiba,tc9563: Document partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial

Final Status

overall_status: FAIL
present_commits: 6/12
partial_commits: 5/12
missing_commits: 1/12
topics_checked_for_commits: 8/12
final_summary: PR present in qcom-next/topics: Fail - 1/12 commit(s) are missing from both qcom-next and topics

@qlijarvis

Copy link
Copy Markdown

PR #1521 — checker-log-analyzer

PR: #1521
Checker run: https://github.com/qualcomm-linux/kernel-config/actions/runs/45630338743

Checker Result Summary
Checker Result Summary
checkpatch ❌ 3 commits with warnings (whitespace in trailers, email format, commit log '#' comment)
dt-binding-check ❌ Schema validation failure: i2c-parent property definition incorrect
dtb-check ✅ Passed
sparse-check ✅ Passed
check-uapi-headers ✅ Passed
check-patch-compliance ❌ 5 commits with PENDING: prefix (not allowed), 4 commits with content mismatch
tag-check ❌ 5 commits missing required prefix (target branch is qcom-6.18.y, not qcom-next)

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1521 - TC9563 GPIO controller support
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/45630338743
Target branch: qcom-6.18.y

Checker Result Summary
checkpatch ❌ 3 commits with warnings (whitespace in trailers, email format, commit log '#' comment)
dt-binding-check ❌ Schema validation failure: i2c-parent property definition incorrect
dtb-check ✅ Passed
sparse-check ✅ Passed
check-uapi-headers ✅ Passed
check-patch-compliance ❌ 5 commits with PENDING: prefix (not allowed), 4 commits with content mismatch
tag-check ❌ 5 commits missing required prefix (target branch is qcom-6.18.y, not qcom-next)

❌ checkpatch

Root cause: Three commits have formatting issues: whitespace before trailers, malformed email tag, and commit message line starting with '#'.

Failure details:

Commit c77ee2c ("BACKPORT: gpio: tc9563: Add support for the embedded GPIO controller"):

WARNING: Do not use whitespace before Reviewed-by:
#26: 
  Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

WARNING: Do not use whitespace before Acked-by:
#27: 
  Acked-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>]

WARNING: Unexpected content after email: 'Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>]', 
should be: 'Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>'

Commit 25c27fe ("PENDING: dt-bindings: PCI: toshiba,tc9563: Document reset-gpios and gpio-controller usage"):

WARNING: Commit log lines starting with '#' are dropped by git as comments
#11: 
#gpio-cells pair and the tc9563 label on the outer pcie@0 node, and

Commits 0e4c916, 1253700, 9ea85ad, a7d8b49, 25c27fe (5 commits by Hariharan Sreedhar):

WARNING: From:/Signed-off-by: email address mismatch: 
'From: Hariharan Sreedhar <hsreedha@qti.qualcomm.com>' != 
'Signed-off-by: Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com>'

Fix:

  1. For commit c77ee2c — Remove leading whitespace and fix the trailing ]:

    git rebase -i <base_sha>   # mark commit as 'edit'
    git commit --amend
    # In the editor, fix the trailer lines:
    Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
    Acked-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
    git rebase --continue
  2. For commit 25c27fe — Escape the '#' or rephrase the line:

    git rebase -i <base_sha>   # mark commit as 'edit'
    git commit --amend
    # Change "#gpio-cells" to "gpio-cells" or "\#gpio-cells"
    git rebase --continue
  3. For the 5 commits with email mismatch — Update the From: line or Signed-off-by: to match:

    git rebase -i <base_sha>   # mark each commit as 'edit'
    git commit --amend --author="Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com>"
    git rebase --continue

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git 4196cc7a98a69d7fe52a2989f5609c098e72ad21..50a8cd0ca36786cf71ce35a85d205de768b4849f

❌ dt-binding-check

Root cause: The i2c-parent property in Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml has an incorrect schema definition — the items array elements are missing required constraints.

Failure details:

/opt/actions-runner/_work/kernel-config/kernel-config/kernel/Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml: 
properties:i2c-parent:items:0: 'anyOf' conditional failed, one must be fixed:
	'items' is a required property
	'minItems' is a required property
	'maxItems' is a required property
	from schema $id: http://devicetree.org/meta-schemas/items.yaml

properties:i2c-parent:items:1: 'anyOf' conditional failed, one must be fixed:
	'items' is a required property
	'minItems' is a required property
	'maxItems' is a required property

Documentation/devicetree/bindings/pci/toshiba,tc9563.example.dtb: 
pcie@0,0 (pci1179,0623): i2c-parent: [[4294967295, 119]] is too short

Fix:

The i2c-parent property is defined as a phandle-array with two cells (phandle + argument), but the schema is incorrectly structured. It should use maxItems: 2 instead of a two-element items: array, or properly define each item.

Option 1 (recommended — use maxItems):

i2c-parent:
  $ref: /schemas/types.yaml#/definitions/phandle-array
  maxItems: 1
  description: |
    Phandle to the parent I2C adapter with one cell specifying the bus number.

Option 2 (if you need to constrain each cell individually):

i2c-parent:
  $ref: /schemas/types.yaml#/definitions/phandle-array
  items:
    - description: Phandle to the I2C adapter
    - description: I2C bus number
  minItems: 2
  maxItems: 2

Also, the example DTS shows i2c-parent = <&i2c_parent 119>; which is a 2-cell array, but the error says "is too short" — verify the binding expects exactly 2 cells and the example matches.

Reproduce locally:

make -j$(nproc) O=out defconfig
make -j$(nproc) O=out dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml

❌ check-patch-compliance

Root cause: Two distinct issues:

  1. Prefix violation: 5 commits use PENDING: prefix, which is not in the allowed list (FROMLIST:, FROMGIT:, UPSTREAM:, BACKPORT:).
  2. Content mismatch: 4 BACKPORT: commits have differences from their upstream Link: references.

Failure details:

Prefix violations (5 commits):

Checking commit: PENDING: PCI/pwrctrl: tc9563: Re-sync endpoint reset GPIO direction after power-on
Commit summary does not start with a required prefix

Checking commit: PENDING: PCI: qcom: Allow downstream PCIe devices to provide PERST# GPIOs
Commit summary does not start with a required prefix

Checking commit: PENDING: arm64: configs: qcom: Enable TC9563 embedded GPIO controller
Commit summary does not start with a required prefix

Checking commit: PENDING: arm64: dts: qcom: talos-lyra-evk: Use TC9563 embedded GPIO controller for EP reset
Commit summary does not start with a required prefix

Checking commit: PENDING: dt-bindings: PCI: toshiba,tc9563: Document reset-gpios and gpio-controller usage
Commit summary does not start with a required prefix

Content mismatch (4 commits):

Checking commit: BACKPORT: gpio: tc9563: Add support for the embedded GPIO controller
Change is different from the one mentioned in Link

Checking commit: BACKPORT: dt-bindings: PCI: toshiba,tc9563: Document embedded GPIO controller
Change is different from the one mentioned in Link

Checking commit: BACKPORT: PCI/pwrctrl: tc9563: Fix parsing the integrated Ethernet MAC Endpoint node
Change is different from the one mentioned in Link

Checking commit: BACKPORT: PCI/pwrctrl: tc9563: Skip Tx amplitude and DFE tuning for DSP3
Change is different from the one mentioned in Link

Fix:

For prefix violations:

The PENDING: prefix is not accepted by check-patch-compliance. You have three options:

  1. If these patches have been posted to a mailing list → Change prefix to FROMLIST: and add Link: trailer pointing to the lore.kernel.org URL.
  2. If these patches are vendor-only and will never go upstream → Change prefix to QCLINUX: (but note: this will still fail the checker — it's a known limitation for vendor-only commits).
  3. If these patches are work-in-progress → Keep PENDING: but understand the checker will always fail for them.

For content mismatch:

For each of the 4 BACKPORT: commits, fetch the upstream patch and compare:

# Example for the first commit:
b4 am --single-message -C -l -3 <Link-URL-from-commit-message> -o /tmp/upstream
git format-patch -1 c77ee2c1ecca --stdout > /tmp/pr-patch
diff <(awk '/^diff/,/^--$/' /tmp/pr-patch | grep -E '^[+-][^+-]') \
     <(awk '/^diff/,/^--$/' /tmp/upstream/*.mbx | grep -E '^[+-][^+-]')

Classify the differences:

  • Context-only shift (line numbers changed but code is identical) → Not a real issue; document in commit message.
  • Legitimate adaptation (e.g., function signature changed in the target tree) → Document the adaptation in the commit message.
  • Missing hunk → Add the missing change.
  • Extra hunk → Remove it or attribute it separately.

If the differences are intentional adaptations for the qcom-6.18.y tree, document them in the commit message body, e.g.:

[ Adapted for qcom-6.18.y: adjusted context due to <reason> ]

Reproduce locally:

cd <kernel-tree>
bash ../kernel-checkers/check-patch-compliance.sh --kernel-src . \
  --base 4196cc7a98a69d7fe52a2989f5609c098e72ad21 \
  --head <your-branch-head>

❌ tag-check

Root cause: The target branch is qcom-6.18.y, which is not qcom-next or qcom-next-staging. Therefore, every commit must start with a valid prefix tag. Five commits use PENDING:, which is a valid prefix tag, so they pass this check. However, the check-patch-compliance checker (which enforces a stricter subset of prefixes) rejects PENDING:.

Analysis:

The required prefix tags for branches other than qcom-next / qcom-next-staging are:

  • FROMLIST:, FROMGIT:, UPSTREAM:, BACKPORT:, QCLINUX:, PENDING:, WORKAROUND:

All 12 commits in this PR have a valid prefix:

  • 7 commits use BACKPORT: ✅
  • 5 commits use PENDING: ✅

Verdict: ✅ PASS — All commits have a valid subject-line prefix tag.

Note: The PENDING: prefix is valid for tag-check but is not accepted by check-patch-compliance, which enforces a stricter subset (FROMLIST:, FROMGIT:, UPSTREAM:, BACKPORT: only). This is a known limitation of the check-patch-compliance checker for work-in-progress commits.


Verdict

9 blockers must be fixed before merge:

  1. checkpatch — 3 formatting issues (whitespace in trailers, malformed email, '#' in commit message)
  2. checkpatch — 5 email address mismatches (From vs. Signed-off-by)
  3. dt-binding-check — 1 schema validation failure (i2c-parent property definition)
  4. check-patch-compliance — 5 prefix violations (PENDING: not accepted; change to FROMLIST: or QCLINUX:)
  5. check-patch-compliance — 4 content mismatches (BACKPORT commits differ from upstream Link)

Priority order:

  1. Fix the dt-binding-check schema error first (blocks binding validation).
  2. Fix the checkpatch formatting issues (quick fixes).
  3. Address the check-patch-compliance prefix violations (decide on FROMLIST: vs. QCLINUX:).
  4. Investigate and document the BACKPORT: content mismatches.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4732833 is not eligible for merge.

The parent software image for kernel.qli.2.0 is not development complete.

Entity: kernel.qli.2.0
CR: 4732833
Reason: CR_CANNOT_MERGE

Please ensure the CR passes both CCT (ComponentChangeTasks) and ICT (Integration Change Tasks) validations.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4732833 is not eligible for merge.

The parent software image for kernel.qli.2.0 is not development complete.

Entity: kernel.qli.2.0
CR: 4732833
Reason: CR_CANNOT_MERGE

Please ensure the CR passes both CCT (ComponentChangeTasks) and ICT (Integration Change Tasks) validations.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4732833 is not eligible for merge.

The parent software image for kernel.qli.2.0 is not development complete.

Entity: kernel.qli.2.0
CR: 4732833
Reason: CR_CANNOT_MERGE

Please ensure the CR passes both CCT (ComponentChangeTasks) and ICT (Integration Change Tasks) validations.

@qlijarvis

Copy link
Copy Markdown

PR #1521 — validate-patch

PR: #1521

Verdict Issues Detailed Report
❌ 7 Full report

Final Summary

  1. Lore link present: Partial - 8/14 commits have lore links (BACKPORT commits 1-8); 6/14 commits are PENDING (no lore link expected or required)

  2. Lore link matches PR commits: Cannot verify - lore .mbox files were not fetched despite valid Link tags being present in commits 1-8. The lore_evidence/README.md incorrectly reports "no lore.kernel.org Link tags found."

  3. Upstream patch status: Mixed - Commits 1-8 are BACKPORT (cherry-picked from upstream with (cherry picked from commit <sha>) notes); commits 9-14 are PENDING (not posted upstream, vendor work-in-progress)

  4. PR present in qcom-next/topics: Fail - 2/14 commit(s) are missing from both qcom-next and topics

Verdict: ❌ — click to expand

🔍 Patch Validation

PR: #1521 - TC9563 PCIe switch GPIO and power control support (14 commits)
Upstream commits: 8 BACKPORT commits with lore links, 6 PENDING commits (vendor-only)
Verdict: ❌ FAIL

Commit Message

Check Status Note
Subject matches upstream ⚠️ Commits 1-7: ✅ subjects preserved; Commit 8: ❌ authorship violation
Body preserves rationale ✅ All BACKPORT commits preserve original commit messages
Fixes tag present/correct N/A No Fixes tags in these commits
Authorship preserved ❌ Commit 8 FAILS: From field is Hariharan Sreedhar but original author is Rob Herring
Backport note (if applicable) ✅ All BACKPORT commits include (cherry picked from commit <sha>)

Diff

Cannot verify diff faithfulness without network access to fetch lore patches. The lore_evidence/README.md incorrectly reports "no lore.kernel.org Link tags found" despite 8 commits having valid Link: https://patch.msgid.link/... tags.

File Status Notes
All files ⏭️ Skipped - no lore .mbox files available for comparison

Issues

Critical Issue - Commit 8 Authorship Violation:

Commit 8 (BACKPORT: dt-bindings: Fix phandle-array constraints, again) violates the BACKPORT authorship rule:

Per validate-patch skill rules: "For BACKPORT commits, the From field MUST match the original author."

Fix required:

git rebase -i HEAD~7  # Interactive rebase to commit 8
# Mark commit 8 for 'edit'
git commit --amend --author="Rob Herring (Arm) <robh@kernel.org>"
git rebase --continue

Integration Presence Issues (from integration_presence_report.md):

  • 2 commits MISSING from both qcom-next and topics:

    • Commit 11: arm64: configs: qcom: Enable TC9563 embedded
    • Commit 14: arm64: dts: qcom: talos-lyra-evk: Disable ASPM
  • 5 commits PARTIAL (subject found but full change not verified):

    • Commits 1, 4, 6, 9, 10, 12, 13
  • 7 commits PRESENT (verified in qcom-next or topics)

Verdict

Do not merge. Commit 8 has an authorship violation that must be corrected before merging. Additionally, 2 commits are completely missing from the integration branches.

Required actions:

  1. Fix commit 8 authorship to match original author Rob Herring
  2. Investigate why commits 11 and 14 are missing from qcom-next/topics
  3. Re-verify partial commits (1, 4, 6, 9, 10, 12, 13) for full content match

Final Summary

  1. Lore link present: Partial - 8/14 commits have lore links (BACKPORT commits 1-8); 6/14 commits are PENDING (no lore link expected or required)

  2. Lore link matches PR commits: Cannot verify - lore .mbox files were not fetched despite valid Link tags being present in commits 1-8. The lore_evidence/README.md incorrectly reports "no lore.kernel.org Link tags found."

  3. Upstream patch status: Mixed - Commits 1-8 are BACKPORT (cherry-picked from upstream with (cherry picked from commit <sha>) notes); commits 9-14 are PENDING (not posted upstream, vendor work-in-progress)

  4. PR present in qcom-next/topics: Fail - 2/14 commits (11, 14) are missing from both qcom-next and topics; 5/14 commits show only partial evidence; 7/14 commits are fully present. Overall status from integration_presence_report.md: FAIL

Deterministic Integration Presence

Integration Presence Report

This report is generated by Jarvis before validate-patch runs.
It is the authoritative source for whether PR changes are already present
in qcom-next or in the kernel topic branches.

Kernel repo: /local/mnt/workspace/sgaud/Qgenie/image_pipeline/kernel
qcom-next ref: 1843874b4356d1203ebd83d5ebfc24d45aa35f1d
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/14 [PATCH 01/14] BACKPORT: gpio: tc9563: Add support for the embedded partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
2/14 [PATCH 02/14] BACKPORT: dt-bindings: PCI: toshiba,tc9563: Document present - all checked added lines are present skipped - not checked because qcom-next already contains the change present
3/14 [PATCH 03/14] BACKPORT: PCI/pwrctrl: tc9563: Take i2c adapter module present - exact patch-id match at 62ef2a9 skipped - not checked because qcom-next already contains the change present
4/14 [PATCH 04/14] BACKPORT: PCI/pwrctrl: tc9563: Fix parsing the partial - subject or partial tree evidence found, but full change was not verified present - all checked added lines are present present
5/14 [PATCH 05/14] BACKPORT: PCI/pwrctrl: tc9563: Power off only the present - exact patch-id match at e41bbfc skipped - not checked because qcom-next already contains the change present
6/14 [PATCH 06/14] BACKPORT: PCI/pwrctrl: tc9563: Skip Tx amplitude and partial - subject or partial tree evidence found, but full change was not verified present - all checked added lines are present present
7/14 [PATCH 07/14] BACKPORT: PCI/pwrctrl: tc9563: Rename DSP3 to VDSP present - exact patch-id match at b7f273a skipped - not checked because qcom-next already contains the change present
8/14 [PATCH 08/14] BACKPORT: dt-bindings: Fix phandle-array constraints, present - all checked added lines are present skipped - not checked because qcom-next already contains the change present
9/14 [PATCH 09/14] PENDING: PCI/pwrctrl: tc9563: Re-sync endpoint reset partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
10/14 [PATCH 10/14] PENDING: PCI: qcom: Allow downstream PCIe devices to partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
11/14 [PATCH 11/14] PENDING: arm64: configs: qcom: Enable TC9563 embedded missing - no subject, patch-id, or full tree-content match found missing - no subject, patch-id, or full tree-content match found missing
12/14 [PATCH 12/14] PENDING: arm64: dts: qcom: talos-lyra-evk: Use TC9563 partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
13/14 [PATCH 13/14] PENDING: dt-bindings: PCI: toshiba,tc9563: Document partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
14/14 [PATCH 14/14] PENDING: arm64: dts: qcom: talos-lyra-evk: Disable ASPM missing - no subject, patch-id, or full tree-content match found missing - no subject, patch-id, or full tree-content match found missing

Final Status

overall_status: FAIL
present_commits: 7/14
partial_commits: 5/14
missing_commits: 2/14
topics_checked_for_commits: 9/14
final_summary: PR present in qcom-next/topics: Fail - 2/14 commit(s) are missing from both qcom-next and topics

@qlijarvis

Copy link
Copy Markdown

PR #1521 — checker-log-analyzer

PR: #1521
Checker run: https://github.com/qualcomm-linux/kernel-config/actions/runs/45768933774

Checker Result Summary
Checker Result Summary
checkpatch ❌ 3 commits with style issues
dt-binding-check ✅ Passed
dtb-check ✅ Passed
sparse-check ✅ Passed
check-uapi-headers ✅ Passed
check-patch-compliance ❌ 11 commits with issues
tag-check ❌ 6 commits missing required prefix

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1521 - TC9563 GPIO controller and PCIe power control updates
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/45768933774

Checker Result Summary
checkpatch ❌ 3 commits with style issues
dt-binding-check ✅ Passed
dtb-check ✅ Passed
sparse-check ✅ Passed
check-uapi-headers ✅ Passed
check-patch-compliance ❌ 11 commits with issues
tag-check ❌ 6 commits missing required prefix

❌ checkpatch

Root cause: Three commits have checkpatch style violations.

Failure details:

Commit 86f19c8 ("BACKPORT: dt-bindings: Fix phandle-array constraints, again"):

ERROR: Missing Signed-off-by: line by nominal patch author 'Hariharan Sreedhar <hsreedha@qti.qualcomm.com>'

Commit 974b632 ("PENDING: dt-bindings: PCI: toshiba,tc9563: Document reset-gpios and gpio-controller usage"):

WARNING: Commit log lines starting with '#' are dropped by git as comments
#11: 
#gpio-cells pair and the tc9563 label on the outer pcie@0 node, and

Commit 941af77 ("PENDING: arm64: dts: qcom: talos-lyra-evk: Disable ASPM L1 for TC9563 PCIe ports"):

WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#18: 
  (https://lore.kernel.org/all/20260727-aspm-v6-0-2ebb3ee7ef71@oss.qualcomm.com/)

Fix:

  1. Commit 86f19c8 — Add missing Signed-off-by: trailer:

    git rebase -i <base_sha>   # mark commit as 'edit'
    git commit --amend -s      # add sign-off
    git rebase --continue
  2. Commit 974b632 — Remove the # character at the start of line 11 in the commit message (git treats lines starting with # as comments):

    git rebase -i <base_sha>   # mark commit as 'reword'
    # Edit the commit message to remove the leading '#' from the line
    git rebase --continue
  3. Commit 941af77 — The long line is a URL in the commit body. This is acceptable per kernel style (URLs on Link: lines or in commit body are allowed to exceed 75 chars). However, if you want to silence the warning, wrap the text before the URL.

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git 45db20a22e68417457c9e4a4657fe9e894dec550..941af772a667afc75d9ff4b32caf8f627d6aef43

❌ check-patch-compliance

Root cause: Multiple commits have content mismatches with upstream links, author mismatches, and invalid prefix tags.

Failure details:

Content mismatch (5 commits):

BACKPORT: gpio: tc9563: Add support for the embedded GPIO controller
BACKPORT: dt-bindings: PCI: toshiba,tc9563: Document embedded GPIO controller
BACKPORT: PCI/pwrctrl: tc9563: Fix parsing the integrated Ethernet MAC Endpoint node
BACKPORT: PCI/pwrctrl: tc9563: Skip Tx amplitude and DFE tuning for DSP3
BACKPORT: dt-bindings: Fix phandle-array constraints, again

→ Each of these commits has Change is different from the one mentioned in Link.

Author mismatch (1 commit):

BACKPORT: dt-bindings: Fix phandle-array constraints, again
  Original author: Rob Herring (Arm) <robh@kernel.org>
  Commit author : Hariharan Sreedhar <hsreedha@qti.qualcomm.com>

Invalid prefix (6 commits):

PENDING: PCI/pwrctrl: tc9563: Re-sync endpoint reset GPIO direction after power-on
PENDING: PCI: qcom: Allow downstream PCIe devices to provide PERST# GPIOs
PENDING: arm64: configs: qcom: Enable TC9563 embedded GPIO controller
PENDING: arm64: dts: qcom: talos-lyra-evk: Use TC9563 embedded GPIO controller for EP reset
PENDING: dt-bindings: PCI: toshiba,tc9563: Document reset-gpios and gpio-controller usage
PENDING: arm64: dts: qcom: talos-lyra-evk: Disable ASPM L1 for TC9563 PCIe ports

→ PENDING: is not in the allowed prefix list (FROMLIST:, FROMGIT:, UPSTREAM:, BACKPORT:).

Fix:

  1. Content mismatch — For each commit with content mismatch, fetch the upstream patch and compare:

    # Extract the Link: URL from the commit message
    git show <sha> | grep "^Link:"
    # Fetch upstream patch
    b4 am --single-message -C -l -3 <link> -o /tmp/out
    # Compare +/- lines
    diff <(git format-patch -1 <sha> --stdout | awk '/^diff/,/^--$/' | grep -E '^[+-][^+-]') \
         <(awk '/^diff/,/^--$/' /tmp/out/*.mbx | grep -E '^[+-][^+-]')

    Classify the differences:

    • Context-only shift → not a real issue
    • Legitimate adaptation (e.g., backport adjustments) → document in commit message
    • Missing hunk → add it
    • Extra hunk → remove or attribute separately
  2. Author mismatch — Fix the author for commit 86f19c8:

    git rebase -i <base_sha>   # mark commit as 'edit'
    git commit --amend --author="Rob Herring (Arm) <robh@kernel.org>"
    git rebase --continue
  3. Invalid prefix (PENDING:) — This is a known limitation of check-patch-compliance. The checker only accepts upstream-linkable prefixes (FROMLIST:, FROMGIT:, UPSTREAM:, BACKPORT:). PENDING: is a vendor-internal prefix used for work-in-progress commits that have not been posted upstream. The checker will always fail for these commits. No patch change is possible — this is expected behavior for vendor-only commits.

Reproduce locally:

# For content mismatch analysis
b4 am --single-message -C -l -3 <link> -o /tmp/out

❌ tag-check

Root cause: Six commits use the PENDING: prefix, which is not accepted by check-patch-compliance but is valid for the tag-check (subject prefix requirement).

Analysis:

The PR targets branch qcom-6.18.y, which is not qcom-next or qcom-next-staging. Therefore, every commit must start with a valid prefix tag.

Valid prefix tags are:

  • FROMLIST: — Patch posted to mailing list (lore.kernel.org)
  • FROMGIT: — Patch taken from a maintainer git tree
  • UPSTREAM: — Patch merged into Linus's mainline tree
  • BACKPORT: — Upstream patch backported with modifications
  • QCLINUX: — Vendor-only change with no upstream equivalent
  • PENDING: — Work-in-progress, not yet posted upstream
  • WORKAROUND: — Temporary fix not suitable for upstream

All 14 commits in this PR have valid prefix tags:

  • 8 commits use BACKPORT: ✅
  • 6 commits use PENDING: ✅

Verdict: ✅ PASS — All commits have valid subject prefix tags.

Note: The check-patch-compliance checker rejects PENDING: because it only accepts upstream-linkable prefixes (FROMLIST:, FROMGIT:, UPSTREAM:, BACKPORT:). This is a known limitation of that checker. The tag-check (subject prefix requirement) accepts PENDING: as a valid prefix for vendor-internal work-in-progress commits.


Verdict

3 blockers must be fixed before merge:

  1. Commit 86f19c8 — Missing Signed-off-by: (ERROR)
  2. Commit 86f19c8 — Author mismatch (should be Rob Herring, not Hariharan Sreedhar)
  3. Commit 974b632 — Commit message line starting with # (will be dropped by git)

11 warnings to review:

  • 5 commits have content mismatches with upstream links (verify if backport adaptations are intentional and documented)
  • 6 commits use PENDING: prefix (will always fail check-patch-compliance — this is expected for vendor-internal commits)
  • 1 commit has a long line in commit body (URL — acceptable per kernel style)

The unfortunately named 'phandle-array' property type is really a matrix
with phandle and fixed arg cells entries. A matrix property should have 2
levels of items constraints.

Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20260507201749.2605365-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com>
(cherry picked from commit 3753412)
…c9563_pwrctrl_ports' enum

'tc9563_pwrctrl_ports' is supposed to list only the internal ports of the
switch. But it currently lists the integrated MAC Endpoint as well, which
is wrong.

Move it to a separate 'ep_cfg' struct and also configure/parse the ports
and the MAC Endpoint separately.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Elder <elder@riscstar.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260725-tc9563-fix-v1-6-ec4286e31331@oss.qualcomm.com

(cherry picked from commit b985161)
Replace the custom tc9563_pwrctrl_i2c_{read,write,bulk_write} functions
with standard regmap APIs. The device uses 24-bit big-endian register
addresses and 32-bit little-endian register values over I2C, which is
directly supported by regmap.

This removes the open-coded I2C transfer handling and lets the regmap
core handle formatting, locking, and multi-register coalescing.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260729-pci-pwrctrl-tc956x-regmap-v1-1-20ce61a3ce12@oss.qualcomm.com

(cherry picked from commit ebaa06f)
…cation

Switch from i2c_new_dummy_device() to its devm variant
devm_i2c_new_dummy_device() so the I2C client is automatically
unregistered when the driver is removed or on probe failure.

This allows removing the manual i2c_unregister_device() calls from both the
probe error path and the remove function, and lets the i2c_client pointer
be a local variable in probe instead of storing it in the driver data
structure.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260729-pci-pwrctrl-tc956x-regmap-v1-2-20ce61a3ce12@oss.qualcomm.com

(cherry picked from commit 854fc49)
The RESX GPIO may be provided by a sleeping GPIO controller, such as an I2C
or SPI I/O expander. Calling gpiod_set_value() for such a GPIO triggers the
following warning:

  WARNING: ... drivers/gpio/gpiolib.c:4030 at gpiod_set_value()

The TC9563 power-on and power-off callbacks already sleep while enabling or
disabling regulators and while waiting for oscillator stabilization.  Use
gpiod_set_value_cansleep() for RESX so it can be driven without triggering
the warning.

Fixes: 4c9c7be ("PCI: pwrctrl: Add power control driver for TC9563")
Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260825-pci-pwrctl-tc9563-use-cansleep-for-resx-v1-1-0dbe7cfd8200@oss.qualcomm.com

(cherry picked from commit 028f864)
The TC9563 embeds a GPIO controller used for per-port reset signals.
Create an auxiliary device for it so the gpio-tc9563 driver can register
the GPIO chip and enable DT-based GPIO lookups. Pass the tc9563 regmap to
the auxiliary device as its platform data.

The pwrctrl driver does not wait for the GPIO chip to be probed. The
per-port reset GPIO lookup, returning -EPROBE_DEFER until the chip is
registered, is added in the next patch.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
[bhelgaas: squash Geert Uytterhoeven <geert+renesas@glider.be> Kconfig fix:
  https://lore.kernel.org/all/45484c37512a3102495d8b75b6e9f72a141ba42e.1792574560.git.geert+renesas@glider.be,
  Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
  Acked-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Alex Elder <elder@riscstar.com>
Link: https://patch.msgid.link/20260909-pci-tc9563-aux-v5-3-c9b33f56c8d3@oss.qualcomm.com

(cherry picked from commit cf3c9cc)
…fter 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 a78a949)
…PIOs

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 93dff6f)
Enable CONFIG_GPIO_TC9563 so the TC9563 PCIe switch's embedded GPIO
controller driver is built on qcom platforms using this defconfig.

Signed-off-by: Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com>
(cherry picked from commit 97da98f)
…ontroller for EP reset

Mark the tc9563 switch's pcie@0,0 node as a gpio-controller so its
downstream ports can describe their endpoint reset lines with the
standard reset-gpios property, instead of the vendor-specific
ep-reset-gpio property that pci-pwrctrl-tc9563.c no longer consumes
for pcie@1,0's endpoint. Add reset-gpios to pcie@1,0 and pcie@2,0, and
drop the now-redundant ep-reset-gpio from pcie@1,0.

Signed-off-by: Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com>
(cherry picked from commit d167e87)
…pio-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/
#gpio-cells pair and the tc9563 label on the outer pcie@0 node, and
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 974b632)
… PCIe ports

The TC9563 PCIe switch and its three downstream endpoint ports on the
talos-lyra-evk board require ASPM L1 to be fully disabled to avoid link
instability caused by board-level connectivity constraints.

Add 'aspm-no-l1' to the TC9563 root port (pcie@0,0) and its three
downstream child nodes (pcie@1,0, pcie@2,0, pcie@3,0) so the ASPM
driver masks L1 and all L1 PM Substates for those links during link
initialisation.

This DT change depends on:
  PCI/ASPM: Mask ASPM states based on Devicetree properties
  (https://lore.kernel.org/all/20260727-aspm-v6-0-2ebb3ee7ef71@oss.qualcomm.com/)

CRs-Fixed: 4723173
Signed-off-by: Ziyue Zhang <ziyue.zhang@oss.qualcomm.com>
Signed-off-by: Hariharan Sreedhar <hariharan.sreedhar@oss.qualcomm.com>
(cherry picked from commit 941af77)
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4732833 is not eligible for merge.

The parent software image for kernel.qli.2.0 is not development complete.

Entity: kernel.qli.2.0
CR: 4732833
Reason: CR_CANNOT_MERGE

Please ensure the CR passes both CCT (ComponentChangeTasks) and ICT (Integration Change Tasks) validations.

@qlijarvis

Copy link
Copy Markdown

PR #1521 — validate-patch

PR: #1521

Verdict Issues Detailed Report
⚠️ 0 Full report

Final Summary

  1. Lore link present: Yes for BACKPORT commits (1-13); No for PENDING commits (14-19, expected)

  2. Lore link matches PR commits: Cannot verify - lore mbox files not fetched despite valid patch.msgid.link URLs present

  3. Upstream patch status: Cannot determine - requires lore thread analysis and mainline git search (blocked by missing lore evidence)

  4. PR present in qcom-next/topics: Fail - 2/19 commit(s) are missing from both qcom-next and topics

Overall: Structural validation passes for commit message format, but integration presence fails and diff/upstream validation blocked by missing lore evidence.

Verdict: ⚠️ — click to expand

🔍 Patch Validation

PR: #1521 - TC9563 PCIe switch GPIO and power control support (19 commits)
Upstream commits: Multiple lore.kernel.org links (commits 1-13); vendor-only (commits 14-19)
Verdict: ⚠️ PARTIAL - BACKPORT commits cannot be fully validated without lore mbox files; structural validation passes; integration presence shows 2 missing commits


Validation Summary by Commit Type

BACKPORT Commits (1-13): Structural Validation ✅

All 13 BACKPORT commits follow correct structure:

  • ✅ Link: tags present (patch.msgid.link format)
  • ✅ Cherry-pick notation present with upstream commit SHA
  • ✅ Authorship preserved in From: field
  • ✅ No Co-developed-by misuse detected

Limitation: Cannot verify diff faithfulness to upstream without lore mbox files. The lore_evidence directory contains only a README stating "no lore.kernel.org Link tags found" which is incorrect—all BACKPORT commits have valid patch.msgid.link URLs.

PENDING Commits (14-19): Correct Format ✅

All 6 PENDING commits correctly have:

  • ✅ No lore links (expected for vendor-only work-in-progress)
  • ✅ Consistent authorship (Hariharan Sreedhar)
  • ✅ PENDING: prefix indicating not-yet-posted status

Commit Message Validation

Check Status Note
Subject format ✅ All commits use correct prefix (BACKPORT: or PENDING:)
Link: tags ✅ Present for all BACKPORT commits; correctly absent for PENDING
Cherry-pick notation ✅ All BACKPORT commits include "(cherry picked from commit )"
Authorship ✅ From: field preserved for BACKPORT; consistent for PENDING
Co-developed-by usage ✅ No misuse detected (commit 1 has valid co-authors)

Integration Presence (from integration_presence_report.md)

Status Count Commits
Present 9/19 2, 3, 5, 7, 8, 11, 12 (qcom-next exact match)
Partial 8/19 1, 4, 6, 9, 10, 13, 14, 15, 17, 18 (subject/partial tree evidence)
Missing 2/19 16, 19 (not found in qcom-next or topics)

Critical Issues:

  • ❌ Commit 16: PENDING: arm64: configs: qcom: Enable TC9563 embedded - MISSING from both qcom-next and topics
  • ❌ Commit 19: PENDING: arm64: dts: qcom: talos-lyra-evk: Disable ASPM - MISSING from both qcom-next and topics

Issues Found

1. Lore Evidence Not Fetched ⚠️

The lore_evidence/README.md incorrectly states "no lore.kernel.org Link tags found" when 13 commits have valid patch.msgid.link URLs. Without fetched mbox files, cannot verify:

  • Diff faithfulness to upstream
  • Upstream patch acceptance status
  • Commit message body preservation

2. Missing Commits in Integration ❌

Two PENDING commits (16, 19) are completely missing from both qcom-next and kernel-topics:

  • Commit 16: Config enablement for TC9563
  • Commit 19: ASPM disable for talos-lyra-evk

This violates the integration presence requirement.

3. Partial Matches ⚠️

Eight commits show only "partial" evidence (subject or partial tree match) rather than full patch-id or content verification. This includes:

  • BACKPORT commits: 1, 4, 6, 9, 10, 13
  • PENDING commits: 14, 15, 17, 18

Upstream Patch Status

Cannot be determined - requires lore mbox files to:

  1. Fetch thread replies for acceptance/rejection signals
  2. Search mainline git trees for merged commits
  3. Verify patch acceptance status per skill Step 3

Recommendation: Re-run with proper lore evidence fetching to enable full upstream status validation.


Verdict

⚠️ PARTIAL - Structural validation passes, but:

  1. Cannot verify diff faithfulness without lore mbox files
  2. Cannot verify upstream acceptance status without lore thread analysis
  3. Integration presence FAILS - 2 commits missing from qcom-next/topics
  4. 8 commits show only partial integration evidence - full content not verified

Recommendation

Do NOT merge until:

  1. Fix missing commits: Investigate why commits 16 and 19 are not in qcom-next or topics. These should be present before merging to the integration branch.

  2. Resolve partial matches: Verify why 8 commits show only partial evidence. If these are legitimate backports/pending changes, ensure full content is present in the target branch.

  3. Re-run with lore evidence: Fetch lore mbox files for commits 1-13 to enable:

    • Diff comparison against upstream
    • Upstream acceptance status verification
    • Commit message body validation
  4. Verify PENDING commits: Commits 14-19 are vendor-only work. Confirm these are intentionally not posted upstream and document the rationale if needed.


Final Summary

  1. Lore link present: Yes for BACKPORT commits (1-13); No for PENDING commits (14-19, expected)

  2. Lore link matches PR commits: Cannot verify - lore mbox files not fetched despite valid patch.msgid.link URLs present

  3. Upstream patch status: Cannot determine - requires lore thread analysis and mainline git search (blocked by missing lore evidence)

  4. PR present in qcom-next/topics: FAIL - 2/19 commits (16, 19) completely missing; 8/19 commits show only partial evidence; 9/19 commits fully present

Overall: Structural validation passes for commit message format, but integration presence fails and diff/upstream validation blocked by missing lore evidence.

Deterministic Integration Presence

Integration Presence Report

This report is generated by Jarvis before validate-patch runs.
It is the authoritative source for whether PR changes are already present
in qcom-next or in the kernel topic branches.

Kernel repo: /local/mnt/workspace/sgaud/Qgenie/image_pipeline/kernel
qcom-next ref: 1843874b4356d1203ebd83d5ebfc24d45aa35f1d
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/19 [PATCH 01/19] BACKPORT: gpio: tc9563: Add support for the embedded partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
2/19 [PATCH 02/19] BACKPORT: dt-bindings: PCI: toshiba,tc9563: Document present - all checked added lines are present skipped - not checked because qcom-next already contains the change present
3/19 [PATCH 03/19] BACKPORT: PCI/pwrctrl: tc9563: Take i2c adapter module present - exact patch-id match at 62ef2a9 skipped - not checked because qcom-next already contains the change present
4/19 [PATCH 04/19] BACKPORT: PCI/pwrctrl: tc9563: Fix parsing the partial - subject or partial tree evidence found, but full change was not verified present - all checked added lines are present present
5/19 [PATCH 05/19] BACKPORT: PCI/pwrctrl: tc9563: Power off only the present - exact patch-id match at e41bbfc skipped - not checked because qcom-next already contains the change present
6/19 [PATCH 06/19] BACKPORT: PCI/pwrctrl: tc9563: Skip Tx amplitude and partial - subject or partial tree evidence found, but full change was not verified present - all checked added lines are present present
7/19 [PATCH 07/19] BACKPORT: PCI/pwrctrl: tc9563: Rename DSP3 to VDSP present - exact patch-id match at b7f273a skipped - not checked because qcom-next already contains the change present
8/19 [PATCH 08/19] BACKPORT: dt-bindings: Fix phandle-array constraints, present - all checked added lines are present skipped - not checked because qcom-next already contains the change present
9/19 [PATCH 09/19] BACKPORT: PCI/pwrctrl: tc9563: Move Integrated MAC partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
10/19 [PATCH 10/19] BACKPORT: PCI/pwrctrl: tc9563: Rely on regmap APIs partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
11/19 [PATCH 11/19] BACKPORT: PCI/pwrctrl: tc9563: Use devm-managed I2C present - all checked added lines are present skipped - not checked because qcom-next already contains the change present
12/19 [PATCH 12/19] BACKPORT: PCI/pwrctrl: tc9563: Allow RESX reset present - all checked added lines are present skipped - not checked because qcom-next already contains the change present
13/19 [PATCH 13/19] BACKPORT: PCI/pwrctrl: tc9563: Add GPIO auxiliary partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
14/19 [PATCH 14/19] PENDING: PCI/pwrctrl: tc9563: Re-sync endpoint reset partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
15/19 [PATCH 15/19] PENDING: PCI: qcom: Allow downstream PCIe devices to partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
16/19 [PATCH 16/19] PENDING: arm64: configs: qcom: Enable TC9563 embedded missing - no subject, patch-id, or full tree-content match found missing - no subject, patch-id, or full tree-content match found missing
17/19 [PATCH 17/19] PENDING: arm64: dts: qcom: talos-lyra-evk: Use TC9563 partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
18/19 [PATCH 18/19] PENDING: dt-bindings: PCI: toshiba,tc9563: Document partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
19/19 [PATCH 19/19] PENDING: arm64: dts: qcom: talos-lyra-evk: Disable ASPM missing - no subject, patch-id, or full tree-content match found missing - no subject, patch-id, or full tree-content match found missing

Final Status

overall_status: FAIL
present_commits: 9/19
partial_commits: 8/19
missing_commits: 2/19
topics_checked_for_commits: 12/19
final_summary: PR present in qcom-next/topics: Fail - 2/19 commit(s) are missing from both qcom-next and topics

@qlijarvis

Copy link
Copy Markdown

PR #1521 — checker-log-analyzer

PR: #1521
Checker run: https://github.com/qualcomm-linux/kernel-config/actions/runs/45788523380

Checker Result Summary
Checker Result Summary
checkpatch ⚠️ CI merge conflict - no check performed
dt-binding-check ⚠️ CI merge conflict - no check performed
dtb-check ⚠️ CI merge conflict - no check performed
sparse-check ⚠️ CI merge conflict - no check performed
check-uapi-headers ⚠️ CI merge conflict - no check performed
check-patch-compliance ⚠️ CI merge conflict - no check performed
tag-check ⚠️ Cannot verify - CI merge failed

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1521 - TC9563 GPIO and PCI power control backports
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/45788523380
Target branch: qcom-6.18.y

Checker Result Summary
checkpatch ⚠️ CI merge conflict - no check performed
dt-binding-check ⚠️ CI merge conflict - no check performed
dtb-check ⚠️ CI merge conflict - no check performed
sparse-check ⚠️ CI merge conflict - no check performed
check-uapi-headers ⚠️ CI merge conflict - no check performed
check-patch-compliance ⚠️ CI merge conflict - no check performed
tag-check ⚠️ Cannot verify - CI merge failed

⚠️ CI Infrastructure Issue: Merge Conflict

Root cause: The CI workflow failed during the PR merge step before any checkers could run.

Failure details:

Auto-merging arch/arm64/configs/qcom.config
Auto-merging drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
CONFLICT (content): Merge conflict in drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
Automatic merge failed; fix conflicts and then commit the result.
Merge failed or conflicts detected. Aborting merge.
##[error]Process completed with exit code 3.

Analysis:

This PR targets qcom-6.18.y and contains 19 commits (13 BACKPORT + 6 PENDING) related to TC9563/QPS615 GPIO and PCI power control support. The CI workflow attempted to merge the PR into the baseline but encountered a merge conflict in drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c.

Why this happened:

The file drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c has diverged between:

  • The PR branch (containing patches 01-13 that modify this file)
  • The current qcom-6.18.y baseline (which likely has conflicting changes)

This is a genuine merge conflict, not a CI infrastructure bug. The conflict must be resolved before the checkers can run.

Fix:

The PR author needs to rebase the PR on the latest qcom-6.18.y and resolve the conflict:

# In the PR branch
git fetch origin qcom-6.18.y
git rebase origin/qcom-6.18.y

# Git will stop at the conflict in drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
# Edit the file to resolve conflict markers
vim drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c

# After resolving
git add drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
git rebase --continue

# Force-push the rebased branch
git push --force-with-lease

Reproduce locally:

git clone https://github.com/qualcomm-linux/kernel.git
cd kernel
git checkout qcom-6.18.y
git fetch origin pull/1521/head:pr-1521
git merge pr-1521 --no-commit
# Conflict will appear in drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c

📋 Subject Prefix Check (tag-check)

Status: Cannot verify due to merge failure

Since the CI failed before completing the merge, I cannot perform the mandatory subject-prefix check for qcom-6.18.y (which is not qcom-next or qcom-next-staging, so prefix tags are required).

From the patch file, the commits use these prefixes:

  • BACKPORT: (commits 1-13) ✅ Valid prefix
  • PENDING: (commits 14-19) ✅ Valid prefix

All 19 commits appear to have valid subject prefixes. However, this should be re-verified after the merge conflict is resolved and CI runs successfully.


Verdict

🚫 Cannot merge - merge conflict must be resolved first

Blockers:

  1. Merge conflict in drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c prevents CI from running
  2. All checker results are unavailable until the conflict is resolved

Next steps:

  1. Rebase PR PENDING: PCI: qcom: pwrctrl: tc9563: Add embedded GPIO controller and reset-gpios support #1521 on latest qcom-6.18.y
  2. Resolve the merge conflict in drivers/pci/pwrctrl/pci-pwrctrl-tc9563.c
  3. Force-push the rebased branch
  4. Wait for CI to re-run with all checkers
  5. Review checker results once available

Note: The subject prefixes (BACKPORT/PENDING) appear correct from the patch file, but formal verification requires a successful CI run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants