Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp852701lqt; Thu, 6 Jun 2024 23:48:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7vS4VHBPG6dCdVYvw8R2/D4M4ob+rzZwZhjx4JEE/OYr3yXrjKGNVwyuaB6gGCmR71u54hikKGeXuU1BILXX55XpLtzt6nR63x91vUQ== X-Google-Smtp-Source: AGHT+IGDZNB0xjfne3tFa35zGtXew2H8EfCG/Hdv41GhgVqKWvOA2C2DSeaNCRHnHz2hMDVnBnEl X-Received: by 2002:a05:6808:1528:b0:3d2:ed:b76a with SMTP id 5614622812f47-3d210f2ac53mr1997215b6e.47.1717742905526; Thu, 06 Jun 2024 23:48:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717742905; cv=pass; d=google.com; s=arc-20160816; b=fE+RP7hhs6UG8+6khTrZnVMJ9tVHEHNvwE6cC9fXNmntVmtWOjZWmop0vcgxDkGHsC H3LUHlOFB1K0BPUcAnsNNnO/Qnx4TdWcN0GyGcHSH0IUM2TS0SKMzP4prfKGVjWgbwF7 fLsiHkHpg11SlPqpuS2y7vjZMpWhZryQwGnAGVVwi5Hnd9sxtjb31uJI8WsPoJ07WEr1 8BJMog1zDofYItJldK2IGuNb7gi5G4dt1qf4U8CMJRP25hRS8WdMaw5zfnn+QEmmpAGv mp/8dWfSZ2aXtp9RwstJdjNCsRGCFiCEk8JzmObcNetFGeZOsHZUHgzYllebAqrm7v5/ P8AA== 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:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=TgM4htnI+X4TgZ0Tu9HzazlKE8pD1poXdLHXcMZJBPc=; fh=ozShIm9L4d3Chm8WcuwxYnDHWWi/UqGzmh1Jv2Azbqc=; b=NgsYThbLEuVNw3O5HAnXAQOslub4Oup11mDdRf9jjdUkAUIqguScLuS0BVFcPA47sp mSGdjJhcXjr/yDow6SmXyZJxtkltwAlegm0wFhbri/s9t+S8IdVVgeWOQHhYdkdZJCce mhsJCmW2i287KVn0CQ8F8A9MYGfbX/V7w1o9wlCOT8nPyAmLxp+z286pdLx0ZDBuOq1P duQ38v+oswoy/IzD5SYsuU1f8/Ya5ocdsLqmygKCAjbhm3IJio00vRB2Bp9LKnIShvjh QSwyidw/k/fQh7DBc8ij7Cnt70j8VlU8dCEpZZicAl7iifyIvwRreS9DMAb/MK+kEeVi wmhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UaKJInBY; 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-205461-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd4c72bfsi2512967b3a.206.2024.06.06.23.48.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 23:48:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205461-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UaKJInBY; 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-205461-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205461-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C6CFEB252AC for ; Fri, 7 Jun 2024 06:46:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 603CE152504; Fri, 7 Jun 2024 06:46:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UaKJInBY" Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 A6EB94204E for ; Fri, 7 Jun 2024 06:46:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717742776; cv=none; b=Z+2SDZeszMDLIKecrVMElY90selt8CW/2o8vK2qNDxTQXF8zGWzh62hkpWnKh4y43AhvAqck7u2i0ugU25MZRyCn1QpOnmJydSgaWT+tfG8JYSqL2NeYazbsG8RdzUw4lydVzltt0zhHSJXAi79nub1M3waV1eLw7qYe3+nb5GE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717742776; c=relaxed/simple; bh=HNv9Qs6Djj31IvEPg/GplsTToM3nXwpGglo7o2V/O9k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=p5ow/idC1sBTLv/s28T8afeSVf2KxNULuhdFAGj0HqBDg62GjvbFyVN/ytgU+j9iqDjBDeS2TA5nosF6KlD655tkz6mSwmdcwx3lCSF8i4xlSfiJwgqiL1DyJQLPlr1e0dXZhOr06stu+lKo6ZW47EN9keINAXbNfEor/LhxmrI= 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=UaKJInBY; arc=none smtp.client-ip=209.85.221.41 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-wr1-f41.google.com with SMTP id ffacd0b85a97d-35dce610207so2038601f8f.2 for ; Thu, 06 Jun 2024 23:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717742773; x=1718347573; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=TgM4htnI+X4TgZ0Tu9HzazlKE8pD1poXdLHXcMZJBPc=; b=UaKJInBYYWxXHohcjMhISgk1f6KTYS7P4Xalxg2DtBadWjo71AQtojLL/RRAYfSDA2 lpE3uBTIwVFiAvi1bikYZ4iA11thjPcAZ+aDc70M+gkWLB4LZbXpEjoJtRf3NXY9zY+I W3aQkhBlR1AiFnwhM85zLAkBlH3G73jDDm27HszcsxrXjEMDa/+Wcn9APiriYYercT2S 29F+IODozj/R3tBF6bN30YvtKxcEXcZMWL2v2ckrIWrIBYvjwdgHsPxSd/ewr5Fa33Pd 1ezL3+2cMXZrTdVN5/DmWvzpZSNZDYxADyrgK93LFc5uNNpyZSJ6w3FKxHvnS69KRhKk lN4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717742773; x=1718347573; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TgM4htnI+X4TgZ0Tu9HzazlKE8pD1poXdLHXcMZJBPc=; b=DzPkl0j4Uj32z+1FNEwX2sY4OWBkdp2NA7vNDZOlqcBLbhCk1uTrpv1f3ZTHV8uWUP NtdAqyd5M8l3XUtiO2NlrJjMfUJOPXlAMb/J5uQLP85GK06Gm9P4ylIIrs4SA08jmbO6 jTqrC/JaGMJMoLAfnfEWmzQBKhiIeAnhAcM0/DGplaLv+5PCvrsTeVcE3sAKO6ATjspr U7SDodDnGDsyuQjHv36vHn85qXJ9ADsTI/Onip66sQ6Dw1q8kDAi+Mz5xqNGUvV5hbrJ SORLpkP/+w8ODXmgegZymq5KmJyclDlk/60x1Ur8yRW32Ez5Q7sReh6EN+W+yVrzyrOR BWqA== X-Forwarded-Encrypted: i=1; AJvYcCUo8xFDOmZDtaoEgUonOH2gbLCm7JA7oz9TC3g4JfUMtcU5pubqPvg0JpedDXcmXtrqDTP9BGTXO/s05xcrBwliNxp257xsOsqeb8Jv X-Gm-Message-State: AOJu0YzpmxCazbt8NMMHCuqXEYKyx25Xz0JFn9HhqqqsG9VC9fmVYAd5 YqJJfmYJnSXLEkNeflNs6LELmrOhBNNaAwdPyPfFI4SRKaQnOeZxNQh2Jn3lb4I= X-Received: by 2002:adf:fd08:0:b0:34e:93c1:7979 with SMTP id ffacd0b85a97d-35efed5d77dmr1461398f8f.38.1717742772977; Thu, 06 Jun 2024 23:46:12 -0700 (PDT) Received: from [192.168.2.24] ([110.93.11.116]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42160a19ae5sm30662635e9.18.2024.06.06.23.46.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jun 2024 23:46:12 -0700 (PDT) Message-ID: <31a9060a-aef3-4b1a-8db8-ada5e57833cc@linaro.org> Date: Fri, 7 Jun 2024 08:46:10 +0200 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] i2c: muxes: pca954x: Allow sharing reset GPIO To: Eddie James , Chris Packham , peda@axentia.se, p.zabel@pengutronix.de Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240311041412.3858710-1-chris.packham@alliedtelesis.co.nz> From: Krzysztof Kozlowski Content-Language: en-US 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 TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRL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oAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 06/06/2024 23:58, Eddie James wrote: > > On 3/10/24 23:14, Chris Packham wrote: >> Some hardware designs with multiple PCA954x devices use a reset GPIO >> connected to all the muxes. Support this configuration by making use of >> the reset controller framework which can deal with the shared reset >> GPIOs. Fall back to the old GPIO descriptor method if the reset >> controller framework is not enabled. > > > Hello Chris, Krzysztof, > > > This change makes it so that the reset subsystem reset doesn't behave in > the same way as the fallback gpio reset. The gpio, as part of acquiring > it, gets set high, and then set low in the mux driver. So, the device > reset is toggled. In the case of the reset subsystem option, the reset > is only de-asserted (so the device is taken out of reset). > > > I'm interested in preserving the previous behavior but with the shared > reset line. This can't be done just by doing "assert" first because the > shared reset subsystem doesn't allow that. So the reset-gpio driver > would have to implement the reset operation - no problem. However, how > to specify the wait time for the reset-gpio driver here? Something like > the simple reset driver maybe? Or a function call from the reset > consumer driver to specify the wait time for that reset? You can check my slides from EOSS/OSSNA this year: https://ossna2024.sched.com/event/1aPvr?iframe=no maybe links to original work will help you. Best regards, Krzysztof