get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1821143,
    "url": "http://patchwork.ozlabs.org/api/patches/1821143/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20230814215457.4075025-7-bhupesh.sharma@linaro.org/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20230814215457.4075025-7-bhupesh.sharma@linaro.org>",
    "list_archive_url": null,
    "date": "2023-08-14T21:54:46",
    "name": "[06/17] ufs: Clear UECPA once due to LINERESET has happened during LINK_STARTUP",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "ffbf37b389d1362821414314ee3325b427fcc561",
    "submitter": {
        "id": 81316,
        "url": "http://patchwork.ozlabs.org/api/people/81316/?format=api",
        "name": "Bhupesh Sharma",
        "email": "bhupesh.sharma@linaro.org"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20230814215457.4075025-7-bhupesh.sharma@linaro.org/mbox/",
    "series": [
        {
            "id": 368803,
            "url": "http://patchwork.ozlabs.org/api/series/368803/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=368803",
            "date": "2023-08-14T21:54:40",
            "name": "Enable UFS on DragonBoard845c",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/368803/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1821143/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1821143/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)",
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=j15p+2W6;\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.b=\"j15p+2W6\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=bhupesh.sharma@linaro.org"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (P-384))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4RPpBV5jqbz1yfS\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 15 Aug 2023 07:56:18 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id CC05F869AD;\n\tMon, 14 Aug 2023 23:55:40 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id BB09A869A5; Mon, 14 Aug 2023 23:55:38 +0200 (CEST)",
            "from mail-pl1-x629.google.com (mail-pl1-x629.google.com\n [IPv6:2607:f8b0:4864:20::629])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 9AEA8869A7\n for <u-boot@lists.denx.de>; Mon, 14 Aug 2023 23:55:36 +0200 (CEST)",
            "by mail-pl1-x629.google.com with SMTP id\n d9443c01a7336-1bc6535027aso41257665ad.2\n for <u-boot@lists.denx.de>; Mon, 14 Aug 2023 14:55:36 -0700 (PDT)",
            "from localhost.localdomain\n ([2401:4900:1f3b:3924:6581:8508:2ecb:b5dd])\n by smtp.gmail.com with ESMTPSA id\n n4-20020a170903110400b001bba373919bsm9872075plh.261.2023.08.14.14.55.30\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 14 Aug 2023 14:55:34 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS\n autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1692050134; x=1692654934;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=3CwB3KKkxG2cP3MaJ2Uw81b1ztFAUx3ncI6Bi3pklok=;\n b=j15p+2W6rX0jMvNaiPs8WQGmCpEizjwOfBBB11PjxA4arWs7rCZPUCWkZcMn2sU45N\n 6VKdKmZrJnyT0jhGpOu2QzKtuYBc9zwVbiT15bQHVkIsgMejAwAu2TDhqjgn2ekx7Jld\n J7TVIFiZFFKQOgD/6i8CVumm4wanCNxu4JByZj8wfuQhPSmKaEbL8iQ674gBhgQb69OJ\n 4MVp9wJNJudMRkgJgF6JmGO1pxKwBxpOKJmgWZ5hfbJtMX5jSwrbtV8Nb7PCji8CcXrn\n Q8IG/ksKG28AcmJfKPzkUNmvIP5ZHrI/rZwhOcSaMmanGMHORE++tyF0TLF7rHT1c3i7\n SttQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1692050134; x=1692654934;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=3CwB3KKkxG2cP3MaJ2Uw81b1ztFAUx3ncI6Bi3pklok=;\n b=dEmgyrYNDj0dTdHVpkt4TXEG4upLPUT1YVuB7zWHFjlcF6R3A3fG5QtRJi5o6iVU6W\n eXt5l1/o/M59gYBykeoH9fL10XSLwmkCxoBVLKJ5L20QPUr8tw0MCKxAUCSPajeDa5gN\n 0Il0ghq/jo793d7tpUHC4tTljZBJZa3d8JpaLPZL7QwVAECERcFkEBMLK6n9ExdUB/FI\n sGJWZUOs0LR8emChtAw/kDdwtzPWlijcH36v99H3Lv/yGlOiewdPQPwxY0E9qjzS+fE4\n lujI5tNSn7Qh1JfkyoTN7ym1q7vYwbxxHapsPCdv0pgW7tWBKbr1Otmz5JI7N+vrmSOF\n c//g==",
        "X-Gm-Message-State": "AOJu0Yyocr3MGZdF4RUl41AuhbrVBw5Y1XTvcwK+lYrDRETeIfTtaEiJ\n m2ZPDzO/0lqX7+wqniN/is6GjqPq41TOg7qxu1E=",
        "X-Google-Smtp-Source": "\n AGHT+IEQ1CnJHjFnDVAabKw7rSV3r+whXNHJQxCg5D01cegRsGpDKVywgruHHDEX0e3MBYTeeTy8wA==",
        "X-Received": "by 2002:a17:903:22c9:b0:1b8:a65f:b49d with SMTP id\n y9-20020a17090322c900b001b8a65fb49dmr15130209plg.12.1692050134642;\n Mon, 14 Aug 2023 14:55:34 -0700 (PDT)",
        "From": "Bhupesh Sharma <bhupesh.sharma@linaro.org>",
        "To": "u-boot@lists.denx.de",
        "Cc": "sjg@chromium.org, trini@konsulko.com, bhupesh.sharma@linaro.org,\n bhupesh.linux@gmail.com, marek.vasut+renesas@mailbox.org,\n sumit.garg@linaro.org, rfried.dev@gmail.com, patrice.chotard@foss.st.com,\n jbx6244@gmail.com, kever.yang@rock-chips.com, eugen.hristev@collabora.com",
        "Subject": "[PATCH 06/17] ufs: Clear UECPA once due to LINERESET has happened\n during LINK_STARTUP",
        "Date": "Tue, 15 Aug 2023 03:24:46 +0530",
        "Message-Id": "<20230814215457.4075025-7-bhupesh.sharma@linaro.org>",
        "X-Mailer": "git-send-email 2.38.1",
        "In-Reply-To": "<20230814215457.4075025-1-bhupesh.sharma@linaro.org>",
        "References": "<20230814215457.4075025-1-bhupesh.sharma@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "Clear UECPA once in u-boot UFS driver due to LINERESET has happened\nduring LINK_STARTUP. This makes the u-boot ufs driver behavior related\nto UECPA similar to Linux UFS driver.\n\nSigned-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>\n---\n drivers/ufs/ufs.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c\nindex 3bf1a95e7f..25639a6d24 100644\n--- a/drivers/ufs/ufs.c\n+++ b/drivers/ufs/ufs.c\n@@ -504,6 +504,8 @@ link_startup:\n \tif (ret)\n \t\tgoto out;\n \n+\t/* Clear UECPA once due to LINERESET has happened during LINK_STARTUP */\n+\tufshcd_readl(hba, REG_UIC_ERROR_CODE_PHY_ADAPTER_LAYER);\n \tret = ufshcd_make_hba_operational(hba);\n out:\n \tif (ret)\n",
    "prefixes": [
        "06/17"
    ]
}