Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1795758imm; Thu, 24 May 2018 00:42:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrqpVy/oxyqWQ77flPVvqLI197O/B1gj//BbHb/BfxlFJYknwqvYKTPl3izfkgzS836NYYA X-Received: by 2002:a63:ab45:: with SMTP id k5-v6mr4888557pgp.192.1527147724667; Thu, 24 May 2018 00:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527147724; cv=none; d=google.com; s=arc-20160816; b=Y6PtW99aGHegW5uek10dAR5IXDCCFB9iikGsRTvki/+G6bjtG1VG6kd6CUREd1OUNG DQJvdMHHVTJ+OBkIKijxNUruFoo4QtpCyIuzRq8gkvxc9fmunnV9V8CJzik6JklUcCer cBNcVDJQWZMvLHQD1MULjM6a/SwoUezcIVAShQLtKf7FScFgjBm3Fp/Y0OsV9nJNfSd2 CmPyvd2l/IDU5BjyirRSVRFi5xkOz1VtKPmsFj6nINqzLJPV/rtq8j00zumxdLQFQodm NWTrllM3V7Lj7CTH/1NHbWQqavvNsKwlJWCf6J5lBLPIT+iw5YW+OhYfK28T/ZH1p+Ei dZVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=r+JMBBQ6+Cobes6E9T9k0ZMs8xqkvGghzSnOG9CPe10=; b=CIGBgsblbFOavSNlUi2j6SJ3NZW59DCt4TX2EmebZBmVeayxHe/YMi+4dfOeeLghfJ XAkNpEEP2GS/exASKdED5ovBrEhgCM6AnQEOk7OSzX6jWqXTQZLBJEAS3XgnvLwt2uQb kpgn/DwcNWSGqTWab4JFV8lAJpwsddkoc6u90k9XXFNLRfNhrOoawW+fVgMbD/JzI9GN Q/A2D+N3G/7pCFxCfBrICz387tO7kfnjtdvbc9vDKNkdvnXOBOONytaQAnVqxcPG/at1 VCOkNy7BocF0c5PvjgNanUFrb/hj+hUycs2JTfvvHfh2XBO8zIkw1b2e1K1rP361mEIA 9x8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DIZtDLv2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a100-v6si21104388pli.588.2018.05.24.00.41.50; Thu, 24 May 2018 00:42:04 -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; dkim=pass header.i=@linaro.org header.s=google header.b=DIZtDLv2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965089AbeEXHiB (ORCPT + 99 others); Thu, 24 May 2018 03:38:01 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:47045 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965041AbeEXHht (ORCPT ); Thu, 24 May 2018 03:37:49 -0400 Received: by mail-io0-f195.google.com with SMTP id f21-v6so1128296iob.13 for ; Thu, 24 May 2018 00:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=r+JMBBQ6+Cobes6E9T9k0ZMs8xqkvGghzSnOG9CPe10=; b=DIZtDLv2djsW/pOTMP40+s6Q9yhJEvx2BWWKHOZNe2MJoBgIrHSB9Ed3nisvFCAzQh lqnzWfJDgEUSZ1fvz1CILja7qojmiLr+wVue/cHJ165zV1Hll/6ulmjlu95XxmeMtIW/ V5cO2uWU3drbyfgfL23gaXHhBA812i9/zXWPQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=r+JMBBQ6+Cobes6E9T9k0ZMs8xqkvGghzSnOG9CPe10=; b=cupr8SnduJJ5eJ9EtJwO/Kh0Fa3u26OIydU/wnB0hcAD8Su+XH7XkikVO0gG2AXIHN brVb06j3elrWif4eo49dzESfnhmIKDRCp2HdsOASiF1vlD35kxW/oK3Y2z4VO0KtgAl8 yzI1DDo7Zl1fof94qige9JV3phOR7t4sLDyYBtNDybWiEK2zShF+vdcECKJMXDhHyohR EEVcmz2gjHQCVAamlf+fg8iHJO2outbaBK/yUge7+QViqNvBl+nLTWCpIu4N5p2HSKG+ maGhQHgeGfGR89x0jyiv4wtgddzO69UANuIyFQSrCn2D98uXEXrVFibc6PP2pDQ/VXOF v3aw== X-Gm-Message-State: ALKqPwdh3L91E8umfK3QJt0fohc6ku3HNYTcJFWP8k6OKEr97TgEl7U+ Ci7Hj+wDRNRKgKJE2PltXN/uNIYfGIKFarQZqdH2Cg== X-Received: by 2002:a6b:248e:: with SMTP id k136-v6mr5299372iok.270.1527147469228; Thu, 24 May 2018 00:37:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:78c9:0:0:0:0:0 with HTTP; Thu, 24 May 2018 00:37:48 -0700 (PDT) In-Reply-To: <7265772c758d4c56cabb95fda708550bc4d2fcb5.1526835466.git.sean.wang@mediatek.com> References: <7265772c758d4c56cabb95fda708550bc4d2fcb5.1526835466.git.sean.wang@mediatek.com> From: Linus Walleij Date: Thu, 24 May 2018 09:37:48 +0200 Message-ID: Subject: Re: [PATCH v1 2/7] pinctrl: mediatek: refactor EINT related code for all MediaTek pinctrl can fit To: Sean Wang Cc: Rob Herring , Mark Rutland , Matthias Brugger , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/Mediatek SoC support" , Linux ARM , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 20, 2018 at 7:01 PM, wrote: > From: Sean Wang > > This patch is in preparation for adding EINT support to MT7622 pinctrl, > and the refactoring doesn't alter any existent logic. > > A reason we have to refactor EINT code pieces into a generic way is that > currently, they're tightly coupled with a certain type of MediaTek pinctrl > would cause a grown in a very bad way as there is different types of > pinctrl devices getting to join. > > Therefore, it is an essential or urgent thing that EINT code pieces are > refactored to eliminate any dependencies across GPIO and EINT as possible. > > Additional structure mtk_eint_[xt, hw, regs] are being introduced for > indicating how maps being designed between GPIO and EINT hw number, how to > set and get GPIO state for a certain EINT pin, what characteristic on a > EINT device is present on various SoCs. > > Signed-off-by: Sean Wang Patch applied. Yours, Linus Walleij