get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2234561,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2234561/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260507-dw-i2c-v4-3-9a447b23bfdf@wkennington.com/",
    "project": {
        "id": 35,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/35/?format=api",
        "name": "Linux I2C development",
        "link_name": "linux-i2c",
        "list_id": "linux-i2c.vger.kernel.org",
        "list_email": "linux-i2c@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260507-dw-i2c-v4-3-9a447b23bfdf@wkennington.com>",
    "list_archive_url": null,
    "date": "2026-05-07T20:05:17",
    "name": "[v4,3/4] i2c: designware: Convert platform driver to use shutdown hook",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ca1d809827b7cfee80fb8ed98136addf3bc6fa02",
    "submitter": {
        "id": 87247,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/87247/?format=api",
        "name": "William A. Kennington III",
        "email": "william@wkennington.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260507-dw-i2c-v4-3-9a447b23bfdf@wkennington.com/mbox/",
    "series": [
        {
            "id": 503262,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/503262/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=503262",
            "date": "2026-05-07T20:05:14",
            "name": "i2c: designware: Improve device disable handling",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/503262/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2234561/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2234561/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-i2c+bounces-17302-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-i2c@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=wkennington-com.20251104.gappssmtp.com\n header.i=@wkennington-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=FY4ix1LB;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-i2c+bounces-17302-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=wkennington-com.20251104.gappssmtp.com\n header.i=@wkennington-com.20251104.gappssmtp.com header.b=\"FY4ix1LB\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.216.42",
            "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=wkennington.com",
            "smtp.subspace.kernel.org;\n spf=none smtp.mailfrom=wkennington.com"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::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 4gBNZc5tcwz1yM5\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 08 May 2026 06:07:20 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 04F583065C8E\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  7 May 2026 20:05:33 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id E70183F7ABC;\n\tThu,  7 May 2026 20:05:28 +0000 (UTC)",
            "from mail-pj1-f42.google.com (mail-pj1-f42.google.com\n [209.85.216.42])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 31DD036C9D5\n\tfor <linux-i2c@vger.kernel.org>; Thu,  7 May 2026 20:05:26 +0000 (UTC)",
            "by mail-pj1-f42.google.com with SMTP id\n 98e67ed59e1d1-3567e2b4159so780541a91.0\n        for <linux-i2c@vger.kernel.org>; Thu, 07 May 2026 13:05:26 -0700 (PDT)",
            "from wakbuild.c.googlers.com\n (123.143.125.34.bc.googleusercontent.com. [34.125.143.123])\n        by smtp.gmail.com with ESMTPSA id\n 41be03b00d2f7-c8263ff29c2sm443200a12.12.2026.05.07.13.05.24\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Thu, 07 May 2026 13:05:25 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778184328; cv=none;\n b=GtnG6wsryRsgvGV5cZtZQWgfQwJ+ndSF3AMhRRAbYNBOqbmToqjbpjVUH9UfkV8KJQyV+krtK88+xlrT5FSCr3Iy31SKLB1o3Ye5/66wzXbmQFiBxFVbg9ODxCeN/qTGZQWWufkGme8mniFHpRQQbhm1VZlpyfHE209p6FlfJTA=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778184328; c=relaxed/simple;\n\tbh=4evtoOZVO2A/G6eOp1vXsIAEnmO/V0PzVvlW6tZ8LWE=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=ubc4HkfpPpnqa3giYHmLyI9kGDAnsaBOSBaMzvCTuu3nHmzTN/mBwX9Qx5jCTgakqHkLnvOKygRJytUl4eGucmzmSs5Jxl9eKL9MU1k7fKfZj40AhzqDX/l9YkmdZm537NXpHyUbbZaDgs44cAEeucBnRtNyLa+ZJKKwSZNR8RI=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=wkennington.com;\n spf=none smtp.mailfrom=wkennington.com;\n dkim=pass (2048-bit key) header.d=wkennington-com.20251104.gappssmtp.com\n header.i=@wkennington-com.20251104.gappssmtp.com header.b=FY4ix1LB;\n arc=none smtp.client-ip=209.85.216.42",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=wkennington-com.20251104.gappssmtp.com; s=20251104; t=1778184326;\n x=1778789126; 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=Ucibh90VG32FPtRrP0vVUl7eKuOrNfTmwf7a/Zp51ZY=;\n        b=FY4ix1LBMXST2GsTbN836rD1Sayb6w+swbGtbHn17BlbZax2Xyra46CSCkhXtMkzMb\n         32CihZJxSBTB3FhHVleyHOJtsM49s8jNRkZpYGCKiLR9VZHl1GptyDtxTIAarmqVKWs8\n         DSyiXjeNK9HL9/X7x53e93125vupxJPh6P9GI9KKwcMkq8PZxkkUd5wXiH6oxqOXg/W0\n         9GmJD/24YYVAiXDqFhmp7zV0ZNN7IouKMrY+KrsKx34mB/q/ISs3+bP3xoQAAXM8nk/A\n         GfH1Q8LzjpSAVO0NjciX4HNuG0jkMJQENPkG89g/nZhIJlcdiuY25agMYPdJNszLckkT\n         3+6g==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1778184326; x=1778789126;\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=Ucibh90VG32FPtRrP0vVUl7eKuOrNfTmwf7a/Zp51ZY=;\n        b=UIBx0ad505X6GbVQbHguBBtrmvzAEjqcM/MQqbnttial9I8dVtKLli73f7jHCdMdjc\n         D2J3RW2AfDzwF1SBm5eDA+39rpBicWA3Sa4Q9Lh3L8DKJDIXOXaxR44ocxMlTmi66ou5\n         KZFYEB66z93+nZe1QaAJV3G2W9M77x6eRkJPPdKjMO1cEGilf1VwIs1T5TV8lfI0qgss\n         IFxzVcr1Q1beMGQFm6alBJIazFQ2tf+i4ckMadpMekPN+yLVAL4F0s132kzz+10BZnYd\n         p1QB8fc63hfWTkC4rSFvHkiDz+bUDOrJDkKPjiiubCDQZdCsV1+xeD4DPClXZpjlqjmL\n         Hr6w==",
        "X-Gm-Message-State": "AOJu0YxKyF2hrp/6tRn9fG2Lb9v7aFcM/7DazoCruUJNZXZClQlIS/tA\n\tNypNK0/KMU9MtLuLI2js56WMyMu8PwnXOolHJeJo+e6Va+FaHFVV0vT7+DoFgoqIZJc=",
        "X-Gm-Gg": "Acq92OElkwoFlV6I1pxy4MPYlatSP+lVxV9u2G8nWRW40qPo+WuhDUXJ+a116SKU2gY\n\tQ5U/9BHFs6o41laxb26XEa0f94yXPuxieek5A/1vouNmY/1fQaJ4+3pAyOTNbGsCKfdq4WDGuZc\n\tZoamH01QFRQokfd98fqm4Dwc6vyAZ3QbrL2D++OxmKJiDiRgLmn2iNVI/EbcLKgFa4WHCUXfr+t\n\t8mqFUzhjqBnKYGjHOctFUL/sYBkMT9uXuhkWAiS19NHjHyEyCbHq3GJmeW4B4bGJ6M0/yvx5XMa\n\tHwcCwPUSiWqqU58P4x12IwpGhaq6FoxL+uILfKWA6GrlF7tX74IHxrbSgjc/qzf1N6bGZKXioPs\n\tXxZR0mgwncHK0IVGbQg/yELJ0hKp98D/A0WCzCuh4+oTKhbkXnir/DWiEvpqaQaaX+tkrjI+u2R\n\thhtYmD5PrU/QqH/ax4AwH3/5SHNqlM/nIKnIRxZ+7JRuHQFG1drDtLpifTSOgVROYaqb9qE2Ilz\n\tMQbbiO5jL3x2uY=",
        "X-Received": "by 2002:a17:90b:38c3:b0:364:a6a4:596e with SMTP id\n 98e67ed59e1d1-365ac775a97mr9947878a91.24.1778184325521;\n        Thu, 07 May 2026 13:05:25 -0700 (PDT)",
        "From": "\"William A. Kennington III\" <william@wkennington.com>",
        "Date": "Thu, 07 May 2026 20:05:17 +0000",
        "Subject": "[PATCH v4 3/4] i2c: designware: Convert platform driver to use\n shutdown hook",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-i2c@vger.kernel.org",
        "List-Id": "<linux-i2c.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-i2c+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-i2c+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260507-dw-i2c-v4-3-9a447b23bfdf@wkennington.com>",
        "References": "<20260507-dw-i2c-v4-0-9a447b23bfdf@wkennington.com>",
        "In-Reply-To": "<20260507-dw-i2c-v4-0-9a447b23bfdf@wkennington.com>",
        "To": "Mika Westerberg <mika.westerberg@linux.intel.com>,\n Andy Shevchenko <andriy.shevchenko@linux.intel.com>,\n Jan Dabros <jsd@semihalf.com>, Andi Shyti <andi.shyti@kernel.org>",
        "Cc": "linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org,\n \"William A. Kennington III\" <william@wkennington.com>",
        "X-Mailer": "b4 0.14.3"
    },
    "content": "Convert the platform driver to use the new i2c_dw_shutdown() hook,\nallowing the controller to gracefully NACK master requests during\nsystem shutdown.\n\nSigned-off-by: William A. Kennington III <william@wkennington.com>\n---\n drivers/i2c/busses/i2c-designware-platdrv.c | 14 ++++++++++++++\n 1 file changed, 14 insertions(+)",
    "diff": "diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c\nindex 3351c4a9ef11..da2babd6188b 100644\n--- a/drivers/i2c/busses/i2c-designware-platdrv.c\n+++ b/drivers/i2c/busses/i2c-designware-platdrv.c\n@@ -289,9 +289,23 @@ static const struct platform_device_id dw_i2c_platform_ids[] = {\n };\n MODULE_DEVICE_TABLE(platform, dw_i2c_platform_ids);\n \n+static void dw_i2c_plat_shutdown(struct platform_device *pdev)\n+{\n+\tstruct dw_i2c_dev *i_dev;\n+\n+\ti_dev = platform_get_drvdata(pdev);\n+\tif (!i_dev)\n+\t\treturn;\n+\n+\tpm_runtime_disable(&pdev->dev);\n+\tif (!pm_runtime_status_suspended(&pdev->dev))\n+\t\ti2c_dw_shutdown(i_dev);\n+}\n+\n static struct platform_driver dw_i2c_driver = {\n \t.probe = dw_i2c_plat_probe,\n \t.remove = dw_i2c_plat_remove,\n+\t.shutdown = dw_i2c_plat_shutdown,\n \t.driver\t\t= {\n \t\t.name\t= \"i2c_designware\",\n \t\t.of_match_table = dw_i2c_of_match,\n",
    "prefixes": [
        "v4",
        "3/4"
    ]
}