Message ID | 20230324140141.6743-1-ddrokosov@sberdevices.ru |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp672816vqo; Fri, 24 Mar 2023 07:35:04 -0700 (PDT) X-Google-Smtp-Source: AKy350YC+dWiLSRLvI8i8+CodCwqw2dvHV8cvoa9DAPfOkonQDxXZGT12ZiQ2jcdwOS9tqf1Ubg1 X-Received: by 2002:a17:906:5293:b0:92c:6fbf:28 with SMTP id c19-20020a170906529300b0092c6fbf0028mr3251924ejm.64.1679668504370; Fri, 24 Mar 2023 07:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679668504; cv=none; d=google.com; s=arc-20160816; b=qo0uIGBg+nxXxZUNs/A+kIu+Zu100wfWzXEDPnxMCqPRBAroTLaSlK1KgQKvVP1JKi KpvvQ2WTKSpH9pn3d+Mxj/5xH2MLIBrkHsw2iYp8fMpYPaV8In4aLqQ/LW/zPTevALF8 7iNoGfLVcaY1V+5nRLE+ehmk0mG79s981y+sUQsM+YTJAYx8/J/NHLvEatxESDvvfzAN lOY2pg24kEf+7+E6O+xUsEBerusYHTQr4aZtAdFgqL9LxW1mRcMqiOEQohdlAeAIc2Uk XpEVXyI80LV59O4hc8M9PZ3UnW2mGbQDqLIJTpg/gx2qZYmU0xTAIYt4kJ+R7ccrW29j Xyng== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=IlFUWYEeDUhp/CciNDBSLCyclwAtjmsXI28Xo3rwRSw=; b=Lo7GmxXn2mOZawGSGEdPNKHuemJhSLTb1AgBH4c+uRth+1gOU5gv5FmHTJ51UZzELo RV9uwkcmuiWwpo7Ca3tL1eO93/qiSLZc8+aIMU0yilp+ZfFvfpSH8ndIThXVpZ7UhCvI K03GT5sg8e/dUPQz///5Si1d8eUcaAlZBMf2jbfujitPgwb2i8t0sDbgLc/eVzcRYmOW sKJFZh5aIZkYS1AMMLvmF6ebekMMnm/V4FVptxCg7ez/yAZVyKDwd96JhhGvGgbOUKhE z4wWNd5Vug6B4tWFraw+EOxfpUXhzqmfC4wmcszyqua3KSUAsLa14qAzq8RCkQFtR3Ug SYTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=sHf1Y8yk; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx7-20020a170907774700b009326c8764d5si18528343ejc.424.2023.03.24.07.34.40; Fri, 24 Mar 2023 07:35:04 -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=@sberdevices.ru header.s=mail header.b=sHf1Y8yk; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231688AbjCXOVr (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Fri, 24 Mar 2023 10:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbjCXOVq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Mar 2023 10:21:46 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ADD11F93D; Fri, 24 Mar 2023 07:21:43 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 8F8975FD2F; Fri, 24 Mar 2023 17:01:51 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1679666511; bh=IlFUWYEeDUhp/CciNDBSLCyclwAtjmsXI28Xo3rwRSw=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=sHf1Y8yk9o4VXC8BZNagl2tiGnwtFelKqjJUtNAxFegqckcy7GjyeJVzHPfAe3OKK dfguX36kq9gogm/CyzjmalabqgtiqOj+DLRUh3trhID3+221x2tdk4OqYHSMP4UDyK HXrpUHlnWIF8Ni3FI1B19Z7c1JiVRHCVAc36LVr1+q5Hq3ejDBOcPODnEBtfEt0+Kw 9YElqH9KUvCL/tAIwRDrvPEmg8M9NVbCuOpZq+XRcTkz2bxoEYdKZZy3UeD+nmKSVH G5MQ/sAjmKbKeSVHhefXHBP+SA9JjtKbCGqkqqKzZlSxpBUbFivQXNGrzjDm/ikNuK TY67koCIxlmMQ== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Fri, 24 Mar 2023 17:01:50 +0300 (MSK) From: Dmitry Rokosov <ddrokosov@sberdevices.ru> To: <krzysztof.kozlowski@linaro.org>, <robh@kernel.org>, <neil.armstrong@linaro.org>, <khilman@baylibre.com>, <jbrunet@baylibre.com>, <martin.blumenstingl@googlemail.com>, <jianxin.pan@amlogic.com> CC: <kernel@sberdevices.ru>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-amlogic@lists.infradead.org>, <devicetree@vger.kernel.org>, <rockosov@gmail.com>, Dmitry Rokosov <ddrokosov@sberdevices.ru> Subject: [PATCH v2] firmware: meson_sm: populate platform devices from sm device tree data Date: Fri, 24 Mar 2023 17:01:41 +0300 Message-ID: <20230324140141.6743-1-ddrokosov@sberdevices.ru> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH01.sberdevices.ru (172.16.1.4) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/03/24 06:52:00 #21002836 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761258554333222843?= X-GMAIL-MSGID: =?utf-8?q?1761260081317789022?= |
Series |
[v2] firmware: meson_sm: populate platform devices from sm device tree data
|
|
Commit Message
Dmitry Rokosov
March 24, 2023, 2:01 p.m. UTC
In some meson boards, secure monitor device has children, for example,
power secure controller. By default, secure monitor isn't the bus in terms
of device tree subsystem, so the of_platform initialization code doesn't
populate its device tree data. As a result, secure monitor's children
aren't probed at all.
Run the 'of_platform_populate()' routine manually to resolve such issues.
Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
---
drivers/firmware/meson/meson_sm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/meson/meson_sm.c b/drivers/firmware/meson/meson_sm.c index 77aa5c6398aa..b79d0e316cb1 100644 --- a/drivers/firmware/meson/meson_sm.c +++ b/drivers/firmware/meson/meson_sm.c @@ -316,7 +316,7 @@ static int __init meson_sm_probe(struct platform_device *pdev) if (sysfs_create_group(&pdev->dev.kobj, &meson_sm_sysfs_attr_group)) goto out_in_base; - return 0; + return devm_of_platform_populate(dev); out_in_base: iounmap(fw->sm_shmem_in_base);