get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2220523/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2220523,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220523/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260407-d3cold-v4-2-bb171f75b465@oss.qualcomm.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260407-d3cold-v4-2-bb171f75b465@oss.qualcomm.com>",
    "date": "2026-04-07T13:03:09",
    "name": "[v4,2/5] PCI: qcom: Add .get_ltssm() helper",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "27e1ab3e4da24346ad1588b8438fb4dad96b7a04",
    "submitter": {
        "id": 89908,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/89908/?format=api",
        "name": "Krishna Chaitanya Chundru",
        "email": "krishna.chundru@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260407-d3cold-v4-2-bb171f75b465@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 498980,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/498980/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=498980",
            "date": "2026-04-07T13:03:07",
            "name": "PCI: qcom: Add D3cold support",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/498980/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220523/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220523/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-52061-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-pci@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=Lz5ZVzbc;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=UmzI5/XJ;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-52061-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=\"Lz5ZVzbc\";\n\tdkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"UmzI5/XJ\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=205.220.168.131",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=oss.qualcomm.com"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqmcs1NZJz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 07 Apr 2026 23:04:45 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id D23B7304F32B\n\tfor <incoming@patchwork.ozlabs.org>; Tue,  7 Apr 2026 13:03:38 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D0A8B3B6C17;\n\tTue,  7 Apr 2026 13:03:33 +0000 (UTC)",
            "from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com\n [205.220.168.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id D8D0A3B7779\n\tfor <linux-pci@vger.kernel.org>; Tue,  7 Apr 2026 13:03:31 +0000 (UTC)",
            "from pps.filterd (m0279867.ppops.net [127.0.0.1])\n\tby mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 637Co9NE1405862\n\tfor <linux-pci@vger.kernel.org>; Tue, 7 Apr 2026 13:03:31 GMT",
            "from mail-pl1-f200.google.com (mail-pl1-f200.google.com\n [209.85.214.200])\n\tby mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dcmratsng-1\n\t(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n\tfor <linux-pci@vger.kernel.org>; Tue, 07 Apr 2026 13:03:31 +0000 (GMT)",
            "by mail-pl1-f200.google.com with SMTP id\n d9443c01a7336-2b24305cb3cso60985675ad.2\n        for <linux-pci@vger.kernel.org>; Tue, 07 Apr 2026 06:03:30 -0700 (PDT)",
            "from hu-krichai-hyd.qualcomm.com ([202.46.23.25])\n        by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b2749794e8sm181564885ad.53.2026.04.07.06.03.25\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 07 Apr 2026 06:03:29 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775567013; cv=none;\n b=pXZhhOXYyTkw+ZfDmE3rUPOxP54dRs4juJfF806MiNuAJuqIUHpungAkIKSEB9GqPZmW/N/Jgf+MxJ5KE9fc+7/3uT+bm7Of6/x5Wc4jfoxHUcpu7kNEeFPHe7zj69RVGw/X0M+e3/2HJmglt/TCkGI9LwTwr7geet4icDWk3Jo=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775567013; c=relaxed/simple;\n\tbh=pO8vVScrKCYroJtbrmCEg0jsQAkeOLwy64wLlBodYLo=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=idFbLyfJsIRkWAhUvsi1ebcbe0+xE8hF2WLRjU7i86EmM+Ygu7w6iRwQy91BHlW++Ya4H0OqcWLEZeNy508SVkE/FJP8wP3G6wWYYjx7twa8S1QoGTvwEmsDG+9iIRWfIiDKw7wufqXH5hKDWMFOPyCoEcLgl0UqcSI0a0f8cFQ=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com;\n spf=pass smtp.mailfrom=oss.qualcomm.com;\n dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=Lz5ZVzbc;\n dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=UmzI5/XJ; arc=none smtp.client-ip=205.220.168.131",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n\tcc:content-transfer-encoding:content-type:date:from:in-reply-to\n\t:message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n\tRUOhnCtucPISnasSan3rTKScJjVUfYHl/P5qU80U71Y=; b=Lz5ZVzbcPa+zPuxZ\n\t8PAmGhNHX3aP2/zMbFaj1bI/wpj8xPjAKe1HEYaT0kNJRCzj4OvsWI5u5iWUWiEg\n\tkooZHIqWKDQcFmsrfU6QA1s3C+0UH6VyXBPyJyczmTvZie8FxxO27xfFxveuHfuk\n\tzTtnbAe283gRn5hAQe8OkG6d4LUOKxvol2Xa8I7vN+AfH1fSqgcozZLk5/NHcxv0\n\t9kpqZLSFrB+4//CeUpfRqLHQ4L0H+OmvBRa9kA6m9qRE5yFUzpLadXV/l8pxZtS1\n\tiIiQoE837F6p/DR4h9+2BxuNmjEUcbBLOehZaq1YYLznl3m3zUWA+i9IicSvUgBA\n\toKyf/A==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=oss.qualcomm.com; s=google; t=1775567010; x=1776171810;\n darn=vger.kernel.org;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=RUOhnCtucPISnasSan3rTKScJjVUfYHl/P5qU80U71Y=;\n        b=UmzI5/XJnruyzKNc8TKTUMf62FbfTNWrtwP0MNkpjIM326q9ffUDXzM8gK1F+8usUu\n         R8qkCebaU5fYB5Hmun4TTOPP4Cpfhu+hzqJ4ZTSP+EOu+01YUXIH1NJ/Kk79ojugAZ6T\n         57sdbhw+o4TfpwHWOgnCs1qpBJkWWsMuDoGdSCptfqUcZ2hyU67WsthJ83EsJyfS7box\n         zbrEQsP8ZAyONIeMzdHMHAXNBgiqgBg+iJKyJckDXx6xMProkIhZ/sSfLGBL0qa5eLqT\n         Y+3AD9kGEZ7U6AOIaHgNskFBn0rKqAkQBL9iClsswUPmYbU4Wf94ALOimL7Nl20hNxYQ\n         7g4Q=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775567010; x=1776171810;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n         :cc:subject:date:message-id:reply-to;\n        bh=RUOhnCtucPISnasSan3rTKScJjVUfYHl/P5qU80U71Y=;\n        b=UnOE0lsLOGrJD2whJGUvBONxlBDBXjWnPXmEstfEtffpGQAXK3nMz7IN/06iLS9A09\n         V8aIJxONTUPBEkuVsYGMw1bLsOFYMpD/VxVTjLAIJ3gnr/wh4K/5vfL+9CsjY58+PpNb\n         7INRwA6ywYp2msJWHNnrfBIAin148LuOsDaWUGguS5k4zFtn2ItqBUSGGinT6MkZ9hU0\n         jKSyCYSpmP2Lhvkfkgd0eJXYHkUNbUkxaG9TcXYkauYms+XV6gkmCcckyQCKa0pA2ffC\n         toY3qyLxaRH5U69RU0dNyf79tUKH3/rTMavJIW69ivfjGjuy69XnFOeghSqTaeQTDwZq\n         eW1g==",
        "X-Gm-Message-State": "AOJu0YxobtF1+auVnFbopH24iatmT7XlxOnW8WmHX7IbyIRPlSx80G49\n\t1o64Rc0g9bVjjZvKdrskxejAbvFAUDKSafOvI4nknS36bvlC+JP1bHhRf1M2xb7KsfjspcLnyY+\n\tZjOcUlQZKWQLf1/Yiu0BQifCCJV6uqhNUkSyPg1Oh384BVwexekxXKNpVnq0RRQM=",
        "X-Gm-Gg": "AeBDies6X/XiZJbTvpBCON8JpNDcue8sb95OSoQcnKJ5zceb0VKuJeHoLcqpYd9UxMw\n\tQ61H6jxmDrpAjGoIkU07DZlvubf2azMu7FCM/ysZqm+oX7AkbCduLIjDUHz0BkQVPT+QbisrOwy\n\ts0dJDo5OFWwXv3tvu42mVLOTenn41IlbthRNDiWF4UfL5tbcNWsR+rxKBM5pXRUTH4LwngNediR\n\tSENLyKjwprUnP0N1xCQLg9r2jBS/tqe+PjoSxtwHvwscSosFlL+7uhBIAIQ+fnSTX+BdCATlJ0K\n\tNgbfMSm2OSFjNBDvAd94CkVFVyLXBUmnPQLHWG0OIna7RvASCGY78eFDnUCZu31etBrtYPWEApC\n\t5ePBdRfj3FXbGYEJZ9tZGXlVeQIgqmVuLa/k6V3KWCMk9g+rLsn0p1b0K",
        "X-Received": [
            "by 2002:a17:903:3904:b0:2b0:c0a8:5000 with SMTP id\n d9443c01a7336-2b2816ae915mr193383045ad.14.1775567010335;\n        Tue, 07 Apr 2026 06:03:30 -0700 (PDT)",
            "by 2002:a17:903:3904:b0:2b0:c0a8:5000 with SMTP id\n d9443c01a7336-2b2816ae915mr193381885ad.14.1775567009563;\n        Tue, 07 Apr 2026 06:03:29 -0700 (PDT)"
        ],
        "From": "Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>",
        "Date": "Tue, 07 Apr 2026 18:33:09 +0530",
        "Subject": "[PATCH v4 2/5] PCI: qcom: Add .get_ltssm() helper",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-pci@vger.kernel.org",
        "List-Id": "<linux-pci.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260407-d3cold-v4-2-bb171f75b465@oss.qualcomm.com>",
        "References": "<20260407-d3cold-v4-0-bb171f75b465@oss.qualcomm.com>",
        "In-Reply-To": "<20260407-d3cold-v4-0-bb171f75b465@oss.qualcomm.com>",
        "To": "Jingoo Han <jingoohan1@gmail.com>,\n Manivannan Sadhasivam <mani@kernel.org>,\n Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84?=\n\t=?utf-8?q?ski?= <kwilczynski@kernel.org>, Rob Herring <robh@kernel.org>,\n Bjorn Helgaas <bhelgaas@google.com>, Will Deacon <will@kernel.org>",
        "Cc": "linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,\n        linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org,\n        jonathanh@nvidia.com, bjorn.andersson@oss.qualcomm.com,\n        Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>",
        "X-Mailer": "b4 0.14.2",
        "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1775566995; l=1941;\n i=krishna.chundru@oss.qualcomm.com; s=20230907; h=from:subject:message-id;\n bh=pO8vVScrKCYroJtbrmCEg0jsQAkeOLwy64wLlBodYLo=;\n b=M3puhT4nVYwMiJ7XYXSfcZrmSGJerFMTB6LFXEag8ihvt6K0hDXMWnl/7zCZKMVkQqDUhuKx6\n 6VZ4rPuVn4qA5/B5oeAe+YY5sgXYSSIlGet2S5d3Rm3zsRU3N9wVOH5",
        "X-Developer-Key": "i=krishna.chundru@oss.qualcomm.com; a=ed25519;\n pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg=",
        "X-Proofpoint-ORIG-GUID": "S80RaxKAJVTxMbE-gQR_sQM5m9wlBEag",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDA3MDEyMSBTYWx0ZWRfX+ikNYbhHjQlx\n hdHCYbDyUpmHwuOJFYfM2dc6rmUlIvn+ox0gHARLBXkihuhNMCDjJW+X7m1TMNVZLDnCNjtGuqk\n qg7H4iLFKLUxozoggj15U9yb75eK9jJFJPUnq5IgKJNoaSEK+um3se8R79ZbP6h7WYHy+Qe+Cyy\n z30SiEoHTFD57SskComUStOP3dJP1mInZHpmdut0SfaxBgSM8KFWM6YdL49MKNFpMypuJcsX9oT\n 3XEVbZK03bo1bfKQ3VyrQVM0YE8iFC+Q0XVbPXV63tLrL4W1CHlpNDw1jGmz5JcAxfObPRPouf1\n pbKeffPV3lv93fFMhV1U9LpVheQWt+Xr/AgUzgLZgqwGJiE08CPVAwLbcLI4+AZU0MZXXG5JW1I\n dS0XnAAOIgqV1dst8cxKsitAO/i+4o6CpltHhxm5/ELQMgvbg/VsbybGnnGSrHVJ/MtcxRPTeCg\n gnQ7RrvlibFqgg7Z4vQ==",
        "X-Proofpoint-GUID": "S80RaxKAJVTxMbE-gQR_sQM5m9wlBEag",
        "X-Authority-Analysis": "v=2.4 cv=D/d37PRj c=1 sm=1 tr=0 ts=69d500a3 cx=c_pps\n a=IZJwPbhc+fLeJZngyXXI0A==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17\n a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22\n a=EUspDBNiAAAA:8 a=Py5lcOcq67Lbq8UMOfUA:9 a=QEXdDO2ut3YA:10\n a=uG9DUKGECoFWVXl0Dc02:22",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-07_02,2026-04-07_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n suspectscore=0 adultscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0\n priorityscore=1501 malwarescore=0 spamscore=0 phishscore=0 clxscore=1015\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604010000 definitions=main-2604070121"
    },
    "content": "For older targets like sc7280, we see reading DBI after sending PME\nturn off message is causing NOC error.\n\nTo avoid unsafe DBI accesses, introduce qcom_pcie_get_ltssm(), which\nretrieves the LTSSM state from the PARF_LTSSM register instead.\n\nThis helper is used in place of direct DBI-based link state checks in\nthe D3cold path after sending PME turn-off message, ensuring the LTSSM\nstate can be queried safely even after DBI access is no longer valid.\n\nSigned-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>\n---\n drivers/pci/controller/dwc/pcie-qcom.c | 12 ++++++++++++\n 1 file changed, 12 insertions(+)",
    "diff": "diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c\nindex 67a16af69ddc75fca1b123e70715e692a91a9135..b00bf46637a5ff803a845719c5b0b5b82739244b 100644\n--- a/drivers/pci/controller/dwc/pcie-qcom.c\n+++ b/drivers/pci/controller/dwc/pcie-qcom.c\n@@ -131,6 +131,7 @@\n \n /* PARF_LTSSM register fields */\n #define LTSSM_EN\t\t\t\tBIT(8)\n+#define PARF_LTSSM_STATE_MASK\t\t\tGENMASK(5, 0)\n \n /* PARF_NO_SNOOP_OVERRIDE register fields */\n #define WR_NO_SNOOP_OVERRIDE_EN\t\t\tBIT(1)\n@@ -1255,6 +1256,16 @@ static bool qcom_pcie_link_up(struct dw_pcie *pci)\n \treturn val & PCI_EXP_LNKSTA_DLLLA;\n }\n \n+static enum dw_pcie_ltssm qcom_pcie_get_ltssm(struct dw_pcie *pci)\n+{\n+\tstruct qcom_pcie *pcie = to_qcom_pcie(pci);\n+\tu32 val;\n+\n+\tval = readl(pcie->parf + PARF_LTSSM);\n+\n+\treturn (enum dw_pcie_ltssm)FIELD_GET(PARF_LTSSM_STATE_MASK, val);\n+}\n+\n static void qcom_pcie_phy_power_off(struct qcom_pcie *pcie)\n {\n \tstruct qcom_pcie_port *port;\n@@ -1507,6 +1518,7 @@ static const struct qcom_pcie_cfg cfg_fw_managed = {\n static const struct dw_pcie_ops dw_pcie_ops = {\n \t.link_up = qcom_pcie_link_up,\n \t.start_link = qcom_pcie_start_link,\n+\t.get_ltssm = qcom_pcie_get_ltssm,\n };\n \n static int qcom_pcie_icc_init(struct qcom_pcie *pcie)\n",
    "prefixes": [
        "v4",
        "2/5"
    ]
}