Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2138528rda; Tue, 24 Oct 2023 13:37:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHblrydYrqPZrXgWdLQJf8Ev9EMSFEd4kmqyD5TwY6zE1fWMWaVMyYLS0IeucwLaVHB1zz4 X-Received: by 2002:a17:903:6cd:b0:1ca:1af1:681d with SMTP id kj13-20020a17090306cd00b001ca1af1681dmr9079642plb.67.1698179852102; Tue, 24 Oct 2023 13:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698179852; cv=none; d=google.com; s=arc-20160816; b=T8G8bJCYwZIcDmFluPS89gcWBFtvOfxtx+THF88IzaFzw4TXQWQOp9HcVFIXwN+RR1 fXUsXCRkN6PWV+/JWWJSINp8zrIXHh1Qle0PvdrKPmE61awF5IW0KdgOjBFM7qTtxdES PGjnhn5BjEMkA78U9uciSKFV1LmGi+w7LkERTx4jgAjgDXfuW978wGcCZ1FdXH9z4+lI LvmQU5HM9uh2wuLNu3B3OsdOC1Qt4k5kvvkK3zKL5kfNie2YdNF+G3OVN8HPuRnpHSVs jpgfI89HOeGLPCNypktdnF90ZusyTWt0u9ECVOrIbgDFMK31e+GPj86yjr9RF1NXzGXs MWVQ== 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=0FwYCTe9DdHIcLYoC7TeBrR6aOLTWOSZViAdPZOZIxQ=; fh=v4OcaICjnZ0NKo3O2uan233s3uC3iW0XxqJ7s0zpyLk=; b=OAsH8Do0FcdXr/gv9zgh55C/4axd9+TfndqJ6GoAGSmDyGnKyfq6j5h69IzcmMekZG Owzt7Z3OHLngHhIsRGO/35TUy+KPLuloRzWh1dQDKvQh9hd5dM+8kyD+ZSZqbxFL4j0f IdRX22uVQV+HRTunKK05HwSoDVpHeCUqFZ8RBTItDH0AY/+QsUhHSYo6wfTUNw2Vzbxv +CPXV8oyBZHk6Xv2YXv+6JI7maUbpQfZvMAAMHZKHOErU9PeENPwHevMZnI3kblxzrUt L/iQanaF8YwwHYgl2m4UeYup/XrKewlx4aZjMS3D/ZOsBRP7IPGOAOmxgheHwOw5O6af CNxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dWNQNuaY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t18-20020a170902d21200b001c9c9251e05si8380185ply.476.2023.10.24.13.37.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 13:37:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dWNQNuaY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id B396E8028FCF; Tue, 24 Oct 2023 13:37:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344178AbjJXUh3 (ORCPT + 99 others); Tue, 24 Oct 2023 16:37:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234576AbjJXUh2 (ORCPT ); Tue, 24 Oct 2023 16:37:28 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D5D6EA; Tue, 24 Oct 2023 13:37:26 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DB6AC433C8; Tue, 24 Oct 2023 20:37:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698179846; bh=x7ktYcUkMNtPmHlHAYqJ+4Z7/N2PKnK+TRSa4Xb7n3M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dWNQNuaYvlSc3NTRCuoHcnwQ/eWqsLl3FW43KutTC9zOxYR5ODKuH4KGr57SwcFeJ hzULR4rYgraQ+CtwFsbBFvLzgLydTX5Eidvje08Fjb3cDFeCMJRfdMyEuVgTtktShV 4/SMKe/28TnRflu4xZXySy71eygJpKbaSuiNunZ0AMN0JCB0fj036485xfapYfle0S JFYw2w9bwLn1InCnKXIp1U/QpV9nga2bf1c1wWbYC0spjVRk8jW123PCD7NJWuRW2x gVIVqKprj61qz9szutCcHR1dhrwWGNJ1xzu6EfHhhXc+6lk/VXNsyKjJ/wlYUE3i40 PGnV/OMXtoEuA== Date: Tue, 24 Oct 2023 22:37:19 +0200 From: Andi Shyti To: Chris Packham Cc: "gregory.clement@bootlin.com" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "linux-i2c@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 2/2] i2c: mv64xxx: add an optional reset-gpios property Message-ID: <20231024203719.bbk7g4q7e4mzar36@zenone.zhora.eu> References: <20231018210805.1569987-1-chris.packham@alliedtelesis.co.nz> <20231018210805.1569987-3-chris.packham@alliedtelesis.co.nz> <20231024191801.kofb6cbczswp7xxn@zenone.zhora.eu> <4b548124-d1d5-4746-a5bd-03757013282d@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b548124-d1d5-4746-a5bd-03757013282d@alliedtelesis.co.nz> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 24 Oct 2023 13:37:30 -0700 (PDT) Hi Chris, > > as you are working on the v4... > > > > ... > > > >> + if (drv_data->reset_gpio) { > >> + usleep_range(reset_duration, reset_duration + 10); > > I'm not against this, but it's not optimal unless we know more or > > less what to expect from reset_duration. > > > > Do we have a rough idea of what reset_duration is? If we don't > > then you could consider using a generic "fsleep(reset_duration);" > > Would it work? > flseep() would work for me. All of the devices I'm testing with seem to > be fine with a very short reset pulse, they'd probably be fine with no > delay at all. you know this better than me :-) If you say that a delay is not necessary, then I'm also fine. In any case, we are in probe and I don't think it's time critical, so that a little delay wouldn't hurt and make everyone happy. Either way I'm fine as long as you use the correct sleeping function. Andi