Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4767196ybl; Mon, 13 Jan 2020 20:32:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzkPfUYy+AhI4Q2NQrxpktqCWEv4oL+yzxx7N1RtwCV1j8Sc/E5V2NvVcWFmZAT3QMHJrlJ X-Received: by 2002:a05:6830:1f13:: with SMTP id u19mr14895814otg.237.1578976363767; Mon, 13 Jan 2020 20:32:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578976363; cv=none; d=google.com; s=arc-20160816; b=i4VfmzYfoTuMoF9AmWN5EHRWXA9ZfmRBTWboiSQBRu/CkC7qlJ3kJCs1NXjFIu/jER aO7PMXfh3L3zF/h6/VNBOJZlmOXluu7HB3T2SuUihmy4Qjss9IUaAhtu4sfgxz9Qg3Ks VSyHhWHTLFKC9U+I4yHGFL+GgP/+ACoDtwVGAziU4lT+IjPBsJvUlVkKpkzVLIgRZuhs 5e1zw36aCTOsVNvm2FXobTYJ+fBcWnGY7wTqYyC7kWRV811Z4taXT6N7vbupLytRo929 A5Rsv4KQ0eUdcE94IHXhVkX6SxSxZCdX3c54+D7lxyBdFdY1XM1KipihN/omOusRV+/n 9dnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=0bXCCorXrtd0KwEFFIhsayclHV1mI2++8PfOgqkAXWE=; b=FTTdOXtaKuelIYhpE9rqbSGCVk/wA+UsCGQ5uBHIg2jCQrXj4AN3PPWR3aGD/IQs+0 cy4vHjTFuNO9OZ3gw2DbM0UeeqKL71s07oD+Dc9Jv1hnazqegWHfzGIB1fu3LBocBjQx PBs1l61bgHoyu/U6oR/t5/I21uUT8J0vhlxAuZOlCtwKDgP8VS9lqLYH4DN7yhlX1Cge 23J4qvJFxOWPkGxvRWquDX/piQIDOQEKkLLIQ6vUljgDFCtNtaWuYdqvzg/VE30cJPWB LFW9skvbDvfdIMbJ0cA3o9LXUg+baTGTncKiMYonI7tf8Gr/lIDeXB2Lm8B8hBYRGoYk qI0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si8502212oti.226.2020.01.13.20.32.31; Mon, 13 Jan 2020 20:32:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729748AbgANDpo (ORCPT + 99 others); Mon, 13 Jan 2020 22:45:44 -0500 Received: from mail-sz.amlogic.com ([211.162.65.117]:56845 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729727AbgANDpl (ORCPT ); Mon, 13 Jan 2020 22:45:41 -0500 Received: from droid12-sz.software.amlogic (10.28.8.22) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server id 15.1.1591.10; Tue, 14 Jan 2020 11:45:58 +0800 From: Xingyu Chen To: Wim Van Sebroeck , Guenter Roeck , Kevin Hilman , Neil Armstrong CC: Xingyu Chen , Rob Herring , Jerome Brunet , Martin Blumenstingl , Qianggui Song , Jianxin Pan , Jian Hu , , , , Subject: [PATCH v6 2/5] firmware: meson_sm: populate platform device based on the child node Date: Tue, 14 Jan 2020 11:45:24 +0800 Message-ID: <1578973527-4759-3-git-send-email-xingyu.chen@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1578973527-4759-1-git-send-email-xingyu.chen@amlogic.com> References: <1578973527-4759-1-git-send-email-xingyu.chen@amlogic.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.28.8.22] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The child node of secure-monitor cann't be populated as platform device automatically during the kernel initialization phase, so we invoke of_platform_default_populate() to do it. Signed-off-by: Xingyu Chen --- drivers/firmware/meson/meson_sm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/firmware/meson/meson_sm.c b/drivers/firmware/meson/meson_sm.c index 8cdd405..d2b1e76 100644 --- a/drivers/firmware/meson/meson_sm.c +++ b/drivers/firmware/meson/meson_sm.c @@ -310,6 +310,8 @@ static int __init meson_sm_probe(struct platform_device *pdev) platform_set_drvdata(pdev, fw); + of_platform_default_populate(dev->of_node, NULL, dev); + pr_info("secure-monitor enabled\n"); if (sysfs_create_group(&pdev->dev.kobj, &meson_sm_sysfs_attr_group)) -- 2.7.4