Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1358511pxb; Mon, 11 Oct 2021 04:25:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBC5vh/DErv7ayBsL2BBkHAwtCyNggNUQGoEQ1RXluwkRhlJPUCRPAvOEqLQfFUoHH9wft X-Received: by 2002:a17:90b:4b90:: with SMTP id lr16mr29786835pjb.1.1633951534193; Mon, 11 Oct 2021 04:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633951534; cv=none; d=google.com; s=arc-20160816; b=L5NZoVVUMMzLDz2YRzpyG+IVnBJPKAeEY7dk3s0PfBxpo5qxrTyEAy/H2mJngLHw2R EDIQrUQ7u9FhKxbwvczDCZftSEpJvgXhcmCjp5CqN6ZhrNzwRHlnSdhswuUSai+EUjsP 6LfaJRnkNAiz98tRtUnm0XdL/6zbO+EVTWYEb9Bclb+XfxDvMZ8+dOqyLC3rxTC+bBeq v4+1LQxvyb8rgk3tNDcE/nyRUG2Yq0ZCHH037CfSeOgoPogLHz9+iu87F9Mi45rBwxbL GhpTK1Z+Iw9gWaWuZzeZTom7//U+Gg0/n64VHqRtuak9TcG+GBaay4OBsDGT4Q2BtfkL RP0A== 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:mail-followup-to:message-id:subject:cc:to:from:date; bh=1GR2cBDB7D0lPEsAy3lPmWlBISLt3LoRePm6I+IDpQg=; b=YPCYRBlKIaxvcItsMm21/RkAwnnQqbpz3GNxZVs3oseuu+La8CguisI6Z80tq8bokC Ms+yP3cJGGCwjI7mnwq5I/0Ea0scBZ98+77U3I/kVBPKX8mzBMPdj/b+WQPhgW11veHY cxTWm38MEIxqM8AmO5Ttn3kBI0VzDtU+AZJEggAj1jhZmKbTGo1NLatXTG/ngaPQ9+h9 Zg0T/3MFqAWnuPrBP3QwUbBGlCUdQNC5zOyH/G8nkm4RSlijZ5eI+qpcmrNaA3ke6YjT mbm/TDAxhqxFQ5qz+g8N538rUXjmgsK+Lo6tvgTpmFgeFzdteRPqJknq5xcp94Npdju9 YXMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si7648615pjw.177.2021.10.11.04.25.21; Mon, 11 Oct 2021 04:25:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230374AbhJKFwX (ORCPT + 99 others); Mon, 11 Oct 2021 01:52:23 -0400 Received: from sauhun.de ([88.99.104.3]:49536 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbhJKFwW (ORCPT ); Mon, 11 Oct 2021 01:52:22 -0400 Received: from localhost (p54b3315a.dip0.t-ipconnect.de [84.179.49.90]) by pokefinder.org (Postfix) with ESMTPSA id 5F6122C00A6; Mon, 11 Oct 2021 07:50:20 +0200 (CEST) Date: Mon, 11 Oct 2021 07:50:16 +0200 From: Wolfram Sang To: Hans de Goede Cc: "Rafael J . Wysocki" , Mark Gross , Andy Shevchenko , Mika Westerberg , Daniel Scally , Laurent Pinchart , Mauro Carvalho Chehab , Liam Girdwood , Mark Brown , Michael Turquette , Stephen Boyd , Len Brown , linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Sakari Ailus , Kate Hsuan , linux-media@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v3 02/11] i2c: acpi: Use acpi_dev_ready_for_enumeration() helper Message-ID: Mail-Followup-To: Wolfram Sang , Hans de Goede , "Rafael J . Wysocki" , Mark Gross , Andy Shevchenko , Mika Westerberg , Daniel Scally , Laurent Pinchart , Mauro Carvalho Chehab , Liam Girdwood , Mark Brown , Michael Turquette , Stephen Boyd , Len Brown , linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Sakari Ailus , Kate Hsuan , linux-media@vger.kernel.org, linux-clk@vger.kernel.org References: <20211010185707.195883-1-hdegoede@redhat.com> <20211010185707.195883-3-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kpSW/TDc2ClihKjN" Content-Disposition: inline In-Reply-To: <20211010185707.195883-3-hdegoede@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kpSW/TDc2ClihKjN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 10, 2021 at 08:56:58PM +0200, Hans de Goede wrote: > The clk and regulator frameworks expect clk/regulator consumer-devices > to have info about the consumed clks/regulators described in the device's > fw_node. >=20 > To work around cases where this info is not present in the firmware table= s, > which is often the case on x86/ACPI devices, both frameworks allow the > provider-driver to attach info about consumers to the clks/regulators > when registering these. >=20 > This causes problems with the probe ordering wrt drivers for consumers > of these clks/regulators. Since the lookups are only registered when the > provider-driver binds, trying to get these clks/regulators before then > results in a -ENOENT error for clks and a dummy regulator for regulators. >=20 > To ensure the correct probe-ordering the ACPI core has code to defer the > enumeration of consumers affected by this until the providers are ready. >=20 > Call the new acpi_dev_ready_for_enumeration() helper to avoid > enumerating / instantiating i2c-clients too early. >=20 > Signed-off-by: Hans de Goede If the ACPI and I2C-ACPI maintainers are happy, I am fine with this, too: Acked-by: Wolfram Sang --kpSW/TDc2ClihKjN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmFj0JEACgkQFA3kzBSg KbYxJhAApjIf+9ZpThQuo57RPJf7E3JLEg8Zt4yCTURtmLlTlc9cX9xyZpaUulfV STyFose+JW+221p99KOlw5o3TIVQkXUdNEz2wLOrr3uorLpjYYcc4H2BAm+M7+4v Mn1LKckOrCCvoS3fGuHmJRfNId/GBLDHoyWVt3YYsW+2P7xQ3elEe9nm/sKdETIg 1vmyq7ad5aAezhN2/qflYHCtR1WZWRbA0a4BrXGGg30t3bx1u34b0mG+Q7XqXb6s 8MnRdT8EmU+2XKIvBUHFSR8BftmwjAbJvzHtGBVHnWgjJHlwJpPQnTRRMgNJSmq6 OyXgEu506tF+8urV7Q3Iwh9T6B3avMD6+KwnFl1HqVI9dCwrsZTwLrUgA/h5MPkp dXleThz8PeJusOIZuNEbvwIwIBndHRS9yDT5Xt6pXPTEcwP7k4VDsNAhPMVMo5kH nJguFJ9EDlgxxayoD5R4zSKnDYW+6EJxVEOrRyMQHbjUQQWrXqOJBmqgCzswk8gR J5cBOF5deBidKRmS9uikQ+v3PzbSdQLRVa2houbQs7TOex3LJ7+r2aaRbkSAaJ/k G/vd9HqA8okfGxpDtm76bjyeEpigSY5xi+0VgWDgkGiud5MvUiiWy/NbmSllEpGx zP7glXE7ggCCr6Fc8ydZFp3sSL6hFJeb6tDsg9ev+juPlw8TCu0= =mBFk -----END PGP SIGNATURE----- --kpSW/TDc2ClihKjN--