Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp82326lqh; Mon, 6 May 2024 11:58:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWd1Fhur1mmEqLzX/WazyZ4zYYr9hmrkkufJ5VwE14sH9TutEwkRRN34odS5MbYf0A3BThQ6g6NBrlgkuKmTylmiE130FFyFSTu31E9eA== X-Google-Smtp-Source: AGHT+IFwUWR+hQlATtOXJGoapKo2rjT6RVlKESLCB7OcmSyn2WCoyVDLbt2WVIBewMobOq7RSHt7 X-Received: by 2002:a50:a693:0:b0:56e:2cb6:480e with SMTP id e19-20020a50a693000000b0056e2cb6480emr9298391edc.38.1715021916280; Mon, 06 May 2024 11:58:36 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id xo22-20020a170907bb9600b00a599f472637si3732071ejc.551.2024.05.06.11.58.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 11:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-170316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ECF681F21399 for ; Mon, 6 May 2024 18:58:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AC8C1591F7; Mon, 6 May 2024 18:58:20 +0000 (UTC) Received: from fgw21-7.mail.saunalahti.fi (fgw21-7.mail.saunalahti.fi [62.142.5.82]) (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 4BE30158DB7 for ; Mon, 6 May 2024 18:58:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.82 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715021899; cv=none; b=Xuys1NfosUiCjEihEcwGM8+cthnnQKWELxJeTwkdFz0N4xQvGb9FYG7LkTkoCxIqDoI/fThnfSXrNSZZVDxFnGr7k637H0c51dRroXVnXJZloo3rz1ziIC121ehy/jLzXkLBJN/CQ1U2SC8mEyhceK9yGfo1JfujF3wUsEyopDo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715021899; c=relaxed/simple; bh=J20Je3Zl2WUSUaB+UdJsru3txq1hJF2mfkkZNQTlaQk=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GLWKcqvvDsm2ZcPPE7HWyTebmhL8lChWy/nRjU/hks60TrvTqdh1bwpq3O0w1dVDhEzNzWvW64G0/m8q1ipOzlnr1GLBRFmXf0FwzXAP3LK6ZKfhZeMoKRfMP35QuD4Bg/w7TU2249J2X2v1W6HB8kTMZMCb7/lOH5Ib93EvRMc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-25-208.elisa-laajakaista.fi [88.113.25.208]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id 6f9ad5fd-0bda-11ef-b972-005056bdfda7; Mon, 06 May 2024 21:57:07 +0300 (EEST) From: Andy Shevchenko Date: Mon, 6 May 2024 21:57:07 +0300 To: Johan Hovold Cc: 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: <20240506150830.23709-4-johan+linaro@kernel.org> 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? -- With Best Regards, Andy Shevchenko