Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1379920rdh; Fri, 27 Oct 2023 12:23:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXhlgExK2OcpPkbCV7m3cdbVZKzDX3Lyzz3717jQY6flC+fxCh0n0htFwOVXHQfSuGcRHz X-Received: by 2002:a05:6870:be8e:b0:1e9:f9e5:d34e with SMTP id nx14-20020a056870be8e00b001e9f9e5d34emr4407224oab.15.1698434582656; Fri, 27 Oct 2023 12:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698434582; cv=none; d=google.com; s=arc-20160816; b=XdR1mjTsHiP6TKPc6Gb1cntGliHkKow2NphSqXIOeJ5xAtR5XlJtxF2n8RqpYe3Q9J db8uJbJBg6KPRELNiP0vIoAcxASgP8sOcUzXNR7AAM3t5A/q+SkpopgZlvLlY+xZEsY1 O4TvtdX46lCLMvPLLa2IFgjq1QfEC080zxDO+Tb0SJu4wvicoaRx4+uC486B4modAUih SJNDOVBqlxxcM2Rmdv/88+ARoqoQbpz50pqR1BHCsjPVPYumxh9iN1eGJGagTm/EpSqw oLbtzYKJ0RxG6F93+UH3nR1KQO+I0t32Aw00HZa/2UVVfz+jSrDo4xIKgkKQPrB5k0kB TvhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=A9jsGRebq8pjluBKi445sl0SsEqPdZ2Zl/0kDDzL9uM=; fh=E6w+2vgg95pwcf/yrS91h5uTfA7/ZNCKwW9sg+KpkVQ=; b=CLEXVZ4ZtcrV7RU34K2Tx06GYkT0u988KAxgiBd7ii0VRJzdhg3yhb22KrIIf0F3du r3h6T/+36XKwKqXpIzW5YhG5xq1g5IhJo4CcEvebr/EnyEgeSO+MZvO4/IPGa1GgX43V 45uWSZlTlRuiD9Q+BeuMHurgV2JG/AkMG/izya/KKsS469fMJCEgEVdBrX5ePb0vXmok 6hDPSk0CzpsCdLncINfcP6hnOYlPFAmsQgn2V1ceySY46SEVN45e3cSwyspjxXvfRWLc /TYdZKkGsL78QJfYI0xxRAYT443+K8jV2WHbeUrZRsnDNhmHCapiJ5hOpy8DCbej19Hy JyDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id a2-20020a0dd802000000b0059f5772c1f3si3428084ywe.129.2023.10.27.12.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 12:23:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AB2ED82CF106; Fri, 27 Oct 2023 12:22:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231484AbjJ0TWn (ORCPT + 99 others); Fri, 27 Oct 2023 15:22:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230451AbjJ0TWm (ORCPT ); Fri, 27 Oct 2023 15:22:42 -0400 Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36A6818A; Fri, 27 Oct 2023 12:22:39 -0700 (PDT) Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1e5bc692721so1448839fac.0; Fri, 27 Oct 2023 12:22:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698434558; x=1699039358; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=A9jsGRebq8pjluBKi445sl0SsEqPdZ2Zl/0kDDzL9uM=; b=ZPaqGMLoGsU5CRBRi9UtF4mI9UdY6gQaiW+pxIq+wy/lKVS2fZZOjn4wPGpd2pCWOv C/3X3PjVNotwuOLMUV+t0Cwysf6184Vp34yODSomWjalKNs8pWlUloq2fEs93+DyicZ3 P1njzd2Pl0IkOhbTFAnbqqF6LxwgDxSJnLjLfSGG2Hm8RggMmTDbFjQpHQbDTvzmhM6X JVPd361m5UkPL+5VrJTscZXZe63FUMs3sq5weFOja+lK08jVQgSvKHZAztSnfcHWvwL1 +ZsFpnPmUgoCcTIfSVv5sq/3+tFcKnP6tDgaKKdbsFFEV/VVJm+h6w8RDmPqcbFnQhAm rp8w== X-Gm-Message-State: AOJu0Yy3nfjTCGtWbsLmVEiItVJVAjoNlo25ZLwGukayA4PxrKBjOOI+ +F2f06iEyAK/oYUu3sSUvw== X-Received: by 2002:a05:6870:582:b0:1e9:f4e4:2882 with SMTP id m2-20020a056870058200b001e9f4e42882mr4189126oap.38.1698434558282; Fri, 27 Oct 2023 12:22:38 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id ea53-20020a056870073500b001e9ce1b5e8fsm415203oab.15.2023.10.27.12.22.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 12:22:37 -0700 (PDT) Received: (nullmailer pid 3086934 invoked by uid 1000); Fri, 27 Oct 2023 19:22:36 -0000 Date: Fri, 27 Oct 2023 14:22:36 -0500 From: Rob Herring To: Krzysztof Kozlowski 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 Subject: Re: [PATCH v5 1/2] dt-bindings: i2c: mv64xxx: add bus-reset-gpios property Message-ID: <20231027192236.GA2946793-robh@kernel.org> References: <20231027033104.1348921-1-chris.packham@alliedtelesis.co.nz> <20231027033104.1348921-2-chris.packham@alliedtelesis.co.nz> <7bfa2f6c-3e99-49a6-9b5a-81398d4bce7e@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7bfa2f6c-3e99-49a6-9b5a-81398d4bce7e@linaro.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=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 agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 27 Oct 2023 12:22:59 -0700 (PDT) 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). Rob