From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3E94C5321D for ; Sun, 19 Apr 2020 17:08:18 +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 CB50321927 for ; Sun, 19 Apr 2020 17:08:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Mbl1FI1/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB50321927 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+infradead-linux-arm-kernel=archiver.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=1oYHGI1Ds+cF+Uu9NUcoOImjkOFX/gAurRSgztLM3mQ=; b=Mbl1FI1/qJ5oLG /DdJPWGYAn5ilxMsLCcPVsswqzne65E34ut+OR2qvH3XVMgwOyHFw6CSBtJsgf6J5BbDfHQqV4e8Z 1XXMo3Xoe5Q4eQjuPXlO3jZQMduU73XcTXAq3HJKpLZC/IRa3fhcM8Bf5RrKlzvexpjro7OexU23C Oa4dZBZAtNjLBjisZ4O6zJoMKIHfZnM61fYgDvXzRBpMqzdCRu9++ZqXxZ9NUKQGWwJlH0q/W9VfT 9mPyPtFXif0VnzoXZl6lojJzz4/po6tc/sIlve/2pLpIaHkqgxO4MNYId5qsAnpD6x3jGM/s46r87 U8X3PslfyNn2q0FDaRdA==; 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 1jQDQY-0001ha-D8; Sun, 19 Apr 2020 17:08:18 +0000 Received: from mail-oi1-f194.google.com ([209.85.167.194]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jQDQV-0001gH-7G for linux-arm-kernel@lists.infradead.org; Sun, 19 Apr 2020 17:08:16 +0000 Received: by mail-oi1-f194.google.com with SMTP id a2so2125457oia.11 for ; Sun, 19 Apr 2020 10:08:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UkOoxFPOZSwtkQ3jPPRPGnUUdj04yB+81AESCw0IP4I=; b=Fc4RIOQqpOXDi8CsbRb6CNM0j7dtTKn8QdOQ/zgVPnEZKMa/14zkX68upcPTwjmfFU F1FJpkisApP6V0F/fH4G5SscucZ6qnrT+9ukEgIMNYzTY3uEV98K/l2qBdpeYiKiQWnf yxbyDMX3KlRGfqco4Pcu6s427jvTn4n/XzdxE2w5d72rbTzS4tEC73Tt5Rhkex4O0Kpk CZ6V2QDiQ7VReRmuvLCEJykf7ImG8v7ddcrEuxEA3zkrF/AaUSARXUnzyxsTrE3uGhbr WFgXpAtUFCXtdg+yXUomLa1ICVQDdvDiVAzATXG86pH08jyCGLpO2ySVFMCUCOOIrNgE XmEA== X-Gm-Message-State: AGi0PubrpEyNosomG3FsITmaQC+LR8/rBcj6iUMyZ7lW30RATu78t+IV g21VCXHJlTMeLD8x+ZJR/g== X-Google-Smtp-Source: APiQypLvLmvAdngacB2FLvtvW5eNlzo5ELiTv5EubT9pBJI0uhxmO0n9BcSwRiYhZN8jJTtJ8BYXXA== X-Received: by 2002:aca:ad87:: with SMTP id w129mr7844827oie.173.1587316092388; Sun, 19 Apr 2020 10:08:12 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u205sm9661938oia.37.2020.04.19.10.08.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Apr 2020 10:08:11 -0700 (PDT) From: Rob Herring To: Linus Walleij , Liviu Dudau , Lorenzo Pieralisi , Sudeep Holla Subject: [PATCH 00/17] Modularizing Versatile Express Date: Sun, 19 Apr 2020 12:07:53 -0500 Message-Id: <20200419170810.5738-1-robh@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200419_100815_262328_A72ED8E7 X-CRM114-Status: GOOD ( 12.04 ) 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: Arnd Bergmann , linux-pm@vger.kernel.org, Stephen Boyd , Catalin Marinas , Kevin Brodsky , Sebastian Reichel , Will Deacon , Greg Kroah-Hartman , Lee Jones , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series enables building various Versatile Express platform drivers as modules. The primary target is the Fast Model FVP which is supported in Android. As Android is moving towards their GKI, or generic kernel, the hardware support has to be in modules. Currently ARCH_VEXPRESS enables several built-in only drivers. Some of these are needed, but some are only needed for older 32-bit VExpress platforms and can just be disabled. For FVP, the pl111 display driver is needed. The pl111 driver depends on vexpress-osc clocks which had a dependency chain of vexpress-config --> vexpress-syscfg --> vexpress-sysreg. These components relied on fixed initcall ordering and didn't support deferred probe which would have complicated making them modules. All these levels of abstraction are needlessly complicated, so this series simplifies things a bit by merging the vexpress-config and vexpress-syscfg functionality. There's a couple of other pieces to this which I've sent out separately as they don't have dependencies with this series. The cross subsystem dependencies in this series are mainly the ordering of enabling drivers as modules. A complete git branch is here[1]. Tested on Fast Model FVP Rev C. Rob [1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git vexpress-modules-v3 Rob Herring (17): ARM: vexpress: Move vexpress_flags_set() into arch code arm64: vexpress: Don't select CONFIG_POWER_RESET_VEXPRESS arm64: vexpress: Don't select CONFIG_VEXPRESS_CONFIG power/reset: vexpress: Support building as a module clk: versatile: Kill CONFIG_COMMON_CLK_VERSATILE clk: versatile: Only enable SP810 on 32-bit by default clk: vexpress-osc: Use the devres clock API variants clk: vexpress-osc: Support building as a module mfd: vexpress-sysreg: Drop selecting CONFIG_CLKSRC_MMIO mfd: vexpress-sysreg: Drop unused syscon child devices mfd: vexpress-sysreg: Use devres API variants mfd: vexpress-sysreg: Support building as a module bus: vexpress-config: Merge vexpress-syscfg into vexpress-config bus: vexpress-config: simplify config bus probing vexpress: Move site master init to vexpress-config bus bus: vexpress-config: Support building as module ARM: vexpress: Don't select VEXPRESS_CONFIG arch/arm/mach-integrator/Kconfig | 1 - arch/arm/mach-realview/Kconfig | 1 - arch/arm/mach-versatile/Kconfig | 1 - arch/arm/mach-vexpress/Kconfig | 4 - arch/arm/mach-vexpress/core.h | 1 + arch/arm/mach-vexpress/dcscb.c | 1 + arch/arm/mach-vexpress/v2m.c | 23 ++ arch/arm64/Kconfig.platforms | 3 - drivers/bus/Kconfig | 2 +- drivers/bus/vexpress-config.c | 354 ++++++++++++++++++----- drivers/clk/Makefile | 2 +- drivers/clk/versatile/Kconfig | 15 +- drivers/clk/versatile/clk-vexpress-osc.c | 20 +- drivers/mfd/Kconfig | 5 +- drivers/mfd/vexpress-sysreg.c | 99 +------ drivers/misc/Kconfig | 9 - drivers/misc/Makefile | 1 - drivers/misc/vexpress-syscfg.c | 280 ------------------ drivers/power/reset/Kconfig | 2 +- drivers/power/reset/vexpress-poweroff.c | 10 +- include/linux/vexpress.h | 30 -- 21 files changed, 338 insertions(+), 526 deletions(-) delete mode 100644 drivers/misc/vexpress-syscfg.c -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel