From mboxrd@z Thu Jan 1 00:00:00 1970 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 2F46D158DB4 for ; Mon, 6 May 2024 18:58:17 +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=1715021898; cv=none; b=peHSJWSf66a1Cy/mMDac9erTWspv1cTD3ZpfNlnmsWsWMKfXTUvidAUnSiBWzAtqoBsRMUGrNwrrZX8hMHUnZoAE6PnyBncWj5/cWDIzrc+Qqc3WkxLHi3ZwTEGI2Rp5Q2agst9NKaJtXV2aNVv7L9WnHOuwEj4v+mxXB0uQvcE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715021898; 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=J+NUnBcekXUXxsXs2fyzJR3lWHktD8MjdmoA4V5pKofXUspv4qfl929uM5eUkSNdL8TOFb4TZlYRXi9xi4MUhXtXdK3JGfJJfwLocImO+tRdFAf52q3zlVtyR3idun2NuPS29gRZMwAOI1Zq9xm9vV2nFedZOjlyL3oJm/iLjMQ= 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-gpio@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