Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1236101pxu; Mon, 23 Nov 2020 15:32:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJygJd05yXj9uCtVD5vvtF0tQJJ0fTs9WiCJN0udwXHofEG0/uUGdqBq8pWlGEZlnCn+4v5I X-Received: by 2002:a17:906:748:: with SMTP id z8mr1200174ejb.546.1606174373215; Mon, 23 Nov 2020 15:32:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174373; cv=none; d=google.com; s=arc-20160816; b=d0a8FVd6gty4jppnIG5IddArErlz3E5Cx+x1SB5wr8t/URM/YtvFmU6YGSYKKTq7Lc fEXCpnINEwuOHGMyy2MvdeBTu79awtCgyae9P1BHf2kzaE3l/crrwCupX4VJX5mC6MLI zGxBPrbtPRLQb3CTV/MsSWqegsC2ouZqJwcRMAK2WhtIPbXEdOMLIjbBbjaGrY6pjFMX wCq9xK4xmCkuZEyQjz2raScIP9vLc/EtTXLkdgLKz99ZZX1Jhd6uY7hqTIRCrAOzTXi/ z+yMjUwHIhgLdkwpBxZKKmbSI8d1i1Tqp8Si6TIqnAk4Gnmnp1k9UmqMPPINASy5EsOJ qR9w== 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=RQ9Jwukd0njrT2Pl8PoyyDqhd163MpWPqoMGcipmeu0=; b=QOxYTpsX6IjfnGY6gRSz9/XC7Qy6DTtZhf++5siW84/7RUmrRxr+EY9SRo7t+s8uhO ZyVJfP6G6i3JN6aTrUwd6DxbHM0MZ1zyvyzMdbbDuJIPequJQxCQ6hb5ml56ml9kaxg8 OylY0RgPpGXvXGofUtNPIa9gO+VycxU9NJhORKBodIAGAhL8CSN0sgtY17PgCZZcxd30 d3cQ7Upcu35VZtZIlbEDsp/qTGI37wE6MfV2ueNHEykP3+Rl0kuD2f2JKQJWkGDshGC3 UI4pZQGy+Zbw30Ea/vQUstDrCIj75O+Cwv7cCM1A6O3UaIKR0Gv/CzkplxAwzoB4W28A kwxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=T54mnRDp; 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 x18si8358312ejd.193.2020.11.23.15.32.30; Mon, 23 Nov 2020 15:32:53 -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=T54mnRDp; 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 S1729911AbgKWMY6 (ORCPT + 99 others); Mon, 23 Nov 2020 07:24:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:34480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729889AbgKWMYx (ORCPT ); Mon, 23 Nov 2020 07:24:53 -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 5C3F520781; Mon, 23 Nov 2020 12:24:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134292; bh=vFCfrqrmcy+9gQNc5LdPPLQ3gtiTjBoBq3ffBxEE6tc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T54mnRDpxxlke3BKsTjNm69PgvXT5se2n0HIcgrVE1SudFOggNPaAZJ/tWVIrm/E1 HJTGOHer9anTEyEqpGXMmhMDnvqvYGMTREuvpxE+7LR5lTFVDA+hYzeMp4IZsCEBfG VEGGysKcix5f1A0e2b4kQaARITT6oEGyeUy5EKME= 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 4.9 19/47] pinctrl: rockchip: enable gpio pclk for rockchip_gpio_to_irq Date: Mon, 23 Nov 2020 13:22:05 +0100 Message-Id: <20201123121806.463559366@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121805.530891002@linuxfoundation.org> References: <20201123121805.530891002@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 417cd3bd7e0c9..ee2dcea1e54b9 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -1815,7 +1815,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