Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp373196imm; Thu, 21 Jun 2018 20:51:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKVe2TNVJLqAhqKWIX2KwiFXF1ogchgeWKWIO4h42J9YqHq34ptWn9gJ97Wg8NCAgEUIoXu X-Received: by 2002:a63:b609:: with SMTP id j9-v6mr24982584pgf.335.1529639512748; Thu, 21 Jun 2018 20:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529639512; cv=none; d=google.com; s=arc-20160816; b=wV+KX8kxuLXRBZKnabqOvpxbC1kCXKF8qI8luZ1WVADY4jEN+Jgob3L2RyuZv1sm7r mwVvLb8iVsObKFXrPnlmcyLU02qEfx3Jr3K3papFrIGg0zcdJ1hi1wVrvRdHvZyBe/Aw Bf76nWDH4IsIxkEyDPjCfOKgKIiNAz+jfvWN3xCwjoezA0IltAmaPCYuDPUB37Umqu3G 5xzXoCGUJf0Tj2Ji0dVDh4uwLrSiN3F2+r2yMvsb1vucpSCoG4CevF2JoU3K3dm295k4 toMVgzTCFD0CP7pZtsYOM5/u000qwxe86s9JyLw8Z2tpCTSHBJMUdVnnLRricn88jjnP KdTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=szCFyA/1Eu8Kp7boHQPtJI9i1upa611P2Wl+JljwV9s=; b=jv8ekdRnshH5hfteieK96ZnJpAuQDz5Eod8EhC7KYTj6Aoqhn6hMphKwuTAuo6wXda f6MwzbRQGWyRT2EXyQBmgeKv9I5D3TlG4ko78o/TqHAl5FV6l/U5QbidZfzljDUhrzLP Qf1Lu5dj6vOhIFrmCaMP0yedlheBAzvvLlOnxiiQYQkaxoAGhUKfQ14SGFiwZxnMwlPk NcE/SmYcceSwdMyMnCnP2QKd579MIw7s8NWiJAZ68XDa1bBOol0wWAp5GuwGL4ocXuP1 OmlCS9yuuzoBduRtXP5Gqr0bOqf7ZrB/aVLtIiE9eRI79WXPSlElpyyEifzHyv7n4au3 ltfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2-v6si6130005pfi.212.2018.06.21.20.51.38; Thu, 21 Jun 2018 20:51:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934478AbeFVDtg (ORCPT + 99 others); Thu, 21 Jun 2018 23:49:36 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:24161 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S934378AbeFVDt3 (ORCPT ); Thu, 21 Jun 2018 23:49:29 -0400 X-UUID: 26c5572205ea49eb8448de3d22a3a642-20180622 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1475995068; Fri, 22 Jun 2018 11:49:22 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 22 Jun 2018 11:49:14 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 22 Jun 2018 11:49:14 +0800 From: To: , CC: , , , Sean Wang , Subject: [PATCH 2/7] pinctrl: mt7622: fix initialization sequence between eint and gpiochip Date: Fri, 22 Jun 2018 11:49:05 +0800 Message-ID: <989f31608d4a85594d3805f966006e1f607ccde3.1529639050.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Because gpichip applied in the driver must depend on mtk eint to implement the input data debouncing and the translation between gpio and irq, it's better to keep logic consistent with mtk eint being built prior to gpiochip being added. Cc: stable@vger.kernel.org Fixes: e6dabd38d8e7 ("pinctrl: mediatek: add EINT support to MT7622 SoC") Signed-off-by: Sean Wang --- drivers/pinctrl/mediatek/pinctrl-mt7622.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7622.c b/drivers/pinctrl/mediatek/pinctrl-mt7622.c index 9ad8cb77..e9eba62 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt7622.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt7622.c @@ -1713,17 +1713,17 @@ static int mtk_pinctrl_probe(struct platform_device *pdev) return err; } + err = mtk_build_eint(hw, pdev); + if (err) + dev_warn(&pdev->dev, + "Failed to add EINT, but pinctrl still can work\n"); + err = mtk_build_gpiochip(hw, pdev->dev.of_node); if (err) { dev_err(&pdev->dev, "Failed to add gpio_chip\n"); return err; } - err = mtk_build_eint(hw, pdev); - if (err) - dev_warn(&pdev->dev, - "Failed to add EINT, but pinctrl still can work\n"); - platform_set_drvdata(pdev, hw); return 0; -- 2.7.4