Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp292380pxu; Wed, 14 Oct 2020 01:08:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtN21UygyaHSxYcDY0mZv4xbc5t0tOh7t1PfX+VbbloPNSMbwgXkQxMVW23FaQOkKHTDQF X-Received: by 2002:aa7:cd09:: with SMTP id b9mr3806905edw.55.1602662895672; Wed, 14 Oct 2020 01:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602662895; cv=none; d=google.com; s=arc-20160816; b=zEgr1Ge11zruq0FBY/Il23ujZZLJUQWU7nTtUPCZRJmLJS5U3p1pmQQEZfPUWK7KdL zCI5P0p9QIXmhj0Jt5A/MtyLv/JG35eLCK/POmpLC8CpRRzeg6Ubk8/9sAS6piR3VKN6 duJrrwkMQLGZsmUaAiFcyws0zX/T9R4oCtSqrda+X1LqN5ZoPs5cHxXYJYk1NEPZP1YD Tyq7WBlMiKFVoIDOED25IElerVVCXQSiZ20DewCjFaqHUsH9o/Eyhvl8sO5owdMpJRCh GmJO1HuO66x0jyEbCU/tGhJiHDJp8avmkCjJlO7IP8xBJbz47RnfgYIS7qDlNVCsikvA aI6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=6S88NN0bSVpCw/G6xHdgcuNcQ8I+oVW9M68RbvYgYWg=; b=X/9pM/d+YeUrMBr612rykMyr+FaaDBrOOM09G/b2NeLxv9JalnTH9P+HVm6SwEr0x9 rJJp3uGiK1icZKOQOQ3oAMJZgpIoaR6OhS8cG54FjPIbPooUXEU6xeHXKI+026ZP/VtV Zv/V6BrG/zNNU1PDF+A83ElvSs6jsMKFpoJTdm6s5sziif4aMLlXaDJLzF7mIDfohl/H erVXF5hKzKi58YBgYnawsEIwgfQ6tcBD7c0fRGeYAfkAC83Zd6vSEADNLE1l90N6uyFO dMwqysDiMp57loGjL3PWLt/gPKBu1VRp0vLXqsLSKjA3Txtq8igibKqBPpE5dD4ifl/L VupA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si2375787edl.147.2020.10.14.01.07.53; Wed, 14 Oct 2020 01:08:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389441AbgJNAaE (ORCPT + 99 others); Tue, 13 Oct 2020 20:30:04 -0400 Received: from regular1.263xmail.com ([211.150.70.204]:38304 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730508AbgJNAaD (ORCPT ); Tue, 13 Oct 2020 20:30:03 -0400 Received: from localhost (unknown [192.168.167.32]) by regular1.263xmail.com (Postfix) with ESMTP id 01DA9252; Wed, 14 Oct 2020 08:23:58 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-SKE-CHECKED: 1 X-ABS-CHECKED: 1 Received: from [172.16.12.120] (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P19667T139951075981056S1602635036600792_; Wed, 14 Oct 2020 08:23:57 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: kever.yang@rock-chips.com X-SENDER: yk@rock-chips.com X-LOGIN-NAME: kever.yang@rock-chips.com X-FST-TO: linux-rockchip@lists.infradead.org X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 Subject: =?UTF-8?Q?Re=3a_=5bPATCH_v3_2/3=5d_pinctrl=3a_rockchip=3a_enable_gp?= =?UTF-8?B?aW8gcGNsayBmb3Igcm9ja2NoaXBfZ3Bpb190b19pcnHjgJDor7fms6jmhI/vvIw=?= =?UTF-8?B?6YKu5Lu255SxbGludXgtcm9ja2NoaXAtYm91bmNlcytrZXZlci55YW5nPXJvY2st?= =?UTF-8?B?Y2hpcHMuY29tQGxpc3RzLmluZnJhZGVhZC5vcmfku6Plj5HjgJE=?= To: Jianqun Xu , linus.walleij@linaro.org, heiko@sntech.de Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org References: <20201013063731.3618-1-jay.xu@rock-chips.com> <20201013063731.3618-3-jay.xu@rock-chips.com> From: Kever Yang Message-ID: <75c48986-1f4c-67a3-1943-5ce51e33bbfd@rock-chips.com> Date: Wed, 14 Oct 2020 08:23:56 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201013063731.3618-3-jay.xu@rock-chips.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/10/13 下午2:37, Jianqun Xu wrote: > There need to enable pclk_gpio when do irq_create_mapping, since it will > do access to gpio controller. > > Reviewed-by: Heiko Stuebner > Signed-off-by: Jianqun Xu > --- > 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 927d132d6716..a2f361aa6d05 100644 > --- a/drivers/pinctrl/pinctrl-rockchip.c > +++ b/drivers/pinctrl/pinctrl-rockchip.c > @@ -3157,7 +3157,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; > } Looks good to me, Reviewed-by: Kever Yang Thanks, - Kever