From patchwork Sun Apr 5 02:51:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 11474545 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 87B7192A for ; Sun, 5 Apr 2020 02:52:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 657C42070E for ; Sun, 5 Apr 2020 02:52:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gyS3tJFk"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="Bc7UTDRu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 657C42070E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vhXdCQ4dtdK/3iGcmQjp7sD1Di+WJOFp79UN/7A9pv8=; b=gyS3tJFk+ocVXQ Acm2HFVJ97zTEWUPtfh8gEWe/Ad8Gzzb3XYc+vX+aZ90loyV2Y7pgtsT21Bcbnea0Fo5FGBq4poqM MeNYUd5q5J1/jaOxBiX5C4FxCHDLbBBg2agHY5xCDV1JTw1sGJChvY7jEJ9x38T6MOD0fl1fN7S6c Ea519RTPx773O+9O82pgEjnar/L49tWcK4QUaxjo88M6NXQwQJcckA4UBEye8FWch6gLqnd72oO9c Yd8ImuMUO7Yz4r0/KtsQL6c/WIrV22Fk5fE4nitg5NGfV7VDX6aRa7Fb9fnicZ6iFthQ350JXI5vy 5NS1qZRJk/i+LuAwDieg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jKvOL-0006fl-VO; Sun, 05 Apr 2020 02:52:09 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jKvNf-0005zb-EN for linux-arm-kernel@lists.infradead.org; Sun, 05 Apr 2020 02:51:30 +0000 Received: from mail.kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EBA4A20672; Sun, 5 Apr 2020 02:51:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586055084; bh=428hrrLxGizYnfH4HkarazHDCjrvG1Td0mnE3ucsAuY=; h=From:To:Cc:Subject:Date:From; b=Bc7UTDRuEj52rjnEs57bgWoC+e2mCZiOxvX0KNY8ZEJPxGk8GcwIKASqSyHqkJJqQ MsuQuLU82GKZJHqo7c9US+ROPKQ6vM9fcMvFqd67YMmQ90Xq3ga0Xa/Sl2G9umEFNb A+I9rRoQoBfN74UrcFzf5/gfxqmzgezvAE2cBP0c= From: Stephen Boyd To: Michael Turquette , Stephen Boyd Subject: [PATCH 0/9] Allow COMMON_CLK to be selectable Date: Sat, 4 Apr 2020 19:51:14 -0700 Message-Id: <20200405025123.154688-1-sboyd@kernel.org> X-Mailer: git-send-email 2.26.0.292.g33ef6b2f38-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200404_195127_518559_6D24BA04 X-CRM114-Status: GOOD ( 14.28 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , linux-sh@vger.kernel.org, Catalin Marinas , Jiaxun Yang , linux-mips@vger.kernel.org, Manivannan Sadhasivam , chenhc@lemote.com, Will Deacon , linux-clk@vger.kernel.org, linux-c6x-dev@linux-c6x.org, Alexander Shiyan , Russell King , Yoshinori Sato , Geert Uytterhoeven , Mark Salter , Thierry Reding , uclinux-h8-devel@lists.sourceforge.jp, Arnd Bergmann , Aurelien Jacquiot , Lubomir Rintel , linux-m68k@lists.linux-m68k.org, Mark Brown , Guan Xuetao , linux-arm-kernel@lists.infradead.org, Paul Walmsley , Thomas Bogendoerfer , Paul Burton , linux-kernel@vger.kernel.org, Tony Prisk , =?utf-8?q?Andreas_F=C3=A4rber?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch series cleans up a handful of selects that were redundant and deletes presumably dead code with the goal of making it possible to add kunit tests for the CCF in the future. To do that, we introduce a "legacy" clk Kconfig option to mark code that hasn't migrated to the common clk framework and then make the COMMON_CLK config option visible in the menuconfig as long as that legacy option isn't enabled. I've also included a couple patches at the end that may be more controversial but helped me consolidate all this logic/code. I haven't done more than compile test a few configs for arm, arm64, h8300, and mips. More testing is welcome. The plan is that I'll just merge the whole pile through the clk tree. If the first five patches or the last three patches are better going through another tree like arm-soc or architecture trees that's fine too, but there are potential conflicts between trees so maybe it's better to just leave it all in one tree. Stephen Boyd (9): ARM: Remove redundant COMMON_CLK selects ARM: Remove redundant CLKDEV_LOOKUP selects arm64: tegra: Remove redundant CLKDEV_LOOKUP selects h8300: Remove redundant CLKDEV_LOOKUP selects MIPS: Remove redundant CLKDEV_LOOKUP selects clk: Allow the common clk framework to be selectable ARM: mmp: Remove legacy clk code MIPS: Loongson64: Drop asm/clock.h include clk: Move HAVE_CLK config out of architecture layer Cc: Alexander Shiyan Cc: "Andreas Färber" Cc: Arnd Bergmann Cc: Aurelien Jacquiot Cc: Catalin Marinas Cc: Cc: Geert Uytterhoeven Cc: Guan Xuetao Cc: Jiaxun Yang Cc: Cc: Cc: Cc: Cc: Cc: Lubomir Rintel Cc: Manivannan Sadhasivam Cc: Mark Brown Cc: Mark Salter Cc: Paul Burton Cc: Paul Walmsley Cc: Rich Felker Cc: Russell King Cc: Thierry Reding Cc: Thomas Bogendoerfer Cc: Tony Prisk Cc: uclinux-h8-devel@lists.sourceforge.jp Cc: Will Deacon Cc: Yoshinori Sato arch/Kconfig | 6 -- arch/arm/Kconfig | 5 +- arch/arm/mach-actions/Kconfig | 1 - arch/arm/mach-clps711x/Kconfig | 1 - arch/arm/mach-mmp/Kconfig | 1 - arch/arm/mach-mmp/Makefile | 6 -- arch/arm/mach-mmp/clock-mmp2.c | 114 ------------------------------- arch/arm/mach-mmp/clock-pxa168.c | 94 ------------------------- arch/arm/mach-mmp/clock-pxa910.c | 70 ------------------- arch/arm/mach-mmp/clock.c | 105 ---------------------------- arch/arm/mach-mmp/clock.h | 65 ------------------ arch/arm/mach-vt8500/Kconfig | 1 - arch/arm64/Kconfig.platforms | 1 - arch/c6x/Kconfig | 1 + arch/h8300/Kconfig | 1 - arch/m68k/Kconfig.cpu | 2 +- arch/mips/Kconfig | 8 +-- arch/mips/loongson2ef/Kconfig | 2 +- arch/mips/loongson64/smp.c | 1 - arch/sh/boards/Kconfig | 5 ++ arch/unicore32/Kconfig | 2 +- drivers/clk/Kconfig | 23 +++++-- 22 files changed, 34 insertions(+), 481 deletions(-) delete mode 100644 arch/arm/mach-mmp/clock-mmp2.c delete mode 100644 arch/arm/mach-mmp/clock-pxa168.c delete mode 100644 arch/arm/mach-mmp/clock-pxa910.c delete mode 100644 arch/arm/mach-mmp/clock.c delete mode 100644 arch/arm/mach-mmp/clock.h base-commit: 7111951b8d4973bda27ff663f2cf18b663d15b48