Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1256020pxu; Mon, 23 Nov 2020 16:09:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzsbYQeput/TK4lQDuCB55n4Ng6jkpfLEeyuqXBxirYtV1YEasmHnQ2RwBZxCAXPHKoFWc X-Received: by 2002:a17:906:28d4:: with SMTP id p20mr1878892ejd.322.1606176550053; Mon, 23 Nov 2020 16:09:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606176550; cv=none; d=google.com; s=arc-20160816; b=DNxtu04AsW7qbhuqhBTwOwbHpU/RCJ496cUaGjiUS5yr46nP3nPOFYDgXRyBFvT8cK qJInpL/kaVMByQ66yTC3eRJvd0MIYEuI/+q5uBVZR629+91bct1aDoAuAEQU7O5dy54F lMGfZad0SgH/jYS6Ky+La9NrJSW5vkmPbMxrGsixj3vSML5I5J2uotvFQgr0aCBvF7jR AgEpQNd6Q5dpKjgGkjf+WL9WL5J9B17X7ZNNoA3F8wNMVMwANPWphDvWiLC4lCKtrDSm iCVcFXG86tSTWF75MsAaLeRVTZF1Jc19sZkQ3sf9gQd/w5ZS9XOlZGn4mDrmUlBphYuw wVtw== 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=p3Ry+taGDP9SHgUPqd1gwg9BlITRDbMhil0vB6f5ifI=; b=R34l8FziLeKtBNTahANhVqKeOQmYC4Zlj87YzLOi0f3p+HMGAnGb1ti/5/GVjJCSZK uvFf+qmhPdV4wfdAojbumbBOJGKyYUo/9yIw3e7w4qG1pHKZsYzRYnoJdL6r+2BPSrBA HbNZwLbVQXGMD1j+Pg4nfumotlX1pfsqWJMHjxM+0nlBS9IJFGKMxFGJ3+mADS9nm+m6 PWQKnrZ8zH1KAr/7A+GPkrpp/n1WQV31ttNEskNyJqHEo3QKFVrcBNs8ctS9CU1tJS0L DcX0il5Su7uanI67Q6TxI7AWe3QOkrn7M8fcwawCbzORQh+7xh6LEbCUZS21/apoweEf kxwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Lx8H3oOb; 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 e1si7620108ejf.335.2020.11.23.16.08.47; Mon, 23 Nov 2020 16:09:10 -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=Lx8H3oOb; 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 S1730747AbgKWN2t (ORCPT + 99 others); Mon, 23 Nov 2020 08:28:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:41214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730090AbgKWMac (ORCPT ); Mon, 23 Nov 2020 07:30:32 -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 2C81520781; Mon, 23 Nov 2020 12:30:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134631; bh=jiXUb3dHuj6wF3mgnGob5udyk4xvwnvCnIdVrrxyCAY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lx8H3oObPqNDoT3A5W4WKhnpQ5Er+laEhHfeeqaCVcrLmQD8AmI7qxE1h/jvYbSrr qvuMCclcDaz2Df8GS0UtEldqWrouOh2AvgAW/W0/XoAnzEN3ZM7VG+nTFU9yXNzCVI kPutJdhyv+AIwMYJ1i7Q7oi1fIFI+VZ8sFavLBys= 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.19 27/91] pinctrl: rockchip: enable gpio pclk for rockchip_gpio_to_irq Date: Mon, 23 Nov 2020 13:21:47 +0100 Message-Id: <20201123121810.643571132@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121809.285416732@linuxfoundation.org> References: <20201123121809.285416732@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 005df24f5b3f1..4d3b62707524a 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -2778,7 +2778,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