Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4506060ybh; Tue, 6 Aug 2019 12:57:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7uXLhDCr7vR9Tz0dU37BKxsgYkHpJz5sM8AgolMpRcCtRFWeQni/6/6ifVEGjkk4+BCXQ X-Received: by 2002:a17:90a:21cc:: with SMTP id q70mr5026167pjc.56.1565121440948; Tue, 06 Aug 2019 12:57:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565121440; cv=none; d=google.com; s=arc-20160816; b=jmG2lUsNb7+c/epixrd7lX8ACGAetK09h4uX/W9LGID8d9T13rzMGteJlnDXal9A1F GyKIZeeU7Kj/JwYd4rDMGA4TzvK3pahS2xqbr40tGzNHqU5Kor8xMsWUW5kG8t/cZ9d8 nuZEMHJpHk5du6B8R7Xt4Hq4pvcwEK9zH0YBt1IUZPLKTHTW53AQub0MOe149zWsSQcy Qn6M9Ju8+S64CLcHAV5+JlsD0WhQuyhmytAVLyo8L0FVdZrofjjrm5xj8lbYiA3co+Zm 8NYnPnQ6zjEytGINIHrmyvar36NjtaL1SS895tbEoJYjFkelOSaIHvFnnJVlgzwtteLl lShg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=pweWeMZ+YAimqC/rJkc+DaUbocqC+KDHTVadFtRmDA0=; b=jdYpyTuQa2wwlIVGzjzgg//LJPBQd8WlojedY4tCgE55ih3w/8MZ938NkkKBmKbej2 O1i7Bckm+S3SBvxNdwePZgB5mgUGNEyNh78Gk4DlpwLeXpClpXavijBwhTyX0xzIzNvD 8n5tXQ96GIGCpmWZQo4M9gfTo30FQIm6UYZLcvxwAfqA3PbxmXXEMA3AyxJuAw6hfulP OL2kkYRHIRQCrAPCuPe5WVkdau8RkAJdmTdlOHn55vwwHxvOoUSW3AKVqM7x1v7rYWIq FNatxpTkDMb1PGDz2KFg6JnyerFbPAOo1GyuYdphZ8FeKvackNr8fUMr6s3HFVGytbit kwPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=fGAJjSUR; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a18si48955466pgg.28.2019.08.06.12.57.04; Tue, 06 Aug 2019 12:57:20 -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=fail header.i=@gmail.com header.s=20161025 header.b=fGAJjSUR; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726376AbfHFTzA (ORCPT + 99 others); Tue, 6 Aug 2019 15:55:00 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40356 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbfHFTy7 (ORCPT ); Tue, 6 Aug 2019 15:54:59 -0400 Received: by mail-wr1-f65.google.com with SMTP id r1so89020965wrl.7; Tue, 06 Aug 2019 12:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=pweWeMZ+YAimqC/rJkc+DaUbocqC+KDHTVadFtRmDA0=; b=fGAJjSURN9jdmlO/I/yY7LcvHVIFWmV3kCQetZLe/YsASKUdA/2V49frkUJFh32akX gt/nIuAshzYJrMBWOFMq7WOhOnKJNFylLc88RXm5VVxEyXnwZExq/aQyyFcw6PsIBdUO UJBdbyqjns/oNRuElRx8SE96dBXcqAcxK/aj5vopiYWvxDSJwtP4RSABBjLH4MQt17dB AOwLQA5PL/xZM+pTYZxvJhnFpmDkdLkUqo8nndY4GhfnYq58zUpjD8I5R57K4OgKkBFx zGfzjahX0X8XzLBcff5KFwL0tPALfivB00M77hWMEdiAzB0K55NAJxYWQYAE+1ReF+f8 qkQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=pweWeMZ+YAimqC/rJkc+DaUbocqC+KDHTVadFtRmDA0=; b=WurGKoyN2lV3dZY27B2iD59Pkm57nngCQuoA0JCxmdWNrXcqPOUTorzW0CTsnTz+CD fUzu7Xi/KbFgJRj/iuRy8d9SUsof5QPxw2n/1y9klemunXVVAu8W/tR35yStFjQanxrv pctQbFR3vt+67Wqj7VCFj1jLqLOHJ6xaeSyw/84aaywlMGmvU1xhIbI27OWxXAIzuPaz MxO7ykkjeG2QXqgsuRvveMJ3sLnp3IFaMRfeemq9KJ9shOQiykykAZqgiuJUtZ3hTGBj UDzGj0QYcbGBx99Fuj3k6DY4ugBnfFo++QRA+EgIYrU020QFmeA+BdLSxqLDTLN4MSTB IO7g== X-Gm-Message-State: APjAAAU8dfRGIAOotTjHeKzqZd34RaSGGpkG/Zy4jWKzDYBzyNMAh5hd A3slLXpUvDMcN9Sl3n/VPARv8QJO3kI= X-Received: by 2002:adf:fe10:: with SMTP id n16mr5585332wrr.92.1565121297462; Tue, 06 Aug 2019 12:54:57 -0700 (PDT) Received: from [192.168.1.32] ([141.226.31.91]) by smtp.gmail.com with ESMTPSA id a8sm77911466wma.31.2019.08.06.12.54.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Aug 2019 12:54:56 -0700 (PDT) Date: Tue, 06 Aug 2019 22:54:48 +0300 User-Agent: K-9 Mail for Android In-Reply-To: References: <20190803133436.15016-1-rfried.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] gpiolib: Take MUX usage into account To: Linus Walleij CC: Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Stefan Wahren From: Ramon Fried Message-ID: <2F7B6E95-045E-4F57-B2CB-858BEE298986@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On August 6, 2019 4:11:27 PM GMT+03:00, Linus Walleij wrote: >On Tue, Aug 6, 2019 at 3:04 PM Linus Walleij >wrote: >> On Sat, Aug 3, 2019 at 3:34 PM Ramon Fried >wrote: >> >> > From: Stefan Wahren >> > >> > The user space like gpioinfo only see the GPIO usage but not the >> > MUX usage (e=2Eg=2E I2C or SPI usage) of a pin=2E As a user we want t= o >know which >> > pin is free/safe to use=2E So take the MUX usage of strict pinmux >controllers >> > into account to get a more realistic view for ioctl >GPIO_GET_LINEINFO_IOCTL=2E >> > >> > Signed-off-by: Stefan Wahren >> > Tested-By: Ramon Fried >> > Signed-off-by: Ramon Fried >> > --- >> > Sending Stefan's RFC as patch, as I tested it and it seems to work, >> > additionally, an accompanying fix was made by me to gpiolibd to fix >a >> > display error of the actual result: >> > https://patchwork=2Eozlabs=2Eorg/patch/1139923/ >> >> This is mostly fine, some style nits so I fixed it up when >> applying=2E > >Ooops no=2E It needs a deeper rework in accordance to my comments >last time it was posted=2E Please read this reply to Stefan's patch >and address the comments: > NP, I'll try to address these in a new patch=2E=20 Thanks=2E=20 Ramon=20 >https://lore=2Ekernel=2Eorg/linux-gpio/CACRpkdb5DjAMRYkT+b0U6HVk7E6ccLT79= -LB=3DQGQWWtE17aPUg@mail=2Egmail=2Ecom/ > >Yours, >Linus Walleij --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E