Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1632636rdb; Wed, 31 Jan 2024 04:51:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHBBzFqJw374VZH4QfrGmdyUwTgmdI33Ai10wtpqX9W+5YTDRnrEWEjUQh8i7sgbxi5nJb X-Received: by 2002:a05:6808:1919:b0:3be:b8cd:578b with SMTP id bf25-20020a056808191900b003beb8cd578bmr1710232oib.25.1706705498836; Wed, 31 Jan 2024 04:51:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706705498; cv=pass; d=google.com; s=arc-20160816; b=sQZLs6OpTPvXWudGMhpQ3w3qJUqn1DUw6YXkFLxTGd8EQN8YZjIj+UMRRX520CRGzV P32CHRk/e37FheQVDeezORp7moDrjovEyhv3qVkyetyRIotmUA62XvwhFXUeIaQKaihB YfHqkseOsQRXK74cxJZSlXMh3jcqSOkl5CZ08Qg2sgvF8dJGySJ3GTJNdx7tJlnlApF5 ZsBhA40Z50yaVpWUAdYunrxg0RNYYIRhXadr0o9Lwd3Hyzfurpxkpl2Dkvn8cewJSCTN BBLa2yGgCuwBygYg8U85Ass/2ZiMQHnk5C2R7it7GjZEqfh4wkmcEHE4jWNejgnVFoLO M0dA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=yebtIyQCYDZ5e+sLn4mg7pl47yIXsLOdVhcRWu+i57I=; fh=qXYQJoZDkz1S0R1CJC6wdl2s6jr2khE2sDfMCzSLqo4=; b=ygL4t2A3J7EuwdTWnBdPwbGkoKzakJjok0aBp5BwMfyiXbVJeIcisBDBQY0b08jDhH WdXw/cAUR/2oAwLGrQKzISpXku21es7LyS6B1SfP2/eE7Us/yn7QaZcmNvJVJfWGTGjI fnEqRR9jTWmi52KpC+DKi8Nr/Axz1gjkko8J5Ks2SuN8+9of/Xv8Ae0znvPuXZ9en3Jf G16jn2rqdk1mp2E4ayptfekqKlRhtWEXCxuQrb8FvniqigBGp44wM7Z+Ho3Kxy1Arf1g xWug6KJ8AQS+p43vBHw90sSPE0XUzcYRnv9sR3047O6F/SzVtEhZAFwhUXb6j5a4Auor sYhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y1MJ9Uz1; 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-46440-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46440-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; AJvYcCXR+PPCfPRAZGK3t8YHT+CfktBh9gFUBzMVvGW+At57kcYRV6lWH5Vc398rUJZxa/NJjL7H2hSSsmV6CQxhpnNRAX8X54C9hRToP9bo3w== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y6-20020a05622a120600b0042aa738fb14si6169452qtx.473.2024.01.31.04.51.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 04:51:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46440-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y1MJ9Uz1; 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-46440-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46440-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 EAA271C286A5 for ; Wed, 31 Jan 2024 12:51:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1802B7B3FD; Wed, 31 Jan 2024 12:50:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="y1MJ9Uz1" Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) (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 521157B3E3 for ; Wed, 31 Jan 2024 12:50:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706705450; cv=none; b=JJnapCQGsRIFNVBPtTEAuJrfw7E2te5ECCEboOyA/mb1e2d9oZppyklDjtBLZwAexhXgRPOkdp27yNAOfrKJcpZfPOB17aMhb670ImwvU55zZLJhjF6vmQkyr6jAnShgs1hGF6jgqZ2o8L9VnnNIw/sNAaIgX9UsC3Z/IZbuTxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706705450; c=relaxed/simple; bh=yebtIyQCYDZ5e+sLn4mg7pl47yIXsLOdVhcRWu+i57I=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rJE1FXQcJKKeaZeePJ3d6UCceusbXplU4pWIhB0qtRiganbdZK3rpJsmAiHRCgG0F3dH5l4Ic4kQW6XBJjTw1DqOAuQgnivQ+3T4A7qKGWEIWt5VJSFgdNIlDH6AmhKNhWIn6XfOrbhpjixK44ZEArTKvrK/8pZxZ+vrIq0p+OY= 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=y1MJ9Uz1; arc=none smtp.client-ip=209.85.128.179 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-yw1-f179.google.com with SMTP id 00721157ae682-602d222c078so52603067b3.0 for ; Wed, 31 Jan 2024 04:50:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706705447; x=1707310247; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yebtIyQCYDZ5e+sLn4mg7pl47yIXsLOdVhcRWu+i57I=; b=y1MJ9Uz1MsjC/W9kArtu7ja9OR5QPxqKHE5mvsWZCNX2eNrUSRJ/QWYP0HtOWuomam 0X1gpJs+UpgGW46IFSYi8VWrk4GhdnV0WHf08SyRfkZQCrVXrBwrgAThk6rSvrdKDqhZ pbhB6R38O0s3h1X9380CWdJsAIy7NqAYBwy9z8keTVSjq9erwFvToO6CoSgoUZ2+giXN BQ9fXxJ6Ux1KVBxa8lVAKKgxERvqevyi8TsA5GPRfmi9Cy5V2pPnq0xfhjFwt7nlI6BV 7xj7JSfEi/g3rB/+u9M60b5C1RvMuOaYfU7Gk35DU+btf3U/k1wqpD9nPpUIxs8kyp9k z+yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706705447; x=1707310247; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yebtIyQCYDZ5e+sLn4mg7pl47yIXsLOdVhcRWu+i57I=; b=ZViGQt61iccDNWHwV7nC4ZX59VYppoFj3q6YvKUUud0LBiio1I4TFBXR13VGBajWWN l6Wv18/jrFxrRODhm+j7R/Qj+B4gQyHuQbAyxIxb5Olk76/zMeCJ+iwNxPhIntXyqwcm 2HPuSalcHXdDTklvomI6o3ARYppBqiwbFkZ6Rm2Z1hnoZoyEqahRWtgNEncmI5vxfFf/ H8BnIMI4BEcBfcgj4uxiCDuu9WmlIJh/hhlIcK8YG74+HP74hH9/1v4/SxmSL9tSHfMV j2qKEbA3B312c2QIeo19guAaUIe4yOr4Um5LDIpxPgw8sFmLs45oFh4kRZU4mJENrppR AIEA== X-Gm-Message-State: AOJu0YyEiC5MBMzJ6FPGmsS/R9u1Qk49ufs3fWwuTADZrzqoYZdOVX8e 6eEPezeWJ5Dbc0oPXLdJ1EJJ5LLzUz367I/AG4Y6NI6GcdOF/xKPaofKzLNwbbquBEHcWUawP45 LJvEwanvSYp7dIDQkpN17YAVYgiIXsfYSREYhcg== X-Received: by 2002:a25:6943:0:b0:dbd:7491:368f with SMTP id e64-20020a256943000000b00dbd7491368fmr1373182ybc.7.1706705447230; Wed, 31 Jan 2024 04:50:47 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240129115216.96479-1-krzysztof.kozlowski@linaro.org> <20240129115216.96479-5-krzysztof.kozlowski@linaro.org> <6473952d-893d-4591-9bfd-dd983313bee9@linaro.org> In-Reply-To: <6473952d-893d-4591-9bfd-dd983313bee9@linaro.org> From: Linus Walleij Date: Wed, 31 Jan 2024 13:50:35 +0100 Message-ID: Subject: Re: [PATCH v6 4/6] reset: Instantiate reset GPIO controller for shared reset-gpios To: Krzysztof Kozlowski Cc: Bartosz Golaszewski , Geert Uytterhoeven , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 31, 2024 at 10:50=E2=80=AFAM Krzysztof Kozlowski wrote: > 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. I think that is over-reliance on tooling, I think if I author a patch creating a struct gpio_chip it's natural to CC the GPIO maintainers, just by intuition. Maybe that's just me. I guess if one wants to automate maybe get_maintainers should CC GPIO maintainers on patches that has a + #include in the patch body but it seems like stretching it to me, it's just too much process. > > 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. Aha so this is problem similar to what regulators are doing, where they had this problem that a single GPIO can contain a regulator used by many devices? There the solution is something along the line that the first consumer turns on the light when it arrives and the last consumer turns it off when it leaves, at least that is the idea. That solution isn't the pretties either :/ But if we find a solution for the reset controller, it appears to me that the pattern should be re-usable for regulators too? I think Bartosz says in another reply that *_NONEXCLUSIVE that the regulators are using is broken so if we are to invent something new we should make it available for everyone. > > 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. OK fair enough I got it wrong. (the rest of comments are probably fallouts from the misunderstanding). > 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.o= rg/ > https://lore.kernel.org/all/20231018100055.140847-1-krzysztof.kozlowski@l= inaro.org/ > https://social.treehouse.systems/@marcan/111268780311634160 > > Please implement some custom lei filter, so you will get such > notifications earlier. We keep discussing this for many months on > various attempts and this specific attempt already reached v6. Yeah I should really look at lei! I just haven't had time to get into it, because it appears it appeals most to people who use local clients like mutt. And I use gmail (yeah ...) I guess I would have to change my whole workflow to accomodate for lei, but it may very well be the right thing to do, I did change everything for b4 already. Yours, Linus Walleij