Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1141800lqb; Thu, 30 May 2024 01:08:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUF0+esKxLSVlKkdSJ6OVOKpJ5u9SM3qpdcsNjx6pZSjNFD5Z3aWrqeebkMWCocl1jO2kjnjytrgowwGvozmtUbvMLrVgMhXaFV6ghaEw== X-Google-Smtp-Source: AGHT+IFNAZW/MKvZRwN7ahF85wxqxUM52cBd7FZAhGHMB1Y4CCnmI5vUlt+ihNjHLlYrjL/bEP3j X-Received: by 2002:a05:6a20:8410:b0:1b0:1a02:4128 with SMTP id adf61e73a8af0-1b26451a2ebmr2261979637.6.1717056488760; Thu, 30 May 2024 01:08:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717056488; cv=pass; d=google.com; s=arc-20160816; b=mi0v/tA2uSC7Au015yPYTOvLSUlAwXjA1I5YWHPvjPRFEyCnzDaP2bJ4aLdPnXzupv KwFUj+HOC09AEfd4Yt4maOneegaZgJxLxqNV2crj2/pefLb0cNW/0o+aMI4F7JEJEJI5 zu3aKBtLd7vzxlgwAoI6vhnQKPz0hHTVjJ87X37XM/MSNBpIDXUPObEe0GRvmKmtjoBB HNQukidSDGjliYC3ZQE25UrQjdsqEYpv9k6yhZbt6ncrYhNfuEN5I58l3uCF+AJbugde Pz2IwumJ/DYi+C7rbqn3hfnnLMPIE78bnb8ws9SXQ0vWGHiwDJ1wHWCLFcD6QkkftoHL M+EA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rzSHSRtjWW2oSN5ytRRMCYBxJM+Kx3T2DlX+MkDnSGw=; fh=KUuPOpw0IyM8pbeqiieZ62jf/DwruDIjwoIl6lgdu1o=; b=QTMCaPaWxowaqgaoYaCYbVggCCsyuzxL+EQBOVekF+d5GmfnZTlxKP21LwDokuq0pz McDpVl23xChHVWj9USdf/3TGMe+Ku8p5pCZmx2md0G8R076eYY7OBIJRvyrsTEkBHKAO iWfDgNYkCtmBRPus3wAPCt+P7VuteSd+E+XrH2mAyZbcmtXU2PiwXaIgut394UPP3J07 OvQkhsWTSCZjUJd9Gmeeezhy9mBdMxciVAVkF6osgImHLvM3hAAs6zHb23U/diR39FAf qQ7Ra8Une7mAAvcPOtp+R6jrrWOEfIq8AjzIplp12jAou3CBEXjZrhelMAm0CQrwtG// SXbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QVZjzg/B"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195040-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f61e7a4438si6819385ad.282.2024.05.30.01.08.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 01:08:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195040-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QVZjzg/B"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195040-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 28FEE285923 for ; Thu, 30 May 2024 08:08:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A6681482F6; Thu, 30 May 2024 08:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QVZjzg/B" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FCC3176AD2; Thu, 30 May 2024 08:08:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717056480; cv=none; b=d0Ib0/BE9YpLb7oEniJMgkxFTmbHMzAZx8oNB/ySCV6wf5xaArubd7k3Y1FNjHKNwUk8clj7LpoImKZx0EEZL1gZhS20NI/h3BMEcNuyqImcjo6jcgsTp5GSEo9i9344hj15kQ47ykwBcVC1AlOXAesadqAyvn9tpEwD+0nv4SM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717056480; c=relaxed/simple; bh=w3n/45oEbfFxqAimcpQO8TVqfQH0H9GcJTD+Mjl8Uws=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D3i24oARTvVji0EYkVfeBegea1fPx2sXqebE4NoJqIbpYLvL378ufqy/EZjprD5BOPA7M+Jf6uc/YJWMg5j3N/fQ88cHTGKwP5rNJecH9Q2HqK/6AkAmZ74m2UGcnF13WugnHs459aWTlK0wZkfUUvp4nmP9Ksd7U+3pWsh/iWE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QVZjzg/B; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBCF6C2BBFC; Thu, 30 May 2024 08:07:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717056480; bh=w3n/45oEbfFxqAimcpQO8TVqfQH0H9GcJTD+Mjl8Uws=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QVZjzg/BAZiQfiiRbD6Qnn+nr/J4kHDWwHOuGGXaQ7T0c2FqPKxSm8/+MOVVZ2Rl4 h3rGiyv/30nVz38en6eL9wOF2Y7r81592fYEEP+VYzdgMA34WO5vquzfFUJdBDRJPN nc/wB6n9uW2gRyCiu+Z3t5xa3e2zssCiXEJy/KkaVxsH4XcTdkvMQF9/9uY8R6UxEp wiJph6hi9dTWGhqPFxfn1uQ0G2MCh+CEw14P1vdZ/RcQz+WLexI0jAZzJM8rnQjMnu mcra1kbWhcbWxe9KVipWDqYbBKtZKXKWbeFOq8jIW6EL+ieg1B7eIEptH4/VGU6k8g Etj13hWw9nkqA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sCapK-0000000041N-3p0D; Thu, 30 May 2024 10:07:59 +0200 Date: Thu, 30 May 2024 10:07:58 +0200 From: Johan Hovold To: Andy Shevchenko Cc: Johan Hovold , Lee Jones , Mark Brown , Linus Walleij , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Das Srinagesh , Satya Priya Kakitapalli , Stephen Boyd , Bryan O'Donoghue , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH v2 03/14] mfd: pm8008: deassert reset on probe Message-ID: References: <20240529162958.18081-1-johan+linaro@kernel.org> <20240529162958.18081-4-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, May 29, 2024 at 10:45:40PM +0300, Andy Shevchenko wrote: > On Wed, May 29, 2024 at 7:30 PM Johan Hovold wrote: > > > > Request and deassert any (optional) reset gpio during probe in case it > > has been left asserted by the boot firmware. > > > > Note the reset line is not asserted to avoid reverting to the default > > I2C address in case the firmware has configured an alternate address. > > ... > > > + /* > > + * The PMIC does not appear to require a post-reset delay, but wait > > + * for a millisecond for now anyway. > > + */ > > > + usleep_range(1000, 2000); > > fsleep() ? No, I'd only use fsleep() when the argument is variable. Johan