Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp493359ybl; Fri, 23 Aug 2019 04:07:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgC01qxHW/h5TD5fVmXh12d2nbIsdtmDnXAzDxePZ/Ba2elG52oQFZ49tA5tKcHEleBC9S X-Received: by 2002:a17:90a:d793:: with SMTP id z19mr4575864pju.36.1566558451035; Fri, 23 Aug 2019 04:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566558451; cv=none; d=google.com; s=arc-20160816; b=Py6Avm0j9r9p0119Hb5HuOFwLWKu+P4WDldoDwKzQGjjvozXaw2t6F5qiCjBQHnfHh 4UyJHNT4ydEhK6B7uPOHEP/VUZ8EeZRHdwQC6z0+u+4aozKFY2L26auD57IpY4OCl2xv AA9QXm5n0R1R4LV7E2rGMR9u5HrZSZdDCBLYSM37GMEp/PpyMwhe1sTDOY4OzObtKXja P+7QbcafzVgaCvap5YCHId9a44D2xoRP9FnuqyDb9WCQO7aFd1ifXyXVuTapnM6oBe6H VQFFLfLx7MP7kRQRlOd8Tslk+rsZFR6jAaV0X5sqnEO1Q7OkcaKOc/gX6Py54VIWbepZ 2Krg== 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=Tpf4Sd4sB67NX/Z0IE/0oo2kV9MKJkg6CHsjIEFd3KU=; b=DSEeen3UMlWEW/rW187eQ/JUKL3uXdz2zcPkIIgJZkS3fm0nm6dlefRkdB3HBOD5KI GXqR69nAe8OaFb+HWFbuo8nUwOxeD1mwAsdBjqWhsmh3NOzv5PDwKPGMzaoCfpLLvaRD KGui9Qj0D9Nn76Kzzh/YiMSTjaMyYb7Jq9kZg6F9hs0HniWH7GY7/75vlE2H9igW6NcK pSmu8jX9Efy3gmkoGD8zbBRgEKxZnqseTh6w+oRjCOQOmkzs1VykXScThtVSQaqKVDlw FXCAD02wVYnEEQM6RIhcDBlCXoliAux8Ays3OL/TgdQDd2srg1DkSmcNw2s62IGGXvTh KUbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hvtDkSp8; 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 w17si2126071plp.404.2019.08.23.04.07.16; Fri, 23 Aug 2019 04:07:31 -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=hvtDkSp8; 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 S1727020AbfHWJLs (ORCPT + 99 others); Fri, 23 Aug 2019 05:11:48 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:45837 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726980AbfHWJLr (ORCPT ); Fri, 23 Aug 2019 05:11:47 -0400 Received: by mail-lj1-f196.google.com with SMTP id l1so8162062lji.12 for ; Fri, 23 Aug 2019 02:11:46 -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=Tpf4Sd4sB67NX/Z0IE/0oo2kV9MKJkg6CHsjIEFd3KU=; b=hvtDkSp8ReBY5hdjK4hImGWVQ5NMpTNhQhINoHc1bbkSFgdb9Ax378WM+rfSMd7TCd L5l9M+I6EkospSpiXQDtwe2KUNFaY2oZKO90OtBFOJJtJ0a0TfO39AMXgnZR9blwIYlv Bn7Kp3XyLiXa7GqljQL1bpD/u1+yjvbd7/u5+1xFfEEes5ciwJse2zTxFKWjCXwlfi1e 7QnEKFbiHGibHqdyTK9H31/3ROaam4eu36TGTJRdAOlxXIv6UmJUvr7R0+aLXYdllKZT TwebQ7MADWX7zYvyWeDktJ1SQBr0JH4mC7Erji6wztasivkKVX8d9kwXk3bW8B77kz6N dOSg== 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=Tpf4Sd4sB67NX/Z0IE/0oo2kV9MKJkg6CHsjIEFd3KU=; b=NXpTpp+RFKO0Zkp21qAIOHEy3vrfRviuXkiYheY9ZbxQZ5JFWovMmy+LDGit2ic/h5 J9utfqzUfUJoap3E12I82uwxe1LmO9paNY7NjUvJLWQ54r47SjHh5y3IETtvKVB6SNV9 TPM8v0dy5bWMcviP9i6cvcmPV5r9h0OfY798/hylH4yqOB1qy08tBCR710vkt55eAMDN 8DU/SEUCyydfKsAfCnVUsp+qPxzDF1Jy0u4qDEg0IdlfQyXXibsnLO0IuqU8ruxqdmWe LXkTowfBgUrSbiUftSM9Ov6dtgYvt7v5ByCgN1w2IuN9Ifkjq78SJY9pvDbKENVmOyG0 XkJQ== X-Gm-Message-State: APjAAAWabZfJ5K+yHhM2JdRyFQFuaPkjy0n+UNbXsqzyVJoBXPhSeFz/ mqBv6Xa+sSOURkCRpyhqfu/psV4Vyyzr119rmlTmEA== X-Received: by 2002:a2e:b174:: with SMTP id a20mr2344817ljm.108.1566551505375; Fri, 23 Aug 2019 02:11:45 -0700 (PDT) MIME-Version: 1.0 References: <20190814110035.13451-1-ramon.fried@linux.intel.com> In-Reply-To: <20190814110035.13451-1-ramon.fried@linux.intel.com> From: Linus Walleij Date: Fri, 23 Aug 2019 11:11:33 +0200 Message-ID: Subject: Re: [PATCH v3] gpiolib: Take MUX usage into account To: Ramon Fried Cc: Bartosz Golaszewski , Stefan Wahren , "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 Wed, Aug 14, 2019 at 1:01 PM Ramon Fried wrote: > From: Stefan Wahren > > The user space like gpioinfo only see the GPIO usage but not the > MUX usage (e.g. I2C or SPI usage) of a pin. As a user we want to know which > pin is free/safe to use. So take the MUX usage of strict pinmux controllers > into account to get a more realistic view for ioctl GPIO_GET_LINEINFO_IOCTL. > > Signed-off-by: Stefan Wahren > Tested-by: Ramon Fried > Signed-off-by: Ramon Fried > --- > v3: > * Remove the debug message and replace with comment in code. This V3 version applied to the pinctrl tree for testing with Stefan's ACK. Thanks for hashing this out. Yours, Linus Walleij