From: Oliver O'Halloran <oohall@gmail.com> To: linuxppc-dev@lists.ozlabs.org Cc: linux-nvdimm@lists.01.org Subject: [RFC 4/4] powerpc/powernv: Create platform devs for nvdimm buses Date: Tue, 27 Jun 2017 20:28:51 +1000 [thread overview] Message-ID: <20170627102851.15484-4-oohall@gmail.com> (raw) In-Reply-To: <20170627102851.15484-1-oohall@gmail.com> Scan the devicetree for nonvolatile-memory buses and instantiate a platform device for them. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> --- arch/powerpc/platforms/powernv/opal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c index 59684b4af4d1..bd3ed78f6f04 100644 --- a/arch/powerpc/platforms/powernv/opal.c +++ b/arch/powerpc/platforms/powernv/opal.c @@ -775,6 +775,9 @@ static int __init opal_init(void) /* Create i2c platform devices */ opal_pdev_init("ibm,opal-i2c"); + /* Handle non-volatile memory devices */ + opal_pdev_init("nonvolatile-memory"); + /* Setup a heatbeat thread if requested by OPAL */ opal_init_heartbeat(); -- 2.9.4 _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm
WARNING: multiple messages have this Message-ID (diff)
From: Oliver O'Halloran <oohall@gmail.com> To: linuxppc-dev@lists.ozlabs.org Cc: linux-nvdimm@lists.01.org, Oliver O'Halloran <oohall@gmail.com> Subject: [RFC 4/4] powerpc/powernv: Create platform devs for nvdimm buses Date: Tue, 27 Jun 2017 20:28:51 +1000 [thread overview] Message-ID: <20170627102851.15484-4-oohall@gmail.com> (raw) In-Reply-To: <20170627102851.15484-1-oohall@gmail.com> Scan the devicetree for nonvolatile-memory buses and instantiate a platform device for them. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> --- arch/powerpc/platforms/powernv/opal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c index 59684b4af4d1..bd3ed78f6f04 100644 --- a/arch/powerpc/platforms/powernv/opal.c +++ b/arch/powerpc/platforms/powernv/opal.c @@ -775,6 +775,9 @@ static int __init opal_init(void) /* Create i2c platform devices */ opal_pdev_init("ibm,opal-i2c"); + /* Handle non-volatile memory devices */ + opal_pdev_init("nonvolatile-memory"); + /* Setup a heatbeat thread if requested by OPAL */ opal_init_heartbeat(); -- 2.9.4
next prev parent reply other threads:[~2017-06-27 10:27 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-06-27 10:28 [RFC 1/4] libnvdimm: add to_{nvdimm,nd_region}_dev() Oliver O'Halloran 2017-06-27 10:28 ` Oliver O'Halloran 2017-06-27 10:28 ` [RFC 2/4] libnvdimm: Add a device-tree interface Oliver O'Halloran 2017-06-27 10:28 ` Oliver O'Halloran 2017-06-27 10:28 ` Oliver O'Halloran 2017-06-27 10:43 ` Mark Rutland 2017-06-27 10:43 ` Mark Rutland 2017-06-27 10:43 ` Mark Rutland 2017-06-27 14:05 ` Oliver 2017-06-27 14:05 ` Oliver 2017-06-27 14:05 ` Oliver 2017-06-27 10:28 ` [RFC 3/4] powerpc: Add pmem API support Oliver O'Halloran 2017-06-27 10:28 ` Oliver O'Halloran 2017-07-11 0:00 ` Dan Williams 2017-07-11 0:00 ` Dan Williams 2017-06-27 10:28 ` Oliver O'Halloran [this message] 2017-06-27 10:28 ` [RFC 4/4] powerpc/powernv: Create platform devs for nvdimm buses Oliver O'Halloran 2017-07-10 23:53 ` [RFC 1/4] libnvdimm: add to_{nvdimm,nd_region}_dev() Dan Williams 2017-07-10 23:53 ` Dan Williams 2017-07-11 4:38 ` Oliver 2017-07-11 4:38 ` Oliver 2017-07-11 7:36 ` Dan Williams 2017-07-11 7:36 ` Dan Williams
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170627102851.15484-4-oohall@gmail.com \ --to=oohall@gmail.com \ --cc=linux-nvdimm@lists.01.org \ --cc=linuxppc-dev@lists.ozlabs.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.