From patchwork Wed Apr 12 18:38:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 1768226 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=RxMYj/Ms; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PxWsf0QsHz1yXv for ; Thu, 13 Apr 2023 04:47:18 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PxWsd6T4Jz3f4k for ; Thu, 13 Apr 2023 04:47:17 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=RxMYj/Ms; dkim-atps=neutral X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmx.net (client-ip=212.227.17.22; helo=mout.gmx.net; envelope-from=j.neuschaefer@gmx.net; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=RxMYj/Ms; dkim-atps=neutral X-Greylist: delayed 356 seconds by postgrey-1.36 at boromir; Thu, 13 Apr 2023 04:46:05 AEST Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PxWrF6SbSz3cMs for ; Thu, 13 Apr 2023 04:46:05 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1681325156; i=j.neuschaefer@gmx.net; bh=XeBl/5t7UZ4TzAdwmZ2UA9/ZarMbW1PhJCcszk78i7Q=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=RxMYj/MsFPlKDlwkKmnI6eoFJEoG2kB2bAKbYFakoq1GRMYcIt0lkwxB3KbY39twp lHuCkYpOIdXrOnRiuaii7JAFT7cykTYBWNyJ3pWPXFUY/mlN7rjsP8jEn8PV8BQWwr FIjbCatbVkqfsQr0lqe0Q2VwIz11/jZr7phqTrXDpqPEi8/vwfuHGLo06E9+z9v2g+ aKhOCca9fBog/K6wB+yDmyoxYfcMi8jpeuVfFPUP3TVs4fzqdS4arjMmpffiLeCbeO 747sN+ygbbgJpGT8oNoVZClS8hDWtrHkwyd+uZ/3IjlJLSk/ikJ4WhWwpz8rWf5z10 QRBEH+wKkUHZw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([185.66.193.41]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MA7KU-1pfTHg3b2o-00BbAY; Wed, 12 Apr 2023 20:38:38 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: openbmc@lists.ozlabs.org Subject: [PATCH v3 1/2] soc: nuvoton: Add a menu for Nuvoton SoC drivers Date: Wed, 12 Apr 2023 20:38:32 +0200 Message-Id: <20230412183834.3769519-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:0euLrYO+TWx5yPIpbwwSG/oxIf0i/WtN/pDJPApWgfXg7uSArUC viSBsOw/okp8bGMeD3UBPwh5K1fsreKnKbLM2mcadU8mCXpg0j51ze2RTmXf5N/6rZphiap KwXCZSM9GGM9cCyzZUGR6zaEcvyfsVOFtNk6p2WGHeADyyZxCtewnD2usYA3HFQBLvpwAcq 2Is66ujuiCaww7S3ek9MQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:QW07ReCkl+E=;oemanA/KchKkwkdi+VgYCHx/pow fM/Lbyon4g6y4DUq8XAGmOZMdUOPpDEVzUzq71wBZzGj0Bhp1aQI9NOmO9h597gMJJ1pFv1LN x7wulOwEeMf6RQCwxAnizB022TKGwd2fGhmTYyX3dgXWjr83J4wKncM0V9Kf8JlbtUnslNXBx 2ljMLDQL/8rhjN6eeDooOkk5uzhWujdpy2EI1vTqPcdfn5LJYmJyf+ftfKahjImDkbRKzimUY Lcsf9YNcjsfA+QGv49ocbR/Ox7bYxr1Qal9hrs7H2isQIAkiqDcp/xT/hBUCMD0NtiMGJKRX6 bNE7TOH0G6az2ICcfTOt5BI8OOpLSWdyn9J4JFPTco9vLkajWvoBQuFsD22TpvhIfdH83y879 g2vqON/4baQUJhuDaHBHOfijSVjKPRzqz8bFRGszHt7mcjdvdQ/14Q1WdhpmJ1KEXnmVXRAvs 7NCsJDCGI4PSQQf9+VG4YtspAODwOa6LMsJkskOVMEDebC3D8LEjdqllgafTpi2HQU+m2L1f4 6EcSKxLSdDEYz9PnVJkFBnKTKzKyDCTElre5itnhalKReRK4/oNKTwWVmLugKQAx9qt8gWtn7 lG+Y/P8Jsxjb8FRmE2PR/rtBOZzwO16WHI+O9yuoa4xPDbvmrjiUqeaKNo1dNwgpoPObaI+Pt oV1XdOMwCG9yzk/uDaEEF1rQtV1z9uAkeq3poG7rR27b8ZECDuBjxUqRqjO33n1/OW7LXEsHA T7YFRvD9rNjEtCBqYbBP8zGyMulD/D2K4O0zZE2SC3RYqXf2A4zDbaJVY5KUBDOVL5aISfQmR Bdxhko7Ujsy9VOnFxJivFA+wMaPhWBpRfO6zIMWun+zg0gQUcWUppw2f30FNAqQPZLkckANQQ yihTNZOqF8PoYkVMyKAHACHHAGF3HvrR73xzMkJDuJeAM5/tFm0GPOCZdpzk2eZA7r/iqC0bl YZRt5FJCVJxs3r8gA7RcnlRvJZA= X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Menzel , Arnd Bergmann , linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Geert Uytterhoeven , Joel Stanley Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" Add a menu "Nuvoton SoC drivers" to make it easier to add other Nuvoton SoC drivers later on and to prevent asking about the Nuvoton WPCM450 SoC driver when configuring a kernel without support for Nuvoton SoCs. Reported-by: Geert Uytterhoeven Link: https://lore.kernel.org/lkml/CAMuHMdWo5vHCeE6BeSHrUy12uT7_wFhW-VbQmQ5u+4Q8c7-wYQ@mail.gmail.com/ Fixes: 77b8c67b5637 ("soc: nuvoton: Add SoC info driver for WPCM450") Signed-off-by: Jonathan Neuschäfer Reviewed-by: Geert Uytterhoeven --- v3: - Split the commit into two - Reword the commit messages a bit v2: - https://lore.kernel.org/lkml/20230212215234.2608565-1-j.neuschaefer@gmx.net/ - Commit message improvements, as suggested by Geert Uytterhoeven. - Add Link after Reviewed-by, as checkpatch.pl now suggests --- drivers/soc/nuvoton/Kconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) -- 2.39.2 diff --git a/drivers/soc/nuvoton/Kconfig b/drivers/soc/nuvoton/Kconfig index df46182088ec2..853392c8a9151 100644 --- a/drivers/soc/nuvoton/Kconfig +++ b/drivers/soc/nuvoton/Kconfig @@ -1,5 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 -menuconfig WPCM450_SOC +menu "Nuvoton SoC drivers" + depends on ARCH_NPCM || COMPILE_TEST + +config WPCM450_SOC tristate "Nuvoton WPCM450 SoC driver" default y if ARCH_WPCM450 select SOC_BUS @@ -9,3 +12,5 @@ menuconfig WPCM450_SOC This driver provides information such as the SoC model and revision. + +endmenu From patchwork Wed Apr 12 18:38:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 1768225 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=e76GfvWd; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PxWrg1y85z1yXv for ; Thu, 13 Apr 2023 04:46:27 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PxWrf3Yscz3bdm for ; Thu, 13 Apr 2023 04:46:26 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=e76GfvWd; dkim-atps=neutral X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmx.net (client-ip=212.227.15.19; helo=mout.gmx.net; envelope-from=j.neuschaefer@gmx.net; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=e76GfvWd; dkim-atps=neutral X-Greylist: delayed 353 seconds by postgrey-1.36 at boromir; Thu, 13 Apr 2023 04:46:01 AEST Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PxWr95n1bz3cMs for ; Thu, 13 Apr 2023 04:46:00 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1681325152; i=j.neuschaefer@gmx.net; bh=e3csk9QDtuoyy0hLFZXVSqs18PWEMHsMdfYpX2DjbKI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=e76GfvWdk0em9To7Aoa3PQjWPqw9aPabqv+r1B9CTW+ChcYY0pcWJlviEZL1MluoT ImCmDvCjJryXfHlBBNkgJcQYFJ3dSgD3+TFJne5GhsSR2uUQGKtArrJwWhvnRhLNoO 0YE4YuqDwgdN6aBSty/iYXYr0SgTfhQHfWZr28Nm6Ulme+CBLi5mAWH9aZ+Sqyq3SR cmdVcbRBIhwJP5dW70FiqDQ8cD4dOjefTV7Lrg6SQswbihHvHzL1xZTwaEFvujd6IC g+yA5R+gP/BltsilrSYS49QuMSrfM7tooWilDMAibtcM/NBTrLP2dsDk4pM+oN0qXI LBm28sEtgLZoA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([185.66.193.41]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Md6Qr-1qLRx43G5b-00aH3p; Wed, 12 Apr 2023 20:38:41 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: openbmc@lists.ozlabs.org Subject: [PATCH v3 2/2] soc: nuvoton: Add "select REGMAP" to WPCM450 SoC driver Date: Wed, 12 Apr 2023 20:38:33 +0200 Message-Id: <20230412183834.3769519-2-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230412183834.3769519-1-j.neuschaefer@gmx.net> References: <20230412183834.3769519-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:Sah6L9Z4qPYitnzI9t240ENQHo3+eFI+OoSRtsT2MmfdOy5jjO+ VP9P4lD3CzwU7l1sYs83RBd/iKKCVbJt1jigQWaDTehB1kGqPC2W1l5Iqw2j+9hUrj0WvSc G1t/4bo5bl+yr0Y8kVY9jw4RA1lVPhGsgJPrfVE230KMDFaEE3dRxSC0tTetNCz3ZMVmKqK Uq/X2Ibd+/vcjyRE5jeUw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:dSjesP8u/Ig=;xP6A8ISy7LtltFpKJNKXzVBGn/H QxM1NkIjmCplxy46EnLmkR7Rc01QjE6JRRdoIo+99oaVTrcIbCw/wDONcpScCQu5D8S581KLM JQPZgyEYvaYLYtfQNFXULrA6fOfdZWgk7wM1ZGUOQbMlNIS/oj8KZGVTbb7v588yeOA1CXP4r Wx2GV5DeVEDZkVV9dc/wfktZ1AszoFTrWLx0AndA/Me3A46g3ZxcD4TIQyTXIuamvCz54G5N0 4fH/QmKZavuT2g5eAYLnMCTeYGfKRbxN/ahONiWIFJ9vAvqNNxsWkr4AZQsyqIvC0HDLRYRp+ 9Yq2y6X8VTg1Kl9R9EwXtkhKuhyiVP3Cj4RrWWd+LWdl3X7U5CepRkIVbZ2xrE3vVMtGnT8Cf KAPL/HHQZp9oClRq9TOcz4vXv0kU6qamlKgzU3NSY4dKqOW4YUjA1epVRayVJNnLceABjPwv2 JpToZc13y/zLv7DYjx0vUS05ElpPpEhENAmaabvXxeeKvzY5Vi0W80c8yTBr6mrkfLpZadHJU aqJ67B0gcMiO+uvGO/uBumN2D+n+3h2n9uIYXNJ4nh7aEGEoyZkkWcDjzAbrLHy68R20feztM CRynXAVvcjaiRG3LHW9X7lc1QTd6tZv4/2INhCpxOpHo0U64r4/YQkXLxtIzabLfzvUj99avq sPtA1mqC4atnWWbuyQ/m4eITkKOK43eUaYCBcjUthFTQVUyOJ26Cf6gJNbF7+5bCISn0OtjzX +cQN3YZescMrHfYK43c+Ox2whJpKWy4Jf5FoI6mdiEM3GCy+q4dU6IJinDZ/dtSRRHpLB6Gkv BSKMTh3K+QQ+XALA/f01IO8+BLMyqz00D2Zd4ObaDi8bYo+k95zc9u51PUg1RTWnrNWqSJD++ IAS4koYLCixAQsEb+yc29HKanthwPzBffK4289v5NQIzHRSMGc7TquCiUjL1Q5VAUyfcontdJ 9lMkfQ== X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Menzel , Arnd Bergmann , linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Geert Uytterhoeven , Joel Stanley Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" Select CONFIG_REGMAP from CONFIG_WPCM450_SOC, because the driver relies on regmap to work. Reported-by: Geert Uytterhoeven Link: https://lore.kernel.org/lkml/CAMuHMdWo5vHCeE6BeSHrUy12uT7_wFhW-VbQmQ5u+4Q8c7-wYQ@mail.gmail.com/ Fixes: 77b8c67b5637 ("soc: nuvoton: Add SoC info driver for WPCM450") Signed-off-by: Jonathan Neuschäfer Reviewed-by: Geert Uytterhoeven --- v3: - Split the commit into two - Reword the commit messages a bit v2: - https://lore.kernel.org/lkml/20230212215234.2608565-1-j.neuschaefer@gmx.net/ - Commit message improvements, as suggested by Geert Uytterhoeven. - Add Link after Reviewed-by, as checkpatch.pl now suggests --- drivers/soc/nuvoton/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.39.2 diff --git a/drivers/soc/nuvoton/Kconfig b/drivers/soc/nuvoton/Kconfig index 853392c8a9151..2167d3d739d84 100644 --- a/drivers/soc/nuvoton/Kconfig +++ b/drivers/soc/nuvoton/Kconfig @@ -6,6 +6,7 @@ config WPCM450_SOC tristate "Nuvoton WPCM450 SoC driver" default y if ARCH_WPCM450 select SOC_BUS + select REGMAP help Say Y here to compile the SoC information driver for Nuvoton WPCM450 SoCs.