Skip to content

phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirm… - #1358

Open
tapas-rana2811 wants to merge 1 commit into
qualcomm-linux:qcom-6.18.yfrom
tapas-rana2811:tapar/phy-autonomous-mode-detection
Open

tapas-rana2811 wants to merge 1 commit into
qualcomm-linux:qcom-6.18.yfrom
tapas-rana2811:tapar/phy-autonomous-mode-detection

Conversation

@tapas-rana2811

@tapas-rana2811 tapas-rana2811 commented Oct 28, 2026 •

Copy link
Copy Markdown

…ed present

qmp_combo_enable_autonomous_mode() picks the autonomous-mode wake
interrupt mask by comparing qmp->phy_mode against
PHY_MODE_USB_HOST_SS/PHY_MODE_USB_DEVICE_SS. This combo phy's
set_mode() only ever stores PHY_MODE_USB_HOST or PHY_MODE_USB_DEVICE
(dwc3 core and dwc3-qcom never pass the _SS/_HS/_FS/_LS variants to
this driver), so the comparison is always false and the phy is stuck
selecting ARCVR_DTCT_EN | ARCVR_DTCT_EVENT_SEL regardless of whether a
SuperSpeed device is actually attached, instead of using LFPS
detection (ALFPS_DTCT_EN) when appropriate.

Rather than growing the already overloaded enum phy_mode USB_*_SS/HS/
FS/LS split further, carry live SS-link presence through the existing
generic submode argument of phy_set_mode_ext(), as a new
enum qcom_usb_ss_state (UNKNOWN/PRESENT/ABSENT) shared via
include/linux/phy/phy-qcom-qmp-usb-ss.h. dwc3-qcom determines the
state from the USB3 root hub's attached child speed at suspend entry
and passes it down via phy_set_mode_ext(phy, PHY_MODE_USB_HOST,
ss_state); qmp_combo_usb_set_mode() validates and stores it, and
qmp_combo_enable_autonomous_mode() switches on it to pick the
interrupt mask.

CRs-Fixed: 4730864

Link: https://lore.kernel.org/all/20261106082716.128968-1-tapas.rana@oss.qualcomm.com/

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4673342 is not eligible for merge.

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

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

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

@qlijarvis

Copy link
Copy Markdown

PR #1358 — validate-patch

PR: #1358

Verdict Issues Detailed Report
❌ 1 Full report

Final Summary

  1. Lore link present: No — no lore.kernel.org link found in commit message; validation cannot proceed per skill Step 1
  2. Lore link matches PR commits: N/A — no lore link to compare against
  3. Upstream patch status: Not upstream — no evidence of upstream posting or acceptance
  4. PR present in qcom-next/topics: Partial - 1/1 commit(s) only have partial integration evidence
Verdict: ❌ — click to expand

🔍 Patch Validation

PR: #1358 - phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Upstream commit: N/A
Verdict: ❌ FAIL

Commit Message

Check Status Note
Subject matches upstream N/A No upstream lore link present
Body preserves rationale N/A No upstream lore link present
Fixes tag present/correct ❌ Missing - patch fixes a bug but has no Fixes tag
Authorship preserved N/A No upstream source to compare
Backport note (if applicable) N/A Not a backport
Vendor prefix ❌ Missing required prefix (QCLINUX:/PENDING:/FROMLIST:/UPSTREAM:)

Diff

File Status Notes
drivers/phy/qualcomm/phy-qcom-qmp-combo.c ⚠️ New ss_state field and logic; no upstream reference
drivers/usb/dwc3/dwc3-qcom.c ⚠️ New dwc3_qcom_read_ss_state() function; no upstream reference
include/linux/phy/phy-qcom-qmp-usb-ss.h ⚠️ New header file; no upstream reference

Issues

Critical:

  1. No lore.kernel.org link — The commit message lacks a Link: tag pointing to an upstream lore.kernel.org posting. Per the validate-patch skill Step 1, this is a FAIL condition.

  2. Missing vendor prefix — The subject line lacks a required prefix:

    • UPSTREAM: if merged into Linus's tree
    • FROMLIST: if posted to a mailing list but not yet merged
    • BACKPORT: if backporting an upstream commit with modifications
    • QCLINUX: if vendor-only with no upstream equivalent
    • PENDING: if work-in-progress not yet posted
    • WORKAROUND: if temporary fix not suitable for upstream
  3. Missing Fixes tag — The commit message describes a bug ("the comparison is always false and the phy is stuck selecting ARCVR_DTCT_EN | ARCVR_DTCT_EVENT_SEL regardless of whether a SuperSpeed device is actually attached") but does not include a Fixes: tag identifying the commit that introduced the issue.

Integration presence:

  • Per integration_presence_report.md: PARTIAL — subject or partial tree evidence found in qcom-next, but full change was not verified. This suggests the commit may be partially present or similar work exists, but the exact patch is not confirmed in qcom-next or kernel-topics.

Verdict

Do not merge without correction. This patch requires:

  1. Add a vendor prefix to the subject line:

    • If this is vendor-only work with no plans to upstream: use QCLINUX:
    • If this will be posted upstream: use PENDING: or FROMLIST: (after posting) with a Link: tag
    • If this is already upstream: use UPSTREAM: or BACKPORT: with a Link: tag
  2. Add a Fixes: tag identifying the commit that introduced the bug where qmp->phy_mode comparison always fails.

  3. If this patch is intended for upstream submission, post it to the appropriate mailing list (linux-phy, linux-usb) and add the Link: tag to the commit message.

Final Summary

  1. Lore link present: No — no lore.kernel.org link found in commit message; validation cannot proceed per skill Step 1
  2. Lore link matches PR commits: N/A — no lore link to compare against
  3. Upstream patch status: Not upstream — no evidence of upstream posting or acceptance
  4. PR present in qcom-next/topics: Partial — per integration_presence_report.md: "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: c7896917e523946138ce654d4b6c1e33d5a8f4e5
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/1 [PATCH] phy: qcom: qmp-combo: Select LFPS detect only when SS link is 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

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 #1358 — checker-log-analyzer

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

Checker Result Summary
Checker Result Summary
checkpatch ❌ 7 errors, 19 warnings, 2 checks — whitespace/indentation issues
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed (no UAPI changes)
check-patch-compliance ❌ Missing required subject prefix
tag-check ❌ Missing required subject prefix (mandatory for qcom-6.18.y)

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1358 - phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/40718595720
Target branch: qcom-6.18.y

Checker Result Summary
checkpatch ❌ 7 errors, 19 warnings, 2 checks — whitespace/indentation issues
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed (no UAPI changes)
check-patch-compliance ❌ Missing required subject prefix
tag-check ❌ Missing required subject prefix (mandatory for qcom-6.18.y)

❌ checkpatch

Root cause: The patch contains widespread whitespace and indentation errors — spaces used instead of tabs for code indentation throughout drivers/usb/dwc3/dwc3-qcom.c.

Failure details:

ERROR: code indent should use tabs where possible
#132: FILE: drivers/usb/dwc3/dwc3-qcom.c:266:
+                return QCOM_USB_SS_ABSENT;

ERROR: code indent should use tabs where possible
#137: FILE: drivers/usb/dwc3/dwc3-qcom.c:271:
+                return QCOM_USB_SS_ABSENT;

ERROR: code indent should use tabs where possible
#144: FILE: drivers/usb/dwc3/dwc3-qcom.c:278:
+               return QCOM_USB_SS_ABSENT;

ERROR: space required before the open brace '{'
#157: FILE: drivers/usb/dwc3/dwc3-qcom.c:391:
+		for (i = 0; i < qcom->num_ports; i++){

ERROR: code indent should use tabs where possible
#161: FILE: drivers/usb/dwc3/dwc3-qcom.c:395:
+                                       qcom->ports[i].ss_state);

WARNING: please, no spaces at the start of a line (×19 instances)
WARNING: suspect code indent for conditional statements (×3 instances)
CHECK: Alignment should match open parenthesis
CHECK: Blank lines aren't necessary before a close brace '}'

Total: 7 errors, 19 warnings, 2 checks

Fix: Replace all leading spaces with tabs in drivers/usb/dwc3/dwc3-qcom.c:260-397. The kernel coding style requires tabs for indentation, not spaces.

# Fix whitespace issues
git rebase -i beba1a54e9c240a8c1e42466b8d87256c801d7fa
# mark commit as 'edit'
# Fix indentation in drivers/usb/dwc3/dwc3-qcom.c:
#   - Replace spaces with tabs for all code lines
#   - Add space before '{' on line 391: i++){  →  i++) {
#   - Fix alignment on line 395 to match open parenthesis
#   - Remove blank line before '}' on line 397
git add drivers/usb/dwc3/dwc3-qcom.c
git commit --amend --no-edit
git rebase --continue

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git beba1a54e9c240a8c1e42466b8d87256c801d7fa..e5a65fdb7b1b92e03a966a077ee53dd83befad83

❌ check-patch-compliance

Root cause: Commit subject does not start with a required prefix (FROMLIST:, FROMGIT:, UPSTREAM:, or BACKPORT:).

Failure details:

Checking commit: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Commit summary does not start with a required prefix

Fix: Add an appropriate prefix to the commit subject based on the patch origin:

git rebase -i beba1a54e9c240a8c1e42466b8d87256c801d7fa
# mark commit as 'edit'
git commit --amend -m "FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present"
# (keep the rest of the commit message unchanged)
git rebase --continue

Choose the correct prefix:

  • FROMLIST: — if posted to lore.kernel.org but not yet merged
  • FROMGIT: — if taken from a maintainer git tree
  • UPSTREAM: — if merged into Linus's mainline tree
  • BACKPORT: — if backported with modifications

Note: If this is a vendor-only patch with no upstream equivalent, use QCLINUX: — however, check-patch-compliance will still fail for QCLINUX: (known checker limitation). If the patch has been posted upstream, add a Link: trailer pointing to the lore.kernel.org URL.

Reproduce locally:

# Check if subject has valid prefix
git log --format="%s" beba1a54e9c240a8c1e42466b8d87256c801d7fa..e5a65fdb7b1b92e03a966a077ee53dd83befad83 | \
  grep -qE '^(FROMLIST|FROMGIT|UPSTREAM|BACKPORT):' || echo "MISSING PREFIX"

❌ tag-check

Root cause: The target branch is qcom-6.18.y (not qcom-next or qcom-next-staging), which requires every commit subject to start with a valid prefix tag. The commit subject lacks this required prefix.

Failure details:

Commit e5a65fdb7b1b ("phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present")
Subject line does not start with a required prefix.

All branches except qcom-next and qcom-next-staging require one of:
FROMLIST: / FROMGIT: / UPSTREAM: / BACKPORT: / QCLINUX: / PENDING: / WORKAROUND:

Fix: Same as check-patch-compliance above — add the appropriate prefix to the commit subject.

Reproduce locally:

git log --format="%H %s" beba1a54e9c240a8c1e42466b8d87256c801d7fa..e5a65fdb7b1b92e03a966a077ee53dd83befad83 | \
  while read sha subject; do
    if ! echo "$subject" | grep -qE '^(FROMLIST|FROMGIT|UPSTREAM|BACKPORT|QCLINUX|PENDING|WORKAROUND):'; then
      echo "MISSING prefix: $sha $subject"
    fi
  done

Verdict

3 blockers must be fixed before merge:

  1. checkpatch — Fix all whitespace/indentation errors (replace spaces with tabs in drivers/usb/dwc3/dwc3-qcom.c)
  2. check-patch-compliance — Add required subject prefix (FROMLIST:, FROMGIT:, UPSTREAM:, or BACKPORT:)
  3. tag-check — Same as Adding Email Checker  #2 (subject prefix is mandatory for qcom-6.18.y branch)

The code changes appear sound (sparse passed, no DT/UAPI issues), but the patch formatting and commit metadata must be corrected before this PR can be merged.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No Change Task Found

No associated change tasks found for CR 4730864 on any of the following entities:

Entities:

  • kernel.qli.2.0

CR: 4730864

Please ensure the CR has a change task associated with at least one of the entities for this branch.

@tapas-rana2811
tapas-rana2811 force-pushed the tapar/phy-autonomous-mode-detection branch from e5a65fd to 0d1f322 Compare November 2, 2026 10:46
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4730864 is not eligible for merge.

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

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

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

1 similar comment
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4730864 is not eligible for merge.

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

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

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

@qlijarvis

Copy link
Copy Markdown

PR #1358 — validate-patch

PR: #1358

Verdict Issues Detailed Report
❌ 0 Full report

Final Summary

  1. Lore link present: No — FROMLIST: prefix requires a lore.kernel.org link, but none was found in the commit message
  2. Lore link matches PR commits: N/A — cannot compare without a lore link
  3. Upstream patch status: Unknown — cannot determine acceptance status without a lore link to check the mailing list thread
  4. PR present in qcom-next/topics: Partial - 1/1 commit(s) only have partial integration evidence
Verdict: ❌ — click to expand

🔍 Patch Validation

PR: #1358 - FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Upstream commit: N/A (no lore.kernel.org link found)
Verdict: ❌ FAIL

Commit Message

Check Status Note
Subject matches upstream ❌ Cannot verify - no lore link provided
Body preserves rationale ❌ Cannot verify - no lore link provided
Fixes tag present/correct ⚠️ No Fixes tag present (may not be required if not fixing a regression)
Authorship preserved ❌ Cannot verify - no lore link provided
Backport note (if applicable) N/A Not a backport (FROMLIST prefix)

Diff

File Status Notes
drivers/phy/qualcomm/phy-qcom-qmp-combo.c ❌ Cannot verify against upstream - no lore link
drivers/usb/dwc3/dwc3-qcom.c ❌ Cannot verify against upstream - no lore link
include/linux/phy/phy-qcom-qmp-usb-ss.h ❌ Cannot verify against upstream - no lore link

Issues

Critical: Missing lore.kernel.org Link

The commit uses the FROMLIST: prefix, which according to the validate-patch skill requires a lore.kernel.org link in the commit message. The skill explicitly states:

FROMLIST: → Posted to mailing list, not yet merged → Yes — lore.kernel.org link required

However, no Link: tag pointing to lore.kernel.org was found in the commit message. This violates the mandatory requirement for FROMLIST: commits.

Expected format:

Link: https://lore.kernel.org/r/<message-id>

Additional observations:

  1. Coding style issues in the patch:

    • Inconsistent indentation in the switch statement (uses spaces instead of tabs in some places)
    • Trailing whitespace visible in dwc3-qcom.c changes
    • Missing space after for keyword: for (i = 0; i < qcom->num_ports; i++){ should be i++) {
  2. Integration presence: According to integration_presence_report.md, this commit shows only "partial" presence in qcom-next/topics, meaning the full change was not verified in the integration branches.

Verdict

Do not merge. This commit must be corrected before acceptance:

  1. Add the mandatory lore.kernel.org Link tag to the commit message pointing to the upstream mailing list posting
  2. Fix coding style issues (indentation, spacing, trailing whitespace)
  3. Verify the commit is properly integrated into qcom-next or the appropriate topic branch

Final Summary

  1. Lore link present: No — FROMLIST: prefix requires a lore.kernel.org link, but none was found in the commit message
  2. Lore link matches PR commits: N/A — cannot compare without a lore link
  3. Upstream patch status: Unknown — cannot determine acceptance status without a lore link to check the mailing list thread
  4. PR present in qcom-next/topics: Partial — only partial integration evidence found; full change not verified in qcom-next or topics (per integration_presence_report.md)

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: 17bbb4b37bbc4fc5827b4667445a0c43967c0f48
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/1 [PATCH] FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when 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

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 #1358 — checker-log-analyzer

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

Checker Result Summary
Checker Result Summary
checkpatch ❌ 7 errors, 19 warnings, 2 checks
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed
check-patch-compliance ❌ Missing Link: tag
tag-check ✅ Subject has valid FROMLIST: prefix

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1358 - FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/41431653281
Target branch: qcom-6.18.y

Checker Result Summary
checkpatch ❌ 7 errors, 19 warnings, 2 checks
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed
check-patch-compliance ❌ Missing Link: tag
tag-check ✅ Subject has valid FROMLIST: prefix

❌ checkpatch

Root cause: Multiple coding style violations including incorrect indentation (spaces instead of tabs), switch/case alignment issues, and block comment formatting.

Failure details:

Commit 0d1f3228b889 ("FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present")
total: 7 errors, 19 warnings, 2 checks, 132 lines checked

ERROR: switch and case should be at the same indent
#60: FILE: drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3934:
+	switch (submode) {
+		case QCOM_USB_SS_PRESENT:
+		case QCOM_USB_SS_ABSENT:
+		default:

ERROR: switch and case should be at the same indent
#86: FILE: drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3976:
+	switch (qmp->ss_state) {
+		case QCOM_USB_SS_PRESENT:
+		case QCOM_USB_SS_ABSENT:
+		case QCOM_USB_SS_UNKNOWN:
+		default:

WARNING: Block comments should align the * on each line
#83: FILE: drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3973:
+	/*
+	* Use LFPS detection only when a SuperSpeed device is known to be

WARNING: please, no spaces at the start of a line (×18 instances)
#125-161: FILE: drivers/usb/dwc3/dwc3-qcom.c:259-395:
+       struct usb_device *udev;
+       struct usb_hcd __maybe_unused *hcd, *usb3_hcd;
[... multiple lines with leading spaces instead of tabs ...]

ERROR: code indent should use tabs where possible (×5 instances)
#132, #137, #144, #161: FILE: drivers/usb/dwc3/dwc3-qcom.c

ERROR: space required before the open brace '{'
#157: FILE: drivers/usb/dwc3/dwc3-qcom.c:391:
+		for (i = 0; i < qcom->num_ports; i++){

CHECK: Alignment should match open parenthesis
#161: FILE: drivers/usb/dwc3/dwc3-qcom.c:395:
+			phy_set_mode_ext(qcom->dwc.usb3_generic_phy[i], PHY_MODE_USB_HOST,
+                                       qcom->ports[i].ss_state);

CHECK: Blank lines aren't necessary before a close brace '}'
#163: FILE: drivers/usb/dwc3/dwc3-qcom.c:397:

Fix:

  1. Switch/case indentation — Remove extra tab from case labels:

    switch (submode) {
    case QCOM_USB_SS_PRESENT:
    case QCOM_USB_SS_ABSENT:
    default:
  2. Block comment alignment — Add space before *:

    /*
     * Use LFPS detection only when a SuperSpeed device is known to be
  3. Replace all leading spaces with tabs in drivers/usb/dwc3/dwc3-qcom.c:259-395:

    # Use expand/unexpand or editor's retab function
    sed -i 's/^       /\t/' drivers/usb/dwc3/dwc3-qcom.c
  4. Add space before opening brace:

    for (i = 0; i < qcom->num_ports; i++) {
  5. Fix function call alignment — align continuation line with opening parenthesis:

    phy_set_mode_ext(qcom->dwc.usb3_generic_phy[i], PHY_MODE_USB_HOST,
                     qcom->ports[i].ss_state);
  6. Remove blank line before closing brace at line 397.

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git fc941f0f030b..85bf591eb201

Fix command:

git rebase -i fc941f0f030b   # mark commit 0d1f3228 as 'edit'
# Apply all fixes above to the affected files
git add drivers/phy/qualcomm/phy-qcom-qmp-combo.c drivers/usb/dwc3/dwc3-qcom.c
git commit --amend --no-edit
git rebase --continue

❌ check-patch-compliance

Root cause: Commit message is missing the required Link: tag pointing to the upstream lore.kernel.org patch.

Failure details:

Checking commit: FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
No 'Link' found in commit message

Fix:

Add a Link: tag to the commit message body pointing to the lore.kernel.org URL where this patch was posted upstream. The tag should be placed after the commit description and before the Signed-off-by: line.

Example format:

<commit description>

Link: https://lore.kernel.org/linux-usb/<message-id>/
Signed-off-by: Tapas Rana <taparana@qti.qualcomm.com>

Fix command:

git rebase -i fc941f0f030b   # mark commit 0d1f3228 as 'edit'
git commit --amend   # Add Link: tag in the commit message editor
git rebase --continue

Verdict

2 blockers must be fixed before merge:

  1. checkpatch — 7 errors (switch/case indentation, spaces vs tabs, missing space before brace) and 19 warnings (block comment alignment, indentation) must be resolved. These are straightforward formatting issues.

  2. check-patch-compliance — Missing Link: tag. Since the commit uses the FROMLIST: prefix, it must include a Link: pointing to the upstream lore.kernel.org posting.

Recommended action: Fix the indentation/formatting issues and add the upstream Link: tag, then force-push the updated commit to the PR branch.

@tapas-rana2811
tapas-rana2811 force-pushed the tapar/phy-autonomous-mode-detection branch from 0d1f322 to 987c945 Compare November 2, 2026 13:22
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4730864 is not eligible for merge.

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

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

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

@qlijarvis

Copy link
Copy Markdown

PR #1358 — validate-patch

PR: #1358

Verdict Issues Detailed Report
❌ 2 Full report

Final Summary

  1. Lore link present: No — FROMLIST: prefix requires a Link: https://lore.kernel.org/r/<message-id> tag, but none was found in the commit message
  2. Lore link matches PR commits: N/A — cannot compare without a lore link
  3. Upstream patch status: Unknown — cannot determine acceptance/rejection status without the lore link to check mailing list thread
  4. PR present in qcom-next/topics: Partial - 1/1 commit(s) only have partial integration evidence
Verdict: ❌ — click to expand

🔍 Patch Validation

PR: #1358 - FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Upstream commit: N/A (no lore.kernel.org link found)
Verdict: ❌ FAIL

Commit Message

Check Status Note
Subject matches upstream ❌ Cannot verify - no lore link provided
Body preserves rationale ❌ Cannot verify - no lore link provided
Fixes tag present/correct ⚠️ No Fixes tag present (may not be required if not fixing a regression)
Authorship preserved ❌ Cannot verify - no lore link provided
Backport note (if applicable) N/A Not a backport (FROMLIST prefix)

Diff

File Status Notes
drivers/phy/qualcomm/phy-qcom-qmp-combo.c ❌ Cannot verify against upstream - no lore link
drivers/usb/dwc3/dwc3-qcom.c ❌ Cannot verify against upstream - no lore link
include/linux/phy/phy-qcom-qmp-usb-ss.h ❌ Cannot verify against upstream - no lore link

Issues

Critical: Missing lore.kernel.org Link

The commit uses the FROMLIST: prefix, which explicitly indicates the patch was posted to a mailing list but not yet merged upstream. According to the validate-patch skill requirements and kernel contribution guidelines:

  • FROMLIST: commits must include a Link: https://lore.kernel.org/r/<message-id> tag in the commit message
  • This link is required to:
    1. Verify the patch content matches what was posted upstream
    2. Track the upstream review status and community feedback
    3. Ensure proper attribution and traceability
    4. Allow reviewers to check for newer revisions or maintainer decisions

Expected format:

Signed-off-by: Tapas Rana <taparana@qti.qualcomm.com>
Link: https://lore.kernel.org/r/<message-id>

Additional observations:

  1. Integration presence: According to integration_presence_report.md, this commit shows "partial" evidence in qcom-next (subject or partial tree match found, but full change not verified). This suggests related work may exist but this exact patch is not fully integrated.

  2. Code quality concerns (style only, not blocking):

    • dwc3_qcom_suspend(): Line 391 has inconsistent spacing in the for-loop closing brace: for (i = 0; i < qcom->num_ports; i++){ should be i++) {
    • Switch statement indentation in qmp_combo_usb_set_mode() uses non-standard style (case labels should align with switch)

Verdict

Do not merge until the lore.kernel.org link is added to the commit message.

The FROMLIST: prefix creates a binding contract that this patch was posted to the mailing list. Without the lore link, reviewers cannot:

  • Verify the patch content is faithful to what was posted
  • Check if the patch has been accepted, rejected, or superseded by a newer revision
  • Review upstream maintainer feedback
  • Confirm the original author's identity and sign-off chain

Final Summary

  1. Lore link present: No — FROMLIST: prefix requires a Link: https://lore.kernel.org/r/<message-id> tag, but none was found in the commit message
  2. Lore link matches PR commits: N/A — cannot compare without a lore link
  3. Upstream patch status: Unknown — cannot determine acceptance/rejection status without the lore link to check mailing list thread
  4. PR present in qcom-next/topics: Partial — integration_presence_report.md shows "partial" evidence (subject or partial tree match found, but full change not verified in qcom-next or 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: 17bbb4b37bbc4fc5827b4667445a0c43967c0f48
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/1 [PATCH] FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when 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

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 #1358 — checker-log-analyzer

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

Checker Result Summary
Checker Result Summary
checkpatch ❌ 3 errors, 1 warning, 1 check
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed (no UAPI changes)
check-patch-compliance ❌ Missing Link: tag
tag-check ✅ Subject has valid FROMLIST: prefix

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1358 - FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/41452509769

Checker Result Summary
checkpatch ❌ 3 errors, 1 warning, 1 check
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed (no UAPI changes)
check-patch-compliance ❌ Missing Link: tag
tag-check ✅ Subject has valid FROMLIST: prefix

❌ checkpatch

Root cause: Commit 987c945 has multiple coding style violations: incorrect switch/case indentation, missing space before brace, misaligned block comment, and unnecessary blank line.

Failure details:

ERROR: switch and case should be at the same indent
#60: FILE: drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3934:
+	switch (submode) {
+		case QCOM_USB_SS_PRESENT:
+		case QCOM_USB_SS_ABSENT:
[...]
+		default:

WARNING: Block comments should align the * on each line
#83: FILE: drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3973:
+	/*
+	* Use LFPS detection only when a SuperSpeed device is known to be

ERROR: switch and case should be at the same indent
#86: FILE: drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3976:
+	switch (qmp->ss_state) {
+		case QCOM_USB_SS_PRESENT:
[...]
+		case QCOM_USB_SS_ABSENT:
+		case QCOM_USB_SS_UNKNOWN:
+		default:

ERROR: space required before the open brace '{'
#157: FILE: drivers/usb/dwc3/dwc3-qcom.c:391:
+		for (i = 0; i < qcom->num_ports; i++){

CHECK: Blank lines aren't necessary before a close brace '}'
#163: FILE: drivers/usb/dwc3/dwc3-qcom.c:397:
+
+		}

987c945f4c88b0c4f5c4647c653f84886d853b03 total: 3 errors, 1 warnings, 1 checks, 132 lines checked

Fix:

  1. Switch/case indentation (2 errors) — case labels should align with switch:

    # In drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3934 and :3976
    # Change from:
    switch (submode) {
    	case QCOM_USB_SS_PRESENT:
    # To:
    switch (submode) {
    case QCOM_USB_SS_PRESENT:
  2. Block comment alignment (1 warning) — Align * on continuation lines:

    # In drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3973
    # Change from:
    /*
    * Use LFPS detection only when...
    # To:
    /*
     * Use LFPS detection only when...
  3. Missing space before brace (1 error) — Add space before {:

    # In drivers/usb/dwc3/dwc3-qcom.c:391
    # Change from:
    for (i = 0; i < qcom->num_ports; i++){
    # To:
    for (i = 0; i < qcom->num_ports; i++) {
  4. Unnecessary blank line (1 check) — Remove blank line before closing brace:

    # In drivers/usb/dwc3/dwc3-qcom.c:397
    # Remove the blank line before the closing }

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git 5c398266004176fbadb0864af19dd6e6ad3706c6..2fc73391dc35e6254a62d4aa66ebe59305d45dd0

Fix command:

git rebase -i 5c398266004176fbadb0864af19dd6e6ad3706c6
# mark commit 987c945f4c88 as 'edit'
# Apply the 4 fixes above to the respective files
git add drivers/phy/qualcomm/phy-qcom-qmp-combo.c drivers/usb/dwc3/dwc3-qcom.c
git commit --amend --no-edit
git rebase --continue

❌ check-patch-compliance

Root cause: Commit message is missing the required Link: tag pointing to the upstream lore.kernel.org patch.

Failure details:

Checking commit: FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
No 'Link' found in commit message

Fix:

The FROMLIST: prefix indicates this patch was posted to a mailing list. Add a Link: tag to the commit message body pointing to the lore.kernel.org URL:

git rebase -i 5c398266004176fbadb0864af19dd6e6ad3706c6
# mark commit 987c945f4c88 as 'edit'
git commit --amend
# Add to the commit message body (before Signed-off-by:):
Link: https://lore.kernel.org/.../<message-id>
# Save and exit
git rebase --continue

The Link: tag should point to the exact lore.kernel.org URL where this patch was posted. If the patch hasn't been posted yet, either:

  • Post it first and add the Link, or
  • Change the prefix from FROMLIST: to PENDING: (though note that PENDING: will still fail check-patch-compliance as it's not in the allowed prefix list)

Reproduce locally:

# Verify the Link is valid by fetching with b4:
b4 am --single-message -C -l -3 <lore-url> -o /tmp/out

Verdict

2 blockers must be fixed before merge:

  1. checkpatch — 3 coding style errors (switch/case indentation, missing space before brace) and 1 warning (block comment alignment) must be corrected
  2. check-patch-compliance — Missing Link: tag must be added to the commit message

Both issues can be resolved with a single git rebase -i session to amend the commit.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
qmp_combo_enable_autonomous_mode() picks the autonomous-mode wake
interrupt mask by comparing qmp->phy_mode against
PHY_MODE_USB_HOST_SS/PHY_MODE_USB_DEVICE_SS. This combo phy's
set_mode() only ever stores PHY_MODE_USB_HOST or PHY_MODE_USB_DEVICE
(dwc3 core and dwc3-qcom never pass the _SS/_HS/_FS/_LS variants to
this driver), so the comparison is always false and the phy is stuck
selecting ARCVR_DTCT_EN | ARCVR_DTCT_EVENT_SEL regardless of whether a
SuperSpeed device is actually attached, instead of using LFPS
detection (ALFPS_DTCT_EN) when appropriate.

Rather than growing the already overloaded enum phy_mode USB_*_SS/HS/
FS/LS split further, carry live SS-link presence through the existing
generic submode argument of phy_set_mode_ext(), as a new
enum qcom_usb_ss_state (UNKNOWN/PRESENT/ABSENT) shared via
include/linux/phy/phy-qcom-qmp-usb-ss.h. dwc3-qcom determines the
state from the USB3 root hub's attached child speed at suspend entry
and passes it down via phy_set_mode_ext(phy, PHY_MODE_USB_HOST,
ss_state); qmp_combo_usb_set_mode() validates and stores it, and
qmp_combo_enable_autonomous_mode() switches on it to pick the
interrupt mask.

Add Link: tag pointing to valid lore patch submitted upstream.

@tapas-rana2811
tapas-rana2811 force-pushed the tapar/phy-autonomous-mode-detection branch from 987c945 to bc3a047 Compare November 12, 2026 14:00
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4730864 is not eligible for merge.

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

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

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

@qcomlnxci
qcomlnxci requested a review from a team November 12, 2026 14:02
@qlijarvis

Copy link
Copy Markdown

PR #1358 — validate-patch

PR: #1358

Verdict Issues Detailed Report
❌ 3 Full report

Final Summary

  1. Lore link present: Yes — https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/
  2. Lore link matches PR commits: No — PR squashes patches 1/3, 2/3, and 3/3 into a single commit but links only to patch 2/3; commit message describes the entire series while lore patch 2/3 describes only the qmp-combo changes; diff includes all three patches' changes
  3. Upstream patch status: ⏳ Decision Pending — Posted to lore.kernel.org on 2026-11-06; no merge signals (applied, queued, Reviewed-by:, Acked-by:) or rejection signals (NAK) found in the thread; series is under review
  4. PR present in qcom-next/topics: Partial - 1/1 commit(s) only have partial integration evidence
Verdict: ❌ — click to expand

🔍 Patch Validation

PR: #1358 - FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Upstream commit: https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/
Verdict: ❌ FAIL

Commit Message

Check Status Note
Subject matches upstream ⚠️ PR subject is close but differs: PR says "Select LFPS detect only when SS link is confirmed present" vs lore "[PATCH 2/3] phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present" — functionally equivalent
Body preserves rationale ❌ PR commit message is a squashed summary of the entire 3-patch series, not the individual patch 2/3 commit message. The PR body describes all three patches (adding the enum, modifying qmp-combo, and modifying dwc3-qcom), while the lore patch 2/3 only describes the qmp-combo changes
Fixes tag present/correct ✅ No Fixes tag in either version (not a bug fix)
Authorship preserved ✅ From: Tapas Rana <tapas.rana@oss.qualcomm.com> matches lore author
Backport note (if applicable) N/A Not a backport — this is a FROMLIST commit

Diff

File Status Notes
drivers/phy/qualcomm/phy-qcom-qmp-combo.c ❌ PR contains changes from BOTH patch 1/3 and patch 2/3: includes the header addition (#include <linux/phy/phy-qcom-qmp-usb-ss.h>), struct field addition, set_mode logic, AND autonomous_mode switch logic. Lore patch 2/3 only contains the qmp-combo driver changes, not the header creation
drivers/usb/dwc3/dwc3-qcom.c ❌ PR contains patch 3/3 content — this file is not touched in lore patch 2/3 at all
include/linux/phy/phy-qcom-qmp-usb-ss.h ❌ PR contains patch 1/3 content — this new header file is created in patch 1/3, not patch 2/3

Issues

Critical: PR squashes a 3-patch series into a single commit

The lore link points to patch 2/3 of a 3-patch series:

  • Patch 1/3 (message-ID 20261106082716.128968-2): Creates include/linux/phy/phy-qcom-qmp-usb-ss.h with the enum qcom_usb_ss_state definition
  • Patch 2/3 (message-ID 20261106082716.128968-3): Modifies drivers/phy/qualcomm/phy-qcom-qmp-combo.c to use the new enum
  • Patch 3/3 (message-ID 20261106082716.128968-4): Modifies drivers/usb/dwc3/dwc3-qcom.c to pass the SS state to the PHY

The PR commit contains all three patches squashed together, but the Link: tag points only to patch 2/3. This is incorrect for several reasons:

  1. Commit message mismatch: The PR commit message describes the entire series (mentions all three components), while the lore patch 2/3 commit message only describes the qmp-combo driver changes
  2. Diff content mismatch: The PR diff includes changes from all three patches, while the lore link points to only one patch in the middle of the series
  3. Dependency violation: The lore series explicitly states in the cover letter that "All three should be merged in order and ideally through the same tree" — squashing them breaks this dependency structure
  4. Attribution incomplete: Only one lore link is provided, but three separate upstream patches exist

Line number differences: The PR patch applies to different base line numbers than the lore patch (e.g., PR shows @@ -2275,6 +2276,7 @@ while lore shows @@ -2630,6 +2631,7 @@), indicating the PR is based on a different tree state than the lore submission.

Comment formatting difference: In qmp_combo_enable_autonomous_mode(), the PR has a typo in the comment: * present. For absent or unknown state, use receiver detection. (missing space after * on line 2), while the lore patch has correct formatting: * present. For absent or unknown state, use receiver detection.

Verdict

❌ FAIL — Do not merge without correction

This PR incorrectly squashes a 3-patch upstream series into a single commit and links to only the middle patch. The correct approach is:

  1. Split into three separate commits, each with its own lore link:

    • Commit 1: FROMLIST: phy: qcom-qmp-usb-ss: add shared SS-link-state submode contract → Link to 20261106082716.128968-2
    • Commit 2: FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present → Link to 20261106082716.128968-3
    • Commit 3: FROMLIST: usb: dwc3: qcom: pass live SS-link state into PHY at suspend entry → Link to 20261106082716.128968-4
  2. Preserve the series structure as the upstream maintainers intended — the cover letter explicitly states these must be merged in order

  3. Fix the comment formatting typo in the autonomous_mode function

Final Summary

  1. Lore link present: Yes — https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/
  2. Lore link matches PR commits: No — PR squashes patches 1/3, 2/3, and 3/3 into a single commit but links only to patch 2/3; commit message describes the entire series while lore patch 2/3 describes only the qmp-combo changes; diff includes all three patches' changes
  3. Upstream patch status: ⏳ Decision Pending — Posted to lore.kernel.org on 2026-11-06; no merge signals (applied, queued, Reviewed-by:, Acked-by:) or rejection signals (NAK) found in the thread; series is under review
  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" for 1/1 commit; likely due to the squashed nature of the PR not matching any single upstream commit

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: 17bbb4b37bbc4fc5827b4667445a0c43967c0f48
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/1 [PATCH] FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when 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

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 #1358 — checker-log-analyzer

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

Checker Result Summary
Checker Result Summary
checkpatch ❌ Block comment alignment issue
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No devicetree changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed
check-patch-compliance ❌ Content mismatch with upstream link
tag-check ✅ Subject has valid FROMLIST: prefix

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1358 - FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/43233094875

Checker Result Summary
checkpatch ❌ Block comment alignment issue
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No devicetree changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed
check-patch-compliance ❌ Content mismatch with upstream link
tag-check ✅ Subject has valid FROMLIST: prefix

❌ checkpatch

Root cause: Block comment alignment — the second line of a multi-line comment is not properly aligned with the opening /*.

Failure details:

WARNING: Block comments should align the * on each line
#83: FILE: drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3974:
+	 * Use LFPS detection only when a SuperSpeed device is known to be
+	* present. For absent or unknown state, use receiver detection.

The second line has + * (tab + asterisk) instead of + * (tab + space + asterisk).

Fix:

git rebase -i feab1968d912aaef3269cf1da69d29f8f9e111ee   # mark commit bc3a04733d24 as 'edit'
# Edit drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3974
# Change line 3975 from:
#	* present. For absent or unknown state, use receiver detection.
# to:
#	 * present. For absent or unknown state, use receiver detection.
# (add a space before the asterisk)
git add drivers/phy/qualcomm/phy-qcom-qmp-combo.c
git commit --amend --no-edit
git rebase --continue

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git feab1968d912aaef3269cf1da69d29f8f9e111ee..bc3a04733d245fcb9329204c08d49471453186e2

❌ check-patch-compliance

Root cause: The patch content in the PR differs from the upstream patch referenced in the Link: tag.

Failure details:

Checking commit: FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Change is different from the one mentioned in Link

The checker fetched the upstream patch from the lore link (https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/) and found that the PR's diff does not match the upstream version.

Analysis:

This can happen for several reasons:

  1. Context-only shift — surrounding code differs between upstream and the vendor tree, causing context lines to differ (not a real issue).
  2. Legitimate adaptation — the patch was modified to fit the vendor tree (e.g., missing dependencies, different baseline).
  3. Missing or extra hunks — the PR omits or adds changes not present upstream.

Fix:

  1. Fetch the upstream patch and compare:

    b4 am --single-message -C -l -3 https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/ -o /tmp/upstream
    git format-patch -1 bc3a04733d245fcb9329204c08d49471453186e2 --stdout > /tmp/pr.patch
    # Compare the +/- lines:
    diff <(awk '/^diff/,/^--$/' /tmp/pr.patch | grep -E '^[+-][^+-]') \
         <(awk '/^diff/,/^--$/' /tmp/upstream/*.mbx | grep -E '^[+-][^+-]')
  2. If the difference is context-only (surrounding lines differ but the actual changes are identical) → this is a false positive; the patch is correct.

  3. If the difference is a legitimate adaptation (e.g., the vendor tree has a different baseline or missing dependencies) → document the adaptation in the commit message:

    [ Adapted for qcom-6.18.y: <brief explanation of what was changed and why> ]
    
  4. If the difference is a missing or extra hunk → either add the missing hunk or remove the extra hunk, or split the extra changes into a separate commit with a different prefix (e.g., QCLINUX:).

Note: The check-patch-compliance checker enforces strict content matching with upstream. If this is a genuine adaptation for the vendor tree, the checker will always fail — this is a known limitation. In such cases, document the adaptation clearly in the commit message.

Reproduce locally:

b4 am --single-message -C -l -3 https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/ -o /tmp/upstream
git format-patch -1 bc3a04733d245fcb9329204c08d49471453186e2 --stdout > /tmp/pr.patch
diff /tmp/pr.patch /tmp/upstream/*.mbx

Verdict

2 blockers to fix before merge:

  1. checkpatch — Fix block comment alignment (trivial: add one space).
  2. check-patch-compliance — Investigate and document the content mismatch with upstream. If this is a legitimate adaptation, add a note to the commit message explaining the difference.

All other checkers passed or were skipped (no relevant files changed).

@shashim-quic

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4673342 is not eligible for merge.

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

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

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

tapas-rana2811 please take care of this.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CRs-Fixed: 4730864

confine it to PE description and remove from commit log. The problem checker trying to highlights is to make sure mainline change is merged.

…is confirmed present

  qmp_combo_enable_autonomous_mode() picks the autonomous-mode wake
  interrupt mask by comparing qmp->phy_mode against
  PHY_MODE_USB_HOST_SS/PHY_MODE_USB_DEVICE_SS. This combo phy's
  set_mode() only ever stores PHY_MODE_USB_HOST or PHY_MODE_USB_DEVICE
  (dwc3 core and dwc3-qcom never pass the _SS/_HS/_FS/_LS variants to
  this driver), so the comparison is always false and the phy is stuck
  selecting ARCVR_DTCT_EN | ARCVR_DTCT_EVENT_SEL regardless of whether a
  SuperSpeed device is actually attached, instead of using LFPS
  detection (ALFPS_DTCT_EN) when appropriate.

  Rather than growing the already overloaded enum phy_mode USB_*_SS/HS/
  FS/LS split further, carry live SS-link presence through the existing
  generic submode argument of phy_set_mode_ext(), as a new
  enum qcom_usb_ss_state (UNKNOWN/PRESENT/ABSENT) shared via
  include/linux/phy/phy-qcom-qmp-usb-ss.h. dwc3-qcom determines the
  state from the USB3 root hub's attached child speed at suspend entry
  and passes it down via phy_set_mode_ext(phy, PHY_MODE_USB_HOST,
  ss_state); qmp_combo_usb_set_mode() validates and stores it, and
  qmp_combo_enable_autonomous_mode() switches on it to pick the
  interrupt mask.

Link: https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/
Signed-off-by: Tapas Rana <tapas.rana@oss.qualcomm.com>
@tapas-rana2811
tapas-rana2811 force-pushed the tapar/phy-autonomous-mode-detection branch from bc3a047 to af7ee8a Compare December 1, 2026 05:19
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4730864 is not eligible for merge.

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

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

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

@qcomlnxci
qcomlnxci requested a review from a team December 1, 2026 05:23
@qlijarvis

Copy link
Copy Markdown

PR #1358 — validate-patch

PR: #1358

Verdict Issues Detailed Report
⚠️ 0 Full report

Final Summary

  1. Lore link present: Yes — https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/ (links to patch 2/3 of 3-patch series)
  2. Lore link matches PR commits: No — PR squashes 3-patch series into 1 commit; subject references patch 2/3 but diff includes all three patches; minor comment formatting error
  3. Upstream patch status: ⏳ Decision Pending — posted 2026-11-06; received design feedback from Konrad Dybcio and Peter Chen questioning the approach; no formal Reviewed-by/Acked-by tags; no maintainer acceptance
  4. PR present in qcom-next/topics: Partial - 1/1 commit(s) only have partial integration evidence
Verdict: ⚠️ — click to expand

🔍 Patch Validation

PR: #1358 - FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Upstream commit: https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/
Verdict: ⚠️ PARTIAL

Commit Message

Check Status Note
Subject matches upstream ✅ Subject identical to lore patch 2/3 with FROMLIST: prefix added
Body preserves rationale ✅ Commit message faithfully preserves the upstream explanation
Fixes tag present/correct ✅ No Fixes tag in upstream; none expected for new feature
Authorship preserved ✅ Author Tapas Rana <tapas.rana@oss.qualcomm.com> matches lore From:
Backport note (if applicable) N/A FROMLIST: prefix correctly indicates patch posted but not yet merged

Diff

File Status Notes
drivers/phy/qualcomm/phy-qcom-qmp-combo.c ⚠️ Context line numbers differ (PR: 2275/3929/3957 vs lore: 2630/4518/4672); logic identical; comment formatting differs slightly (missing space after * in PR line 3974)
drivers/usb/dwc3/dwc3-qcom.c ❌ PR includes dwc3-qcom.c changes (patch 3/3) that are NOT part of lore patch 2/3
include/linux/phy/phy-qcom-qmp-usb-ss.h ❌ PR includes new header file (patch 1/3) that is NOT part of lore patch 2/3

Issues

Critical: PR squashes 3-patch series into single commit

The lore series consists of three patches:

  1. [PATCH 1/3] — Add include/linux/phy/phy-qcom-qmp-usb-ss.h header
  2. [PATCH 2/3] — Modify drivers/phy/qualcomm/phy-qcom-qmp-combo.c (this PR's subject)
  3. [PATCH 3/3] — Modify drivers/usb/dwc3/dwc3-qcom.c

The PR commit squashes all three patches into one, violating the upstream patch structure. The commit subject references only patch 2/3, but the diff includes changes from all three patches.

Minor: Comment formatting inconsistency

PR line drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3974:

	 * Use LFPS detection only when a SuperSpeed device is known to be
	* present. For absent or unknown state, use receiver detection.

Missing leading space after * on second line (should be * present.).

Lore patch has correct formatting:

	 * Use LFPS detection only when a SuperSpeed device is known to be
	 * present. For absent or unknown state, use receiver detection.

Upstream Patch Status

Commit Community Verdict
[PATCH 2/3] phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present ⏳ Decision Pending — Posted 2026-11-06; received review feedback from Konrad Dybcio (suggested fixing in dwc3 core instead) and Peter Chen (questioned complexity of approach); no formal Reviewed-by/Acked-by tags; no maintainer acceptance signal

Review activity summary:

  • Konrad Dybcio (2026-11-06): Suggested the fix should be in dwc3 core, not in a vendor-specific workaround
  • Peter Chen (2026-11-09): Questioned the complexity, asked "why not just call phy_set_mode before suspend according to existed downstream port speed"
  • No formal acceptance from PHY or USB maintainers

qcom-next Presence

Commit Status
FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present ⚠️ Partial — integration_presence_report.md shows "partial - subject or partial tree evidence found, but full change was not verified" in qcom-next; missing from topics

Verdict

Do not merge as-is. This PR has three blocking issues:

  1. Patch structure violation: The PR squashes a 3-patch upstream series into a single commit. The commit subject claims to be patch 2/3, but includes changes from patches 1/3 and 3/3. This breaks git history traceability and makes future upstream synchronization difficult.

  2. Upstream review concerns unresolved: Two reviewers (Konrad Dybcio and Peter Chen) raised design questions about the approach. The series has no formal acceptance from maintainers. Merging before upstream resolution risks divergence.

  3. Comment formatting defect: Minor whitespace error in multi-line comment.

Recommended action:

Split this PR into three separate commits matching the upstream series structure:

  • Commit 1: FROMLIST: phy: qcom-qmp-usb-ss: add shared SS-link-state submode contract (add header)
  • Commit 2: FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present (phy driver changes only)
  • Commit 3: FROMLIST: usb: dwc3: qcom: pass live SS-link state into PHY at suspend entry (dwc3-qcom changes)

Fix the comment formatting in commit 2. Monitor the lore thread for maintainer feedback and consider addressing reviewer concerns before merging.

Final Summary

  1. Lore link present: Yes — https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/ (links to patch 2/3 of 3-patch series)
  2. Lore link matches PR commits: No — PR squashes 3-patch series into 1 commit; subject references patch 2/3 but diff includes all three patches; minor comment formatting error
  3. Upstream patch status: ⏳ Decision Pending — posted 2026-11-06; received design feedback from Konrad Dybcio and Peter Chen questioning the approach; no formal Reviewed-by/Acked-by tags; no maintainer acceptance
  4. PR present in qcom-next/topics: Partial — integration_presence_report.md shows partial evidence in qcom-next (subject or partial tree match), but full change not verified; missing from 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: 8fffe4778122b8d4fac6dd8396a2de99e05be00f
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/1 [PATCH] FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when 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

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 #1358 — checker-log-analyzer

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

Checker Result Summary
Checker Result Summary
checkpatch ❌ Block comment alignment issue
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No devicetree changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed (no UAPI changes)
check-patch-compliance ❌ Content mismatch with upstream link
tag-check ✅ Subject has valid FROMLIST: prefix

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1358 - FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/46582591956

Checker Result Summary
checkpatch ❌ Block comment alignment issue
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No devicetree changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed (no UAPI changes)
check-patch-compliance ❌ Content mismatch with upstream link
tag-check ✅ Subject has valid FROMLIST: prefix

❌ checkpatch

Root cause: Block comment alignment issue in drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3974

Failure details:

WARNING: Block comments should align the * on each line
#82: FILE: drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3974:
+	 * Use LFPS detection only when a SuperSpeed device is known to be
+	* present. For absent or unknown state, use receiver detection.

af7ee8a0b9af36d082e8069c835b9bb2bdb809a9 total: 0 errors, 1 warnings, 0 checks, 133 lines checked

Fix: Align the second line's * with the first line:

git rebase -i 67052fb51b10b402c511653176b1bc5310f8bcfb
# mark commit af7ee8a0b9af as 'edit'

Edit drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3974 to fix the alignment:

	/*
	 * Use LFPS detection only when a SuperSpeed device is known to be
	 * present. For absent or unknown state, use receiver detection.
	 */

Then:

git add drivers/phy/qualcomm/phy-qcom-qmp-combo.c
git commit --amend --no-edit
git rebase --continue

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git 67052fb51b10b402c511653176b1bc5310f8bcfb..af7ee8a0b9af36d082e8069c835b9bb2bdb809a9

❌ check-patch-compliance

Root cause: The patch content in the PR differs from the upstream lore.kernel.org patch

Failure details:

Checking commit: FROMLIST: phy: qcom: qmp-combo: Select LFPS detect only when SS link is confirmed present
Change is different from the one mentioned in Link

Analysis: The checker detected that the patch applied in this PR does not exactly match the patch at the provided lore link:

Link: https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/

This could be due to:

  1. Context-only differences — surrounding lines differ but the actual changes are identical (common when backporting to a different kernel version)
  2. Legitimate adaptations — the patch was modified to fit the target branch (should be documented in commit message)
  3. Missing or extra hunks — the patch is incomplete or has additional changes not in upstream

Fix: Fetch the upstream patch and compare:

# Fetch the upstream patch
b4 am --single-message -C -l -3 https://lore.kernel.org/all/20261106082716.128968-3-tapas.rana@oss.qualcomm.com/ -o /tmp/upstream

# Compare the actual code changes (ignoring context)
git format-patch -1 af7ee8a0b9af --stdout | awk '/^diff/,/^--$/' | grep -E '^[+-][^+-]' > /tmp/pr-changes.txt
awk '/^diff/,/^--$/' /tmp/upstream/*.mbx | grep -E '^[+-][^+-]' > /tmp/upstream-changes.txt
diff /tmp/pr-changes.txt /tmp/upstream-changes.txt

Action required:

  • If differences are context-only (line numbers shifted but changes are identical) → this is acceptable for backports; no fix needed
  • If differences are legitimate adaptations → add a note to the commit message explaining the adaptation, e.g.:
    [ Upstream commit adapted for qcom-6.18.y: adjusted context due to ... ]
    
  • If differences are missing/extra hunks → either add the missing changes or split extra changes into a separate commit

Reproduce locally:

cd /path/to/kernel
bash ../kernel-checkers/check-patch-compliance.sh --kernel-src . \
  --base 67052fb51b10b402c511653176b1bc5310f8bcfb \
  --head af7ee8a0b9af36d082e8069c835b9bb2bdb809a9

Verdict

2 issues to fix before merge:

  1. checkpatch (blocker): Fix block comment alignment in phy-qcom-qmp-combo.c:3974 — trivial formatting fix
  2. check-patch-compliance (investigate): Verify the content mismatch with upstream — determine if it's context-only (acceptable) or requires documentation/correction

The checkpatch issue is a straightforward formatting fix. The check-patch-compliance failure requires investigation to determine if the differences from upstream are acceptable (context-only) or need to be addressed.

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.

3 participants