Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1191945/?format=api
{ "id": 1191945, "url": "http://patchwork.ozlabs.org/api/patches/1191945/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20191108130123.6839-32-linux@rasmusvillemoes.dk/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20191108130123.6839-32-linux@rasmusvillemoes.dk>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20191108130123.6839-32-linux@rasmusvillemoes.dk/", "date": "2019-11-08T13:01:07", "name": "[v4,31/47] serial: ucc_uart: stub out soft_uart_init for !CONFIG_PPC32", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": false, "hash": "05573c74902c0b0ee634d1fa39fc6e9fa11f7e74", "submitter": { "id": 27394, "url": "http://patchwork.ozlabs.org/api/people/27394/?format=api", "name": "Rasmus Villemoes", "email": "linux@rasmusvillemoes.dk" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20191108130123.6839-32-linux@rasmusvillemoes.dk/mbox/", "series": [ { "id": 141654, "url": "http://patchwork.ozlabs.org/api/series/141654/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=141654", "date": "2019-11-08T13:00:38", "name": "QUICC Engine support on ARM and ARM64", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/141654/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1191945/comments/", "check": "success", "checks": "http://patchwork.ozlabs.org/api/patches/1191945/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "patchwork-incoming@ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": [ "patchwork-incoming@ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 478jtX37mTz9sNH\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 9 Nov 2019 01:52:52 +1100 (AEDT)", "from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 478jtV2LrqzF7Ky\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 9 Nov 2019 01:52:50 +1100 (AEDT)", "from mail-lf1-x144.google.com (mail-lf1-x144.google.com\n\t[IPv6:2a00:1450:4864:20::144])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (2048 bits)\n\tserver-digest SHA256) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 478gQp4hjJzF6tP\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tSat, 9 Nov 2019 00:02:10 +1100 (AEDT)", "by mail-lf1-x144.google.com with SMTP id y6so4422847lfj.2\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 08 Nov 2019 05:02:10 -0800 (PST)", "from prevas-ravi.prevas.se ([81.216.59.226])\n\tby smtp.gmail.com with ESMTPSA id\n\td28sm2454725lfn.33.2019.11.08.05.02.06\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 08 Nov 2019 05:02:06 -0800 (PST)" ], "Authentication-Results": [ "ozlabs.org; dmarc=none (p=none dis=none)\n\theader.from=rasmusvillemoes.dk", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=rasmusvillemoes.dk header.i=@rasmusvillemoes.dk\n\theader.b=\"SRXE1NoS\"; dkim-atps=neutral", "lists.ozlabs.org; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=rasmusvillemoes.dk (client-ip=2a00:1450:4864:20::144;\n\thelo=mail-lf1-x144.google.com; envelope-from=linux@rasmusvillemoes.dk;\n\treceiver=<UNKNOWN>)", "lists.ozlabs.org; dmarc=none (p=none dis=none)\n\theader.from=rasmusvillemoes.dk", "lists.ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=rasmusvillemoes.dk header.i=@rasmusvillemoes.dk\n\theader.b=\"SRXE1NoS\"; dkim-atps=neutral" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=rasmusvillemoes.dk; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=zPi0SchlJBpcK2Uafamd7sY3psIZzF+ErFogb8EsMtA=;\n\tb=SRXE1NoSEoSCywO+L8E6ng+2FXGjgyGd7B+f0jJ2JaXIveaCYZLPIeDN3ivZQSSkGE\n\tu1V/D5rgTkWtpx6sNDzCdXxFB3bSCGyd8bTMf7BINnG8O7NsszC3ReD1KjCbn+P9Wj81\n\t/49kVxIImaa1ns64nyNk2b2uJQOsVial126RE=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=zPi0SchlJBpcK2Uafamd7sY3psIZzF+ErFogb8EsMtA=;\n\tb=PaiwmYEIWvlbckzlkm0zVzwArhMXb8DavGQFTg6oKAJYp5MtFh/9Tnocu9uVoyLSd2\n\tEY0xGRwA9j2LV10lI2mhy4H3+XPLcGjFtwX7xlyuvnCmI+SXGvtL4KdZnXKMcWM5Pvmv\n\tRGvU7XtfwcL0PK8ESuRIPs+2qfhcKRIRqcwWc0Qp6uWJU81iQEIaMB9eNfWuGCgA29iq\n\tctHZm9/wOKjIPqdXpVxx9ljXlQxcgFHqLWyhvSXydGWXWtpghPqcJHwRCMbN/H8ighQ/\n\tYd20GSzqtAvjhyopGdtGsUkBO/AzWm3mUQ6LnfnQnSHmqX48h82C4hycBu/wX0i2HQf4\n\t8MrQ==", "X-Gm-Message-State": "APjAAAWzWVzbZEE0aUkvITATRXYfqqvF2zMHmU8iFu4B5H3z92zV1097\n\tpB8EvyVxARtpf6G8uLyvaTVSxg==", "X-Google-Smtp-Source": "APXvYqwOqHE3M01CuaW5urlsbt5KzMbJiYrCdCN84TCfTLcHk6GXpiZEJDNrDr2YmEEm613FNacMMA==", "X-Received": "by 2002:ac2:5dcc:: with SMTP id\n\tx12mr6536635lfq.163.1573218127481; \n\tFri, 08 Nov 2019 05:02:07 -0800 (PST)", "From": "Rasmus Villemoes <linux@rasmusvillemoes.dk>", "To": "Qiang Zhao <qiang.zhao@nxp.com>, Li Yang <leoyang.li@nxp.com>,\n\tChristophe Leroy <christophe.leroy@c-s.fr>", "Subject": "[PATCH v4 31/47] serial: ucc_uart: stub out soft_uart_init for\n\t!CONFIG_PPC32", "Date": "Fri, 8 Nov 2019 14:01:07 +0100", "Message-Id": "<20191108130123.6839-32-linux@rasmusvillemoes.dk>", "X-Mailer": "git-send-email 2.23.0", "In-Reply-To": "<20191108130123.6839-1-linux@rasmusvillemoes.dk>", "References": "<20191108130123.6839-1-linux@rasmusvillemoes.dk>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "linuxppc-dev@lists.ozlabs.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>", "Cc": "Rasmus Villemoes <linux@rasmusvillemoes.dk>, linux-kernel@vger.kernel.org,\n\tScott Wood <oss@buserror.net>, linux-serial@vger.kernel.org,\n\tlinuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org", "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org", "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>" }, "content": "The Soft UART hack is only needed for some PPC-based SOCs. To allow\nbuilding this driver for non-PPC, guard soft_uart_init() and its\nhelpers by CONFIG_PPC32, and use a no-op soft_uart_init() otherwise.\n\nSigned-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>\n---\n drivers/tty/serial/ucc_uart.c | 17 ++++++++++++++++-\n 1 file changed, 16 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/tty/serial/ucc_uart.c b/drivers/tty/serial/ucc_uart.c\nindex f286e91714cb..313697842e24 100644\n--- a/drivers/tty/serial/ucc_uart.c\n+++ b/drivers/tty/serial/ucc_uart.c\n@@ -33,7 +33,10 @@\n \n #include <linux/firmware.h>\n #include <soc/fsl/cpm.h>\n-#include <asm/reg.h>\n+\n+#ifdef CONFIG_PPC32\n+#include <asm/reg.h> /* mfspr, SPRN_SVR */\n+#endif\n \n /*\n * The GUMR flag for Soft UART. This would normally be defined in qe.h,\n@@ -1096,6 +1099,8 @@ static const struct uart_ops qe_uart_pops = {\n \t.verify_port = qe_uart_verify_port,\n };\n \n+\n+#ifdef CONFIG_PPC32\n /*\n * Obtain the SOC model number and revision level\n *\n@@ -1238,6 +1243,16 @@ static int soft_uart_init(struct platform_device *ofdev)\n \treturn 0;\n }\n \n+#else /* !CONFIG_PPC32 */\n+\n+static int soft_uart_init(struct platform_device *ofdev)\n+{\n+\treturn 0;\n+}\n+\n+#endif\n+\n+\n static int ucc_uart_probe(struct platform_device *ofdev)\n {\n \tstruct device_node *np = ofdev->dev.of_node;\n", "prefixes": [ "v4", "31/47" ] }