Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1940981/?format=api
{ "id": 1940981, "url": "http://patchwork.ozlabs.org/api/patches/1940981/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/4433650694e36ab9fb7748904c5e424865edece6.1716965617.git.ysato@users.sourceforge.jp/", "project": { "id": 28, "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api", "name": "Linux PCI development", "link_name": "linux-pci", "list_id": "linux-pci.vger.kernel.org", "list_email": "linux-pci@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<4433650694e36ab9fb7748904c5e424865edece6.1716965617.git.ysato@users.sourceforge.jp>", "list_archive_url": null, "date": "2024-05-29T08:00:53", "name": "[DO,NOT,MERGE,v8,07/36] sh: Fix COMMON_CLK support in CONFIG_OF=y.", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "fced3a273d379ea2e42a0503d84ddf7c3193ecb9", "submitter": { "id": 7114, "url": "http://patchwork.ozlabs.org/api/people/7114/?format=api", "name": "Yoshinori Sato", "email": "ysato@users.sourceforge.jp" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/4433650694e36ab9fb7748904c5e424865edece6.1716965617.git.ysato@users.sourceforge.jp/mbox/", "series": [ { "id": 408652, "url": "http://patchwork.ozlabs.org/api/series/408652/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=408652", "date": "2024-05-29T08:00:51", "name": "Device Tree support for SH7751 based board", "version": 8, "mbox": "http://patchwork.ozlabs.org/series/408652/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1940981/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1940981/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-7961-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-pci@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=147.75.48.161; helo=sy.mirrors.kernel.org;\n envelope-from=linux-pci+bounces-7961-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=153.127.30.23", "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=users.sourceforge.jp", "smtp.subspace.kernel.org;\n spf=fail smtp.mailfrom=users.sourceforge.jp" ], "Received": [ "from sy.mirrors.kernel.org (sy.mirrors.kernel.org [147.75.48.161])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4Vq21Q2qQwz20Pc\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 May 2024 18:02:50 +1000 (AEST)", "from smtp.subspace.kernel.org (wormhole.subspace.kernel.org\n [52.25.139.140])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby sy.mirrors.kernel.org (Postfix) with ESMTPS id 1F028B24EB2\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 May 2024 08:02:50 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 82F1C169AFE;\n\tWed, 29 May 2024 08:01:44 +0000 (UTC)", "from sakura.ysato.name (ik1-413-38519.vs.sakura.ne.jp\n [153.127.30.23])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 9A33F16938E;\n\tWed, 29 May 2024 08:01:42 +0000 (UTC)", "from SIOS1075.ysato.name (al128006.dynamic.ppp.asahi-net.or.jp\n [111.234.128.6])\n\tby sakura.ysato.name (Postfix) with ESMTPSA id 9ED681C0659;\n\tWed, 29 May 2024 17:01:40 +0900 (JST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1716969704; cv=none;\n b=RRBBV36vY0HaxnJNPNHjfw9EBCBaTkJM+sotZyinwxkSEbKobGkGmshnbt24P8h7rWDAoggfIRmCuMvwkqsyIZB3JFgMXa1CygM0r+t20yfHXUPULlhKTcAqP9njgCizdGGTS7P/iKVBIJy3HvdNp3XTlUxiP2l9dMqBKxnUZcM=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1716969704; c=relaxed/simple;\n\tbh=Klae42aAEUmwCNAZhqTsDWsg17yqN5BuEDRVCoPnVdo=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=gY6UXOX1OjkyedE4FYKk9qcy2IA9pBE9mkBEQpqH7jaZzTSQzkmNcpKROBOuUWqy4bYW7jCC1GO0qb1XLM1PWkPDSfdzI7r4XuFN4jA5p8LAcVZfqNdDDB/v8Nhwdbh3YfS0C0zVw9Wg3a658NWDwMe/0LBh9OsR06CI0Hpdq/Y=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=users.sourceforge.jp;\n spf=fail smtp.mailfrom=users.sourceforge.jp;\n arc=none smtp.client-ip=153.127.30.23", "From": "Yoshinori Sato <ysato@users.sourceforge.jp>", "To": "linux-sh@vger.kernel.org", "Cc": "Yoshinori Sato <ysato@users.sourceforge.jp>,\n Damien Le Moal <dlemoal@kernel.org>, Niklas Cassel <cassel@kernel.org>,\n Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>,\n Conor Dooley <conor+dt@kernel.org>,\n Geert Uytterhoeven <geert+renesas@glider.be>,\n Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>,\n David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,\n Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,\n Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>,\n Thomas Gleixner <tglx@linutronix.de>, Bjorn Helgaas <bhelgaas@google.com>,\n Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84?=\n\t=?utf-8?q?ski?= <kw@linux.com>,\n Greg Kroah-Hartman <gregkh@linuxfoundation.org>,\n Jiri Slaby <jirislaby@kernel.org>, Magnus Damm <magnus.damm@gmail.com>,\n Daniel Lezcano <daniel.lezcano@linaro.org>, Rich Felker <dalias@libc.org>,\n John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,\n Lee Jones <lee@kernel.org>, Helge Deller <deller@gmx.de>,\n Heiko Stuebner <heiko.stuebner@cherry.de>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Chris Morgan <macromorgan@hotmail.com>, Sebastian Reichel <sre@kernel.org>,\n Linus Walleij <linus.walleij@linaro.org>, Arnd Bergmann <arnd@arndb.de>,\n Masahiro Yamada <masahiroy@kernel.org>, Baoquan He <bhe@redhat.com>,\n Andrew Morton <akpm@linux-foundation.org>,\n Guenter Roeck <linux@roeck-us.net>, Kefeng Wang <wangkefeng.wang@huawei.com>,\n Stephen Rothwell <sfr@canb.auug.org.au>,\n Azeem Shaikh <azeemshaikh38@gmail.com>, Guo Ren <guoren@kernel.org>,\n Max Filippov <jcmvbkbc@gmail.com>, Jernej Skrabec <jernej.skrabec@gmail.com>,\n Herve Codina <herve.codina@bootlin.com>,\n Andy Shevchenko <andriy.shevchenko@linux.intel.com>,\n Anup Patel <apatel@ventanamicro.com>, Jacky Huang <ychuang3@nuvoton.com>,\n Hugo Villeneuve <hvilleneuve@dimonoff.com>, Jonathan Corbet <corbet@lwn.net>,\n Wolfram Sang <wsa+renesas@sang-engineering.com>, =?utf-8?q?Uwe_Kleine-K?=\n\t=?utf-8?q?=C3=B6nig?= <u.kleine-koenig@pengutronix.de>,\n Christophe JAILLET <christophe.jaillet@wanadoo.fr>,\n Sam Ravnborg <sam@ravnborg.org>,\n Javier Martinez Canillas <javierm@redhat.com>,\n Sergey Shtylyov <s.shtylyov@omp.ru>,\n Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,\n linux-ide@vger.kernel.org, devicetree@vger.kernel.org,\n linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org,\n linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org,\n linux-pci@vger.kernel.org, linux-serial@vger.kernel.org,\n linux-fbdev@vger.kernel.org", "Subject": "[DO NOT MERGE v8 07/36] sh: Fix COMMON_CLK support in CONFIG_OF=y.", "Date": "Wed, 29 May 2024 17:00:53 +0900", "Message-Id": "\n <4433650694e36ab9fb7748904c5e424865edece6.1716965617.git.ysato@users.sourceforge.jp>", "X-Mailer": "git-send-email 2.39.2", "In-Reply-To": "<cover.1716965617.git.ysato@users.sourceforge.jp>", "References": "<cover.1716965617.git.ysato@users.sourceforge.jp>", "Precedence": "bulk", "X-Mailing-List": "linux-pci@vger.kernel.org", "List-Id": "<linux-pci.vger.kernel.org>", "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "Initialize the clock and timer using the COMMON_CLK procedure.\nsh's earlytimer mechanism doesn't work properly in OF,\nso timer initialization is delayed.\nIf CONFIG_OF=y, perform the general timer initialization procedure.\n\nSigned-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>\n---\n arch/sh/boards/of-generic.c | 28 ++++------------------------\n arch/sh/kernel/time.c | 12 ++++++++++++\n 2 files changed, 16 insertions(+), 24 deletions(-)", "diff": "diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c\nindex cc88cb8908cc..64f80d2878b1 100644\n--- a/arch/sh/boards/of-generic.c\n+++ b/arch/sh/boards/of-generic.c\n@@ -8,6 +8,7 @@\n #include <linux/of.h>\n #include <linux/of_clk.h>\n #include <linux/of_fdt.h>\n+#include <linux/of_platform.h>\n #include <linux/clocksource.h>\n #include <linux/irqchip.h>\n \n@@ -100,16 +101,7 @@ static void sh_of_smp_probe(void)\n \n #endif\n \n-static void noop(void)\n-{\n-}\n-\n-static int noopi(void)\n-{\n-\treturn 0;\n-}\n-\n-static void __init sh_of_mem_reserve(void)\n+static void __init sh_of_mem_init(void)\n {\n \tearly_init_fdt_reserve_self();\n \tearly_init_fdt_scan_reserved_mem();\n@@ -142,25 +134,13 @@ static void __init sh_of_init_irq(void)\n \tirqchip_init();\n }\n \n-static int __init sh_of_clk_init(void)\n-{\n-#ifdef CONFIG_COMMON_CLK\n-\t/* Disabled pending move to COMMON_CLK framework. */\n-\tpr_info(\"SH generic board support: scanning for clk providers\\n\");\n-\tof_clk_init(NULL);\n-#endif\n-\treturn 0;\n-}\n-\n static struct sh_machine_vector __initmv sh_of_generic_mv = {\n \t.mv_setup\t= sh_of_setup,\n \t.mv_name\t= \"devicetree\", /* replaced by DT root's model */\n \t.mv_irq_demux\t= sh_of_irq_demux,\n \t.mv_init_irq\t= sh_of_init_irq,\n-\t.mv_clk_init\t= sh_of_clk_init,\n-\t.mv_mode_pins\t= noopi,\n-\t.mv_mem_init\t= noop,\n-\t.mv_mem_reserve\t= sh_of_mem_reserve,\n+\t.mv_mode_pins\t= generic_mode_pins,\n+\t.mv_mem_init\t= sh_of_mem_init,\n };\n \n struct sh_clk_ops;\ndiff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c\nindex 821a09cbd605..ce5b7c2f8628 100644\n--- a/arch/sh/kernel/time.c\n+++ b/arch/sh/kernel/time.c\n@@ -19,7 +19,9 @@\n #include <asm/clock.h>\n #include <asm/rtc.h>\n #include <asm/platform_early.h>\n+#include <linux/of_clk.h>\n \n+#ifndef CONFIG_SH_DEVICE_TREE\n static void __init sh_late_time_init(void)\n {\n \t/*\n@@ -43,3 +45,13 @@ void __init time_init(void)\n \n \tlate_time_init = sh_late_time_init;\n }\n+#else\n+/* CONFIG_SH_DEVICE_TREE */\n+void __init time_init(void)\n+{\n+\tpr_info(\"SH generic board support: scanning for clk providers\\n\");\n+\n+\tof_clk_init(NULL);\n+\ttimer_probe();\n+}\n+#endif\n", "prefixes": [ "DO", "NOT", "MERGE", "v8", "07/36" ] }