Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1893524rwn; Fri, 9 Sep 2022 05:50:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR59x4yJGUGjKi8kmtPCXRewJhEcsNJjbXm1rWyXKp7bEkEP/EIp4noUDMNFMLehLs7gy1RL X-Received: by 2002:a05:6a00:e1b:b0:537:7c74:c405 with SMTP id bq27-20020a056a000e1b00b005377c74c405mr13929073pfb.43.1662727814905; Fri, 09 Sep 2022 05:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662727814; cv=none; d=google.com; s=arc-20160816; b=ZnKYqi8+ZcpnPBWoiIh5ghzS7jvqXrotRLbHCiWbZHnlYNZpfcgsFC2qRdINMpBRYQ jIYD5VzoOu7gH6b72CqM6Fg2WYgQG32pZ8WktWs9ORVZuKKIsPa5xF6mLZTMxxFt2qIg azhRxgQUkBUvcQQpTZsnk9GjM27JSprMiNNkhM/1DA8f/nyRxI8sBP/AAACVlIGcR6qI DVU4LMyW3EnLb2WMYNwR5BC0iOu0YctFyKEU5v+V6/QK/g8/VFTwPDOSqEolvm6ntW9Z bDdzOJOvI3r9Uv8wV1j4d5/Xts/UmTi9OObLn2SmIxnNimtB9p7K9sPIsOV+zQcfvvV7 iBJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SwnJFZjOA145GUS5Ak7z66Wmw56DGeCcW9Ebc/7oEFk=; b=wHaMn93cRN3lajnwhJJ0WfWxM490WWW3CzDzftnGXJ0y8+31hCroMEHjC6+xLoPEqR qtHy3oX+ca3UXnvKuxvGDUiCgWEiishcEiq7BzUsmoTliiSwivrDNfFmIQLfz+cJvzlf elIWJXYhM3e+mC74K08dbAc8QjW4srx9la5s+3sbqEhVT/sET6Q+c+ebPQKZIR37nwWf +e0hhdMtG6UMPeGAooI7Wq/UBfyB815SK06XsxOwKjVdv2WGMeNYMNp/mnDCGXQVpJFn NIj7heTrBRWtAuRvJ8C8k1kIXoqJl8bJwzZIz5Q66E67i7Q0STsEbka8NJNu63cTMjAC aNJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=iinYBrm7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p5-20020a170902eac500b001780cdb8471si448321pld.183.2022.09.09.05.50.02; Fri, 09 Sep 2022 05:50:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=iinYBrm7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231484AbiIIMcC (ORCPT + 99 others); Fri, 9 Sep 2022 08:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230369AbiIIMb4 (ORCPT ); Fri, 9 Sep 2022 08:31:56 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57648115CF2; Fri, 9 Sep 2022 05:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1662726715; x=1694262715; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lXPkkFRkwRKsafp6HGuDBA/9P2HFxXAmTgbrhhm4Y/M=; b=iinYBrm7m1kbds6aBGbfonvwfg7cUMiqR+b/p48OS+nXIEzvY3CXiBDN /H2Q/HsSkE4P1V+z4fWrnjtnRWVlC6vW+AdRcLRpA9JvNIVU/iGXSMnBV MUUZN0cU4uVPyEoCj+zfFBH+QrrXPWvZNX4i/2rhI2bcSzB5/IFijTRq5 NTN+JN25HadL4Lj4hrS1A4rGE2Q5fCDBH6AAblUutQEBAF2AAXSN3Mc1n JIKae6BqUYBXg+7QlzL0XDjy9BBUPCZvl4XghdFbKrdLxZye494u4c8PV aD97J5MeKS78yniLmSeLK9MHUEuAk4+vD68Oz6ny4KcAPPe+eXwvVDDOM w==; X-IronPort-AV: E=Sophos;i="5.93,303,1654585200"; d="scan'208";a="176399131" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Sep 2022 05:31:54 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 9 Sep 2022 05:31:51 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 9 Sep 2022 05:31:49 -0700 From: Conor Dooley To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Conor Dooley , Daire McNamara CC: Paul Walmsley , Albert Ou , Claudiu Beznea , , , , Subject: [PATCH v5 02/14] clk: microchip: mpfs: make the rtc's ahb clock critical Date: Fri, 9 Sep 2022 13:31:11 +0100 Message-ID: <20220909123123.2699583-3-conor.dooley@microchip.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220909123123.2699583-1-conor.dooley@microchip.com> References: <20220909123123.2699583-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The onboard RTC's AHB bus clock must be kept running as the RTC will stop & lose track of time if the AHB interface clock is disabled. Fixes: 635e5e73370e ("clk: microchip: Add driver for Microchip PolarFire SoC") Signed-off-by: Conor Dooley --- drivers/clk/microchip/clk-mpfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/microchip/clk-mpfs.c b/drivers/clk/microchip/clk-mpfs.c index f0f9c9a1cc48..b6b89413e090 100644 --- a/drivers/clk/microchip/clk-mpfs.c +++ b/drivers/clk/microchip/clk-mpfs.c @@ -375,6 +375,8 @@ static const struct clk_ops mpfs_periph_clk_ops = { * trap handler * - CLK_MMUART0: reserved by the hss * - CLK_DDRC: provides clock to the ddr subsystem + * - CLK_RTC: the onboard RTC's AHB bus clock must be kept running as the rtc will stop + * if the AHB interface clock is disabled * - CLK_FICx: these provide the processor side clocks to the "FIC" (Fabric InterConnect) * clock domain crossers which provide the interface to the FPGA fabric. Disabling them * causes the FPGA fabric to go into reset. @@ -399,7 +401,7 @@ static struct mpfs_periph_hw_clock mpfs_periph_clks[] = { CLK_PERIPH(CLK_CAN0, "clk_periph_can0", PARENT_CLK(AHB), 14, 0), CLK_PERIPH(CLK_CAN1, "clk_periph_can1", PARENT_CLK(AHB), 15, 0), CLK_PERIPH(CLK_USB, "clk_periph_usb", PARENT_CLK(AHB), 16, 0), - CLK_PERIPH(CLK_RTC, "clk_periph_rtc", PARENT_CLK(AHB), 18, 0), + CLK_PERIPH(CLK_RTC, "clk_periph_rtc", PARENT_CLK(AHB), 18, CLK_IS_CRITICAL), CLK_PERIPH(CLK_QSPI, "clk_periph_qspi", PARENT_CLK(AHB), 19, 0), CLK_PERIPH(CLK_GPIO0, "clk_periph_gpio0", PARENT_CLK(AHB), 20, 0), CLK_PERIPH(CLK_GPIO1, "clk_periph_gpio1", PARENT_CLK(AHB), 21, 0), -- 2.36.1