get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2234601,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2234601/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260507221145.62183-2-sauravsc@amazon.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": "<20260507221145.62183-2-sauravsc@amazon.com>",
    "list_archive_url": null,
    "date": "2026-05-07T22:11:44",
    "name": "[v2,1/2] i2c: tegra: fix pm_runtime leak on mutex_lock failure",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a75dab9e94c59c4321b6efa2e85f3e331feba792",
    "submitter": {
        "id": 93348,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/93348/?format=api",
        "name": "Saurav Sachidanand",
        "email": "sauravsc@amazon.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260507221145.62183-2-sauravsc@amazon.com/mbox/",
    "series": [
        {
            "id": 503285,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/503285/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=503285",
            "date": "2026-05-07T22:11:43",
            "name": "i2c: tegra: fix error handling in tegra_i2c_xfer()",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/503285/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2234601/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2234601/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-i2c+bounces-17306-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=amazon.com header.i=@amazon.com header.a=rsa-sha256\n header.s=amazoncorp2 header.b=MbRNjG8K;\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-17306-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=amazon.com header.i=@amazon.com\n header.b=\"MbRNjG8K\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=35.162.73.231",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=amazon.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=amazon.de"
        ],
        "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 4gBRNS1YmTz1yJq\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 08 May 2026 08:13:44 +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 48981305245D\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  7 May 2026 22:12:45 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 8777F34EF0D;\n\tThu,  7 May 2026 22:12:44 +0000 (UTC)",
            "from pdx-out-012.esa.us-west-2.outbound.mail-perimeter.amazon.com\n (pdx-out-012.esa.us-west-2.outbound.mail-perimeter.amazon.com\n [35.162.73.231])\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 2FCDE345757;\n\tThu,  7 May 2026 22:12:42 +0000 (UTC)",
            "from ip-10-5-6-203.us-west-2.compute.internal (HELO\n smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.6.203])\n  by internal-pdx-out-012.esa.us-west-2.outbound.mail-perimeter.amazon.com\n with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2026 22:12:40 +0000",
            "from EX19MTAUWC001.ant.amazon.com [205.251.233.53:7377]\n by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.47.215:2525]\n with esmtp (Farcaster)\n id 31b8b753-8200-43de-96b0-455a44c7dcfe; Thu, 7 May 2026 22:12:39 +0000 (UTC)",
            "from EX19D001UWA001.ant.amazon.com (10.13.138.214) by\n EX19MTAUWC001.ant.amazon.com (10.250.64.174) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.37;\n Thu, 7 May 2026 22:12:39 +0000",
            "from dev-dsk-sauravsc-1a-8777b848.eu-west-1.amazon.com\n (172.19.118.34) by EX19D001UWA001.ant.amazon.com (10.13.138.214) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.37; Thu, 7 May 2026\n 22:12:37 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778191964; cv=none;\n b=iBT8e6lMVMKrO8mKMx7gOzOws9/J0VTJmjreRG1UVB50y7BkZzG4QdthQKexkBIAgCha18TJuJm+7Hc5CNh4Ioj64clbJwGauxaF5MT4dfPnCW22ZLi5F+tdX4pFxdkM7/4o+iCFukqltYXb5GdXyumR1p7zbPD3SfN8UCMXbQw=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778191964; c=relaxed/simple;\n\tbh=OzoZeLZrsZ55RtatIl4SFulVtjmtfkP+1g5kA+psCeE=;\n\th=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=DIs4x9Nj5Pkgt9wq3uCzgdYNMrhJjj41lUxClxIguaVHWOW+uO/n94+DLmxb9prF7aTscHJcBlrxOFUtwEDl+aX5arNXY7rqPbwW0VZVhl4bqh2BJJxnJuCmP6Bhm3Gny58CZYlwbGZRYlqZiszAjZnk54FXez/TiZjUzzv863Q=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=amazon.com;\n spf=pass smtp.mailfrom=amazon.de;\n dkim=pass (2048-bit key) header.d=amazon.com header.i=@amazon.com\n header.b=MbRNjG8K; arc=none smtp.client-ip=35.162.73.231",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n  d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2;\n  t=1778191963; x=1809727963;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=sL1HG7kqsqyCzapHAzWi07Pmq8z6lTjM+WUQjCvQTeU=;\n  b=MbRNjG8KKVPn0ut83JzwH1E2geeYIV/VPGFe5/7G/JBf57zPmmdhuNyq\n   JV7x3WYMB86jskBoQ/T6dWgbHgaFogzHPeC/baIwihzJREWnc9qgJy6v5\n   2x91u7cIMdF5u0suqcz95Qv7fGn1bf4ucaibuwAeAkFF3Ix2TVwG6NZjM\n   J1i2Y1T8o+e146LU+UtirFDDzE5Ascz9l7wzgvVKBmDeVyv+nlT5t5QmM\n   V/tFFUZqdpqkw3ZV66hJuHxdV6KMdDWRI66Cdu3GpxJdzDS5srFEihSdO\n   l9zJ2xnTwFq9ezE0ZrT32s0FAPQjw66Q5UQoX819OBi8K3kvPO32BvGF2\n   g==;",
        "X-CSE-ConnectionGUID": "GbDAeoq2S/Wnw5xZdYNbNA==",
        "X-CSE-MsgGUID": "fZuvjD0sSiu+fDE/vtxucg==",
        "X-IronPort-AV": "E=Sophos;i=\"6.23,222,1770595200\";\n   d=\"scan'208\";a=\"18936095\"",
        "X-Farcaster-Flow-ID": "31b8b753-8200-43de-96b0-455a44c7dcfe",
        "From": "Saurav Sachidanand <sauravsc@amazon.com>",
        "To": "Wolfram Sang <wsa+renesas@sang-engineering.com>",
        "CC": "Akhil R <akhilrajeev@nvidia.com>, Kartik Rajput <kkartik@nvidia.com>,\n\tThierry Reding <treding@nvidia.com>, Jon Hunter <jonathanh@nvidia.com>,\n\t<linux-i2c@vger.kernel.org>, <linux-tegra@vger.kernel.org>,\n\t<linux-kernel@vger.kernel.org>, Saurav Sachidanand <sauravsc@amazon.com>",
        "Subject": "[PATCH v2 1/2] i2c: tegra: fix pm_runtime leak on mutex_lock failure",
        "Date": "Thu, 7 May 2026 22:11:44 +0000",
        "Message-ID": "<20260507221145.62183-2-sauravsc@amazon.com>",
        "X-Mailer": "git-send-email 2.47.3",
        "In-Reply-To": "<20260507221145.62183-1-sauravsc@amazon.com>",
        "References": "<20260506195319.44810-1-sauravsc@amazon.com>\n <20260507221145.62183-1-sauravsc@amazon.com>",
        "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-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-ClientProxiedBy": "EX19D044UWA004.ant.amazon.com (10.13.139.7) To\n EX19D001UWA001.ant.amazon.com (10.13.138.214)"
    },
    "content": "If tegra_i2c_mutex_lock() fails, the function returns without calling\npm_runtime_put(), leaking the runtime PM reference acquired by the\npreceding pm_runtime_get_sync(). This prevents the device from ever\nentering runtime suspend.\n\nAdd the missing pm_runtime_put() before returning on lock failure.\n\nFixes: 6077cfd716fb (\"i2c: tegra: Add support for SW mutex register\")\nSigned-off-by: Saurav Sachidanand <sauravsc@amazon.com>\n---\n drivers/i2c/busses/i2c-tegra.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c\nindex 9fd5ade774a0b..c24b8de0a9c7b 100644\n--- a/drivers/i2c/busses/i2c-tegra.c\n+++ b/drivers/i2c/busses/i2c-tegra.c\n@@ -1666,8 +1666,10 @@ static int tegra_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[],\n \t}\n \n \tret = tegra_i2c_mutex_lock(i2c_dev);\n-\tif (ret)\n+\tif (ret) {\n+\t\tpm_runtime_put(i2c_dev->dev);\n \t\treturn ret;\n+\t}\n \n \tfor (i = 0; i < num; i++) {\n \t\tenum msg_end_type end_type = MSG_END_STOP;\n",
    "prefixes": [
        "v2",
        "1/2"
    ]
}