Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1548754rdb; Wed, 31 Jan 2024 01:52:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjXKlgVpp2OiXCixd8TzF+ngLlFOXcp77j67oyecBN7mjvU6W94oQjOUwtSCZ4idfIh+uS X-Received: by 2002:a37:ef04:0:b0:784:b12:ba1c with SMTP id j4-20020a37ef04000000b007840b12ba1cmr918941qkk.78.1706694775592; Wed, 31 Jan 2024 01:52:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706694775; cv=pass; d=google.com; s=arc-20160816; b=daw6DQYgsjEJ/7Bwx/0er1SOd7GYqRfrPEe6uIrQDC/m5d7jXeXBRTqvC9v5Pt7n8f JFi7UJo/+5C22d1DYjdbEnwE21PY4husLMnOuazxQOjP11Cin171309XSi7CV98VbeFj uTEeFH3L5wUrVw/wl+yeB+t/zsK/Wf0L3OhhRkPI5yVpLQLgBTk54Jzjq3S8CRcOLvlx p7TjO7TuBtUQeTb/NnlNhuQbGXmoTLN85vbSgT3jhjKYC7PX6uw5HFOGJ9yoRZ9To7Oc jVlWybtZkvfeqqF21zCmTMTmsUnWr/foWUgIKMZy62prwcCM3lecujKjui8FnCDqanwg bwlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=vy9ag9vSpz3bXWFEemDbbZ5ICpPB9T59zqDCvXFR710=; fh=L4CdFdLnOpbfJz+g35QqkS9GDFhRjSnN3g5ote9GWPA=; b=uQ+Spg51xM33yOltseUWi8C5KcdnuOPI4buPD1gy60kgT0wthdgIrsaykYcszP6oA4 6SC5XmWV/ivT5EsA0lyf6xRc40LcOFRrjFP+TRiFJyvutc1s4SvtApegBushOKRRgWuq vw6PhL2W31rEs3CmiMz6nNYSkNZTbnqbKBYdD0eDq5fm5ItobCJhchE/bi3KAqBuB65x 3+SNqg8giD7IVnyP/ysYJJJQ3DRadzeTQh5eN7m2uO6EJl0dBipTGgncF75IIPXQa776 j1bwEiHc0uBOS8Ez2+D9EB37yU0figkYNHiy6LZ6FZn5CjBtohsiXetCiGaCVIs8BPEa yJ6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yzjLKPOU; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-46166-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46166-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCX/kUX+8o1ZxRraDDusUzyERCxppFW6edNY1LD0QdTFxRdBty7dKYUJov0M5VexoVpKkLu8JGZ/2OCpfPvxly4eciJ6RMmC25RhV6ei/Q== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r6-20020a05620a298600b007853e4e71ddsi406361qkp.648.2024.01.31.01.52.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:52:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46166-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yzjLKPOU; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-46166-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46166-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4BC871C263FC for ; Wed, 31 Jan 2024 09:52:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2F026996C; Wed, 31 Jan 2024 09:52:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yzjLKPOU" Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E8D569D01 for ; Wed, 31 Jan 2024 09:52:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706694768; cv=none; b=fxMClkJ3LOqRGztenYyHuChH7EuN+C65pqAPjjNA0KvFbuvjU6W1hHGeetLDkkDalkOiINXfKEyocRvFvuMxGbGuAFG3Ykrd1N0/HqEntu4vilMqgUqBAIba1C0SjDU1e4T2xfBlsYfoRs/T3U1bJ+1/d0o1f3Z5e/T+mfKqtgs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706694768; c=relaxed/simple; bh=fTIfhqGw1d/HJR+aqs5SB6WwWZFYD2zxuQWrfL/S1dw=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=Z82845dbC3rb3wzYZPq0E8Ka6f6EQZpL9+GvgwQoV0hLBwSeIZudgk16uGGojkcubvMfpwfJY22zbasxZdwfx0wEuqU9Vo0KoU3GflDWUVJU3oxFTUk0lf0RoGqVMQtiiR8/vJrvZ7Mao0JHIvbbij4cKTdQ7o4BH3G+J5/YQLg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yzjLKPOU; arc=none smtp.client-ip=209.85.208.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2d043160cd1so39913941fa.1 for ; Wed, 31 Jan 2024 01:52:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706694764; x=1707299564; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=vy9ag9vSpz3bXWFEemDbbZ5ICpPB9T59zqDCvXFR710=; b=yzjLKPOUNm3mJDC3SFmHZl1dctH7oKC138Dz3reVC7HoFSUfQlGcHtGgfGNlaeLM9R 8fIf789R23hoo6mFHYERKNhPvxvj4nz4I+qII5qTNLjm5FvE3erdHHaT8Y6535qahWvQ lacEcFKS8OgMdomLin3kISR+BBxz//VEqnxPO+DVGNDoTeJ06cJ2FpoPVv2ixzw3QM0J tjRr8VpKJJnkaoFGnGN/HKqck5nS2QtAGLYD6G75Ki5glrUA5HYDgn/UIKfCpSHgxcnB Udj4p7xlhoMSAmqSTxIaiFt5jWQF54cE0PzaP+3SMzMwwGMKkYzzBVUsyGK6uOUDyo2N zwDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706694764; x=1707299564; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vy9ag9vSpz3bXWFEemDbbZ5ICpPB9T59zqDCvXFR710=; b=EZmf3TNdEP+HBs4WbpDApP98E20lZqjvGgOJqLX/20kAsxKq7JmK4HJfecmYXmJCT4 L8JoTrVzsSx0FfubhM4uy1rJB2HNT4B4TyLS6qk+IVY094rENtyIAYM64XLUKmcMg7K0 3GGnupN6QHdC0VUfDuwH1zA4kKzN7jQB7LcguAhaJrly3fRVTCJZqOVv+cTdL0RC9bVn a9tho95diGHOVTy4uyYDU2X1FFAKafPi7sJ2u+IGLE4DWyLWvARgNA14r2RKGiIswtwU 2iYW3SpcWidphxYBjLTtE62uPfTWJ0rZbfZp+qIkgWkdhbZF7kFYfIvelDHx1Qqak0fJ eR9w== X-Gm-Message-State: AOJu0Yw9n/q9vBJ2zEkoPohtDiMKBkN2ViLC6QEjFALKSV/NxY1T+E49 a/Ka56Hc99U1exq3plnl0QOR1Cx7CZRrQKCocf4ylDmrFUpBEZRhNpKY8A7/Tpo= X-Received: by 2002:a2e:84cd:0:b0:2cf:2db4:cd84 with SMTP id q13-20020a2e84cd000000b002cf2db4cd84mr772150ljh.49.1706694764460; Wed, 31 Jan 2024 01:52:44 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVn6dszHl2gPrVUm94CT0J4a9x7kfsAG5Hj3PD80ZzNLeSwkoamvLdSKKTaKtRk6oSlN90EMwaN63rcgt/tJPc5cFZkCN1yV2ChH0Ujbe57KAWr2E2BgTQ2d8dz5W8p6F/2T89v+tEN8rFblqbb8aJVQ07BvyslkrD8XTmmTn4ZnaQICNStWkmmxswOuUqTyApWOFIDmrgvrWer56bdOTO14h8gY/8GJYnVO+ikOw6ggTQajutJj0oH6qYlUNWB6ZmocLNeTufdb/g+wJwpqWCogykXmnfgx3RUFPcKqXKdI/49WbaBVgm/anhAu+K5cH2iwtQj5A7BP4Muuds6wLD+gmohkhr9w6vzNHy6KJtIAVvkkXZfzMVhUSh0kkNRjB5oRltTV4w2/Qgk/8PFwtIF+YnbRSorbmzqxlmTqCl2jTKWpW8ZATL0xI/LSlNQLjy06ON752/jClZj3CCeENZRjv1vnkWskxO15uWAWiz9OvbEZhT8nx8UwUZ2XELt7wN3V489ZXnhTSdzXytxVx4pd/RXSC3Ml84zhUysoaMS0du2ncpX9fB6Fn3D2wJE+SO4EoaXYDyVjRgkb/HnBX9g9F4YfHjIPQDS+LK5nU+ccR5rNYc8TjttcZHfFn5gqHCUx/fPqekaXMt/G7jgBtYHIYly+Zoy63J53TBMZ+lBww7evLpFrdMUYIiI4pwLFcYu2L0MX8s9GtPXIpHrZgw0iILaA58qzlUSevF7S1znTdvBR/GlzgK2K8gY3jz+Q6ioTvisMTIJeKhZIShhZb5/4lJFBqmm4m+SBkQzwsYCmfMKDZeSYbcxAcBlbTasFfeBeW+9dw== Received: from [192.168.1.20] ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id di11-20020a056402318b00b0055ef0105f2fsm3426803edb.80.2024.01.31.01.52.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Jan 2024 01:52:43 -0800 (PST) Message-ID: <3f906732-74b7-4219-88ee-59509bff8459@linaro.org> Date: Wed, 31 Jan 2024 10:52:41 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 4/6] reset: Instantiate reset GPIO controller for shared reset-gpios Content-Language: en-US From: Krzysztof Kozlowski To: Linus Walleij , Bartosz Golaszewski , Geert Uytterhoeven Cc: Srinivas Kandagatla , Banajit Goswami , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , "Rafael J. Wysocki" , Viresh Kumar , Frank Rowand , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Chris Packham , Sean Anderson References: <20240129115216.96479-1-krzysztof.kozlowski@linaro.org> <20240129115216.96479-5-krzysztof.kozlowski@linaro.org> <6473952d-893d-4591-9bfd-dd983313bee9@linaro.org> Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m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ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <6473952d-893d-4591-9bfd-dd983313bee9@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 31/01/2024 10:50, Krzysztof Kozlowski wrote: > On 31/01/2024 09:57, Linus Walleij wrote: >> Hi Krzysztof, >> >> something is odd with the addresses on this patch, because neither GPIO > > Nothing is odd - I use get_maintainers.pl which just don't print your > names. I can add your addresses manually, no problem, but don't blame > the contributor that get_maintainers.pl has a missing content-regex. If > you want to be Cced on usage of GPIOs, you need to be sure that > MAINTAINERS file has appropriate pattern. > > >> maintainer is on CC nor linux-gpio@vger, and it's such a GPIO-related >> patch. We only saw it through side effects making >> optional, as required by this patch. >> >> Please also CC Geert Uytterhoeven, the author of the GPIO aggregator. > > >> >> i.e. this: >>> 2. !GPIOLIB stub: >>> https://lore.kernel.org/all/20240125081601.118051-3-krzysztof.kozlowski@linaro.org/ >> >> On Mon, Jan 29, 2024 at 12:53 PM Krzysztof Kozlowski >> wrote: >> >>> Devices sharing a reset GPIO could use the reset framework for >>> coordinated handling of that shared GPIO line. We have several cases of >>> such needs, at least for Devicetree-based platforms. >>> >>> If Devicetree-based device requests a reset line, while "resets" >>> Devicetree property is missing but there is a "reset-gpios" one, >>> instantiate a new "reset-gpio" platform device which will handle such >>> reset line. This allows seamless handling of such shared reset-gpios >>> without need of changing Devicetree binding [1]. >>> >>> To avoid creating multiple "reset-gpio" platform devices, store the >>> Devicetree "reset-gpios" GPIO specifiers used for new devices on a >>> linked list. Later such Devicetree GPIO specifier (phandle to GPIO >>> controller, GPIO number and GPIO flags) is used to check if reset >>> controller for given GPIO was already registered. >>> >>> If two devices have conflicting "reset-gpios" property, e.g. with >>> different ACTIVE_xxx flags, this would allow to spawn two separate >>> "reset-gpio" devices, where the second would fail probing on busy GPIO >>> request. >>> >>> Link: https://lore.kernel.org/all/YXi5CUCEi7YmNxXM@robh.at.kernel.org/ [1] >>> Cc: Bartosz Golaszewski >>> Cc: Chris Packham >>> Cc: Sean Anderson >>> Reviewed-by: Philipp Zabel >>> Signed-off-by: Krzysztof Kozlowski >> (...) >> >> In my naive view, this implements the following: >> >> reset -> virtual "gpio" -> many physical gpios[0..n] > > It does not, there is no single GPIO here. There is a single reset > controller, though, but still multiple GPIOs in DTS. > >> >> So if there was already a way in the kernel to map one GPIO to >> many GPIOs, the framework could just use that with a simple >> single GPIO? >> >> See the bindings in: >> Documentation/devicetree/bindings/gpio/gpio-delay.yaml >> >> This is handled by drivers/gpio/gpio-aggregator.c. >> >> This supports a 1-to-1 map: one GPIO in, one GPIO out, same offset. >> So if that is extended to support 1-to-many, this problem is solved. > > It does not match the hardware thus I don't know how to implement it in > DTS while keeping the requirement that we are describing hardware, not > OS abstractions. > >> >> Proposed solution: add a single boolean property such as >> aggregate-all-gpios; to the gpio-delay node, making it provide >> one single gpio at offset 0 on the consumer side, and refuse any >> more consumers. > > And how do you solve the reset requirements? The problem is not just to > share GPIO. The problem is to share in a way that devices operate > properly when they assert/deassert reset. > >> >> This will also solve the problem with induced delays on >> some GPIO lines as I can see was discussed in the bindings, >> the gpio aggregator already supports that, but it would work >> fine with a delay being zero as well. >> >> This avoids all the hackery with driver stubs etc as well. > > > So none of these ideas were posted in previous threads, just because you > were not CCed (except one thread)? > > https://lore.kernel.org/lkml/20191030120440.3699-1-peter.ujfalusi@ti.com/ > https://lore.kernel.org/all/9eebec9b-e6fd-4a22-89ea-b434f446e061@linaro.org/ > https://lore.kernel.org/all/20231018100055.140847-1-krzysztof.kozlowski@linaro.org/ > https://social.treehouse.systems/@marcan/111268780311634160 > And here: https://lore.kernel.org/all/CAL_JsqL3oZXJJ5_i4BRGpvWu1X8QFB7OGG=D+zLvvWb=UR1mWg@mail.gmail.com/ which the place where this idea of using resets appeared. I agree that you were not CCed there, but that only means you miss lei filters or pattern in MAINTAINERS. Best regards, Krzysztof