Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2224749/?format=api
{ "id": 2224749, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2224749/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260418-kodiak_ss-v4-3-d381670c9d78@oss.qualcomm.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260418-kodiak_ss-v4-3-d381670c9d78@oss.qualcomm.com>", "list_archive_url": null, "date": "2026-04-18T06:35:21", "name": "[v4,3/5] arm: mach-snapdragon: Skip USB fixup for qcom,sc7280-dwc3", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "1352210b6a1f7252acaf31466069935c8d806577", "submitter": { "id": 90810, "url": "http://patchwork.ozlabs.org/api/1.2/people/90810/?format=api", "name": "Balaji Selvanathan", "email": "balaji.selvanathan@oss.qualcomm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260418-kodiak_ss-v4-3-d381670c9d78@oss.qualcomm.com/mbox/", "series": [ { "id": 500422, "url": "http://patchwork.ozlabs.org/api/1.2/series/500422/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=500422", "date": "2026-04-18T06:35:18", "name": "Enable USB3 Super-Speed support for QCM6490/SC7280", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/500422/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2224749/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2224749/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\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=g+zkeoBl;\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=bfWT9+pl;\n\tdkim-atps=neutral", "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=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=oss.qualcomm.com", "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=qualcomm.com header.i=@qualcomm.com\n header.b=\"g+zkeoBl\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"bfWT9+pl\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=none (p=none dis=none)\n header.from=oss.qualcomm.com", "phobos.denx.de; spf=pass\n smtp.mailfrom=balaji.selvanathan@oss.qualcomm.com" ], "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fyMTF0Z2Tz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 18 Apr 2026 16:36:01 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 2E94A84214;\n\tSat, 18 Apr 2026 08:35:54 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 322218426E; Sat, 18 Apr 2026 08:35:53 +0200 (CEST)", "from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com\n [205.220.180.131])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 00BB983B99\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 08:35:50 +0200 (CEST)", "from pps.filterd (m0279872.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63I4UD3v509322\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 06:35:49 GMT", "from mail-pl1-f199.google.com (mail-pl1-f199.google.com\n [209.85.214.199])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dm2b7081j-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 06:35:49 +0000 (GMT)", "by mail-pl1-f199.google.com with SMTP id\n d9443c01a7336-2b2e6ee9444so14701835ad.1\n for <u-boot@lists.denx.de>; Fri, 17 Apr 2026 23:35:49 -0700 (PDT)", "from hu-bselvana-blr.qualcomm.com\n (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b5fab20d33sm40542345ad.63.2026.04.17.23.35.41\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 17 Apr 2026 23:35:47 -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,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n cc:content-transfer-encoding:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n LYdujdbNX6xgU08cZN6jNQ5IhNJNx/TGNo1vrJrdoJI=; b=g+zkeoBlcLcomj64\n 63iYp24PgXaLBCcGZ/XRkhdCd5VOmCj7ktPi87lhSOJ+TWUWbNRgEuqxBABIv4lB\n V9NADF4dbS9iHiW4k/BedHZSpexsUq5vIkl6YyeFusasjfAmuvc65HmfHGM6uzDq\n 03QXsx8EBU/cOLQXHeH8japmuzTi3zdP99g249miJbzY5TngGpAtixIRw1scev3r\n BNf3HPmOKE7pGP/zd97ghpcLcTgLO+ucsxYOzZSM5fGErJXx06+Gj0CXtlK81rAj\n WU/F1fIFQYkau7IztzyagH3b4jbO7NLnDPGQJqzFl0zGGEmaAF0fVStSr1iQUP4U\n ARpAjA==", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1776494148; x=1777098948; darn=lists.denx.de;\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; bh=LYdujdbNX6xgU08cZN6jNQ5IhNJNx/TGNo1vrJrdoJI=;\n b=bfWT9+plHoV4Vz6SglrNwGYRfXr8rmw5RcWT4KtE3upaz9vW4T2STHMObMx52mohsT\n YpRW2b3kLdSh1vmFZK8djv4L4AGIlluK2f84Y82nLWZ27dxPytuFEwbY5envPIS84Zxa\n sRCBvyEK7pp8NVVf9Hl0Fv9Yuv3uQgmYudy+mG9N59LFBpZSx0HIlFmmLVsX3DikQv/X\n IrkFJi2QhNsk4BA0s6IbdiK18K9EVnAz4SBjYKLwpC3D59R7SY+saUQKbkk4pA5bFLeB\n fqlJaoMmdiMTA8SNFqaf0ZHEsV35Qu+ZJXOW05KKK0OneJC7Lpt1yVaBGTJs0hWPKVAX\n XW4A==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776494148; x=1777098948;\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=LYdujdbNX6xgU08cZN6jNQ5IhNJNx/TGNo1vrJrdoJI=;\n b=VNRWC9BNFsbvBF3JGBreoLlqr978IRV+1QPtgYU/2srft3c1YsbQFsoBzZILsOTLx6\n t3ogwAwL7+ODY5QMERU1JzyCnq00bQPCvYxWXGGQFueAlvHoMealI7OMFUMbLP0c/d2E\n dLmrkRr4jtXtccmqsa4TceNyl12Valpq6KZakcS3OCBmZ/1PD1T9vCcEEuY0rVkK+Z6j\n PAsIQcF0tosY6p/ppVf62Byo7TWMaTh0iGCq5pQVcdQ3C9oywya/sXgtSJWwOAgF7wrS\n oSrcMh0Q++K/YMl+CLddmwXBCPpwnT8c7WTb12Be5uPOOWFGlN1oL/WB+u5+moTtY3hq\n nH1g==", "X-Forwarded-Encrypted": "i=1;\n AFNElJ9rYUZ7aFTUc7Dj3t2QXHxzdrPX8QQbQ/aVM+rvM3My9nemPpnZMqwaR/Yu955id+yivFtW++w=@lists.denx.de", "X-Gm-Message-State": "AOJu0Yyv201ed7UUxGPgwLHMgZZRlEv78GEjlCbuNW3cW1buiGeHZGN7\n SaWD30TaXALjg9DyG/LPGjyCUqMV9tMnFSe2HaxLCvirXZXGFPc50zBuGU58IYDpKIxsXIt7DUd\n dyy66Q2cz+9BPXl8/W6fLgMedoe5gJmODYUIoe145G/BXAwDIEZ5+2T15", "X-Gm-Gg": "AeBDiev5Cwa8ONwqzHA6J3F6LnRanVL6pDmnV+bJTg7nfH0tM3vqTbURpnxqf7jHwc0\n dBlnwPz3q134lppNFTqBgBTWMMJ2/pPSuoXzrHYSiOXFuB9s3KS9FKKo9dGGoD9vLEs/zqNmwCQ\n enceyhu4UHKcc9lmUV8ncBcKTjrqO497KgztB4bZLyQiUT4ABz0bA/aLHyO/6oOq9vfbnLLA+lj\n g1HIFmVMOy7g0UBnBILV0KPkJQvFEtsqVNdvO6UjDkygkwnwP8cGKsu2LKVwiLi9CpDYfiHvDy3\n ptqKY45UoPZYveh993eP672kaVzE+aWEPSlEL0PoqIjWbw/ub5VCq/09YkW2FsK4Ovhr+tGv1Gi\n BwSSQMeyZTm7uAhpFmuVSIH5vgWPPhKDeSRz0iePbVCe/Ay0AZqH2F3jSbPYo7xFBoHRwFCNZDm\n qLtih4hXB3sYP1CWjEWWY7j1u6TQMXb7d38gMRadmOsJIncV+b0uHK7PSs3qN+", "X-Received": [ "by 2002:a17:902:e748:b0:2b4:5d0c:7a85 with SMTP id\n d9443c01a7336-2b5f9dbcd42mr56794895ad.3.1776494147996;\n Fri, 17 Apr 2026 23:35:47 -0700 (PDT)", "by 2002:a17:902:e748:b0:2b4:5d0c:7a85 with SMTP id\n d9443c01a7336-2b5f9dbcd42mr56794635ad.3.1776494147502;\n Fri, 17 Apr 2026 23:35:47 -0700 (PDT)" ], "From": "Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>", "Date": "Sat, 18 Apr 2026 12:05:21 +0530", "Subject": "[PATCH v4 3/5] arm: mach-snapdragon: Skip USB fixup for\n qcom,sc7280-dwc3", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260418-kodiak_ss-v4-3-d381670c9d78@oss.qualcomm.com>", "References": "<20260418-kodiak_ss-v4-0-d381670c9d78@oss.qualcomm.com>", "In-Reply-To": "<20260418-kodiak_ss-v4-0-d381670c9d78@oss.qualcomm.com>", "To": "Sumit Garg <sumit.garg@kernel.org>, u-boot-qcom@groups.io,\n u-boot@lists.denx.de", "Cc": "Lukasz Majewski <lukma@denx.de>,\n Casey Connolly <casey.connolly@linaro.org>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Tom Rini <trini@konsulko.com>, Luca Weiss <luca.weiss@fairphone.com>,\n Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Simon Glass <sjg@chromium.org>, Peng Fan <peng.fan@nxp.com>,\n Yao Zi <me@ziyao.cc>, Kory Maincent <kory.maincent@bootlin.com>,\n Kuan-Wei Chiu <visitorckw@gmail.com>,\n Jerome Forissier <jerome.forissier@arm.com>,\n Raymond Mao <raymond.mao@riscstar.com>,\n Quentin Schulz <quentin.schulz@cherry.de>,\n Stefan Roese <stefan.roese@mailbox.org>,\n Philip Molloy <philip.molloy@analog.com>,\n Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>", "X-Mailer": "b4 0.14.3", "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1776494121; l=4488;\n i=balaji.selvanathan@oss.qualcomm.com; s=20260213; h=from:subject:message-id;\n bh=CVMBaaJG0GX0mjp2NpKxksSligi2n/nO3L4hb/akzWU=;\n b=Adkdy7CAH6JpjfcLn0vnnMsweRI9T5c8OF2ykDXUoC89P8h3ioUIw3p89rICEdjWPmMpq9Xh/\n CCoh4DX84piBrc3DPoHtQAaJQNEn4k8x9UTBrI7HGFRTArQ5DOCB28c", "X-Developer-Key": "i=balaji.selvanathan@oss.qualcomm.com; a=ed25519;\n pk=CDpYiUU3SH7KGEtsBvY2tBGPiWfMxqWJF0p2LftOfnc=", "X-Authority-Analysis": "v=2.4 cv=KZridwYD c=1 sm=1 tr=0 ts=69e32645 cx=c_pps\n a=JL+w9abYAAE89/QcEU+0QA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22\n a=EUspDBNiAAAA:8 a=-p8zK5Xjo0VIsRuXoG0A:9 a=QEXdDO2ut3YA:10\n a=324X-CrmTo6CU4MGRt3R:22", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDE4MDA1OSBTYWx0ZWRfX6VvjBhD3mEFV\n oKJ4Kh+DSjFLAd5/FuDBgNmVp8pAHjJJU85ye+/HQ/oU6o2Z7YIFGxVA0TDfboYGe9PfF7qGYc9\n xH26a02nZx5p6Cn1ewQeUTzMU3s4of7IYMdVDOqU83ulTQ2OMwKkdUUZt/NgeIEpIoZlkSuP7OF\n uYNTounwH6ODw07a/F/SSikZ1J5SQWqwI4nKwIw8sXC11zIeOhgOKgzgGD33rGrpjGMPUl+Kasx\n 7PR7JDDZO2PBTuN3BM4ccRtxCLl/KlEEMhCS/IMnRTfX0dWUo+UcFKcfFohFBux2XdIdc/VhZqJ\n f/obKdiwA2y3Az5qn8N2voAaDUZbrfQz0qhGhZnfCjZEn0w5rHI4BTV7BHbpH4GSNbNz010FQqH\n 3VsCwnfKrp2jBIwSBghKN59Y0AhO0qmRE6Gz8anTcpxpAjZg3J/lbeWSsFy2Sg0hJ8rWIj5YXgh\n UJqa9GfwuOpHUs3/ogA==", "X-Proofpoint-GUID": "aUyQns4toQNlduUq-4aNPJxcTwijMhxj", "X-Proofpoint-ORIG-GUID": "aUyQns4toQNlduUq-4aNPJxcTwijMhxj", "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-18_02,2026-04-17_04,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n suspectscore=0 impostorscore=0 spamscore=0 bulkscore=0 malwarescore=0\n priorityscore=1501 clxscore=1015 phishscore=0 adultscore=0 lowpriorityscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604180059", "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": "Currently we unconditionally limit USB to high-speed on all Qualcomm\nplatforms since most lack super-speed PHY drivers. The sc7280\nplatform has a working super-speed PHY driver in U-Boot and should\nnot have this restriction applied.\n\nAdd a static check for the \"qcom,sc7280-dwc3\" compatible string at\nthe start of fixup_qcom_dwc3() to skip the USB high-speed fixup for\nsc7280. Add a log_warning() when the fixup is applied so developers\non other platforms with working super-speed USB know to add their\ncompatible to the skip list.\n\nSigned-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>\n---\nChanges in v4:\n- Instead of automatically detect if SSPHY driver is\n available at runtime (which adds computational overhead), instead\n just skip HS fixup based on usb node compatible string.\n---\n arch/arm/mach-snapdragon/of_fixup.c | 54 +++++++++++++++++++++++++------------\n 1 file changed, 37 insertions(+), 17 deletions(-)", "diff": "diff --git a/arch/arm/mach-snapdragon/of_fixup.c b/arch/arm/mach-snapdragon/of_fixup.c\nindex 5b6076ea8e5..6ce6f1061e9 100644\n--- a/arch/arm/mach-snapdragon/of_fixup.c\n+++ b/arch/arm/mach-snapdragon/of_fixup.c\n@@ -27,11 +27,6 @@\n #include <stdlib.h>\n #include <time.h>\n \n-/* U-Boot only supports USB high-speed mode on Qualcomm platforms with DWC3\n- * USB controllers. Rather than requiring source level DT changes, we fix up\n- * DT here. This improves compatibility with upstream DT and simplifies the\n- * porting process for new devices.\n- */\n static int fixup_qcom_dwc3(struct device_node *root, struct device_node *glue_np, bool flat)\n {\n \tstruct device_node *dwc3;\n@@ -39,7 +34,7 @@ static int fixup_qcom_dwc3(struct device_node *root, struct device_node *glue_np\n \tconst __be32 *phandles;\n \tconst char *second_phy_name;\n \n-\tdebug(\"Fixing up %s\\n\", glue_np->name);\n+\tdebug(\"Checking USB configuration for %s\\n\", glue_np->name);\n \n \t/* New DT flattens the glue and controller into a single node. */\n \tif (flat) {\n@@ -54,30 +49,56 @@ static int fixup_qcom_dwc3(struct device_node *root, struct device_node *glue_np\n \t\t}\n \t}\n \n-\t/* Tell the glue driver to configure the wrapper for high-speed only operation */\n-\tret = of_write_prop(glue_np, \"qcom,select-utmi-as-pipe-clk\", 0, NULL);\n-\tif (ret) {\n-\t\tlog_err(\"Failed to add property 'qcom,select-utmi-as-pipe-clk': %d\\n\", ret);\n-\t\treturn ret;\n-\t}\n-\n \tphandles = of_get_property(dwc3, \"phys\", &len);\n \tlen /= sizeof(*phandles);\n \tif (len == 1) {\n \t\tlog_debug(\"Only one phy, not a superspeed controller\\n\");\n-\t\treturn 0;\n+\t\tgoto apply_fixup;\n \t}\n \n-\t/* Figure out if the superspeed phy is present and if so then which phy is it? */\n+\t/* Figure out if the superspeed phy is present */\n \tret = of_property_read_string_index(dwc3, \"phy-names\", 1, &second_phy_name);\n \tif (ret == -ENODATA) {\n \t\tlog_debug(\"Only one phy, not a super-speed controller\\n\");\n-\t\treturn 0;\n+\t\tgoto apply_fixup;\n \t} else if (ret) {\n \t\tlog_err(\"Failed to read second phy name: %d\\n\", ret);\n \t\treturn ret;\n \t}\n \n+\t/*\n+\t * Skip the fixup for platforms with proper super-speed USB support\n+\t * in U-Boot. Add the DWC3 glue compatible string to this list when\n+\t * super-speed USB works on a new platform.\n+\t */\n+\tstatic const char * const ss_capable[] = {\n+\t\t\"qcom,sc7280-dwc3\",\n+\t\tNULL\n+\t};\n+\tfor (int i = 0; ss_capable[i]; i++) {\n+\t\tif (of_device_is_compatible(glue_np, ss_capable[i], NULL, NULL)) {\n+\t\t\tdebug(\"Skipping USB fixup for %s\\n\", glue_np->name);\n+\t\t\treturn 0;\n+\t\t}\n+\t}\n+\n+apply_fixup:\n+\tlog_warning(\"Applying USB high-speed fixup to %s. If super-speed USB works on this platform, add the compatible to the skip list in %s\\n\",\n+\t\t glue_np->name, __FILE__);\n+\n+\t/* Tell the glue driver to configure the wrapper for high-speed only operation */\n+\tret = of_write_prop(glue_np, \"qcom,select-utmi-as-pipe-clk\", 0, NULL);\n+\tif (ret) {\n+\t\tlog_err(\"Failed to add property 'qcom,select-utmi-as-pipe-clk': %d\\n\", ret);\n+\t\treturn ret;\n+\t}\n+\n+\t/*\n+\t * Single-PHY controllers only need qcom,select-utmi-as-pipe-clk.\n+\t */\n+\tif (len == 1)\n+\t\treturn 0;\n+\n \t/*\n \t * Determine which phy is the superspeed phy by checking the name of the second phy\n \t * since it is typically the superspeed one.\n@@ -104,7 +125,6 @@ static int fixup_qcom_dwc3(struct device_node *root, struct device_node *glue_np\n \t\tlog_err(\"Failed to set 'maximum-speed' property: %d\\n\", ret);\n \t\treturn ret;\n \t}\n-\n \treturn 0;\n }\n \n", "prefixes": [ "v4", "3/5" ] }