Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3033239pxb; Mon, 18 Oct 2021 07:00:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa6eMOMd+rWTSBdNKPyMdAtrxRq6eHlj23jUQhFDiAANffmOmRwigxI9HEmxz0DZs7O/cK X-Received: by 2002:a17:907:6e12:: with SMTP id sd18mr6129665ejc.157.1634565657937; Mon, 18 Oct 2021 07:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565657; cv=none; d=google.com; s=arc-20160816; b=yMNhZSnF/AEpDmFYznKvi4tmBz6VL4N06yYdaqvIH3hs2bfe0is6gygRDGwUMLfrgV S/G63CHw6U4Af3ogA44uv3uhC/5kC/G7mRecbFIqfCNAd0aX8R/6AadS0+/X7+FbcroE s5uh58g+ct8Y5/ZA84So8HrVfbR0en1UIutMUHZJNY+WzRiurC281lB8911KBwDmbSo4 EvwtIY5pLfO64/M9JXwC1oOMJgTG5TB7X9d47j3oSb4/b9dIc8W5Nad4D+7bHSZ/wAmK ZD5LajI/IRSY2wcCEad4+LZWnVkAZa9EAYwGVdTvA+u/rB22P3Eg7FP+zGSdFcwEVJwd Un4Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UtQzFbanROGiJztFX6kvjasM2ZNyrjDcSHev/lI5FDk=; b=0ElzS/n+oZOnbbY6YIS5e8DsDGz/YQYLmLsEjPIUwrtrbiEeZGmXEipCwJL1I1RA8N cgYLdAOScmP4W65BcHCLrsw0Hfz5e0LN8N+F9WCboEpkvmSONM4DE7rca3GpxzogdXja hnG+GkRpiGs1JseS7CFPLh2zyjilk0aoBX5bjlFjV2x3IGY/s1qDiWZyJfNWq0ADQvEx G1F1zO6I5UFO4vaQVamtZ9CQ65cqII/F6Ded81yoc5F5/y88JuzVnwWw/ayvHVsRIcQ2 eUzx4MPahFhkBOkUiZ6OPpcU+o//acaY8TK8a1uLB+2CkR8105NfzZAzxeUo+sXo6x9o JrXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PGeo0uiT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si4621112edz.482.2021.10.18.07.00.33; Mon, 18 Oct 2021 07:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PGeo0uiT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233256AbhJRN7e (ORCPT + 99 others); Mon, 18 Oct 2021 09:59:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:57730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234098AbhJRN5W (ORCPT ); Mon, 18 Oct 2021 09:57:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2D9EB61452; Mon, 18 Oct 2021 13:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564457; bh=exjujlaf+hgjlrlzagkNQVvgh741fEx2KVV2ikdGtvU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PGeo0uiTWr5Mke7CvgzgliEvbqKHD3EZYhpbeV6CqCR/DS7a0XC98vIT0zE4tiLya 0ToTD5VbR7DuyhSsjfoWR2trK6GF1Exf/1dgQYJcpyJi9ecbIGMfYOqebyjPnSw3Rj 9fA/W0iyB2YUTW9jOTLbInQ+WMTE1ojcRjjqraso= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Biju Das , Geert Uytterhoeven Subject: [PATCH 5.14 096/151] clk: renesas: rzg2l: Fix clk status function Date: Mon, 18 Oct 2021 15:24:35 +0200 Message-Id: <20211018132343.796105871@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Biju Das commit fa2a30f8e0aa9304919750b116a9e9e322465299 upstream. As per RZ/G2L HW(Rev.0.50) manual, clock monitor register value 0 means clock is not supplied and 1 means clock is supplied. This patch fixes the issue by removing the inverted logic. Fixing the above, triggered following 2 issues 1) GIC interrupts don't work if we disable IA55_CLK and DMAC_ACLK. Fixed this issue by adding these clocks as critical clocks. 2) DMA is not working, since the DMA driver is not turning on DMAC_PCLK. So will provide a fix in the DMA driver to turn on DMA_PCLK. Fixes: ef3c613ccd68 ("clk: renesas: Add CPG core wrapper for RZ/G2L SoC") Signed-off-by: Biju Das Link: https://lore.kernel.org/r/20210922112405.26413-2-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Greg Kroah-Hartman --- drivers/clk/renesas/renesas-rzg2l-cpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/clk/renesas/renesas-rzg2l-cpg.c +++ b/drivers/clk/renesas/renesas-rzg2l-cpg.c @@ -398,7 +398,7 @@ static int rzg2l_mod_clock_is_enabled(st value = readl(priv->base + CLK_MON_R(clock->off)); - return !(value & bitmask); + return value & bitmask; } static const struct clk_ops rzg2l_mod_clock_ops = {