linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wang Dongsheng <dongsheng.wang@freescale.com>
To: <scottwood@freescale.com>
Cc: linuxppc-dev@lists.ozlabs.org,
	Wang Dongsheng <dongsheng.wang@freescale.com>
Subject: [PATCH v3 3/4] powerpc/mpic: create mpic subsystem object
Date: Tue, 9 Apr 2013 10:22:31 +0800	[thread overview]
Message-ID: <1365474152-21524-3-git-send-email-dongsheng.wang@freescale.com> (raw)
In-Reply-To: <1365474152-21524-1-git-send-email-dongsheng.wang@freescale.com>

Register a mpic subsystem at /sys/devices/system/

Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
---
 arch/powerpc/include/asm/mpic.h | 2 ++
 arch/powerpc/sysdev/mpic.c      | 8 ++++++++
 2 files changed, 10 insertions(+)

diff --git a/arch/powerpc/include/asm/mpic.h b/arch/powerpc/include/asm/mpic.h
index c0f9ef9..fa70e9b 100644
--- a/arch/powerpc/include/asm/mpic.h
+++ b/arch/powerpc/include/asm/mpic.h
@@ -339,6 +339,8 @@ struct mpic
 #endif
 };
 
+extern struct bus_type mpic_subsys;
+
 /*
  * MPIC flags (passed to mpic_alloc)
  *
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c
index ae709d2..58e7661 100644
--- a/arch/powerpc/sysdev/mpic.c
+++ b/arch/powerpc/sysdev/mpic.c
@@ -48,6 +48,12 @@
 #define DBG(fmt...)
 #endif
 
+struct bus_type mpic_subsys = {
+	.name = "mpic",
+	.dev_name = "mpic",
+};
+EXPORT_SYMBOL_GPL(mpic_subsys);
+
 static struct mpic *mpics;
 static struct mpic *mpic_primary;
 static DEFINE_RAW_SPINLOCK(mpic_lock);
@@ -1989,6 +1995,8 @@ static struct syscore_ops mpic_syscore_ops = {
 static int mpic_init_sys(void)
 {
 	register_syscore_ops(&mpic_syscore_ops);
+	subsys_system_register(&mpic_subsys, NULL);
+
 	return 0;
 }
 
-- 
1.8.0

  parent reply	other threads:[~2013-04-09  3:01 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-09  2:22 [PATCH v3 1/4] powerpc/mpic: add irq_set_wake support Wang Dongsheng
2013-04-09  2:22 ` [PATCH v3 2/4] powerpc/mpic: add global timer support Wang Dongsheng
2013-04-09  2:22 ` Wang Dongsheng [this message]
2013-04-09  2:22 ` [PATCH v3 4/4] powerpc/fsl: add MPIC timer wakeup support Wang Dongsheng
2013-04-16 10:58 ` [PATCH v3 1/4] powerpc/mpic: add irq_set_wake support Wang Dongsheng-B40534
2013-04-16 23:30   ` Scott Wood
2013-04-23 10:10     ` Wang Dongsheng-B40534
2013-05-03  1:54     ` Wang Dongsheng-B40534
2013-05-13  4:25     ` Wang Dongsheng-B40534
2013-05-13  5:00       ` Benjamin Herrenschmidt
2013-05-14  9:03         ` Wang Dongsheng-B40534
2013-06-09  8:20         ` Wang Dongsheng-B40534
2013-07-01  2:38         ` Wang Dongsheng-B40534
2013-07-01  2:48           ` Benjamin Herrenschmidt
2013-07-01  3:07             ` Wang Dongsheng-B40534
2013-07-01 16:55           ` Scott Wood
2013-07-01 22:16             ` Benjamin Herrenschmidt
2013-07-01 22:36               ` Scott Wood
2013-07-01 22:59                 ` Benjamin Herrenschmidt

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=1365474152-21524-3-git-send-email-dongsheng.wang@freescale.com \
    --to=dongsheng.wang@freescale.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=scottwood@freescale.com \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).