Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1064620rwl; Wed, 29 Mar 2023 12:07:07 -0700 (PDT) X-Google-Smtp-Source: AKy350ZNd5sMx+NffY4pRmjYSy3npg4WPle3aLRS7vgh/jtgs9Gp1EQsg9pvmpj2tfeIB4oYlDdP X-Received: by 2002:a62:1d95:0:b0:627:e577:4326 with SMTP id d143-20020a621d95000000b00627e5774326mr15481739pfd.17.1680116827422; Wed, 29 Mar 2023 12:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680116827; cv=none; d=google.com; s=arc-20160816; b=cfXI5Gq/ktRnSTLjUv75hWKiYLLWE0tDzCLBfhnAvtvfK+oydz/2anAllof+b6KQSx seLG/I0w8mTu3YKwiKz3B1TpReziiL9dLaCPRTTK02LGdYGu0c9d63hu5I3+5jR5NKfQ uXiAMr21/9BtQIUG1NIR5m1SpED274lP5CEiDU8rSpk2njGnGDV/NdmC2rtm87McLRVU JUkYfhALnd7pOEnd6okIvJ7q0Ye+tWxZInAmG3XvZMM8GH2DZgUh44v4Ia/b0WXnMqpD kHw2fWd/zfs0jsdpbeVRl21L5chtibiyenItqbPTltR+kkEy9AAxH9jW3iuBkfYrQvdw U+Tw== 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 :dkim-signature; bh=mgdldPnZoLJu6FvZZ0ds/kQzGbD+a5juMvFs38Q7vsQ=; b=o++jSjRKY9GFCI0DtpApjmFJmbvnjbdZ7Yl0J/e8HvjjRnVJ2QTcoI89f+nM2K3Pzq zSicNbdNRm+pczgaJSx8vKbHaD805uhngAQ8mQO5bQYclmfJfhK+a0yymeS2v+gId7Tf RMih8j4N0gn1b0EJ6PAtPvlNKmqGy5aKxmwOBkd2VMaB8F72b+XkJ8P7sXxr4Zj+LmiO +JFhKkI8KYTnXKo8IdIObVofND8U1gaYmpHuJheY14S374urJU3PJJdFMzV68ujv6l6o T4syMQtbSFII/kQIZdgBVhQe9xE9fK0iEfwb/pEW/rfVqjyRlJNx1eerjLa4qgVeQXKi mqZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S6xDW15x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e26-20020a056a0000da00b0062d09848024si9155268pfj.347.2023.03.29.12.06.54; Wed, 29 Mar 2023 12:07:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S6xDW15x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229800AbjC2TBY (ORCPT + 99 others); Wed, 29 Mar 2023 15:01:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbjC2TBW (ORCPT ); Wed, 29 Mar 2023 15:01:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BE8F4C2C; Wed, 29 Mar 2023 12:01:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C8BE161DD6; Wed, 29 Mar 2023 19:01:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83686C433D2; Wed, 29 Mar 2023 19:01:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680116474; bh=1fcM3b9krHlsO5Snx/0pCVZjh+4M52SYgMLtCtPR/bs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=S6xDW15xix0ogYtL7mwp+uLPOEhBNRfsyhTiWC3wbvbbnSzAfXkLtFPpemg87HfWr fU8z86NERRhUKbWMxHUGvGzaR+XQ3fGM0H3WNqPbeaH95WXPiRqY3ptNCS6tMDBGOi BNM6EewLbzeCg3j2Qp6i6CCFLD6izWykzSoOs7QN6Jnd1s7s83f2b1Xii1iiACtCku 2FhVezAfD/fIRwFiPsUbv4ZqQmxh/Oo5XhAtApVlooVhjQHN9iyJn7AW7mtB+boZtP IX1sqrQECL2EBrGaNN6CMEV3jPCNIE3xNDMOnAsoyRbuywYjRCYqniKEshxTwqeiWN tSj3DQvfdiQyQ== Date: Wed, 29 Mar 2023 21:01:10 +0200 From: Wolfram Sang To: Geert Uytterhoeven Cc: Greg Kroah-Hartman , Saravana Kannan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Rob Herring , Frank Rowand , Mark Brown , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] treewide: Fix instantiation of devices in DT overlays Message-ID: Mail-Followup-To: Wolfram Sang , Geert Uytterhoeven , Greg Kroah-Hartman , Saravana Kannan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Rob Herring , Frank Rowand , Mark Brown , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <240155f20aae47e9f7461e2b7416120ba6238886.1679650087.git.geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VcqNrUduYzya4aYk" Content-Disposition: inline In-Reply-To: <240155f20aae47e9f7461e2b7416120ba6238886.1679650087.git.geert+renesas@glider.be> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --VcqNrUduYzya4aYk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 24, 2023 at 10:30:39AM +0100, Geert Uytterhoeven wrote: > When loading a DT overlay that creates a device, the device is not > instantiated, unless the DT overlay is unloaded and reloaded again. >=20 > Saravana explains: > Basically for all overlays (I hope the function is only used for > overlays) we assume all nodes are NOT devices until they actually > get added as a device. >=20 > Based on a patch by Saravana Kannan, which covered only platform and spi > devices. >=20 > Fixes: 4a032827daa89350 ("of: property: Simplify of_link_to_phandle()") > Link: https://lore.kernel.org/r/CAGETcx_+rhHvaC_HJXGrr5_WAd2+k5f=3DrWYnkC= Z6z5bGX-wj4w@mail.gmail.com > Signed-off-by: Geert Uytterhoeven > Acked-by: Mark Brown Acked-by: Wolfram Sang # for I2C --VcqNrUduYzya4aYk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmQkivYACgkQFA3kzBSg KbZTyg/+JmtqKwpf8rDuGRxTxPx0/p4sgTM+XIbYWkv0BEIR7cphrzWAX9CPNtqG TZNmOEdTXAw0/UQnY70eVFJoMV8j8WPoGANBEUesg3aSM46xZjhLgtb6LEGw2SeP J1EggS1DogDgwflj+WLRG4vbvoTId7n92HRWALypUrFM6hOD5SeG1wU3pgVjf4NN 8LPn0HcQD1RfN0BMo3h5l2MASWxONBMnD7gUBpQyP5zdOKg3GxF6rWxfORSMqwQq Bq/Ov+yZ5IYwIzSnRgFmfT30GFfo4mqrvHee71TrPG1EnrofWlMx0fmaTxikvXFB mUvL/pN+LRhdjYeqDzDZG2nCFqb7R6tqaRTt/Ydvtxg4M7RQW+srtg2XyLpoueD3 sJ5JFf8vmeH9S3rKInxbiO1JBD/dj3VWADve+D1a0luQ2gNqsDZxP4hwr56bxhSR q8tWKtuFixklWESZMKxxHeAt9Up2YlKdo+xpsJz8yL36Y7BlhWPc7M5Hz5qcqRcg GdRDqLCZrT9LaYHJB2WI6qhz7gtQ9rHQz2Oao4LsD1CVFTz/D9Ji900GfX53zyo1 n7UCdK2M2zXgcTktkVz0rv1vSy3JFhCI6fm/zdSohaY/bP4k9SMITuTrC2RMW6Y4 zr2euXaosZIYU6pMpP6/SVytm7BngxR27b4d118ZYeSwFEw8YHY= =u3R2 -----END PGP SIGNATURE----- --VcqNrUduYzya4aYk--