Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2477232rdb; Mon, 12 Feb 2024 06:17:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7UUx7V04CWh7eOWZKZVAG6xU9CrJeZwoTicducgOuh71TUmw8wSOElGehSwGKAdPQ53Fv X-Received: by 2002:a17:906:dfe7:b0:a3c:8bed:86d5 with SMTP id lc7-20020a170906dfe700b00a3c8bed86d5mr2715089ejc.12.1707747473160; Mon, 12 Feb 2024 06:17:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707747473; cv=pass; d=google.com; s=arc-20160816; b=DB+9M+6V5IsLkWuMhyY4OL9sCp7n9oydIbKQK6VN1SBVlBXQUjhaCgPRmSaw5ZQYEc 3Bx7VjCjfWclD8gazNZEz4ii+HEMTdA0xdV26SgHP10EdOs8Zu3CTfTP5faqrnJqkb9r xVYBg3HkqGyKBUPlVLYLpXhqSM0+jYq6IQfbDC5XasyCkJGTuqYN1E6GEYFUXOaciNbs 6tMLfj4TbG5g/Bx7OkUoUvqYqx9QdT0sq07JERPI3UwTp2PF4Iys88syGXRLITSjWU3t ZMWyTGwzCLe1gK9yqAIVp+h2LanfmewpdJFk3rSMJmf7DH9mxI457+ySdnkuvcBfgvpu T+NQ== 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:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=DQX3D7uSYgu1r4rqjqsVdtDZuOmWbLq20gw1bWo5TGM=; fh=jJePuZKAQHWQP6D6ZTpLpgea0HAu4w48k/ecce9IOmo=; b=uVKb8aaCW41Bm0KJwGx/LcvyAtAXk888l9pH0on19Azi3XHwMGANOUXS1h5Ck/9cVJ rhgxX87Gj72BMMJCmorRmO1+x5vEknab3SSIFdhUiILNMKyAAraPiRruSOv2m/dlswGT 6gU88C7Lm5mUPQinZVMvFMSbixL4DVTrXmYUwFWHj/tUED36EZwXn86/7zxCfENA3ivu sA96SllDCCno3j0i7qQCkkrSRjG7y7jM6/XatMvAXSdQ2o8OvTkSkrBz0D7g49VO4iV7 LfuZrX0dCFpffzF36h/L0lukSbyAaxuS76rUMr6ifks5pM1B8OjFgJg22fJ1DNrBJmbq s8lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cADnfjYW; 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-61812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61812-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCVtVUMThv0MjOGBgo8iTRbEjhCYV3HBvgZ5IBGpUDeA6BfFsref70OJmaclw3SBMiLmrpEanA7xIjpvx6yF8y7Lqk4D+RVAC4WaDhQIGA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b5-20020a170906d10500b00a38786d5e9asi219382ejz.490.2024.02.12.06.17.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 06:17:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cADnfjYW; 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-61812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61812-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6F4371F24DA1 for ; Mon, 12 Feb 2024 14:17:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53CA93B2A2; Mon, 12 Feb 2024 14:16:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cADnfjYW" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 A842F3B2A4 for ; Mon, 12 Feb 2024 14:16:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707747375; cv=none; b=HVnzDpJ/+tBr5Wia++iPtUU59+6rneRGfZEqF4JIrChHnsnJPqqsS5l3M1JdUCzJpBnLQQwpF9bSbGFycdjyyn82mgSVJrXfaJ2LjHxtstLjZfvU0kvy97pb9bPdsNxkgCzUwIIErH4VmZkBYztIYo9VvF6/SzQfrpukC2c/c/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707747375; c=relaxed/simple; bh=H4/04zivKVAFJVVs+E5Mftrh36HHEgeKNY0LNBAaZGA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XnluEwYC4w+OTGSoqu0XQI6PnzzJ9ygPq04ooCwcT+sY3gsDlnazOn9dnb5I0v0RargBnqhDGBFU77nBMSvpd4sSoE8lnH6Qji0gsIEyLT8jlfEGdGQVwMy7TkzLcdYTyN5pHJ+VuaT+l/7/ahf4dPQ/iYm6wLT9P3wWmq7+A/Y= 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=cADnfjYW; arc=none smtp.client-ip=209.85.128.53 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-wm1-f53.google.com with SMTP id 5b1f17b1804b1-410ee8ed659so3820285e9.2 for ; Mon, 12 Feb 2024 06:16:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707747371; x=1708352171; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=DQX3D7uSYgu1r4rqjqsVdtDZuOmWbLq20gw1bWo5TGM=; b=cADnfjYWENZ3F6mg8ATuMPcSYp2nsj3f7t5uNRP/M3zk74zGC+5VFYTHYY4DW5k3gL PmOJHMBGTYtHM5AmjYGRFKZVF25PYlb9xtFUPa9cH2x39TkfpS9hfLQ7lFasAosDm4a2 CRMbLyDC25vyTmVsYDvVKgKLDevw1Rtexu/UJWJ+cPKVDEyus1DoBkoXQhmv1AO7j2t0 3C2rPCc2l4/bY1WislhInsvVMgjEEohpUjhMzPoUwQyVD6AIOH855rdlRVQxaH0JC/r4 tFqj/UCuVPNlMvbaCqTb3PNyeWwzi88i5UfvblUGvUgv8qwV83bZHTVWpyHWftrS15ya hEkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707747371; x=1708352171; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DQX3D7uSYgu1r4rqjqsVdtDZuOmWbLq20gw1bWo5TGM=; b=tFkG2rslvFvgQBhaUXJHoafsgH+Lpn1BiMLH3fEhPfb5Ln4r2Ur5FcsDxkSmOhV3f1 pqKN4BuJxgGjOdmXRdmFmLhlwfECiw3b4wE6HehKj5MrnuGpt95YlHgqHco9eNP2q/qo TAApLcaglln/tuD7nPkXIUKrUjTlLE/IRYyuW/Ju6A2n63u/g2rdtDTPl1xvNpFZ6+jD dbhzBuVYEmg+urTZtC2LksMJRN0TvxKSMa38m3n8m9jSmtpq2bCteJCKPU0SsAQAr0XL 0Lo/ceu3yMqWrU4IIxx+mrRpwbo9IQvegSEhklj0hDjguBSY1VSIhnHnn4WauWWmIA+d IX9w== X-Gm-Message-State: AOJu0YwP2v2B8NAkfLcEwCoyqlUYldh699A5f79A4Ufsxn6Cb9zTC+Ub P8xsFz7+zJOAqzdAZxiKmS8PuVhbj6qxvV8is5ACU+e+Lue5bUX2pmFdNm29VgQ= X-Received: by 2002:a05:600c:19d3:b0:410:2b93:4908 with SMTP id u19-20020a05600c19d300b004102b934908mr5920183wmq.4.1707747370880; Mon, 12 Feb 2024 06:16:10 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUeBs4qyXfYqxAm+ZVzlkcKDbAMLq+dtw8laFxEaT+UmhQ1yoWgcDydGlnI7B3AzVd1oRlMylYAPF2dwvnY6I3OhiZtXRb6/ao0TBv9Ie/escMhqONrkwmCzniJGd/KpbSasnGsZKEkxasVBqQSIQRcudqVXZIO8fN2HCUvqGz47xJT9W0qqIOWFYJ12e3bu+UscyuxSqeSpy84g0bhlPIOUdEuLAgZrgLsPPrNUk9qRpSz4TnsbsJQrf6+Ps4DainoGvzo8PrKEwGpwMYmeKhvWBSZ1QTmdqbL3NpAza0+S2QI2M6NsEc3QYLVWWGtKFFAxfm0Qmj4o7ax4LIqcNk584aQ4cO+iIHNFyYX/RZ8gkq5uKRC588S6dBiSUP2mk5LBPVDkp3f0rMP//YyHI6LOSsus9vdrlOCQ2v6wngIjQDSHQIubMbF5LoAt7QeSm+BrT823yw2VpjjiGmUEJyqgFNi/yRzQ2LIDwzLsBOT3ptqX1ZNfRjJC3tYY0byGOrqT0oD+L/mHoXhyKpgCQIeaeBpRFbYPY6zEtUCI1+QsxudVayqYoAjRQVJIUBxGYdzS1b17pLN/9ENb5hAnFOHyTGiFCefQwl1B9hmNxwHaXcDu1pNvWhECVrIPTfkMslib8oqBMsW/PBj/z1HOHhdA7r+Jg/JdXkob22BDMziAVXleo9oN/Y+qj11Hh0s1qkN4SfjSD3+PNn0409xkO9wqYKrnV7NP2/CgwrcxXhjGi828lzfupHwPjuM7ZL8I1Y7AtXEkuicTZIEEytS+Rn57gfQhG4Ocx+oFPxd55Sjq4/Bw5U02pg= Received: from [192.168.1.20] ([178.197.223.6]) by smtp.gmail.com with ESMTPSA id y19-20020a05600c20d300b00410e8ef51cbsm1789757wmm.31.2024.02.12.06.16.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Feb 2024 06:16:10 -0800 (PST) Message-ID: <58e45922-5d84-457a-9fe2-ccb5dcda0fd4@linaro.org> Date: Mon, 12 Feb 2024 15:16:08 +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 To: 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, Linus Walleij Cc: Bartosz Golaszewski , Chris Packham , Sean Anderson References: <20240129115216.96479-1-krzysztof.kozlowski@linaro.org> <20240129115216.96479-5-krzysztof.kozlowski@linaro.org> From: Krzysztof Kozlowski 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 m9B+DgxR+NWWd7dUG5N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Zxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240129115216.96479-5-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 29/01/2024 12:52, 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 Are any reviewers comments unresolved or unsatisfied with the discussion? I have impression that discussion bikeschedded a bit towards NONEXCLUSIVE, which was later clarified that NONEXCLUSIVE is not the solution for this problem, but maybe we miss some final Ack? Anyone is here unhappy with this solution? To remind: this is a generic solution solving at least two people's problems, probably more. It does not solve all people's problem, but I doubt anyone has enough of time to satisfy all people... Best regards, Krzysztof