Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1637876rdh; Sat, 28 Oct 2023 00:52:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPTpHHtdKr0/CNrewe0QeRtzbu/CfMbjD2fY0N5Cg6E8uBJ524UbhIbBiNz9cnlqDScHEV X-Received: by 2002:a17:902:e80a:b0:1c9:e774:58d0 with SMTP id u10-20020a170902e80a00b001c9e77458d0mr6044608plg.34.1698479545689; Sat, 28 Oct 2023 00:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698479545; cv=none; d=google.com; s=arc-20160816; b=jM2uBi9tqvf29XcbEqXwJ8yL3lpFkS33kwn2THvGOLvSnTTcJzpnLaGevauNSGbhP2 QKhmXv9ryh9XwCLG/c6UcjY23gpYRlTzV/pxW2Ye2m4hE5Dg/PQikQEkYLgHsmG9sS8I J2YAJf+8FUIzxGdpYCehKQ5ovUtxd8etOwMBXT9lI9VE1ztnAVZXruqrC5oXhCT4yszm SaC+ICihVemV80tfo7E5sub2GIu/Ts3657xsaWy8bc/h5EkkkK3atdek/caQnNiPH7iL LBnXUfRYYxrwV6WLoL7h0Nm2ZAnwv6k1RxHS2+kaVmukQoCbeTHRP0fM43nUFLBnXCxz Ja4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=JGrC62Cz8tBAzGwSj9i2LT+uBMbAYtDqXM1Ad8lHqzA=; fh=Xh/JbaHoXinZpScBoZ5Yeekx59pc90Eikj5MsLMCGA8=; b=Lf1iMI89IxCvwiOu0+3r3WQO0Z9SVtyRGFUuayHIqo34jRn6NZKte0dr6MN51Ih0Lx ivIdDfzjYg1nbnF9/qnMBJRKeyWnQ94UV4lr/BhyyKp971f7n1TWrTR0Cy3E9d+bSedv 4HKXUElPnnUm3XrDvVxg7PcV+MEKgkGHGZ0SIhDqB7o70WPNrfHOm1rwAPzQrugU/nzt fEydHMvh6u/5xRf4KPnO3ypoGuNcvruZ2x/B2a52cBPFJ+DrB7CLBUG8pX8qWi5j13wC j+JV9+caqQlVDqYXcwx04kE3usQWCTJaQyNXq5LSnHsjSOmmuQuYoSCbeeDm/P97EfoA 1snA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nFtVMIlF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id j8-20020a170903024800b001c5fc13fb2dsi2272103plh.294.2023.10.28.00.52.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 00:52:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nFtVMIlF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id AC96C832D707; Sat, 28 Oct 2023 00:52:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232134AbjJ1HwH (ORCPT + 99 others); Sat, 28 Oct 2023 03:52:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjJ1HwG (ORCPT ); Sat, 28 Oct 2023 03:52:06 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA52DFA for ; Sat, 28 Oct 2023 00:52:01 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-507be298d2aso4081066e87.1 for ; Sat, 28 Oct 2023 00:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698479520; x=1699084320; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=JGrC62Cz8tBAzGwSj9i2LT+uBMbAYtDqXM1Ad8lHqzA=; b=nFtVMIlFIFf+8sR4R0XlHbvtZelA+ycLPD0/c6bX7KTdr3K3QI5iUX90HthCcRi2zw syLOW8hYeIjKuvdfkTJI1pMC98iQ+v7zMI0YEGJBFz99C1P0GPf6SUM0e3OQXICp8z+1 2UGrHS09+YHdsglqN+3XaE7Pkpk47wiuRS2ik087e5BJDhDgHNDEmU29U8pcys0NBshX KgzaDEEgA6VaexT8QvQJkm1A5PIxwgRwVAbAf3qaUz+vc1rwL9OpLC1AhQacJPqImwMj dYIc6hJJK2fk+Aa4ztatdTGrqObzi8LBye9EjQ0ikupuE5wGOFWveta8N4qq4IG07Xzl z9Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698479520; x=1699084320; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language: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=JGrC62Cz8tBAzGwSj9i2LT+uBMbAYtDqXM1Ad8lHqzA=; b=rhkG+8JH25rm3cydnloZ0Mn3NEmQtHbBqw14PI6IdC8oRefyvLrTjRs5FFLUdgHEkK YwLL31/pLnj3X7hnqt3Xl3j5DXGGmIJfYNI7LV5xK4ieiugiiI0WyL+1R+vvtC+0aFJL D/NyiMVOVj0nwPIj5WVkOTWeiZ4z8y1yx3Bo504dO37+jVKF2tJ61yZi9/J6/kWEpATg UX1tWcM8uJ718/nPYJKVMhpoyKMRgueCumg9ThpqCQJ0JBN5bnxuJoMcsWpKyzz1hFQ7 GkzxTFFREvqPd4RRfAxa8xjIHzA9+yZ4St6HG+bAM5IUzjBUrEU3VSFXl2k5+a8LK18A e3tQ== X-Gm-Message-State: AOJu0YwDKDxTJr9qKjE7DGPsZdeJ2HEanwxSf3Q+XxZOP+FIkT+JXfWR qZmu69Jl2FpFYVm3FjDnM3tp/A== X-Received: by 2002:ac2:446e:0:b0:4fe:2f8a:457e with SMTP id y14-20020ac2446e000000b004fe2f8a457emr3252303lfl.43.1698479519924; Sat, 28 Oct 2023 00:51:59 -0700 (PDT) Received: from [192.168.0.22] ([78.10.206.168]) by smtp.gmail.com with ESMTPSA id f9-20020a19ae09000000b00507ce053ca4sm561987lfc.66.2023.10.28.00.51.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 28 Oct 2023 00:51:59 -0700 (PDT) Message-ID: <7260268c-c646-426c-90d6-edd1fc3e1f46@linaro.org> Date: Sat, 28 Oct 2023 09:51:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 1/2] dt-bindings: i2c: mv64xxx: add bus-reset-gpios property To: Rob Herring Cc: Wolfram Sang , Chris Packham , krzysztof.kozlowski+dt@linaro.org, gregory.clement@bootlin.com, andi.shyti@kernel.org, conor+dt@kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa References: <20231027033104.1348921-1-chris.packham@alliedtelesis.co.nz> <20231027033104.1348921-2-chris.packham@alliedtelesis.co.nz> <7bfa2f6c-3e99-49a6-9b5a-81398d4bce7e@linaro.org> <20231027192236.GA2946793-robh@kernel.org> Content-Language: en-US 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+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC7V6GGOQMYIT5n3OuDSzG1oZyM4kyvO XeodvvYv49/ng473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text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 28 Oct 2023 00:52:22 -0700 (PDT) On 27/10/2023 21:22, Rob Herring wrote: > On Fri, Oct 27, 2023 at 01:25:56PM +0200, Krzysztof Kozlowski wrote: >> On 27/10/2023 11:09, Wolfram Sang wrote: >>> On Fri, Oct 27, 2023 at 04:31:03PM +1300, Chris Packham wrote: >>>> Add bus-reset-gpios and bus-reset-duration-us properties to the >>>> marvell,mv64xxx-i2c binding. These can be used to describe hardware >>>> where a common reset GPIO is connected to all downstream devices on and >>>> I2C bus. This reset will be asserted then released before the downstream >>>> devices on the bus are probed. >>>> >>>> Signed-off-by: Chris Packham >>>> Reviewed-by: Krzysztof Kozlowski >>> >>> Krzysztof, are you fine with this change? >> >> Actually no. NAK. >> >> Not because of the naming, but because the new name triggered some new >> paths in my brain which brought the point - this is old problem of power >> sequencing of children. >> >> I believe this must be solved in more generic way. First - generic for >> all I2C devices. Second - generic also matching other buses/subsystems, >> which have similar problem. We did it for USB (onboard USB), MMC >> (unloved MMC power sequence) and now we are doing it for PCIe and few >> others (Cc: Abel) > > Unlike the others I2C doesn't expect to access the bus/device before > devices probe, right? > >> https://lpc.events/event/17/contributions/1507/ > > Oh, good! > >> Current solution is heavily limited. What about regulators? What about >> buses having 2 reset lines (still the same bus)? What about sequence? > > A more complicated case should be handled by the device's driver. If the > GPIO reset was not shared we'd be handling it there too. I think what's > needed is to solve the shared aspect. That's already done with reset > subsys, so I think making 'reset-gpios' handled by it too is the way > forward. That would handle the QCA WiFi/BT case I think. > > I'm not sure waiting for that or something else to happen is worth > holding up this simple case. It's not the only case of a common reset > for a bus (MDIO). I argue also that this bus-reset-gpios is not a property of this I2C controller. IIUC, the I2C controller does not have a line to reset all children. It's the children who have reset lines and it happens it is shared. Just like my WSA884x case: https://lore.kernel.org/alsa-devel/84f9f1c4-0627-4986-8160-b4ab99469b81@linaro.org/ Best regards, Krzysztof