From patchwork Mon Mar 22 06:17:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 12153837 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 EF569C433DB for ; Mon, 22 Mar 2021 06:20:02 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 8BE5961966 for ; Mon, 22 Mar 2021 06:20:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8BE5961966 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=toshiba.co.jp Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=k5YUWliBrXu0IPuk3r+rPnjGVnE6MUj+RNpX3pyPs4w=; b=acHXKW2Nw9DXBhpFC08SgDQuM oNKJMgpNgoonIyHMWRY6tKNmNGmaAsKj1bZjIMrtqgqimw0W2ZOVXK0m9YJ74O0c1HzQksSxH6c5O FD7NZ3YBmZpS0DawwGBu0ZR4qcpT2HFZsJ3IyUX8DRSAfIj/bqoUEGvhhdGQyKT9UavxajUh+C0S5 i0A5pnF4x4syHgB7EwFRX+ZSxmi4Dr3JxCO92OY5gkkF8OCblPfmGQFulR2dia1kBO/2hhwWh2nUc SBzG+nm8nB3B2FGQ4cIIs9kx+T1Vkcp/vI/ypvBkKul7kSTdmkc4WVhcdE4zDn6F9KUQ/94poJhB1 1kP45vfNw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lODtZ-00B0TW-4j; Mon, 22 Mar 2021 06:18:33 +0000 Received: from mo-csw1515.securemx.jp ([210.130.202.154] helo=mo-csw.securemx.jp) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lODtI-00B0Rx-Hv for linux-arm-kernel@lists.infradead.org; Mon, 22 Mar 2021 06:18:18 +0000 Received: by mo-csw.securemx.jp (mx-mo-csw1515) id 12M6IAP9031998; Mon, 22 Mar 2021 15:18:10 +0900 X-Iguazu-Qid: 34tMbaYFC39EyMje7v X-Iguazu-QSIG: v=2; s=0; t=1616393890; q=34tMbaYFC39EyMje7v; m=PjKeQH+BVzJOYo8llJ6tR3NWiVLi7YmTZJAU0PPX3t0= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1510) id 12M6I97T024828 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 22 Mar 2021 15:18:09 +0900 Received: from enc01.toshiba.co.jp (enc01.toshiba.co.jp [106.186.93.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by imx2-a.toshiba.co.jp (Postfix) with ESMTPS id C8BBA1000B9; Mon, 22 Mar 2021 15:18:09 +0900 (JST) Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.toshiba.co.jp with ESMTP id 12M6I9fH022508; Mon, 22 Mar 2021 15:18:09 +0900 From: Punit Agrawal To: michal.simek@xilinx.com Cc: Punit Agrawal , sboyd@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/2] clk: zynqmp: Enable the driver if ZYNQMP_FIRMWARE is selected Date: Mon, 22 Mar 2021 15:17:53 +0900 X-TSB-HOP: ON Message-Id: <20210322061754.1065367-2-punit1.agrawal@toshiba.co.jp> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210322061754.1065367-1-punit1.agrawal@toshiba.co.jp> References: <20210322061754.1065367-1-punit1.agrawal@toshiba.co.jp> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210322_061817_391345_18674FA4 X-CRM114-Status: GOOD ( 12.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When booting the kernel on zynqmp based platforms such as Ultra96v2, peripheral drivers such as that for the sdcard depend on the presence of clocks. Enable the clock driver if it's dependencies are compiled to avoid building an unbootable kernel. Signed-off-by: Punit Agrawal Acked-by: Michal Simek --- drivers/clk/zynqmp/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/zynqmp/Kconfig b/drivers/clk/zynqmp/Kconfig index 17086059be8b..14e4f5c55525 100644 --- a/drivers/clk/zynqmp/Kconfig +++ b/drivers/clk/zynqmp/Kconfig @@ -4,6 +4,7 @@ config COMMON_CLK_ZYNQMP bool "Support for Xilinx ZynqMP Ultrascale+ clock controllers" depends on ARCH_ZYNQMP || COMPILE_TEST depends on ZYNQMP_FIRMWARE + default ZYNQMP_FIRMWARE help Support for the Zynqmp Ultrascale clock controller. It has a dependency on the PMU firmware. From patchwork Mon Mar 22 06:17:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 12153833 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 D8A8EC433E1 for ; Mon, 22 Mar 2021 06:20:02 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 752A661931 for ; Mon, 22 Mar 2021 06:20:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 752A661931 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=toshiba.co.jp Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rcDEtyO2zF9PnJMeFivMHp2Ezjfj/IGE5zJcQLnexwk=; b=douO6UaDqBmEkzIz6b1wsUDuo eX2ThL0I7MZcKM3W4ZZQP1SNdrFFeg9do77mIURklYWEGsGMpXvm89mMJRqQsR2vU4uJCZpCi7sBF c8FzDLdWnGONqF8mtuND98sFNi52CaydmaZx86CRELE2zmPkn7qKcWnQr85gRTn/J0JCc1pvInZiq LNQ3nPI6FHzKIzbjRz7b/VyMH9Q76ykUy/tkQ1q+xR57+Yc/g965NtVieO1aP7SlUoEruYAibPcb9 ZUsytnyas6So/HcP+QfYbvE3sDO8sgWKVXJQ6SwnkE0wRhFX+3Tmg9dBrz0GRf5xv1uAGVVzisge/ Gb5X3apvw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lODtg-00B0UL-8A; Mon, 22 Mar 2021 06:18:40 +0000 Received: from mo-csw1116.securemx.jp ([210.130.202.158] helo=mo-csw.securemx.jp) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lODtO-00B0ST-Vj for linux-arm-kernel@lists.infradead.org; Mon, 22 Mar 2021 06:18:25 +0000 Received: by mo-csw.securemx.jp (mx-mo-csw1116) id 12M6IFKJ010189; Mon, 22 Mar 2021 15:18:16 +0900 X-Iguazu-Qid: 2wGqzdbCYyb0oDGf3N X-Iguazu-QSIG: v=2; s=0; t=1616393895; q=2wGqzdbCYyb0oDGf3N; m=jyZtgONCN7l+24XMZvGJIiB7KnOHl2PGc6s4LE7ecD4= Received: from imx12-a.toshiba.co.jp (imx12-a.toshiba.co.jp [61.202.160.135]) by relay.securemx.jp (mx-mr1110) id 12M6IE9v016866 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 22 Mar 2021 15:18:15 +0900 Received: from enc02.toshiba.co.jp (enc02.toshiba.co.jp [61.202.160.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by imx12-a.toshiba.co.jp (Postfix) with ESMTPS id C5A0D10007E; Mon, 22 Mar 2021 15:18:14 +0900 (JST) Received: from hop101.toshiba.co.jp ([133.199.85.107]) by enc02.toshiba.co.jp with ESMTP id 12M6IEIZ004009; Mon, 22 Mar 2021 15:18:14 +0900 From: Punit Agrawal To: michal.simek@xilinx.com Cc: Punit Agrawal , sboyd@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/2] clk: zynqmp: Drop dependency on ARCH_ZYNQMP Date: Mon, 22 Mar 2021 15:17:54 +0900 X-TSB-HOP: ON Message-Id: <20210322061754.1065367-3-punit1.agrawal@toshiba.co.jp> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210322061754.1065367-1-punit1.agrawal@toshiba.co.jp> References: <20210322061754.1065367-1-punit1.agrawal@toshiba.co.jp> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210322_061823_945242_EFE7E319 X-CRM114-Status: GOOD ( 11.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clock driver depends on ZYNQMP_FIRMWARE which in turn depends on ARCH_ZYNQMP. Simplify the Kconfig by dropping the redundant dependency on ARCH_ZYNQMP as it'll be applied transitively via ZYNQMP_FIRMWARE. Signed-off-by: Punit Agrawal Reviewed-by: Michal Simek --- drivers/clk/zynqmp/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/zynqmp/Kconfig b/drivers/clk/zynqmp/Kconfig index 14e4f5c55525..00df6be25c5d 100644 --- a/drivers/clk/zynqmp/Kconfig +++ b/drivers/clk/zynqmp/Kconfig @@ -2,8 +2,7 @@ config COMMON_CLK_ZYNQMP bool "Support for Xilinx ZynqMP Ultrascale+ clock controllers" - depends on ARCH_ZYNQMP || COMPILE_TEST - depends on ZYNQMP_FIRMWARE + depends on ZYNQMP_FIRMWARE || COMPILE_TEST default ZYNQMP_FIRMWARE help Support for the Zynqmp Ultrascale clock controller.