Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1663056rdb; Wed, 31 Jan 2024 05:43:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIFyeWMYXbaUcaW0wkHpUTUmifZt6k5zWHqzVGxys4OTJZXwRkSE/ppsTDPwK8lr3ZIZxb X-Received: by 2002:a05:6808:444b:b0:3bd:ce3d:cd23 with SMTP id ep11-20020a056808444b00b003bdce3dcd23mr2139044oib.5.1706708581163; Wed, 31 Jan 2024 05:43:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706708581; cv=pass; d=google.com; s=arc-20160816; b=d5RiuIYWEhkUiDzZaxnQ5XdXVLNrxGoSNFIvmLXKYFbKh+rwqIwf3JmvHeaNZsyja7 uq+TXnBFKt/dbpjcFw5CRsK6SzcTPQGBusqs1h9M+A7lpXbv8srHSWLmhRsHNA5YjBQK XyvqWrgM/0aI4HQtgTbj2bfTKO5brIzvcyRAefLdXNjcWinrbnZXeN2ZZv20Yb3ZMqVo ON5gSNGVWmsqBkCPu/p1oEQONJhCH0Jrib2NxB1uVOS6hcByFveeDE6zV5qVQFU/2ulB EqmTitBHyvUVSnTnCGWj3W8VJsVuRdo2MeMhI70h14+jQkr4P9POVrmG5tUT/dIdwkgM cG5A== 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=rNDiQg/0u3pLXkbL7csdAnsOg1ou8bFEsbWHOOg35m8=; fh=1/aliTp/HVSxXgj3APmsCNub8O2O9RGnVIB+oy/sSI0=; b=XXV63vHYR9Qrbenuwk7+of5W6bsWyoeTBZh4MOYQ+JfgkwZLpUrDSYAzO15i5MNF8I XpcPSW2RiikZT+Y4KUEZsjPk9ND9LeZ+dRtJSMGqeN3T/x+ltaWslfh5dkmvd8nxDDUE coVeKLZNlkimz+5G/U8H5pR0HklT5+jTj8WJ7+w8RUf/qLbWPurWlqI+DVh5Q3I719lG xo4pSryqBNvXONKdYT7tJ9kNQDzV1YDGk+5YzoVkFPO0BKJymhjmsQaKHHmdl1o42yDs z6X0Y1444hHetzPCUpCJ8JY4BuyXWxG3AmSZmcobX/L87CMykt5Coa6AONQ5k3F0aPAw aAyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VLxpQJZw; 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-46524-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46524-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; AJvYcCXkS4fYj6gL4q/nwDQSI/zjqwN4hLKw7P6WLFFyC1QFkhbtG90aUB6EgIJdLC3Xc42blyl6ZJdIY59JV/TcGRYjV7NjFu4B5Cj5FElVSA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id iv11-20020a05622a6f0b00b0042a7e2a02adsi11058158qtb.126.2024.01.31.05.43.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 05:43:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46524-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=VLxpQJZw; 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-46524-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46524-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 9F2DA1C263F7 for ; Wed, 31 Jan 2024 13:43:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39F5C82868; Wed, 31 Jan 2024 13:42:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VLxpQJZw" Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.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 A42107BB03 for ; Wed, 31 Jan 2024 13:42:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706708551; cv=none; b=MXaL8sCc/BPQgOtc88MBM5ECWaTcm4HVeFQu1nekQyZKdDGbkMzBQRqEG3xkd/OMLI2GKlsKG2+Bs4KrmPg4sjDQG2LbRp8x4GBHTLUkl9E2pZ23OZcuCK2qHDPFyjLo071czqLDoEFMDQaLIWT2CRcrA5yKnIm0EJNOWkjCSF4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706708551; c=relaxed/simple; bh=rNDiQg/0u3pLXkbL7csdAnsOg1ou8bFEsbWHOOg35m8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ivs1OSypomgmEhfTS1Df0578xdDL+aMO8g4TKziytGHCg70vIFRAqJ4GgLPOrBjeLN+A1JTHUka6qHhbFB70v5IalVQDg9PTww6fyi++BxPPXutA+K8H0DsOosGf0buX9rpT7CAnbm/Mzd1gCNwErEzu6IV815DAZUg1+wcstec= 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=VLxpQJZw; arc=none smtp.client-ip=209.85.219.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-yb1-f179.google.com with SMTP id 3f1490d57ef6-dc238cb1b17so5460105276.0 for ; Wed, 31 Jan 2024 05:42:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706708548; x=1707313348; 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=rNDiQg/0u3pLXkbL7csdAnsOg1ou8bFEsbWHOOg35m8=; b=VLxpQJZwt2QgB4fUsdFMmcyrasV38nhgYI8aUT01QepFbyHkcZagqLXnaZ63m2/XKd 5cHaRZC+zwaUpdCKRA77u78jsIL5VKeVeCefaftXoFUhZFqlgLggk/KYN3Yy1/7bnGWs oO/zSvgTJ+I7BoT7SofS6Japxkpm2mBhhoYgOVzud1rE+V84tZvf/1ZPx+syxSi0J661 YxQf+VOAhOyWbRbpdKoAnMN1fOoCyPJRdOooFj3fAf+x0oRW3WhU/dG+Z/DLHYRa1FCe Bb+aav80iceyvf3LE8LiBcz4Q4t1auCn4BWQsPEOv04YVTHRZyQ4TB+c85oWzhdIdM9z lxJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706708548; x=1707313348; 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=rNDiQg/0u3pLXkbL7csdAnsOg1ou8bFEsbWHOOg35m8=; b=LRZRuAsLpT1YR2hWK44tA+7yNBiUUOo+/GdLWevj7YXAZKGLotUeW4DOmGUJGMdM6c SpDEboyfsh1eDAENiA+TfIu1clnR2y3Wy8kEnk40JDIq060CMjnqMh7lIpQ/oBiI/LXU MmFhEvR0ZtQ/ovmKDSxsZI+4I91midHQzsQ0QVO+hRKbTOMYyHe5tLPFdKv2KlrWSfbL n2RBMXL+QTvqAgcYjL9aWsad1B+PcUP5qT8Ybo+VvAYJiIotIIaWzTrEuxyGUcipDHkk +vWBB+gPqrqK5hZaCp26SsdJpyd2Fc8QBQQjA5Lr0rWeRvUaM4alBbyiM7AMBa6kpKQy m+lQ== X-Gm-Message-State: AOJu0YylRnMV9/JWlZhJaM2OmGpIJzs+qBmczmR1LiZyE1/RsIOMSM4k 1dHsxtU6+FEsTolISISpqcpyCcN5dXrJnDCRGTPH9lVpYykx2RBfKmtqGGgvOWAu5d3xHYi9ZXh /goNcHZLb1m4QMOypNlda7orsWQMkN2rWGyKLWg== X-Received: by 2002:a25:6f83:0:b0:dc6:4b7e:d7e with SMTP id k125-20020a256f83000000b00dc64b7e0d7emr1623063ybc.24.1706708548654; Wed, 31 Jan 2024 05:42:28 -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> <5ef64082-0b44-4bb2-bd4c-654c96f4a9bb@linaro.org> In-Reply-To: <5ef64082-0b44-4bb2-bd4c-654c96f4a9bb@linaro.org> From: Linus Walleij Date: Wed, 31 Jan 2024 14:42:17 +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 2:32=E2=80=AFPM Krzysztof Kozlowski wrote: > The non-exclusive GPIO was made explicitly for regulators, so it is > working fine there, but it is broken everywhere else, where the drivers > do not handle it in sane way as regulator core does. I looked at it, it's 8 users in the entire kernel that aren't regulators, so let's put it on the TODO to get rid of those. > To make it working, either GPIO should be enable-count-aware, to which > Bartosz was opposing with talks with me, or the subsystem should mimic > regulators approach. In some way, my patchset is the second way here - > reset framework subsystem being aware of shared GPIO and handles the > enable-count, even though it is not using non-exclusive flag. That's nice, I was thinking if it could be abstracted so the regulator core can move away from this too? I guess it may be an issue that regulators are not using Device Tree exclusively, but also has to deal with a slew of platform_devices:s :/ IIRC that was one of the reasons why it looks as it does. Maybe reset can only solve this in an elegant way if the solution is tightly coupled with DT and you have the advantage that you can require it from day one? (It looks a bit like that to me.) Yours, Linus Walleij