Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1045962ybl; Fri, 23 Aug 2019 12:14:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxW3NM0IMG897wIoF+bvqnxQxaHqOUnJ3O7LGLeVjqvFrm7j0a5v+IW1f9dHvAewgkEpT8V X-Received: by 2002:a17:90a:b00a:: with SMTP id x10mr7044549pjq.113.1566587679462; Fri, 23 Aug 2019 12:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566587679; cv=none; d=google.com; s=arc-20160816; b=UtP+0NEJFz6twE9+7h4gmQT+bxzfAVWeXYvetyuaNrTOnvMvbEbQ2qGL3dRHYvaysf lRUgL7Pue0GVuj2z4eiILX/HGEFIOMCt2WjggQsGtcaFmAszMabSd10QfO7UVtyINdna EkJjLp8MfD2IQ8+NlffVm7QUXXhj4HgkIw9Zv7uIeY6n32Soau9dFSQj3P/LNOIXP8bD 6qOqSRykulT2lw3z+zys9d672M8zb9Mg5mcgJZuy9s9v9Mf/s5L+4591hzehZhKZO1Jg N71M6qcTLcLsFsZIEf8PCv2ufpVyeNRyQEPZN0m+NE4FUgkV53uF6CcToZkXBB4cKpCO xMyw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=AROq8DpxBavGw3rOZlBsIIIgdgdRJheHWzoZIaKAbGU=; b=SVwmoOwNlpWcUNlKayzfTEJRE//BHkv2PyHewByUd2zF3z0oo8S9iZl7mCOBcFLUOJ mFvrFn4HybQIsFrnVMWJc8vAN6SnMvPPmvEpRBYfPdip19vlLiCRH8+DR6r8jnPOE1Kd Ezq8QaiYkG4GAl6RxiQ+2cDN6TYhn62dY0qL3tZsxlWHXLlyqTCchWmupLIB3owMVg6O iAR5V0GAzX4ODHTgNnCkb2ucYVZ5ngpLXlmdgeqKHaYTYCb40iC686kKTfk8/3p1W8BN DFzMslBOn/NPosFiPCY3CdqImpBXwz+B87jZvDioyhglFFuVX9XhDZJeo+kwGUEp0k9i labA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eZXrBT73; 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 t191si2551376pgd.370.2019.08.23.12.14.24; Fri, 23 Aug 2019 12:14:39 -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=eZXrBT73; 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 S2391036AbfHWHuw (ORCPT + 99 others); Fri, 23 Aug 2019 03:50:52 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:33858 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732840AbfHWHuv (ORCPT ); Fri, 23 Aug 2019 03:50:51 -0400 Received: by mail-lf1-f67.google.com with SMTP id b29so6473105lfq.1 for ; Fri, 23 Aug 2019 00:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AROq8DpxBavGw3rOZlBsIIIgdgdRJheHWzoZIaKAbGU=; b=eZXrBT737nM6L8Pa5XlEQuC0rQBRrzfTsrl7Tw0vIf6llspePcFP3Z99vwe48Xo+q+ xOKOeB2kfRG07WTIk/J/GStBuxjjfJKMkzmaTv+HZxcu+unxdyhXqKmAcj8A6lXg4nll Wh5bMJd1ogfOrPxcDidGKUBQ9eIYg8/0B5MHQGTrHe/GPKG/Ds+nI4dND4hFOoU+Mdgs nuA64AWazxNszt2zSzknLq2Go1nWPLVQW2G+zpe8aY/JKdzYSFUXNP4Zweqq/FTXRHef Gx6CccrR4hrMSojSHJjv1mmNtPTOQ5L/PyeCjpMZX9KG+V+MXVOELXgnFpiPNT0xvQjA UKqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AROq8DpxBavGw3rOZlBsIIIgdgdRJheHWzoZIaKAbGU=; b=Xu1ESmRaJI2hyxiAX+72vLULWymUDA5QRtoIOXdLkIfup7S9b9CKXs6zbPN0GRr1QN GBswQZSTzSd7achKi2OIrHHesQoHkFwiZbznEWiP36Mzgvdbes4NX+KmE4aSsG7khTY9 +HdkPBJFDRbKtYFSUrsUj3FWuqQ5OVKKe87WN/Pu+DdQgbZo8FsSM+MLFhYce6KlHycR lrdOmVA768dfLuxNbHq4u/Ei8i4efrUVn52UvJ66FUoJ1Ctd2H43YeviDKsNlYmjZMiD E7WoCuxWJB572c7yn417XG1jiLvGqma7peQV8z2QCajsvdHmU1pnS+vDajAtKLOpAsXw 1MbA== X-Gm-Message-State: APjAAAWTdPjQsjPOLOA9ffBZRWmwahkwhR8Ysv903jdV4gGG6GqQRj/3 OjklaDRQb7aS0uW+43fghW+kJ4WVmjoHd1LCyoTsNw== X-Received: by 2002:ac2:5c42:: with SMTP id s2mr1990286lfp.61.1566546650115; Fri, 23 Aug 2019 00:50:50 -0700 (PDT) MIME-Version: 1.0 References: <1565686400-5711-1-git-send-email-light.hsieh@mediatek.com> In-Reply-To: <1565686400-5711-1-git-send-email-light.hsieh@mediatek.com> From: Linus Walleij Date: Fri, 23 Aug 2019 09:50:38 +0200 Message-ID: Subject: Re: [PATCH v1 0/5] Improve MediaTek pinctrl v2 and make backward compatible to smartphone mass production usage To: Light Hsieh Cc: "moderated list:ARM/Mediatek SoC support" , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Sean Wang 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 Tue, Aug 13, 2019 at 10:53 AM Light Hsieh wrote: > This patch improves MediaTek pinctrl v2 and makes backward compatible to > current smartphone mass production usage by: > 1.Check gpio pin number and use binary search in control address lookup > 2.Supporting driving setting without mapping current to register value > 3.Correct usage of PIN_CONFIG get/set implementation I rely on Sean to review and get this in shape. > 4.Backward compatible to previous Mediatek's bias-pull usage This is fine as long as the new style of using explicit pull setting also works. It's nice to be compatible. > 5.Add support for pin configuration dump via sysfs Do you mean debugfs? You should use debugfs for debug. sysfs is subject to ABI rules. Yours, Linus Walleij