Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2030996ybb; Sat, 4 Apr 2020 19:52:18 -0700 (PDT) X-Google-Smtp-Source: APiQypKkzg4M0oqn8vkl/Vq06K1tr0vBM+Mb8zsTp6Hctf8TqxL48rqGsOKFqf7zl6E/jDdg7P5e X-Received: by 2002:a9d:4ee:: with SMTP id 101mr12182778otm.301.1586055138040; Sat, 04 Apr 2020 19:52:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586055138; cv=none; d=google.com; s=arc-20160816; b=Fv0pDQZtnAgSW04b+plAcao+6d2UAg+rtslZbvwMHPSwPgNmf7UhiJOZeM2LLrcI5h +Wh2gaaioWOqonZ8qctGTQleF/bpXx68zoNEjlDknHfBZyx5prH4r2ZxvwBU5XH01P5D A8whtPfRI58jUB5tW8asUpFPf6Np8oRcdvvUGZaoCHUngXKBqMnUDA6kQfAhri0pwF0r c7Q3BafXYhXkg0r5GFjQlSw9h518GfoTl1sAqSQZwE0tJ6ux5xrnFUhP8xATJmwidHFe S9wnmQ1fG9FQqqh2TOTbqdYRY7ABAfuug5KbydiJgfI9iFsS6NjRG2L87U3ox2ObvPk8 nMcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/fkl6t2SX+bJ4ft8fnmUxXNtrypQnJwqO63RFyOvuzA=; b=VH8hTH1Q7ilU9Vzm+7sJsxrw5VuxA49EJCF+ij4LWhaD75Majj0/k2DVQnc5M8OrXT nN8LHOhp8hlKT7Ttbz6gzgKAVoiYaAzl+YBAgFDPyGy6zdn2tXKtlpZ77ZkGzxcsmccQ O6/fHacBBpvUZitXkPqZlzsRak6OVjvFJWUcsdGglt/qArACFUaaJJJdz5oYTn4OCDz5 9dpyRdSGiokMWPCtERoCAfH/OYxm4DYsbrOj1pgSf6c5bqkdK08Q6p2bszWw0paqopWO IWTYRd/eVE7REmIw86Ob0JjQoF3+bbZgpPSgBINSeTwK+jMvBq6gFQCatsf9c7vFEqZG 2XhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Bc7UTDRu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r194si5577222oie.66.2020.04.04.19.52.05; Sat, 04 Apr 2020 19:52:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Bc7UTDRu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726545AbgDECv3 (ORCPT + 99 others); Sat, 4 Apr 2020 22:51:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:44684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbgDECv0 (ORCPT ); Sat, 4 Apr 2020 22:51:26 -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 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 Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Alexander Shiyan , =?UTF-8?q?Andreas=20F=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 , Paul Burton , Paul Walmsley , Rich Felker , Russell King , Thierry Reding , Thomas Bogendoerfer , Tony Prisk , uclinux-h8-devel@lists.sourceforge.jp, Will Deacon , Yoshinori Sato 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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. 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 -- Sent by a computer, using git, on the internet