Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1328489pxj; Fri, 21 May 2021 11:24:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsZg0qvleLteEcB+ipbkaEK+PEw3wFRMABjoyrwvVEmsc1qYXVF5vyfTqBLZyIXRxG01AH X-Received: by 2002:a17:907:75e9:: with SMTP id jz9mr11423346ejc.314.1621621488808; Fri, 21 May 2021 11:24:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621621488; cv=none; d=google.com; s=arc-20160816; b=rLWgBeg9VVd9+7V1Y8OLtLr9WNmbKJcbLNoyzTTlJJ44wYnE1q0u5KLdoRchXo+WHE OgRi1S99B5Yh6zFmE6j8UjycU8qnLzFI+oTa810koGGJjVgAgOh7YDNQWpr/3Gomt7s9 sIFDdCyti5mrNpPy6G+7hiElVR9Wqq0iJ1lus7Igff5eFLMxAwsuWgJ/g5cc93K5OQNn 7qDswNDXBvzikaEZr/J9zcJQRN7S5583Rujtp2VXTYJYLpu7dFRL5Fh+q9JZ7uYO1+po ApW6wPJ7nh7C5ZPV8pnIU9AYGuZwBDLH8Iq8AMVbzGJqWtGEpo+xsqHHEjg6eLnYDPdm 0Jgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=p+m3Zng4xf6uuQkobznzzdrBx1kmKs+OVKdzOWxPFtA=; b=SjU9lkVgy90TGXjk4RCdkczHq8fgBHrUHVjRui2E1aMzteQmtqtSnnR3IfktNLLhun nlcz6zcQdCWVKczZlxDToHSpdGEuoaNTL4BQht4swofuolQZAmSFXYGKkbK0wsKZhmzd 8vQEwOZL5FtSkx8gQHzgtGqFFWgEoKvtqynOpU+/8OwkNrN7N7TG8kttxSRNuz4HAt+I oRP37rOAuvzDOfudx3+pUPwkV0p9Fy8iwSI/F3eaaRg++CkEGze4GQDj+oGPFhkKreNV mB6Nu1fRhog8zu6uEnzmEXYTYLH3g6DSs6BaKiReJByZbDlbB4T2mBdQWq0ahRyf75uB TQEg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu19si6190125ejb.538.2021.05.21.11.24.25; Fri, 21 May 2021 11:24:48 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233721AbhEUGpn (ORCPT + 99 others); Fri, 21 May 2021 02:45:43 -0400 Received: from mleia.com ([178.79.152.223]:54480 "EHLO mail.mleia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233652AbhEUGpd (ORCPT ); Fri, 21 May 2021 02:45:33 -0400 Received: from mail.mleia.com (localhost [127.0.0.1]) by mail.mleia.com (Postfix) with ESMTP id 5050F39A5; Fri, 21 May 2021 06:44:10 +0000 (UTC) Subject: Re: [PATCH v3 3/3] pinctrl: single: set pinmux from pins debug file To: Dario Binacchi , linux-kernel@vger.kernel.org Cc: Tony Lindgren , Drew Fustini , Linus Walleij , Andy Shevchenko , Haojian Zhuang , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org References: <20210520202730.4444-1-dariobin@libero.it> <20210520202730.4444-4-dariobin@libero.it> From: Vladimir Zapolskiy Message-ID: <2ef7f7f9-b147-8292-85fb-bcf58a2b6428@mleia.com> Date: Fri, 21 May 2021 09:44:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210520202730.4444-4-dariobin@libero.it> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-49551924 X-CRM114-CacheID: sfid-20210521_064410_352838_FA42BC3B X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Dario, On 5/20/21 11:27 PM, Dario Binacchi wrote: > As described in section 9.1 of the TI reference manual for AM335x [1], > "For writing to the control module registers, the MPU will need to be in > privileged mode of operation and writes will not work from user mode". > By adding the pin_dbg_set helper to pcs_pinctrl_ops it will be possible > to write these registers from the pins debug: this makes little sense, because it should be possible to write to the registers without introduction of this interface, pin group/function is the right level of abstraction for your particular task. > cd /sys/kernel/debug/pinctrl/44e10800.pinmux-pinctrl-single/ > echo >pins > > [1] https://www.ti.com/lit/ug/spruh73q/spruh73q.pdf > > Signed-off-by: Dario Binacchi I strongly object against this new interface to be added. -- Best wishes, Vladimir