Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1235108pxu; Mon, 23 Nov 2020 15:31:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTOwZbQAgYfVTPlAcIVdNctTLeBopMFq32Xp5xCZUsjS8DJF5s3bxwMrHfQmXDE3dAxWi3 X-Received: by 2002:a17:906:68c4:: with SMTP id y4mr736477ejr.332.1606174277592; Mon, 23 Nov 2020 15:31:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174277; cv=none; d=google.com; s=arc-20160816; b=f1iZ+6NZ/Bedc/Q1++YMexB7sajBEJaQx44fGsFpMimBGJm5TMSa1Y2VjWcMiRcMOC DSV1ASqXUpo+IMuHqku3usXXHYTaXsz9ubRBlE9FBgTLxPEwp9iq25iA5Ya3/DENp3ry r0sTy2u3VWD/Wv0vlL3mC5WcHtFsrhOlXQfiLHev2wMkIyqMVJ1ITu691rDTgzVaKUWJ bu8vCxKJRbVG+Ddtc+1PhSLPV0t1SptZTxHramT44t4Irvkc8lPATicbDaAGLF2VxMXm n0FBwdHbusHnzwcpdvqxD78VKtiqn+CcNA0x2aPZJWOz5yuT6fW6MWWOcOMP8AIBgxBC x1gg== 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=NYDbDz/3gWjq/ul+TctBpUgLi4yCIdbH0D23RUQZEaI=; b=Y9+oONk+6WjQ6qWft1LGCJTHm+5NUtJTTKfYd5B2TR5R65FVZk2qUxN9UWfkxy5bTJ 0yR6tnyrmt6my8hpHdOYtkmNZSUthkVb54EY/3GyGZPxWnBDyeQT6f+ECQpge3UOFnVr weK5lOjE4N3ZhNgxTBcqCxm053LA+bvxr1YH/+2dz2h6WimM+AZYfXCdTYiwuc25RIyW cXCEWXc6VL4pNXmTsaKUbJPy9/xMcvtjs7sdaT++SeM+RTrc6QdQPHR5uQ/ZjXoCuqPl aDGkthpWRYuypSuPOyEjJ3JBWw3KoSQGj4z3pJ4zghCOc5tMY5YO+jVfIgquNT4I8V/i ywuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u6nOUrKn; 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 hs22si1996292ejc.3.2020.11.23.15.30.55; Mon, 23 Nov 2020 15:31:17 -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=u6nOUrKn; 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 S1729576AbgKWMXO (ORCPT + 99 others); Mon, 23 Nov 2020 07:23:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:60220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729572AbgKWMXN (ORCPT ); Mon, 23 Nov 2020 07:23:13 -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 A0DF520781; Mon, 23 Nov 2020 12:23:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134192; bh=by19dbk8qiKH5x+RZOVoPhhuECcjlAFajqxWpET6ieg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u6nOUrKnl258oCI4YGBHR6z2hotaBD5Sq5yx4SYX9NQVRduX3PrOBIf62pGI00A1z l0/e174f9Q5AEFZxsDnltNs4/YetAw+d/JwJ0YvadfgS/7MkDsLfgXVZEuAc56vuOe ZWgF5Y18R66mGEiR+iLnWOses4vFg9wNaDQpp7h0= 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.4 13/38] pinctrl: rockchip: enable gpio pclk for rockchip_gpio_to_irq Date: Mon, 23 Nov 2020 13:21:59 +0100 Message-Id: <20201123121804.953410325@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121804.306030358@linuxfoundation.org> References: <20201123121804.306030358@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 616055b5e9967..eba400df82154 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -1445,7 +1445,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