Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp832822pxu; Mon, 23 Nov 2020 05:26:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3/mJOiifWiElAiW+s1vciCc3TtcbQ8zPOl+a6IwRFh2Um/MWGJArDxTqteR/28mHy1w1F X-Received: by 2002:a05:6402:1d82:: with SMTP id dk2mr25360408edb.366.1606138015189; Mon, 23 Nov 2020 05:26:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606138015; cv=none; d=google.com; s=arc-20160816; b=hWq+AkNLxoGlsomz9Q2tHCl2A4BFQqLwFhPSikUlz3IbWoGaFUvh2bsJ1nzB2EBQti Okn63N+Rv1kWhy2qFtb01KdCfkWEP1sGivVYtkHJMnxvROKDJDIskmrsEXYZSxHZiQRX Y53RP8aaiMEIVGgHs8wtvead3wz6BpO6PBVHB0IsTfWT2EUcfvR6E3hg91cXuMaRC4Xr WVhcnnZL5714aetEaFtpkvHgiAkmV12SYbSQf460fEvzC22rVhODpWUjOsfQaq6x//ls sVjHcpdoNnk2I7fPIQiCgzI/v+WEE/zrUHL/vFnaS+uhTZZ8CTKVE5SBiOL9warseJdQ 6cpg== 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=4HLYhCW8UNYuMM4Dsa4/X8G7JEK8tm9Z3Bo5fpxdtQQ=; b=MKX0eCaIdt1ODSOtXeo4rDvpkQuVo7THL3sJu3VlmTlRdTCyvO7yMe5vyskjo0lH9g TqLQWJFdgGB2gCeG2J5iaYIM0UGrcVjtT4Xhxx23NgrlOkFfyhuppUI8PJQu5Zl8VM9m A0tj2ET8E4u3zT7y5hEB5NAHmwL4cNkhV870hJyl37KaVoM7EGLAf+RE6FZT7jYCvqJU JFaW8q6hS3PLPOuRXi1V4Wzxk0PrNQJ2wokafJre2vayRuh2EZRRclXMrkvD07kOKwuA e8jtfSTicCeQ04nBKeWpnpS03ijuWPwam00vxr+SQpnrbo5zMPqL7oi+cdxUBiCrBl/l aZvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kcrXKoMN; 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 f2si7880133edl.256.2020.11.23.05.26.31; Mon, 23 Nov 2020 05:26:55 -0800 (PST) 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=kcrXKoMN; 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 S1733303AbgKWNXo (ORCPT + 99 others); Mon, 23 Nov 2020 08:23:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:46928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731475AbgKWMfE (ORCPT ); Mon, 23 Nov 2020 07:35:04 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 578BA21D93; Mon, 23 Nov 2020 12:35:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134902; bh=nSlSpaDNHRKZweh1WkMRoomRVitUFX3MT3jYGTWMGM4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kcrXKoMN8BXOIRC2Hbb647IzzVIWh3L4d08D5h8qhCjUskC/h1tu32TrKm4rQ0MZz KCiVSKJj9mraO3CSWBbypD1SIEunqMtoXOHg00l7wCSK0V4ghHCkQycOTVFG0fB92b la1/uvhH9u/dH8E3czj1tQLUApfXirWFmp5l86do= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jianqun Xu , Heiko Stuebner , Kever Yang , Linus Walleij , Sasha Levin Subject: [PATCH 5.4 034/158] pinctrl: rockchip: enable gpio pclk for rockchip_gpio_to_irq Date: Mon, 23 Nov 2020 13:21:02 +0100 Message-Id: <20201123121821.583145119@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@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: Jianqun Xu [ Upstream commit 63fbf8013b2f6430754526ef9594f229c7219b1f ] There need to enable pclk_gpio when do irq_create_mapping, since it will do access to gpio controller. Signed-off-by: Jianqun Xu Reviewed-by: Heiko Stuebner Reviewed-by: Kever Yang Link: https://lore.kernel.org/r/20201013063731.3618-3-jay.xu@rock-chips.com Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/pinctrl-rockchip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index 1bd8840e11a6e..930edfc32f597 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -2811,7 +2811,9 @@ static int rockchip_gpio_to_irq(struct gpio_chip *gc, unsigned offset) if (!bank->domain) return -ENXIO; + clk_enable(bank->clk); virq = irq_create_mapping(bank->domain, offset); + clk_disable(bank->clk); return (virq) ? : -ENXIO; } -- 2.27.0