Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1456055
| From | John Stultz <john.stultz@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC][PATCH 1/4] drivers: sram: Have sram driver probe children nodes |
| Date | 2016-08-04 01:10 +0200 |
| Message-ID | <s2dst-EM-17@gated-at.bofh.it> (permalink) |
| References | <s2dst-EM-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
In order to support sub-nodes with the sram driver, have the sram driver call of_probe_default_children(). This will allow for supportting sram based reboot reasons. Cc: Andy Yan <andy.yan@rock-chips.com> Cc: Rob Herring <robh@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Thierry Reding <treding@nvidia.com> Cc: Heiko Stübner <heiko@sntech.de> Cc: Caesar Wang <wxt@rock-chips.com> Cc: Kees Cook <keescook@chromium.org> Cc: Guodong Xu <guodong.xu@linaro.org> Cc: Haojian Zhuang <haojian.zhuang@linaro.org> Cc: Vishal Bhoj <vishal.bhoj@linaro.org> Cc: Bjorn Andersson <bjorn.andersson@linaro.org> Cc: devicetree@vger.kernel.org Cc: Android Kernel Team <kernel-team@android.com> Signed-off-by: John Stultz <john.stultz@linaro.org> --- drivers/misc/sram.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c index f84b53d..6830a79 100644 --- a/drivers/misc/sram.c +++ b/drivers/misc/sram.c @@ -23,6 +23,7 @@ #include <linux/io.h> #include <linux/list_sort.h> #include <linux/of_address.h> +#include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/slab.h> @@ -384,6 +385,8 @@ static int sram_probe(struct platform_device *pdev) platform_set_drvdata(pdev, sram); + of_platform_default_populate(pdev->dev.of_node, + NULL, &pdev->dev); dev_dbg(sram->dev, "SRAM pool: %zu KiB @ 0x%p\n", gen_pool_size(sram->pool) / 1024, sram->virt_base); -- 1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC][PATCH 0/4] SRAM based reboot reason driver for HiKey John Stultz <john.stultz@linaro.org> - 2016-08-04 01:10 +0200
[RFC][PATCH 1/4] drivers: sram: Have sram driver probe children nodes John Stultz <john.stultz@linaro.org> - 2016-08-04 01:10 +0200
[RFC][PATCH 4/4] dts: hikey: Add hikey support for sram-reboot-mode John Stultz <john.stultz@linaro.org> - 2016-08-04 01:10 +0200
Re: [RFC][PATCH 0/4] SRAM based reboot reason driver for HiKey Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> - 2016-08-05 14:50 +0200
Re: [RFC][PATCH 0/4] SRAM based reboot reason driver for HiKey John Stultz <john.stultz@linaro.org> - 2016-08-06 22:10 +0200
Re: [RFC][PATCH 0/4] SRAM based reboot reason driver for HiKey Rob Herring <robh@kernel.org> - 2016-08-06 23:00 +0200
Re: [RFC][PATCH 0/4] SRAM based reboot reason driver for HiKey Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> - 2016-08-08 15:50 +0200
csiph-web