From patchwork Thu Apr 9 06:44:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 11481287 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 3E6C481 for ; Thu, 9 Apr 2020 06:44:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1CCF42084D for ; Thu, 9 Apr 2020 06:44:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586414694; bh=F/JmU3GTrtOwoY/DqKHIQ/xPGXNoOD3KdlAlsXkovuw=; h=From:To:Cc:Subject:Date:List-ID:From; b=eLPmie45oQFeuG8cKEKtUhROAjTjQ0+rSVdLHqUKANdkrnSICV9E4LsOoc8sbmLGG 1A700XXGl2UzYLdP/Lqe4h5frr7ixGQmPNsx7uPTIhStmNsK+WAX0Ea31oe4y7P65v 3OAxFUxMYcwwVRDtG9TZS0L1cdbvKZLq3r0nneKM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726470AbgDIGoT (ORCPT ); Thu, 9 Apr 2020 02:44:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:37838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbgDIGoS (ORCPT ); Thu, 9 Apr 2020 02:44:18 -0400 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 5DD14206F7; Thu, 9 Apr 2020 06:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586414658; bh=F/JmU3GTrtOwoY/DqKHIQ/xPGXNoOD3KdlAlsXkovuw=; h=From:To:Cc:Subject:Date:From; b=VIFA9hMRljgDWPtZhApOTUcSlKy7rTtE9Mmhq1LB5x7Likj7e2tXJaNJ9W8MXvE9t CZL/0G5QvGLjZRcsREw1PN23JK4jeNSM9qcqHSNxNPdfDbvECcHtH0Wn8jZsGHrqU7 saKjrha9GrGBY38FOlE8Xe6y+RCzgknxI8nYenKE= From: Stephen Boyd To: Michael Turquette , Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alexander Shiyan , =?utf-8?q?Andreas_F=C3=A4rber?= , Arnd Bergmann , Aurelien Jacquiot , Catalin Marinas , chenhc@lemote.com, Geert Uytterhoeven , Guan Xuetao , Jiaxun Yang , linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-sh@vger.kernel.org, Lubomir Rintel , Manivannan Sadhasivam , Mark Brown , Mark Salter , Neil Armstrong , Paul Burton , Paul Walmsley , Rich Felker , Russell King , Thierry Reding , Thomas Bogendoerfer , Tony Prisk , uclinux-h8-devel@lists.sourceforge.jp, Ulf Hansson , Will Deacon , Yoshinori Sato Subject: [PATCH v2 00/10] Allow COMMON_CLK to be selectable Date: Wed, 8 Apr 2020 23:44:06 -0700 Message-Id: <20200409064416.83340-1-sboyd@kernel.org> X-Mailer: git-send-email 2.26.0.292.g33ef6b2f38-goog MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.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. Changes from v1: * Fixed MIPS ralink build problem pointed out by Arnd * Fixed meson mx sdio build due to bad Kconfig exposed by this change * Picked up acks Stephen Boyd (10): 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 mmc: meson-mx-sdio: Depend on OF_ADDRESS and not just OF 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: Neil Armstrong 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: Ulf Hansson 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 | 7 +- arch/mips/loongson2ef/Kconfig | 2 +- arch/mips/loongson64/smp.c | 1 - arch/mips/ralink/Kconfig | 4 ++ arch/sh/boards/Kconfig | 5 ++ arch/unicore32/Kconfig | 2 +- drivers/clk/Kconfig | 23 +++++-- drivers/mmc/host/Kconfig | 2 +- 24 files changed, 38 insertions(+), 482 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 Reviewed-by: Arnd Bergmann