From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2567C369C7 for ; Wed, 25 Sep 2024 10:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wNB11M0iw96JFsI3NeD4d9INw4bMHLX226YBdsnQT5c=; b=jAYctLygQ1XWHzVWlEYjRoZyXA jlPhZjTnjC8hwowzrgnJpBnZZyq5RJI6+1ZwL2X0KxVlBtRUBc5pTZN6s3q59UxhuU2oUkKkEJUzh rqzWW08zV1K4NU5sG2kY9Pik/SWkvRZBEmKttBlaN9IFkOZ2s/4yvhviDnSnPjUh/uJ7T6T024zqb Oots6F+ge8azEJMLg7rCZ13HcUtk/ymgWPr+E1IpIjDRKShFZoRwnjfudaksozNHRMFw86EFo9KN5 uaGuR4CqaPr0sxNjiAOWjcAW7DnPHVPhvScpV5/b56Q1EbIaP2I74Rx440DqZuw4v/1gv/cCux1yk OL7EHRsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stPfE-00000004nMi-07ei; Wed, 25 Sep 2024 10:54:32 +0000 Received: from mgamail.intel.com ([198.175.65.10]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stPe4-00000004nH8-1vNK; Wed, 25 Sep 2024 10:53:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727261600; x=1758797600; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UrggVek0lwhDuqSp26+4KJb/uG5YqBJR8jmgQcSwkr0=; b=CSibQZSzRK4IAF2pnryeCYY9BqjUN+L7sIJ1HgpuA3PBBRrA+iXg6fT2 C7K1kTpGeVjW5APXztyNZk9zP/7FaQzBQtqzf5BDY0e9ofqyAVu/AMptx b8ygCN6cTDuZzAIxOTjU0+uHr8m7hmS+O2txQUJrIKYyDaJDaYS1AAvC4 iohCyWKj85Lg2Kf314MfvFkfAag2yYJdJjaTYSq7XqgJFeYD0nURRvWwY KKbxo0aXPo/JTc3KRYWUinTIPqY28IjKTiZJtUZZq+GCrpUdjV7mtarVw XIguB9QvUVxqYKUUhFkzVTFb/LgpvZlFMu2hQWVJRoTjKPUppx1Ru5sNb Q==; X-CSE-ConnectionGUID: +4zWE3EPRmit+Z5tmzwWLw== X-CSE-MsgGUID: pvD7En8gQ9a15eHLgABYCQ== X-IronPort-AV: E=McAfee;i="6700,10204,11205"; a="43778481" X-IronPort-AV: E=Sophos;i="6.10,257,1719903600"; d="scan'208";a="43778481" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2024 03:53:19 -0700 X-CSE-ConnectionGUID: tE8JEtRNTYaDYeepXkZmYg== X-CSE-MsgGUID: F12ogL8UTO6fX6+00sK67A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,257,1719903600"; d="scan'208";a="102491039" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2024 03:53:16 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.98) (envelope-from ) id 1stPdw-0000000Cmma-3y2V; Wed, 25 Sep 2024 13:53:12 +0300 Date: Wed, 25 Sep 2024 13:53:12 +0300 From: Andy Shevchenko To: Chen-Yu Tsai Cc: Ulf Hansson , Matthias Brugger , AngeloGioacchino Del Regno , Mark Brown , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Douglas Anderson , Johan Hovold , Pablo Sun , Macpaul Lin , Sebastian Reichel Subject: Re: [PATCH v8 1/3] regulator: Add of_regulator_get_optional() for pure DT regulator lookup Message-ID: References: <20240925093807.1026949-1-wenst@chromium.org> <20240925093807.1026949-2-wenst@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240925093807.1026949-2-wenst@chromium.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_035320_573181_3E86ADEE X-CRM114-Status: GOOD ( 15.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Sep 25, 2024 at 05:38:04PM +0800, Chen-Yu Tsai wrote: > The to-be-introduced I2C component prober needs to enable regulator > supplies (and toggle GPIO pins) for the various components it intends > to probe. To support this, a new "pure DT lookup" method for getting > regulator supplies is needed, since the device normally requesting > the supply won't get created until after the component is probed to > be available. > > Add a new of_regulator_get_optional() function for this. This mirrors > the existing regulator_get_optional() function, but is OF-specific. > The underlying code that supports the existing regulator_get*() > functions has been reworked in previous patches to support this > specific case. > > Also convert an existing usage of "dev && dev->of_node" to > "dev_of_node(dev)". I thought I gave a tag already... Whatever, FWIW, Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko