Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3116122ybl; Mon, 19 Aug 2019 12:28:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqylZM5Dy7/aRDhToZluj/8/C6rvqw9Btw1LhBxc5fARxPKpMZq11mr4d5sVBAfo1T3ri3+D X-Received: by 2002:aa7:8705:: with SMTP id b5mr26249233pfo.205.1566242929948; Mon, 19 Aug 2019 12:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566242929; cv=none; d=google.com; s=arc-20160816; b=O7tMR/oYG9sz3dutzDHcvPIHmyK8Iga4ZidoQonGFDSqgaDtcdqhClWdsNxNLqGpzN d5NdTBeyyMd7sdZ1u8cluPt0PdM2D03I7poZnmgTNTQf4f3U25eWppZvfWm7u6+UYMhG GOM2q1bbX6xrkC4nQh0NW8OIyESDzVrBwExFS2TCwr/GtW0mBXfaAAdxA85F2pTS9HZ6 /n+SV+iOTCYOw0qkQk7T2avRBhFmIoLGxCeklPsV04IOkJ5UkIFgDODjt0/EU+81XH5a IaqbTyriCjwooEnGjDLZSOuLU1VQTBN+lxNZosyyDmJwS6y6eccnvJ3IWW7qLjtLdsm/ u42g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=N/UbPravhlb5sZJc92GcE40iDTLvOL5HcF9MciJYctM=; b=ZjsM5DKIbYo548iVF0GVCNw9WqRM7/wYSYoFlbcAoSU0i2KXcPJ0nzcEejznJ9N8NX VwvgKh2g80pXZfmM7tvDFwd9pcE2y3g+OJ57bXJ6T8muwCKLGydESAkhSg8eiVOMERs5 uI1k895eb5qOeAdkcAbWt8zoWjHS4io189j1iSOt0d18TGg1WA+lDYOZqeXgY0PPq8iQ j42R/2vgkF+vgHKlUtPO965d/U0vGsE+CJ/WBD6QUOuvZH0JeOc3PLi5tgcE+ES3/ucu ZfNrLiJyGXg4sXcdpxHCCFDCecIDpZ4t5CsgyCWUxzjJvnFEYVoFgLqai4ykjEUhiTVb BT7w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si9478658pjz.29.2019.08.19.12.28.35; Mon, 19 Aug 2019 12:28:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728509AbfHST1L (ORCPT + 99 others); Mon, 19 Aug 2019 15:27:11 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:50963 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728409AbfHST1J (ORCPT ); Mon, 19 Aug 2019 15:27:09 -0400 Received: from [192.168.1.162] ([37.4.249.106]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MLi4c-1hi7vk2652-00HePR; Mon, 19 Aug 2019 21:27:04 +0200 Subject: Re: [PATCH v3] gpiolib: Take MUX usage into account To: Ramon Fried , linus.walleij@linaro.org, bgolaszewski@baylibre.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190814110035.13451-1-ramon.fried@linux.intel.com> From: Stefan Wahren Openpgp: preference=signencrypt Autocrypt: addr=stefan.wahren@i2se.com; keydata= xsFNBFt6gBMBEACub/pBevHxbvJefyZG32JINmn2bsEPX25V6fejmyYwmCGKjFtL/DoU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Ru91VOVaF9f4sAEQEAAcLBXwQY AQIACQUCW3qAEwIbDAAKCRCUgewPEZDy2+oXD/9cHHRkBZOfkmSq14Svx062PtU0KV470TSn p/jWoYJnKIw3G0mXIRgrtH2dPwpIgVjsYyRSVMKmSpt5ZrDf9NtTbNWgk8VoLeZzYEo+J3oP qFrTMs3aYYv7e4+JK695YnmQ+mOD9nia915tr5AZj95UfSTlyUmyic1d8ovsf1fP7XCUVRFc RjfNfDF1oL/pDgMP5GZ2OwaTejmyCuHjM8IR1CiavBpYDmBnTYk7Pthy6atWvYl0fy/CqajT Ksx7+p9xziu8ZfVX+iKBCc+He+EDEdGIDhvNZ/IQHfOB2PUXWGS+s9FNTxr/A6nLGXnA9Y6w 93iPdYIwxS7KXLoKJee10DjlzsYsRflFOW0ZOiSihICXiQV1uqM6tzFG9gtRcius5UAthWaO 1OwUSCQmfCOm4fvMIJIA9rxtoS6OqRQciF3crmo0rJCtN2awZfgi8XEif7d6hjv0EKM9XZoi AZYZD+/iLm5TaKWN6oGIti0VjJv8ZZOZOfCb6vqFIkJW+aOu4orTLFMz28aoU3QyWpNC8FFm dYsVua8s6gN1NIa6y3qa/ZB8bA/iky59AEz4iDIRrgUzMEg8Ak7Tfm1KiYeiTtBDCo25BvXj bqsyxkQD1nkRm6FAVzEuOPIe8JuqW2xD9ixGYvjU5hkRgJp3gP5b+cnG3LPqquQ2E6goKUML AQ== Message-ID: <5e5c9003-b25a-b81f-cac8-9c33a2f1cd04@i2se.com> Date: Mon, 19 Aug 2019 21:27:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190814110035.13451-1-ramon.fried@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:pgoqZzmuMfBn8cnM8rtk60omos+FwRN8mhDg5uwdNPYLNFK5+Sz 7tvQvnoBuz9zpb1lWesQdpkPfW5oI5xHeLsE4Eo89YS5hQz3+HjPz46CDge10OitKf1/wDa cNLRB7qo+DNM/RUbnvBb9Ri0a9MqpBtlSsV4wVhRwiFn/82S7Lu2l5PpWgbcZnCJBL+edVu Ho1fBlRiqCDE2O767mNNg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:uh6rUzE80uI=:qBo41oufmASZ34eJIXP40n gyTfk9t0WeCzd6pRipG1Fc3z8d9l5joFeXUiCBN50w8fctXUdeGAteTIPEHYWILdEHTPgaYQm ifJ2C73pw28HZC1KNDdAIkyXU+6ksGUn/16yugkGhXnLNEFKBExFixIWqbbQvV9QSGAR4/HEI nExry2ahJUFOztMy9qNT3vDptTr5jd3bDDTI4Wx0Kg0bwPWdvNOu0OTKGghz8V0zdoXFf1eas kAdmFvwNDJhaWcdQ3Av2LGTxc7bo/q73xlCcpObGIuuSmuxjDeZ9xzep1aqUrSJnYcViwFA6O 5zpX4OmEG5K7fjMUUPzCCDHuK+ySCbwxNmaMwKxGtrIUs0kN1v1cuRqXBeKnmUgGhLpqchriY rxkvUaboacW7UyfxqwuNPZSeKqOnmb0YHHeNb0yrh98Qi94ogQT6Lj+DAJx7SY+P9QdQSkTEM aAQ6XzDfkzBAcu+9KHwIskgdYQGFq5rf4TaJX1/rx1DbMTcRQEjJVmSd4BQ0ZCTBgg7paodIV DumAfW2CENmI1Nheu84/lhUwyuE+mN6dyn3nX0CJ6O0b0OPpIpMdx9yMZgSxOyytA4NerCfkQ X9O/yDuapZy+66/IjWM/exCFFtgnusjOaPJDo2Ds0CUhLJbx+rkhO4c9GolqflEwXA29nSZFD nfK9po2ipn+n2UkhKOMMFlLJdlYivQTlA4IIcGDKAB45MzAPI7t8Ca1/tWwWVaWIzNd4L+UgU CHJuU2mtvtE9ga2IyOazXWlB3N4rTyNEN03kNkBrhlLcK+9zKEXai0enjJA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 14.08.19 um 13:00 schrieb Ramon Fried: > 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 Acked-by: Stefan Wahren