Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1134607rdh; Fri, 27 Oct 2023 05:56:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTAFaaFCs0i+XvSLW+7VifrULSoqBO/3JHrrW6GKKU+8eM5LKPopPnhBK9NZv5tkx0anPH X-Received: by 2002:a25:d115:0:b0:d9a:bd06:f252 with SMTP id i21-20020a25d115000000b00d9abd06f252mr2592452ybg.57.1698411364904; Fri, 27 Oct 2023 05:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698411364; cv=none; d=google.com; s=arc-20160816; b=g5ZlDZlJ91+zsPQNOz1WCrJ9OcJn3yGxBnFq8sucKhVX9mPTOpdrPum/3xOHpHVC46 j0Vyj92jBhoFEUoslsP+szbB0Ctk8KXClLXB7+8leJGF3b9EB0aY4qBRG2zQSEjSlwqQ L8K7wnPAOu/kP0bruBOMyqLa5KqScq3iww4oG0Q3aw/+5lPTIYfDu4XN6gdJPNfSqtu7 B1RoJgYZ0UGJTVqCv0A4OBEQZZPjkfEXLd7+mFi9gNlXBvzykDaI80JcMyDwIm1lK2Vl QRCwiI/6vxfXFZ+LsT+EmGev5n918hdXvMEULRQiU3uPLqC9mPTHZWkRHIp7k06ezqxW 3I1A== 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:dkim-signature; bh=s0jJot5L88xoGMvrZ84ceYgYUwI706O78SCpeHQGy3o=; fh=ZSn1zMF1ka/9O81GGE1upWhJSYv3sPaVDd2p2V4vym4=; b=UiLsxJeL2DIdxK2OOc7v1w4A4ODhnYaEuAK+eGWlyE3/ERoIvmnqrDoqWs6fJV24Oe c1VyZkuE0OCgH5Xp3CQh6KReFi8jEEitfXkZEG8XAWmQwx4ubSt5uMGbAkVEGcBlmR2L gQvCqdEu0gNiZ/pOPDjdmg43fkltTYgXh2RVGd0lMCBT0GU1dbrgyPiCEINhWo9SuSjj el1Z/rNQ+q1T/C4NqcsTlW+RWP/vntDO7aZKX3/1cHi5ZTP5bk/etDyJUgJSKog76dr5 a8HDdZZ+oDPbTW8ZIWET6LCKiFTh5rwvOsoX9E/bewGSelwW6KLKxdraOomtXYDMrGo2 L1JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T3uPk2Wa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x9-20020a25e009000000b00d9a3811276asi2695155ybg.604.2023.10.27.05.56.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 05:56:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T3uPk2Wa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 817C3816F0C8; Fri, 27 Oct 2023 05:55:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345658AbjJ0Mzr (ORCPT + 99 others); Fri, 27 Oct 2023 08:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345541AbjJ0Mzp (ORCPT ); Fri, 27 Oct 2023 08:55:45 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30D161B1; Fri, 27 Oct 2023 05:55:43 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40D6DC433CC; Fri, 27 Oct 2023 12:55:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698411340; bh=wSX3hZkZaTrYS5zn46sQAvcYVUlw291hdHsmheCFw7A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T3uPk2WaIv4i+lUBOQtRXwUHb6Q58T0/wvONVvtFSn1Maj2zynMwpNQLYcJMhojwb m4OF8V5DmUPf5d9ZqiJvGGXq1kmX0DYJhYCkDy8aOYjXbpOisO7srwSCXzBgOKt8Y7 cuG6nloPsP8cLC46m9ETXxE4Q2kfi03LdjvVovY/QfoQoTiWHILg0XA1pMsnBvHcpz bSCYynI2H3pxPJ9goZ81qdQrFgDxJqSvn/ARGKbLQGp+tepha+6nJVrzD9agmDzh0f USBH9Ou1z9sp2GZDdfEnonBMQhPzlmnxvxohAj/G8Huch9rDMnltoNcnWRILfLMQin 1wXMMhIWCtpqQ== Date: Fri, 27 Oct 2023 14:55:37 +0200 From: Andi Shyti To: Krzysztof Kozlowski Cc: Chris Packham , gregory.clement@bootlin.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, Abel Vesa , Mark Brown , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/2] i2c: mv64xxx: add an optional bus-reset-gpios property Message-ID: <20231027125537.5d5cu3wc4r4c2yb4@zenone.zhora.eu> References: <20231027033104.1348921-1-chris.packham@alliedtelesis.co.nz> <20231027033104.1348921-3-chris.packham@alliedtelesis.co.nz> <65911ec0-e073-435f-846a-c5501dd5d3a9@linaro.org> <9eebec9b-e6fd-4a22-89ea-b434f446e061@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9eebec9b-e6fd-4a22-89ea-b434f446e061@linaro.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 27 Oct 2023 05:55:58 -0700 (PDT) Hi Krzysztof, On Fri, Oct 27, 2023 at 01:37:05PM +0200, Krzysztof Kozlowski wrote: > On 27/10/2023 13:27, Krzysztof Kozlowski wrote: > > On 27/10/2023 05:31, Chris Packham wrote: > >> Some hardware designs have a GPIO used to control the reset of all the > >> devices on and I2C bus. It's not possible for every child node to > >> declare a reset-gpios property as only the first device probed would be > >> able to successfully request it (the others will get -EBUSY). Represent > > Cc: Mark, > > Also this part is not true. If the bus is non-discoverable, then it is > possible to have reset-gpios in each probed device. You can share GPIOs, > so no problem with -EBUSY at all. > > The problem is doing reset: > 1. in proper moment for all devices > 2. without affecting other devices when one unbinds/remove() yes, I thought that we could get to this point, but I did not object the patch as I didn't see an immediate better solution. I would still be OK to merge it until we develop something better. Let me mull this over and will be back to the topic. Thanks, Krzysztof! Andi > The (2) above is not solveable easy in kernel and we already had nice > talks about it just few days ago: > 1. Apple case: > https://social.treehouse.systems/@marcan/111268780311634160 > > 2. my WSA884x: > https://lore.kernel.org/alsa-devel/84f9f1c4-0627-4986-8160-b4ab99469b81@linaro.org/ > > Last, > I would like to apologize to you Chris. I understand that bringing such > feedback at v5 is not that good. I had plenty of time to say something > earlier, so this is not really professional from my side. I am sorry, > just my brain did not connect all these topics together. > > I apologize. > > Best regards, > Krzysztof