Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2257568pxk; Sat, 5 Sep 2020 14:55:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTo6qrDlyn5iwHpGUkUt3D15NVVNioy0BOIlKiUK/AAHUO7f5W7ahgYfcVb1pWLNmmKa40 X-Received: by 2002:a05:6402:ca7:: with SMTP id cn7mr14822428edb.143.1599342952730; Sat, 05 Sep 2020 14:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599342952; cv=none; d=google.com; s=arc-20160816; b=jLCJQY2GuSyy6qpW6qql3AiKiAg07T/U6oz39Kiq7G0+RQwWvFl4sLwWWKCqVBcLaJ sMoTmkz5KI9g4AIfsesILQkcuAmTfPK4df4TUL6FH+wgKzcxMfrNAQCs5pSoSL1rsPhC 1z5v7m1DWRdm9TCaSqxTqExFgozcGUOKoAoL6koWmMLbpUOhqyEzHcbhkEuo/wn0Tybc s7OzaqwvvyR1e10EUw6Z+vbMoRJzJa9rmqkJi+KodQEsz0wI/vanOjAkbjWEb1JKBfTr LkoeNxAK1rasgItIJrPX0ispbm2pa4aQkbL7l9TOvd6n6N3ARXbPEdAtmR6YPbIsVuiw QLfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/LTgDnbH45kAQGPko4FKTQDB55f88mfST+WNkv55yLg=; b=t3lrGqnRUlCiPAY58b0hQQ61p+4arUCNu/OEkGXST5lq4mvKy4bZUmuAr5eEv2rJDw 0Xi8bfdPR3fYgRY70PMjExUIDY8y6awVQ1TWQ3W9lhAQ9GLN+AYWHX+o56ovl0Qd7xtQ GFF/Kcb5TB72eVFqu3NlpUZ9UbgqzZ6gkwuPOCmGQkCnf7qLXbegsZYFSN/uEG1DJeSd UaSXiIGZ3k+qvvF8AMoqsTBNAI/lbZhWF3F8eAxkUzjtd/5bAmcUgir6S+5OihhDV/I3 ZbHXviLhYbiFJ3JHWo6z0oNIaOxSkRi/NPj6IfxjSBiMN6xfSJD2zzdUY6vgOtENJOFf jYLQ== 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 g11si7026917edn.496.2020.09.05.14.55.29; Sat, 05 Sep 2020 14:55:52 -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 S1728505AbgIEVym (ORCPT + 99 others); Sat, 5 Sep 2020 17:54:42 -0400 Received: from gloria.sntech.de ([185.11.138.130]:33710 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728103AbgIEVyl (ORCPT ); Sat, 5 Sep 2020 17:54:41 -0400 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEg8t-0005am-Mf; Sat, 05 Sep 2020 23:54:39 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linus.walleij@linaro.org, Jianqun Xu Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jianqun Xu Subject: Re: [PATCH 2/6] pinctrl: rockchip: enable gpio pclk for rockchip_gpio_to_irq Date: Sat, 05 Sep 2020 23:54:39 +0200 Message-ID: <5350783.eb3pjRP6yQ@diego> In-Reply-To: <20200831084753.7115-3-jay.xu@rock-chips.com> References: <20200831084753.7115-1-jay.xu@rock-chips.com> <20200831084753.7115-3-jay.xu@rock-chips.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 31. August 2020, 10:47:49 CEST schrieb Jianqun Xu: > 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 > --- > 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 24dfc814dee1..54abda7b7be8 100644 > --- a/drivers/pinctrl/pinctrl-rockchip.c > +++ b/drivers/pinctrl/pinctrl-rockchip.c > @@ -3155,7 +3155,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; > } >