Received: by 2002:ab2:7104:0:b0:1f7:f6c3:9cb1 with SMTP id z4csp1619lql; Tue, 7 May 2024 08:15:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJuZxCd/0w4WCdnR39Yiw/mNA7BMILcbS4WYnku1cZJs2f2XAgFfKBUXohf8RFeVFClW1M1iczYFLNnK8Y86RvbYePEHE9DTGcyh9wAw== X-Google-Smtp-Source: AGHT+IH3OROKVuL1RWcdoGXAJ9lTOIwxApGy4T6zVyeOU0Y+e8IvRlMAHHj+EDLKu1JBgjZmBWGO X-Received: by 2002:a17:906:6a05:b0:a59:c3d0:5508 with SMTP id qw5-20020a1709066a0500b00a59c3d05508mr8962261ejc.35.1715094949450; Tue, 07 May 2024 08:15:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715094949; cv=pass; d=google.com; s=arc-20160816; b=Iwnlf6lOltCXDc6jdMvD3iYtdollHIgbKKPpVNhG5FFfcYA/VWpUROupIjOg7tfLRY 6mC8FdI5zzSUXv8IT6f/DPJnkbIplHlQPreJt+w7OLh+6TAB/14JhrVy3egnZZZ9HkFG Awc8qve7t8eu0ObONIlBdIb6sMmT4kBpcZ2tgdk/prQs3HRwI99WGlXaGSboNPutWnFP hYSTW5/VIyjSdJf2Q72iXia7OSCDhMIfwshWZw0vw/wIMuNhaB0oCz9Dbws1Yj4KDqZW fUfOtlAFPT+DsRpifn/J+GM2bvEwFDhk4rDke2s0L1Xn5Pkb+symfIg6EVim6/julDz9 Bh6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=S7FZfc6xw4lPQTzyUD3m97H/jam1cU8xFQ1GeRay7ZE=; fh=LqXStzZQsDG+l2vX5We/itClVRnXBfVNNYGf8Qhoiw8=; b=QQIX/ynHMwyrSOXOxL52MWX+Fgmkxz+q/Ry+41SmCJLPLHqk813IYEay6G2lPTHGZO j1bKTS5CYT6o4gOEW1bjkFBc4wDVOCToeM+5/paS5VIW5WxFA+Mz5fDczG3fAGVS7Pnr oFAa/uXfcgUkelypNbmi2rlv22lj0F7Ll0bIq76wRbf5QY4yfIJR8wkbD/tz+MEWEKXZ 70Nm1R9lAM89pv5dlIiLk/O82bJnN7wyQjqLNDYJvtXJ/pBFph3Dl+004rDKNSq8k3q0 dproxgWBXuaX9TRQn2dvmg/jG7qwjN2sKNn6Gu3dAaYNXheek4CxbXFAvlBseJnI/XSz cm6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N5bYQe1y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171674-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jg27-20020a170907971b00b00a59be55be48si3426675ejc.744.2024.05.07.08.15.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 08:15:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N5bYQe1y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171674-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2D1991F26F3D for ; Tue, 7 May 2024 15:15:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17A231649CC; Tue, 7 May 2024 15:15:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="N5bYQe1y" 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 1E3A1161914; Tue, 7 May 2024 15:15:34 +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=1715094935; cv=none; b=SAeASRx6DGtHNLU7eKuU7xj8OZA4QObBEJR+sNgE8wEVGZ6MQ+ZmhuW+l3Y4U/OuY6yC634HlwMs/oNHctCFeVZIDyRN4NJ5yxhAUds1kKklVqEFYdAToxtN/Q9Si2ZKpCTdYeicrtSTKTN/CQuf7lTC1jfKb5aUNA4nXbr4RVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094935; c=relaxed/simple; bh=AF0IG7U9yLaf0TKDjmv2oW0NAZ5Yv6qM/EdNBZdaA+M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mlVw9IiUfBF1wfQKbuFtX3twj1dIX2BJhw316lCgSaRzfO7SNA42mHAgr9qfx9KkkvOv5n9Mn9o2WxdaiAR4Sa2Ft9yo/XDKNC6zcMfpyLYXWmzBftwJdAi2hwo3NDs02m1LAo6g3bGAom5bHxhlsxquJqkpJcgHCoxtnEviAqs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=N5bYQe1y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F331C2BBFC; Tue, 7 May 2024 15:15:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715094934; bh=AF0IG7U9yLaf0TKDjmv2oW0NAZ5Yv6qM/EdNBZdaA+M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N5bYQe1yIl5osdfHFh58czWgmEpherJOCYDFqdQqTSJ7s9wfmt+AOOJ1/l4Q3g7qJ vTYfylx128AP7P4/AAQsV3/EN5mNgSQCUu+TZqLAKJuSPeeId8hMMt3GIHGzoH4QDi kOL+KBP9mQb98GY7LtAVJgqC3Tvg8blVd/wK7KReF/KwDNCbcWbXk3Fs3sO/D6F6ly txyM8vZoxtvQ100G2Y65/qu5S2X/GfOj6BGaLAuQQdJu5r4AR8KnDAmPDE2lTl1s36 hSLVUzZkp0CyUMG88QDwF59bHtFI9sMLAu250o1l8Od8kJLkOQOXJjQUDUTgoPx5OD 5frM4STFkxL8Q== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1s4MXY-000000004ZW-2wmP; Tue, 07 May 2024 17:15:36 +0200 Date: Tue, 7 May 2024 17:15:36 +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 , Stephen Boyd , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH 03/13] mfd: pm8008: deassert reset on probe Message-ID: References: <20240506150830.23709-1-johan+linaro@kernel.org> <20240506150830.23709-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=us-ascii Content-Disposition: inline In-Reply-To: On Mon, May 06, 2024 at 09:57:07PM +0300, Andy Shevchenko wrote: > Mon, May 06, 2024 at 05:08:20PM +0200, Johan Hovold kirjoitti: > > 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. > > ... > > > + reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); > > + if (IS_ERR(reset)) > > + return PTR_ERR(reset); > > Shouldn't you wait a bit to make chip settle down? Yeah, probably. I actually asserted reset here for a while (e.g. to reset the address), but didn't have to use a post-reset delay then. I'll see if I can find someone with access to a datasheet or maybe add some small delay here anyway. Johan