Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1234056pxb; Thu, 21 Oct 2021 19:04:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2nXzBdyRB4fH6goZQrOwJdnRJ1+pArykgG8gPCMIs9zNgae24ftJ6f+YDrPuUf6EmP+Eu X-Received: by 2002:a17:907:774d:: with SMTP id kx13mr11931187ejc.239.1634868246358; Thu, 21 Oct 2021 19:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634868246; cv=none; d=google.com; s=arc-20160816; b=mi2ej4knGqPku0rInrOvQwjj11SB1ki8Fhk/pgxFJyn6E4kEcuOqxLob7kHrKmW+rl kiUAQ8RNTO/tm9fZa90AfsWJKsunglRO/Vvs5BdjCpLRVc+h6tsYZQoRGdXU5n1LDCt6 Tu7ba8OuRMcKvjKMHQiwozk/SOTVMesnAqJgi8l/J/bUb2gfvcCiuZ3qWRsmZuVJ/ZQy UfTriv/QhURPopXACAmhLGeex3xL1/7E0v9SC/gvvk20YJr9t9VCJ0hjEFIZkGgZ8nr/ kJuuYoKEinNihjvUvBCGaTdYDgaPySVEmu0A14GO/N0DVkxVqAoAJ44mj98wt251a6W3 F2UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ywEBrdGbkyi0QJnFE8aQ/OJz+ZBKYfFbMIxjCGa0a6c=; b=vdSaCFDLwybSjBbn6iH/51DPWmzLypCEF7oHVXatvdyy9Ws0RNrdsNcCPmRrnIToTC Vjp8WrGuT8DdvKjKENmxn1Jy7oButqV/fJ+WMugzcF8YQKc9jAEEZvjxAfUm40y7T2eU KDJKzCW6D8QNZ9lemhpLKzQtSOhSagP1zRi3tEIDwebM1A847VKZK6CkvOgONAECQVBU dTph45KsvxK52cuqrzAtUpfMDBWOvRCDXTVchuIWlGvr41GmIhXC5e7EwlNoFRRVLkH9 fI2DB389CHqt14LYLKvSvh3f9YZab70yRsuIcE0AllwePpsY9EamczRtzL64f3sRCRqS 8NUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b="U2/S3A/W"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si9331907edj.60.2021.10.21.19.03.36; Thu, 21 Oct 2021 19:04:06 -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; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b="U2/S3A/W"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232262AbhJVCDN (ORCPT + 99 others); Thu, 21 Oct 2021 22:03:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231941AbhJVCDH (ORCPT ); Thu, 21 Oct 2021 22:03:07 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BD7BC061224; Thu, 21 Oct 2021 19:00:48 -0700 (PDT) Received: from hatter.bewilderbeest.net (71-212-29-146.tukw.qwest.net [71.212.29.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 86736B5D; Thu, 21 Oct 2021 19:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1634868048; bh=ywEBrdGbkyi0QJnFE8aQ/OJz+ZBKYfFbMIxjCGa0a6c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U2/S3A/W/JaKiShxEXetHUItCy/+sBkAcB5xLHm4tyjmabYHNOz9U8/A5M1LzWwIW ricK/uahG5gtjO5pOnXZZBD/XUJZsN3ZWiha2w8Ozz4XTx3UKbCziVpsgZPmxyR4yP I2mIzeFcQlU0iAilWPibes2OI83hj6YYmIpsRQxY= From: Zev Weiss To: Frank Rowand , Greg Kroah-Hartman , Rob Herring Cc: openbmc@lists.ozlabs.org, Jeremy Kerr , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Zev Weiss Subject: [PATCH 5/5] of: platform: instantiate reserved devices Date: Thu, 21 Oct 2021 19:00:32 -0700 Message-Id: <20211022020032.26980-6-zev@bewilderbeest.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211022020032.26980-1-zev@bewilderbeest.net> References: <20211022020032.26980-1-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Devices with a "reserved" status will now be passed through to of_device_add() along with "okay" ones so that the driver core is aware of their existence and drivers can be explicitly bound to them when appropriate. Signed-off-by: Zev Weiss --- drivers/of/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 74afbb7a4f5e..060e1e9058c2 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -170,7 +170,7 @@ static struct platform_device *of_platform_device_create_pdata( { struct platform_device *dev; - if (!of_device_is_available(np) || + if ((!of_device_is_available(np) && !of_device_is_reserved(np)) || of_node_test_and_set_flag(np, OF_POPULATED)) return NULL; -- 2.33.1