Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp372559pxb; Thu, 5 Nov 2020 02:18:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbw9vGpnSJu0zvfako/6ZejKn2KEjn9oFmksl3wNsl19iVV9wsAeZmJwsiZypZ0XWFNL6i X-Received: by 2002:a50:ec10:: with SMTP id g16mr1401809edr.63.1604571518815; Thu, 05 Nov 2020 02:18:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604571518; cv=none; d=google.com; s=arc-20160816; b=kTlH7ZIBmDxY2znrwNbFFlGdv6cePuujCTyyydj6xETQATR5oNDNGXJtn+Bxlbcq1A JpwYaG37vz4V0hHbyT4j5iPi0XlKfjL9BTD7lEW80gMzCiX3s5FORAyEimQJX00f5k/a VcmmwXrO5EqwGLLV7Ll7kuUHWk2UkWyu8ry0PhdV/IjnHwAJtLLsOvLgB/Ixxg1iHRO9 ljeontucQpFZYnhzHKOd6/U9EONJoTQjEUzWThYT6wci3nfjWmP0SNYG6zq/frisvoKK YT4NW2KN8hI1DZz+mCQU0eCWyYLwz/d1m6fkWasHAFYhZYIwBVtdTFTToAHxml3Czja9 qOCw== 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:in-reply-to :references:mime-version:dkim-signature; bh=XzY1VkvmYL3pvQ6ooemzXER1+NGHzQExssTtwYHfu3I=; b=HkMv3r/QEeXHY2+2yka3I+u6ytZvXmPOn9k3QUNcTRqvSef1xImTDD4iAGvpJJ6Twg RkvhgowXqkMjt4/tVl/9TdA2GzEJtPL9Szrz208o8uXGrkYUYnta2CVQLWj+1U6GsYkm nnqfX3NUCnD3tNjJGi9DAXabGjfg+kRKhohGEcS7ITTw6NDMfWDyNhvkKSk1hWKLf8tq Cow538qIOSvtU6bQCmPwSqYjCuqEBGyrvNO+ZWPsgwF13ey+IFV3p8RZrxKKjma0Af1E Cdnna0Zia5nhL2Bso2JOuIKQzvqL4eGtLiIM/Sie6JGREZC3Zx6PSd3iv73WfgInGk1L sE9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XTFQbF59; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s8si793351edc.481.2020.11.05.02.18.14; Thu, 05 Nov 2020 02:18:38 -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=@linaro.org header.s=google header.b=XTFQbF59; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727836AbgKEKQd (ORCPT + 99 others); Thu, 5 Nov 2020 05:16:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727851AbgKEKQc (ORCPT ); Thu, 5 Nov 2020 05:16:32 -0500 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F1DCC0613D2 for ; Thu, 5 Nov 2020 02:16:30 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id m8so999271ljj.0 for ; Thu, 05 Nov 2020 02:16:30 -0800 (PST) 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=XzY1VkvmYL3pvQ6ooemzXER1+NGHzQExssTtwYHfu3I=; b=XTFQbF5935sVeuBgqmaOO5pdnb3YL+UApn4NnnwcaWSfdg4FAy6KlYTD8nryvGlxg1 zmPsKr1X/9039LndgggUw00Pk+GXaNGvH1pRx2VVE5oowCpSYyb2407ZeNMNTnh++S3g jFihuaqOm1X5T2ZVRothVsfeqaqcW1kGB4eZxaC7Sp0ydjd6NRHvC/r2L4WXFLJ9SNA7 8Ye1SiLbKEiHIeW6QWCn5epaHTPKW+nhHBOkqUlxMQg9ke6QBQ3MuX924sxywTVuTXZP 2V1c/2Gbcq0mBXzpawm8qxP7jzSJz5xS4QNVuQlLYTMJ+lvcxQKKkfqEQvYQ/YnHtkaD /aIw== 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=XzY1VkvmYL3pvQ6ooemzXER1+NGHzQExssTtwYHfu3I=; b=iOdVNZdEa/jRW6VwifIohi/oIrIfbsXGv15Dr1QQZPOILkUmYPf5R+YtBlS2Uy0a5O nmA3A3LD18NEae+G0wun6jbUMy66mq/KbbarFUUncUrQXmBgo2QAuIQr4u/0K6WlgEj6 6IBXDM/vjPHS0TQoGp4f3e7JhtJ+z0zGEB671jIfwEf+Pyyph4E2Y7c/BWV+B/hkviAz 5t/uFLNferb91FKZGmUu/+6w2qxMycVVuhIwuzj0vTHcZJb7Gll+mFF4bBI9DflgtoRl xgxoPbMiVOcc+x+dczADRRcWXnLKjK8wTkLaN4aTWHxyz46UJAgtIQEsGxFRNJZFr7TW eewA== X-Gm-Message-State: AOAM533Xq5f1eji60fjtMqOKaj02P9dcogr9KnGJ3bfvuweAJafTUGng vqX5yIZIA0UZLhw7CEX2XU1Nnx7cFH2F6MPQpsCIkg== X-Received: by 2002:a2e:80d2:: with SMTP id r18mr668709ljg.286.1604571388670; Thu, 05 Nov 2020 02:16:28 -0800 (PST) MIME-Version: 1.0 References: <20180129005948.7714-1-bjorn.andersson@linaro.org> In-Reply-To: From: Linus Walleij Date: Thu, 5 Nov 2020 11:16:17 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: msm: Use dynamic GPIO numbering To: Arun KS 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 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 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