get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1821146,
    "url": "http://patchwork.ozlabs.org/api/patches/1821146/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20230814215457.4075025-10-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-10-bhupesh.sharma@linaro.org>",
    "list_archive_url": null,
    "date": "2023-08-14T21:54:49",
    "name": "[09/17] ufs: Sync possible UFS Quirks with Linux UFS driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "70dcc9916fcde8cd84ade6a48a2b730e550ef2f6",
    "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-10-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/1821146/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1821146/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=y1MvJ9Ry;\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=\"y1MvJ9Ry\";\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 4RPpC51JNGz1yfS\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 15 Aug 2023 07:56:49 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 9F8DF869BB;\n\tMon, 14 Aug 2023 23:55:53 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 9F43B869C1; Mon, 14 Aug 2023 23:55:52 +0200 (CEST)",
            "from mail-pl1-x634.google.com (mail-pl1-x634.google.com\n [IPv6:2607:f8b0:4864:20::634])\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 6804A869B5\n for <u-boot@lists.denx.de>; Mon, 14 Aug 2023 23:55:50 +0200 (CEST)",
            "by mail-pl1-x634.google.com with SMTP id\n d9443c01a7336-1bc8a2f71eeso30766845ad.0\n for <u-boot@lists.denx.de>; Mon, 14 Aug 2023 14:55:50 -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.44\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 14 Aug 2023 14:55:48 -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=1692050148; x=1692654948;\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=gzTUFPnPmljz7xdYpOWKhhsvjZVAZ50PZfyxzv1JcHQ=;\n b=y1MvJ9RyqnB1M1BF/6Du6u8iha62z98LYSl1GOri2N70R32Ci7+ZvP1H9CRTpvYQH/\n ao+7uWXrlB6FDKkFb4ElDI/+Z+ljfE9wpbBq7oYnDW/w3TI7XZ2kTMdmpX+KFB3+hmE+\n U+kmFzDVE93pEE1owcylSR96dTEMKDpMIOAWkHV9DkGzxXHAWCidmLaLWyFVXo/TJ2ab\n p2y7ZcrhcsNyA4Mb4y0ELwSNSGuWuto4f16Zf9gZI/kBy29PbfUysi+V9zbvQEiAm3O3\n rMACAGGUnBGLZaT7i7k2HKXUb11FqsXi2ROElQHnFvongFSUvXwP7HyXjxny28ujpbkM\n uqJw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1692050148; x=1692654948;\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=gzTUFPnPmljz7xdYpOWKhhsvjZVAZ50PZfyxzv1JcHQ=;\n b=cFlDfU/a0OiAZbNX2SUr9aV04dB4bYi+tCs52Tnr/WvlxVIiMePBrcYkDpVUKvI5p0\n F0wYKyo3do2DTPnaB5wyOzKLNGIXOep4HkAmRfyOVC12PZX6y28GQwC5o+qgj9CfUdMr\n rTRW7+6+V9HeElE90Jh04ubcz5AjbfK0prEOsOWV41/KjecE2NQPqWqEawgFD+ZvsGL8\n rxD03v4Ebge0ZgIbB90kiLLCYtl37UZItcp8u2wr9RhOfT8GIdiYvQBGOpGjyYg+cHm2\n RTd+f8vaAT34oCr47pY78qt/Byo+XRzh3Sq51AtdS/HWCLXnpAtVEzKk47y3vV3C7fOU\n HCNg==",
        "X-Gm-Message-State": "AOJu0YxkQwpRqIH3jeAsG0MrMrNF5zBYZA9w76X09g2qoQPuh1d9IAc2\n MaKPtHvWOPSa5BiCQKRYQeltoy8/G3z079pERF0=",
        "X-Google-Smtp-Source": "\n AGHT+IFnq5ofJhLhx+m6g+ayHa+7icOLIHI8Ve0KmENcMGOaiRXEkALmfB3ZKyhDHC3lIEwEzHwAHA==",
        "X-Received": "by 2002:a17:902:e809:b0:1bc:8fca:9d59 with SMTP id\n u9-20020a170902e80900b001bc8fca9d59mr11948527plg.29.1692050148450;\n Mon, 14 Aug 2023 14:55:48 -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 09/17] ufs: Sync possible UFS Quirks with Linux UFS driver",
        "Date": "Tue, 15 Aug 2023 03:24:49 +0530",
        "Message-Id": "<20230814215457.4075025-10-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": "Sync u-boot UFS driver to add all possible UFS Quirks\nas supported by Linux UFS driver as well.\n\nSigned-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>\n---\n drivers/ufs/ufs.h | 129 +++++++++++++++++++++++++++++++++++++++++++---\n 1 file changed, 121 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/ufs/ufs.h b/drivers/ufs/ufs.h\nindex b3d2bd0368..cdc88919b4 100644\n--- a/drivers/ufs/ufs.h\n+++ b/drivers/ufs/ufs.h\n@@ -712,14 +712,127 @@ struct ufs_hba {\n \tu32\t\t\tversion;\n \tu32\t\t\tintr_mask;\n \tu32\t\t\tquirks;\n-/*\n- * If UFS host controller is having issue in processing LCC (Line\n- * Control Command) coming from device then enable this quirk.\n- * When this quirk is enabled, host controller driver should disable\n- * the LCC transmission on UFS device (by clearing TX_LCC_ENABLE\n- * attribute of device to 0).\n- */\n-#define UFSHCD_QUIRK_BROKEN_LCC\t\t\t\t0x1\n+\n+\t/* Interrupt aggregation support is broken */\n+#define UFSHCD_QUIRK_BROKEN_INTR_AGGR\t\t(1 << 0)\n+\n+\t/*\n+\t * delay before each dme command is required as the unipro\n+\t * layer has shown instabilities\n+\t */\n+#define UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS\t(1 << 1)\n+\n+\t/*\n+\t * If UFS host controller is having issue in processing LCC (Line\n+\t * Control Command) coming from device then enable this quirk.\n+\t * When this quirk is enabled, host controller driver should disable\n+\t * the LCC transmission on UFS device (by clearing TX_LCC_ENABLE\n+\t * attribute of device to 0).\n+\t */\n+#define UFSHCD_QUIRK_BROKEN_LCC\t\t\t(1 << 2)\n+\n+\t/*\n+\t * The attribute PA_RXHSUNTERMCAP specifies whether or not the\n+\t * inbound Link supports unterminated line in HS mode. Setting this\n+\t * attribute to 1 fixes moving to HS gear.\n+\t */\n+#define UFSHCD_QUIRK_BROKEN_PA_RXHSUNTERMCAP\t(1 << 3)\n+\n+\t/*\n+\t * This quirk needs to be enabled if the host controller only allows\n+\t * accessing the peer dme attributes in AUTO mode (FAST AUTO or\n+\t * SLOW AUTO).\n+\t */\n+#define UFSHCD_QUIRK_DME_PEER_ACCESS_AUTO_MODE\t(1 << 4)\n+\n+\t/*\n+\t * This quirk needs to be enabled if the host controller doesn't\n+\t * advertise the correct version in UFS_VER register. If this quirk\n+\t * is enabled, standard UFS host driver will call the vendor specific\n+\t * ops (get_ufs_hci_version) to get the correct version.\n+\t */\n+#define UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION\t(1 << 5)\n+\n+\t/*\n+\t * Clear handling for transfer/task request list is just opposite.\n+\t */\n+#define UFSHCI_QUIRK_BROKEN_REQ_LIST_CLR\t(1 << 6)\n+\n+\t/*\n+\t * This quirk needs to be enabled if host controller doesn't allow\n+\t * that the interrupt aggregation timer and counter are reset by s/w.\n+\t */\n+#define UFSHCI_QUIRK_SKIP_RESET_INTR_AGGR\t(1 << 7)\n+\n+\t/*\n+\t * This quirks needs to be enabled if host controller cannot be\n+\t * enabled via HCE register.\n+\t */\n+#define UFSHCI_QUIRK_BROKEN_HCE\t\t\t(1 << 8)\n+\n+\t/*\n+\t * This quirk needs to be enabled if the host controller regards\n+\t * resolution of the values of PRDTO and PRDTL in UTRD as byte.\n+\t */\n+#define UFSHCD_QUIRK_PRDT_BYTE_GRAN\t\t(1 << 9)\n+\n+\t/*\n+\t * This quirk needs to be enabled if the host controller reports\n+\t * OCS FATAL ERROR with device error through sense data\n+\t */\n+#define UFSHCD_QUIRK_BROKEN_OCS_FATAL_ERROR\t(1 << 10)\n+\n+\t/*\n+\t * This quirk needs to be enabled if the host controller has\n+\t * auto-hibernate capability but it doesn't work.\n+\t */\n+#define UFSHCD_QUIRK_BROKEN_AUTO_HIBERN8\t(1 << 11)\n+\n+\t/*\n+\t * This quirk needs to disable manual flush for write booster\n+\t */\n+#define UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL\t(1 << 12)\n+\n+\t/*\n+\t * This quirk needs to disable unipro timeout values\n+\t * before power mode change\n+\t */\n+#define UFSHCD_QUIRK_SKIP_DEF_UNIPRO_TIMEOUT_SETTING\t(1 << 13)\n+\n+\t/*\n+\t * Align DMA SG entries on a 4 KiB boundary.\n+\t */\n+#define UFSHCD_QUIRK_4KB_DMA_ALIGNMENT\t\t\t(1 << 14)\n+\n+\t/*\n+\t * This quirk needs to be enabled if the host controller does not\n+\t * support UIC command\n+\t */\n+#define UFSHCD_QUIRK_BROKEN_UIC_CMD\t\t\t(1 << 15)\n+\n+\t/*\n+\t * This quirk needs to be enabled if the host controller cannot\n+\t * support physical host configuration.\n+\t */\n+#define UFSHCD_QUIRK_SKIP_PH_CONFIGURATION\t\t(1 << 16)\n+\n+\t/*\n+\t * This quirk needs to be enabled if the host controller has\n+\t * 64-bit addressing supported capability but it doesn't work.\n+\t */\n+#define UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS\t\t(1 << 17)\n+\n+\t/*\n+\t * This quirk needs to be enabled if the host controller has\n+\t * auto-hibernate capability but it's FASTAUTO only.\n+\t */\n+#define UFSHCD_QUIRK_HIBERN_FASTAUTO\t\t\t(1 << 18)\n+\n+\t/*\n+\t * This quirk needs to be enabled if the host controller needs\n+\t * to reinit the device after switching to maximum gear.\n+\t */\n+#define UFSHCD_QUIRK_REINIT_AFTER_MAX_GEAR_SWITCH\t(1 << 19)\n \n \t/* Virtual memory reference */\n \tstruct utp_transfer_cmd_desc *ucdl;\n",
    "prefixes": [
        "09/17"
    ]
}