From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC568C28CC5 for ; Sat, 8 Jun 2019 04:10:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 79E132146E for ; Sat, 8 Jun 2019 04:10:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TxsNOhcU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725906AbfFHEKs (ORCPT ); Sat, 8 Jun 2019 00:10:48 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45477 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbfFHEKs (ORCPT ); Sat, 8 Jun 2019 00:10:48 -0400 Received: by mail-pf1-f195.google.com with SMTP id s11so2228494pfm.12 for ; Fri, 07 Jun 2019 21:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=crP/L6ZX28vkkYT7tQbRmMKy/ZkhEnI0JhfxmVeFjC0=; b=TxsNOhcUk2dUhjgJIcbkyLXBtKqvJpHTaNc+xRSs9moW2ndwxj0wvHpb7UdzZ8GIHB kLyvVG7zidxP9IwSJaymt3F8UL/RjVnz25slMDWhjSipyy7NK5DrrZByM4hqIzNMUSwe ps+y0MD8eWL3A3X5z+GVpgopfFtTJLERmnFQgsMBKRMuDXgI16xf4cX5zcQqBZ0JbZdv UFvzSVX0RPSdSceNL453+7PL2y9nE2pm1Vr6heypDuiZ0SQFVNO8xElhZJO5HQFMq4N8 EQ3h/DKqO7j8gM2LNhNJd3H3U9/qGXBzsfz16WMsfUUgYOqNRTcZIB6THFxBwhxXZGjN 8Dsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=crP/L6ZX28vkkYT7tQbRmMKy/ZkhEnI0JhfxmVeFjC0=; b=cMWPoGJpWR4ucVoUo5g9cXdcVxXDyn1Hzk7ScNGpM0prE+R5G4i6qZBEkAELe56g4G p3mmTEJpBFVT8bLMxB0wRTD6VQ6iYQmoUGOuHUV+/9p5Q0vN/1Uxu44j01lLzJm5j59y 0AXzXgEfLXzFQC6P0IJBDi8PWGisQ0ww/Xaz48sS89DV3C42Zz44SKnYOrOIhXduObIe ogvKfMo9K0oPkZLbeuzmELCWLT38snNQ913jUngiskhxH+1bkzeIU7n3HgpPky+0EKLR iAVR96w8pzau4nky6yYFbREbPYCoJfG2vxrT+iODUgl95vYNn7waJZMwWUkT1j54K+3B wg4Q== X-Gm-Message-State: APjAAAXigOUgo5JAeCkyphK2JIFpxhYdmCd5jKjMaa2GczzPMnSdTn2T J4yHIIxKf0H68AIShuj1opM1eA== X-Google-Smtp-Source: APXvYqyqDR2r/6Uj2YzgTATzPBXHYoPMxcYRP/mHWDNK1dDw68dJRtVmbbW/lRrBdRydM7vET5JDPA== X-Received: by 2002:a63:ee0a:: with SMTP id e10mr5868676pgi.28.1559967047717; Fri, 07 Jun 2019 21:10:47 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id b35sm3516670pjc.15.2019.06.07.21.10.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jun 2019 21:10:46 -0700 (PDT) Date: Fri, 7 Jun 2019 21:10:44 -0700 From: Bjorn Andersson To: Linus Walleij Cc: Lee Jones , alokc@codeaurora.org, Andy Gross , David Brown , Wolfram Sang , Felipe Balbi , Greg KH , Linux ARM , "linux-kernel@vger.kernel.org" , jlhugo@gmail.com, linux-i2c@vger.kernel.org, MSM , "open list:GPIO SUBSYSTEM" , linux-usb@vger.kernel.org Subject: Re: [PATCH 3/8] pinctrl: msm: Add ability for drivers to supply a reserved GPIO list Message-ID: <20190608041044.GK24059@builder> References: <20190605114302.22509-1-lee.jones@linaro.org> <20190605114302.22509-3-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Fri 07 Jun 16:02 PDT 2019, Linus Walleij wrote: > On Wed, Jun 5, 2019 at 1:43 PM Lee Jones wrote: > > > When booting MSM based platforms with Device Tree or some ACPI > > implementations, it is possible to provide a list of reserved pins > > via the 'gpio-reserved-ranges' and 'gpios' properties respectively. > > However some ACPI tables are not populated with this information, > > thus it has to come from a knowledgable device driver instead. > > > > Here we provide the MSM common driver with additional support to > > parse this informtion and correctly populate the widely used > > 'valid_mask'. > > > > Signed-off-by: Lee Jones > > Exactly how we should use of the API, so if Björn can supply an > ACK to patches 3 and 4 I'm happy to apply them. > > Björn? > I'm waiting for a version that does not specify the reserved_gpios for struct msm_pinctrl_soc_data sdm845_pinctrl {}, as this would override the ability of getting these from DT. I haven't seen such revision yet, will review it once I find it. Regards, Bjorn From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjorn Andersson Subject: Re: [PATCH 3/8] pinctrl: msm: Add ability for drivers to supply a reserved GPIO list Date: Fri, 7 Jun 2019 21:10:44 -0700 Message-ID: <20190608041044.GK24059@builder> References: <20190605114302.22509-1-lee.jones@linaro.org> <20190605114302.22509-3-lee.jones@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Linus Walleij Cc: Felipe Balbi , Wolfram Sang , Greg KH , "open list:GPIO SUBSYSTEM" , linux-usb@vger.kernel.org, "linux-kernel@vger.kernel.org" , David Brown , alokc@codeaurora.org, linux-i2c@vger.kernel.org, MSM , Andy Gross , jlhugo@gmail.com, Lee Jones , Linux ARM List-Id: linux-gpio@vger.kernel.org On Fri 07 Jun 16:02 PDT 2019, Linus Walleij wrote: > On Wed, Jun 5, 2019 at 1:43 PM Lee Jones wrote: > = > > When booting MSM based platforms with Device Tree or some ACPI > > implementations, it is possible to provide a list of reserved pins > > via the 'gpio-reserved-ranges' and 'gpios' properties respectively. > > However some ACPI tables are not populated with this information, > > thus it has to come from a knowledgable device driver instead. > > > > Here we provide the MSM common driver with additional support to > > parse this informtion and correctly populate the widely used > > 'valid_mask'. > > > > Signed-off-by: Lee Jones > = > Exactly how we should use of the API, so if Bj=F6rn can supply an > ACK to patches 3 and 4 I'm happy to apply them. > = > Bj=F6rn? > = I'm waiting for a version that does not specify the reserved_gpios for struct msm_pinctrl_soc_data sdm845_pinctrl {}, as this would override the ability of getting these from DT. I haven't seen such revision yet, will review it once I find it. Regards, Bjorn From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,T_DKIMWL_WL_HIGH,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD35AC28CC5 for ; Sat, 8 Jun 2019 04:10:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 82C71208E3 for ; Sat, 8 Jun 2019 04:10:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="eGvjZ2nT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TxsNOhcU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 82C71208E3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=coYJR0B/DK+ijQspxRC6JYuPkqczcF+v8f9LYAPvDuQ=; b=eGvjZ2nTAzOWv4 z9a+G9CBTXWhGhkj1j0qyslcEbpF/nPrsWH45ZkU51ulh0HIpeDQGyzY3rOFYJ1dg4Rk5+SzJZ9HO pUOWTK0Fm3poKxGeBpdns2hWdBwhHmP209DhSlhfUeVBny/ezF6ljBeYnPzVFK5damVGojqWbsFTm 0fwkO3wlVhNagPUrzQ6eErSbjVl59VyPiFDEInJCV6lTIlXYoykxDF/DmUKJHYyMJFoTmvTECKgs5 op1NP1QCFbkm+elAgUBXWZCuf/B+UdpqKbg6lVLylFdOSEESBiyQcAkP4tn0kAtrARrCv0QTUiq1P 1727/LWWQcb2jf0bnUrg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hZSgt-0001TF-J7; Sat, 08 Jun 2019 04:10:51 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hZSgq-0001Sj-Ff for linux-arm-kernel@lists.infradead.org; Sat, 08 Jun 2019 04:10:49 +0000 Received: by mail-pf1-x441.google.com with SMTP id i189so2230377pfg.10 for ; Fri, 07 Jun 2019 21:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=crP/L6ZX28vkkYT7tQbRmMKy/ZkhEnI0JhfxmVeFjC0=; b=TxsNOhcUk2dUhjgJIcbkyLXBtKqvJpHTaNc+xRSs9moW2ndwxj0wvHpb7UdzZ8GIHB kLyvVG7zidxP9IwSJaymt3F8UL/RjVnz25slMDWhjSipyy7NK5DrrZByM4hqIzNMUSwe ps+y0MD8eWL3A3X5z+GVpgopfFtTJLERmnFQgsMBKRMuDXgI16xf4cX5zcQqBZ0JbZdv UFvzSVX0RPSdSceNL453+7PL2y9nE2pm1Vr6heypDuiZ0SQFVNO8xElhZJO5HQFMq4N8 EQ3h/DKqO7j8gM2LNhNJd3H3U9/qGXBzsfz16WMsfUUgYOqNRTcZIB6THFxBwhxXZGjN 8Dsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=crP/L6ZX28vkkYT7tQbRmMKy/ZkhEnI0JhfxmVeFjC0=; b=N2yr5uBJ6AEOpv4aKcuxsumcbA7WpSUf1ZU+KUau4wK0qjPFA/a7HTYDSnvU2wVHRc msXdFzSYuu8iwoB28jcGEVTepj5Y4ybpAmvjQCr8oqYXNW6bmTsoAJjDMN71BM3TGP6f D2k9IjAprJ/Wr5iA6+cU3EXsq8fWt7D1F5XWK719sL5Chp6yevCTY28k6N4tXzJ0MNEN BXfiYE6vUjjliptpwQBjsyDPyeq/SnGil6YVDzvDp/J5tD6LnNW1IzT+QiF1LOFKt5C2 nRyhkQq1iWMI3bSYawpxT9AKMrxKdhD8l5AQS1PpfE3m43JNHMhDXvAQVo6TltI/Ynea UFVQ== X-Gm-Message-State: APjAAAWeziotQjQ6pkx7G1fIBqnfJz3+X23RmnrgTnMvK663ivzHQxAr CTPbB/39r0hUpjb4HVoICMqKEw== X-Google-Smtp-Source: APXvYqyqDR2r/6Uj2YzgTATzPBXHYoPMxcYRP/mHWDNK1dDw68dJRtVmbbW/lRrBdRydM7vET5JDPA== X-Received: by 2002:a63:ee0a:: with SMTP id e10mr5868676pgi.28.1559967047717; Fri, 07 Jun 2019 21:10:47 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id b35sm3516670pjc.15.2019.06.07.21.10.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jun 2019 21:10:46 -0700 (PDT) Date: Fri, 7 Jun 2019 21:10:44 -0700 From: Bjorn Andersson To: Linus Walleij Subject: Re: [PATCH 3/8] pinctrl: msm: Add ability for drivers to supply a reserved GPIO list Message-ID: <20190608041044.GK24059@builder> References: <20190605114302.22509-1-lee.jones@linaro.org> <20190605114302.22509-3-lee.jones@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190607_211048_549414_0307BE02 X-CRM114-Status: GOOD ( 14.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Felipe Balbi , Wolfram Sang , Greg KH , "open list:GPIO SUBSYSTEM" , linux-usb@vger.kernel.org, "linux-kernel@vger.kernel.org" , David Brown , alokc@codeaurora.org, linux-i2c@vger.kernel.org, MSM , Andy Gross , jlhugo@gmail.com, Lee Jones , Linux ARM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri 07 Jun 16:02 PDT 2019, Linus Walleij wrote: > On Wed, Jun 5, 2019 at 1:43 PM Lee Jones wrote: > = > > When booting MSM based platforms with Device Tree or some ACPI > > implementations, it is possible to provide a list of reserved pins > > via the 'gpio-reserved-ranges' and 'gpios' properties respectively. > > However some ACPI tables are not populated with this information, > > thus it has to come from a knowledgable device driver instead. > > > > Here we provide the MSM common driver with additional support to > > parse this informtion and correctly populate the widely used > > 'valid_mask'. > > > > Signed-off-by: Lee Jones > = > Exactly how we should use of the API, so if Bj=F6rn can supply an > ACK to patches 3 and 4 I'm happy to apply them. > = > Bj=F6rn? > = I'm waiting for a version that does not specify the reserved_gpios for struct msm_pinctrl_soc_data sdm845_pinctrl {}, as this would override the ability of getting these from DT. I haven't seen such revision yet, will review it once I find it. Regards, Bjorn _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel