Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2622738pxb; Sun, 8 Nov 2020 07:15:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzh9rBxBaLbrDJyapmnQFKS78XQameIHM3pT52SA2m17mQvRrmBtr1nxmkYWmb9Dy2cqnnt X-Received: by 2002:a05:6402:229a:: with SMTP id cw26mr11140369edb.271.1604848543919; Sun, 08 Nov 2020 07:15:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604848543; cv=none; d=google.com; s=arc-20160816; b=M5yiV32Ks85FVHok0OJ2P9f2U7DUrc9lWQjoQ9rw+7M8HuXV51wcixmOBz1qhI79fL V63QAuBCI7Lg7DfdcTyCIRl48qKeiYLgs8/6oJZikFtgk9h5MdssUQh/zmwlJZmMV3+f gNt6FB/1rdmhr6s891wuCOUpoGINeuLTtCn3NwiKG+4+PXuSLYAFkaK08F7MgrBF8VN8 ZzwL5aw0rxFarlLjnPNMP1FD0Nz2PIVtVA+xPd+K1xFpE6QdEsHwj5p10D4Pu40VahTJ mK5gHKu164d7MT9SzMYTN14RHCiGpk/I5RvRCCeFzwN35kHU1teCiqEdRuu0tjTlhF8n ubPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:sender :in-reply-to:references:mime-version:dkim-signature; bh=mz8zZn6hvRpj6Q4wr0nq4rIYkR+MONLI7vCkIZaxeaY=; b=Zv8N3D2NjqdB2ibUZnoB9vUm/7Pvjcv9zv1HnAzwN28X2qRyo3n2mMEquqzHAsc2xd lwhulleceKb3x6GY3xKJs+d+XuUgSbMutCiReVR7t5z48Qt87rWAy0UwuActC/g/fMGx WA1SlZxnRm2FBjTNW7MoFsILZcpv7eVrDhn9/kSMBThsqqq3q4NhIlrWkRzpn7N9EMyE 1nvEN6twDLwseggge5u2NrswmB8QLhVCVErueD6E8NTj0DGEj1187vjw6c0TBGzLhvbV UDpegujShveYLW6+PkWD+FTyxFmJDlZ1sMx16vIkdIxcwnr1WYoqBjKVdd/UTpMZF+FZ CUNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YuEuc0ai; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si1323940edc.263.2020.11.08.07.15.21; Sun, 08 Nov 2020 07:15:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YuEuc0ai; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728453AbgKHPLu (ORCPT + 99 others); Sun, 8 Nov 2020 10:11:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727570AbgKHPLt (ORCPT ); Sun, 8 Nov 2020 10:11:49 -0500 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06B8AC0613CF; Sun, 8 Nov 2020 07:11:49 -0800 (PST) Received: by mail-ed1-x542.google.com with SMTP id q3so6059333edr.12; Sun, 08 Nov 2020 07:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:sender:from:date:message-id :subject:to:cc; bh=mz8zZn6hvRpj6Q4wr0nq4rIYkR+MONLI7vCkIZaxeaY=; b=YuEuc0aieZuFG+xeVWDLDV/QzLCaWuBqgB/t+fjTmIA0FPVpRq8djVuxre0yn0dofn I1drFe5aNX3GItRAmw+O1roPJHSB7FeqXRPJxtgPyBbneTm2c8rC3OCLgfpx6elxYdF8 1TSKAMU/x6uRBPMnEqgdxl6ntqd5iTlR6Z+2X1uL26c211n2LX1dx99dPinemfmnmgmj ju5RmaZdtQ3Vah3M0Eus/4LAPY53r/BaZWgmWAvbf/DMqutG89qDVKZvqx3m0E4MB99Y js1h/OgdEOOTZ/D1seu6bslY8Dl/JNYDrwt8+Wo9VItPyLJCJufR3z2QKS1aBZN1PEOe C5gg== 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:sender:from :date:message-id:subject:to:cc; bh=mz8zZn6hvRpj6Q4wr0nq4rIYkR+MONLI7vCkIZaxeaY=; b=TCBk2CpDcij1MQFFaGCfWziz1ONxSCS3fUf0qMYu1T2iAB5X7I48qpkeoE3jYeuihC H/OGDWKVwHhTvWXLvZPY8Do6TPEjphzEwF/Fe60lgZbaVLbnHZxhuoOFteTyUFlWxvA/ 5FDCIYb7jO/oWGHRHdwQcgKryBlwcnNOS63BqQW+zD0QFTh/wNXN643FETamQD+qoWAs rreeX00EnfBh/88+PVzHBAJHND7SG8S33eOVXU9Tn8W+V0zSsiD0M8HsMgC89ezckQCx RWI2PFi/QA8u7xaPCFD5G7mCfqe+nqHwfISNloOUQsj5upYUXcL0JyCi+wX7JlbuBM3L gwUg== X-Gm-Message-State: AOAM530TtaJTRaS2Dli9yCTJwzZwfdM2zFZB4S2+qLX8LO9o2eGPQ7wV hoxXkLoslZ/zxsOUIrVdfWkT9/VtN8opxgkIEbseoOCD X-Received: by 2002:a17:907:2166:: with SMTP id rl6mr11174428ejb.61.1604848307710; Sun, 08 Nov 2020 07:11:47 -0800 (PST) MIME-Version: 1.0 References: <20180129005948.7714-1-bjorn.andersson@linaro.org> In-Reply-To: Sender: getarunks@gmail.com X-Google-Sender-Delegation: getarunks@gmail.com From: Arun KS Date: Sun, 8 Nov 2020 20:41:36 +0530 X-Google-Sender-Auth: v7oOVuzKmc_SZlk15grZ33XZAyc Message-ID: Subject: Re: [PATCH] pinctrl: msm: Use dynamic GPIO numbering To: Linus Walleij Cc: Bjorn Andersson , MSM , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Timur Tabi , Arun KS Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 5, 2020 at 3:46 PM Linus Walleij wrote: > > On Fri, Oct 23, 2020 at 4:21 PM Arun KS wrote: > > > Im only concerned because, after this change, the use of gpio number > > from user space has become a little difficult. > > This makes me a bit puzzled so I need to push back a bit > here. > > What is this userspace and what interface is it using? > > We recommend using the GPIO character device with > libgpiod for userspace applications: > https://www.kernel.org/doc/html/latest/driver-api/gpio/using-gpio.html Thanks Linus. Makes sense. Basically using the gpiochipset and offset to it will solve my problem. Earlier, while using the sysfs interface, it used to be one to one mapping with real gpio numbers. Regards, Arun > > Is there any problem with this? > > sysfs is deprecated for years now: > https://www.kernel.org/doc/html/latest/admin-guide/gpio/sysfs.html > > Yours, > Linus Walleij