Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp821046pxk; Mon, 31 Aug 2020 01:49:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkjYXlivdcdGIAdW2yj+frxGOHIYH5r1MKRrKMdtStpy1ujK+kMBrHMN9zql6cajVvaUQc X-Received: by 2002:aa7:d785:: with SMTP id s5mr237059edq.154.1598863794781; Mon, 31 Aug 2020 01:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598863794; cv=none; d=google.com; s=arc-20160816; b=SRDRmpd1A9Fttwyc8PQi60RQYQynUfV3QpwNOE6VF0B7Pwh/ZZaFYznwwZvf2EJA/o JnybEjRisUfLOjZVfmFJuAYU5AdpGATQixte0/9WfTw8MOAi0o0+pO9YRzXkrZMk/NsD WEa1smwNEKrvOooFhxcIH23746fZeo1U6Wc8JpQJ6bHj+eIFDfgNDpHV5xIDhFa1dFAO w4Q1c7nRWU64mQfhsBuYVoicrFWeCt8UCZp0MN6xNaHBTyCoVa7xu2xHizQ81HC1vCDB KyTJuAtyIzX0worosjWUth5HrwIr/jgHJDibNCVIqVr1OcMLEj+/QHuJ2pQfBkYCGwTD wt8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=fo8Fp7foyfdnrmKvdKeCIBjy2leYy2B/RcuWx59S4CI=; b=HpGvxgZhqs98fN1ZDUJHWjVK/Aik0ODRSay3Rn2k73qlqnt0d0LSoo7YKP/e0f66Yk PUftFnYSrlI/9gdCd7NUthyCDEHXk6O4GXsc7duTJ1xXd9lIYk7erCwNuIDzFAw1jI+N x7I4etKD4JU0Dvl+GdRzvHu1uYv1K+JE3sgCs8EO2eSNahemW6ymvOUEdAXxx9iNlQE5 fe4u92lCMijnarwUactQ7GaVjSJi7vRoRLV8RscCHY4dWypOwqVchp5iWPl1ylwLBi7q R0PsRL4RjgTdgWiRGWdcRWmotU9z8nMGelQOKPBfJCLX7N12owASxr6RZvyG6bVNKOc3 6AAQ== 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 bq7si5095488ejb.315.2020.08.31.01.49.31; Mon, 31 Aug 2020 01:49:54 -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 S1728033AbgHaIsE (ORCPT + 99 others); Mon, 31 Aug 2020 04:48:04 -0400 Received: from lucky1.263xmail.com ([211.157.147.133]:47694 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbgHaIsC (ORCPT ); Mon, 31 Aug 2020 04:48:02 -0400 Received: from localhost (unknown [192.168.167.32]) by lucky1.263xmail.com (Postfix) with ESMTP id D770CC65A2; Mon, 31 Aug 2020 16:47:57 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P11834T140500763920128S1598863675343235_; Mon, 31 Aug 2020 16:47:57 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: jay.xu@rock-chips.com X-SENDER: xjq@rock-chips.com X-LOGIN-NAME: jay.xu@rock-chips.com X-FST-TO: linus.walleij@linaro.org X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: Jianqun Xu To: linus.walleij@linaro.org, heiko@sntech.de Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jianqun Xu Subject: [PATCH 2/6] pinctrl: rockchip: enable gpio pclk for rockchip_gpio_to_irq Date: Mon, 31 Aug 2020 16:47:49 +0800 Message-Id: <20200831084753.7115-3-jay.xu@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200831084753.7115-1-jay.xu@rock-chips.com> References: <20200831084753.7115-1-jay.xu@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There need to enable pclk_gpio when do irq_create_mapping, since it will do access to gpio controller. 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 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; } -- 2.17.1