Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp224610pxj; Fri, 28 May 2021 02:24:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDzHub5HbAyFd4QAoGMG3WKYnpKXpzTzG3GPQEa7JNhjvBEiYC8u0O5kwucK4Vj3H1eOUa X-Received: by 2002:a02:cf32:: with SMTP id s18mr7626195jar.31.1622193873707; Fri, 28 May 2021 02:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622193873; cv=none; d=google.com; s=arc-20160816; b=mPL7VrkqJeDjOLRm9wuMP2pdCv+u3KpxNnAz4lzhRIp/RTbPZ4IfwCkL7chcNtdXvr xmWKLTQOh41LFSFPt7bhYiE+vKY6ZQg1CEibdzPr4vC7bdYtxRN1IT/n/XIV6s375G6x IU2nsJcMtOoMCFig8DhyV8TdjL52j2y0dH/g7rSZzy9jmxmsDamFZKfufU8YBAqex3Yd 4Ea6WHQEAAYGJ8sF02rDWK2zBPdtLRZtpW4A6khF6bva1kFPb9jDRi6zsLi4q0fB4rc3 ifp/dzazZMzDM98qqeyo7aWKhF7HqGaU8zHUE5ek5XdiDpxTbswZusN0wAm9cVbsa/Ag OQ1A== 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=VJUFVUjwMi3jp1lDpVisyiJzn7Zhoa8E+bQf9DwQVqs=; b=eSaemgDHhK2BjQwn9PVqlYvPkw1zjWGk74uO7j2c+88keNBwCZkD39O6JAZdRrIjJQ EvTUEHQpvFWB5iR3+1Xj4h2OZMqWvFbh6sI0EIn+w9/w+pAHqMYDdxqcor3vPtz+pybd X3q4dJdZL/CJp9nHPu79ArvjNGPeRVF2viDN+gG3/ElB/klcwZmytC2L+8qYZ757gfj6 jWaWexyQrNa0jOWD7bomHlS6BpaR1m2HXZ0Y1EfXD0hGpoDlYCnTW8zqW345pk0c+A8s +cahp3iECngWeqD1QnYRBWiaJFdvl9uQ2nKOA4WrafwMUDfwFVMgxE4TqEHP+T9drjZI F0cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fpYeaAio; 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 x11si5072843ilp.53.2021.05.28.02.24.15; Fri, 28 May 2021 02:24:33 -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; dkim=pass header.i=@linaro.org header.s=google header.b=fpYeaAio; 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 S235643AbhE1JKH (ORCPT + 99 others); Fri, 28 May 2021 05:10:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236352AbhE1JJp (ORCPT ); Fri, 28 May 2021 05:09:45 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3082C06138A for ; Fri, 28 May 2021 02:08:02 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id a5so4373976lfm.0 for ; Fri, 28 May 2021 02:08:02 -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=VJUFVUjwMi3jp1lDpVisyiJzn7Zhoa8E+bQf9DwQVqs=; b=fpYeaAiobh84ePdqE0lJtTQRLx27OqasFcegutrZktiaCGsASz+DMX4fKBLm26YlY5 M7A6YWw3xaofHKY0wgdSuH1fc9F8P7AaH3mngotvTgh8lFRMa6ky7HvX6MZgBPWYYB0Z yT6Z3ymqSzYfEstFNYIvNPKqwp7fnMbcUwMVqJtZ98ZE2Z0WoF7qORBprrS/YW3LaG/A Ucd8lp1sbFF4vtWkEZ54MCc7R1NjuiRe//fgzBXCjU68LLCuIn97/TWMQ5wDwiqs93jz 8LLzxcaNWPAxW/pYgxCyB9/FU/uHoupokEXnqZ3uT+NFXAfoqI2pZOZBHAcHGddIGqbj Gq7A== 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=VJUFVUjwMi3jp1lDpVisyiJzn7Zhoa8E+bQf9DwQVqs=; b=Uf3zJLOEih+8vPqLDG0L+J+cjY0sqJkCvcHoryfrBAHhPGEer8CYf1BpcGQyuI0mfc w5aDLhzgjU+DGKkUKOOoUnFWvFf1V5g/ToR10G3wthExDi11GIRxJevEdFmnrTeL7e7u ZfhWADtKmwGyyAftgmUBupariKivcZCxS7z3RVTk41rm30t2Rs/jpGM31BHlbJLW0Oil D/IGN/Dp+hALZGYqDR+nYfBp3/H9tRQF3pj7XjNbvGW5QecSd0al1/YRbEAK/gLbwzyk bmCTcGQJPQFG5X3k2LTuCbMEzyVJzeCDqwXeOirbMoTQt9ItJD6qpI2Gm+q12lA4Ze+l RGPQ== X-Gm-Message-State: AOAM531Avm4SfdoAeraZpJo4qUtak6inHMSc89AMSo05268MTRXRG0sU NcUGzp1O/XRi46JIk7joO3qV/YnKtvq7M2w5sGKRkA== X-Received: by 2002:ac2:47e6:: with SMTP id b6mr5079578lfp.649.1622192881082; Fri, 28 May 2021 02:08:01 -0700 (PDT) MIME-Version: 1.0 References: <20210520202730.4444-1-dariobin@libero.it> <20210520202730.4444-3-dariobin@libero.it> <87ea9971-9e15-c595-95cc-14c68b0b68d8@mleia.com> <1972814783.387983.1621877304255@mail1.libero.it> <414c9176-7922-929f-e82e-f80f07e91b2c@mleia.com> <106030092.519428.1622143415836@mail1.libero.it> <2062056721.520514.1622147634190@mail1.libero.it> In-Reply-To: <2062056721.520514.1622147634190@mail1.libero.it> From: Linus Walleij Date: Fri, 28 May 2021 11:07:49 +0200 Message-ID: Subject: Re: [PATCH v3 2/3] pinctrl: core: configure pinmux from pins debug file To: Dario Binacchi , Tony Lindgren Cc: Vladimir Zapolskiy , linux-kernel , Drew Fustini , Andy Shevchenko , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2021 at 10:33 PM Dario Binacchi wrote: > > Il 27/05/2021 21:57 Vladimir Zapolskiy ha scritto: > > Unfortunately you continue to cling to the broken interface, while I see no > > comments from you about asked to consider pin groups and pin group functions. > > Could you kindly explain to me, with some practical examples, what kind of interface > would you implement ? I am not fully understanding this discussion. I get the feeling that this is caused by the early architectural decisions with pinctrl-single to put all configuration of pin groups and functions per pin into the device tree. Tony specifically wanted this because what he gets from TI are some raw ASIC data dumps from the designers, that he could make a script to process into device tree rather than into .h files, and get this out of the kernel. (As I remember it, Tony correct me if I'm wrong.) This makes it hard to align some concepts of the pin control subsystem such as functions and groups because pinctrl-single assume a 1-to-1 mapping between one pin and one group, which in turn has a 1-to-many mapping to functions. Is the patch trying to debugfs around this somehow? If this hack is only needed for pinctrl-single.c then it should be placed in that driver, so Tony can review it and maintain it as applicable in that driver's context only, not in the pinctrl core as it appears the general applicability for other drivers is not there. Would this really be useful for other drivers than pinctrl-single.c? Yours, Linus Walleij