Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp6765287imm; Sun, 20 May 2018 10:07:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpZtfTNocgvmjqDG04XBHddFxJktg6lGLZUHTMFme+1DYOErW7bkvA/RdUFFXuI7x7rwV/F X-Received: by 2002:a63:3706:: with SMTP id e6-v6mr13331730pga.281.1526836043522; Sun, 20 May 2018 10:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526836043; cv=none; d=google.com; s=arc-20160816; b=BcqhuvvfaZXpXrECMpMaFuVCkD5O6cB2JkHz1kM4jakwdj+09LU/RE6Md31ljvSU6Y zCfpiGtX+5ffx5TwgOLkcPzIMJZuxBdHbEIXgAM5AERTUDLOEMVzf/5gQ0Jbc32OPX5k IylADx87jYKkNJ1P8rDK4+OeEC+7bWjPdYsk+t7bCju0J9RA44m0+YBqQFotCkuqJokk +7w6mGhrBgOK2JvU4EzXStmwHFWX6u9b3Xlp24HBEEoBlXQhLoooZ4s87jv0jyl9uFAe 9DptKBUcyn+txbiWIo8HAu65ip+gcrfhPCRvGmXIQaH6StK1FrqtV5FEGpIM1DNxXqow lRhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=0SfzEvtAOfUPoxeJaN6BeaZlvKsJP6ZTXgk+2/WK+a4=; b=gCCtNxpw8nJnObETU4L3xI9/gnyZEh7JOxXb4AIE0Z0HO9w0ZhNmgSGJBGMtPmCSg4 k+DbLjWFbQ3yCXGgAzVd6/7JnJkU80b4QNNsVmv6QaLGec8v6fl1JnQMmVSqHmL3NoG9 MQYo1Mf7gESri7mGiFAjv4rowDx/ZdFLC5JiXU8sPqitjaV3LnfDZ6TBIWaGQ8aZZKhL DVthYZwNF8infbICQ/FuQ7otnNkwC7mG2fAZa4XL3lk/mDGuBF5nnR8saLAfS9VlPNXz YrFRS80ngmf4evSb+7K9pbmW8QNmah8WThzdyeB+k4hPeM1msUtEuFI5oQ213VA5pMO0 mxEg== 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 97-v6si11497719plm.495.2018.05.20.10.07.09; Sun, 20 May 2018 10:07:23 -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 S1752727AbeETRDw (ORCPT + 99 others); Sun, 20 May 2018 13:03:52 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:49037 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752256AbeETRCV (ORCPT ); Sun, 20 May 2018 13:02:21 -0400 X-UUID: ed18c507af3d490dacf0b57257a9b215-20180521 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 875851711; Mon, 21 May 2018 01:02:18 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 21 May 2018 01:02:10 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 21 May 2018 01:02:10 +0800 From: To: , , , , , CC: , , , Sean Wang Subject: [PATCH v1 0/7] add external interrupt support to MT7622 pinctrl Date: Mon, 21 May 2018 01:01:46 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 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 The series is to add external interrupt support to MT7622 pinctrl. Before we can freely do that in pinctrl-mt7622.c with patch 3, a refactor work has to be done with patch 2 to split EINT-related code from a specific driver and then allows pintrl-mt7622.c to reuse it. patch 1, 3, 7: add EINT support to MT7622 pinctrl. patch 2, 6: make EINT-related become a generic way for all MediaTek pinctrl. patch 4, 5: eliminate unnecessary code in existent EINT-related ones after refactor work was done. Sean Wang (7): dt-bindings: pinctrl: add external interrupt support to MT7622 pinctrl pinctrl: mediatek: refactor EINT related code for all MediaTek pinctrl can fit pinctrl: mediatek: add EINT support to MT7622 SoC pinctrl: mediatek: use generic EINT register maps for each SoC pinctrl: mediatek: remove unused fields in struct mtk_eint_hw MAINTAINERS: update entry for PIN CONTROLLER - MEDIATEK arm64: dts: mt7622: add EINT support to pinctrl .../devicetree/bindings/pinctrl/pinctrl-mt7622.txt | 10 + MAINTAINERS | 1 + arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 2 +- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 8 +- drivers/pinctrl/mediatek/Kconfig | 6 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/mtk-eint.c | 492 +++++++++++++++++ drivers/pinctrl/mediatek/mtk-eint.h | 106 ++++ drivers/pinctrl/mediatek/pinctrl-mt2701.c | 25 +- drivers/pinctrl/mediatek/pinctrl-mt2712.c | 25 +- drivers/pinctrl/mediatek/pinctrl-mt7622.c | 143 +++++ drivers/pinctrl/mediatek/pinctrl-mt8127.c | 25 +- drivers/pinctrl/mediatek/pinctrl-mt8135.c | 25 +- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 25 +- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 608 ++++----------------- drivers/pinctrl/mediatek/pinctrl-mtk-common.h | 13 +- 16 files changed, 901 insertions(+), 614 deletions(-) create mode 100644 drivers/pinctrl/mediatek/mtk-eint.c create mode 100644 drivers/pinctrl/mediatek/mtk-eint.h -- 2.7.4