From: Hari Bathini <hbathini@linux.vnet.ibm.com>
To: linuxppc-dev <linuxppc-dev@ozlabs.org>
Cc: Mahesh J Salgaonkar <mahesh@linux.vnet.ibm.com>
Subject: [PATCH v2 2/3] pstore: Add pstore type id for firmware partition
Date: Tue, 16 Dec 2014 23:35:49 +0530 [thread overview]
Message-ID: <20141216180549.7778.16696.stgit@localhost.localdomain> (raw)
In-Reply-To: <20141216180442.7778.38272.stgit@localhost.localdomain>
This patch adds a pstore type id to be used for opal specific
nvram partitions.
Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
---
fs/pstore/inode.c | 3 +++
include/linux/pstore.h | 1 +
2 files changed, 4 insertions(+)
diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c
index 5041660..8e0c009 100644
--- a/fs/pstore/inode.c
+++ b/fs/pstore/inode.c
@@ -359,6 +359,9 @@ int pstore_mkfile(enum pstore_type_id type, char *psname, u64 id, int count,
case PSTORE_TYPE_PPC_COMMON:
sprintf(name, "powerpc-common-%s-%lld", psname, id);
break;
+ case PSTORE_TYPE_PPC_OPAL:
+ sprintf(name, "powerpc-opal-%s-%lld", psname, id);
+ break;
case PSTORE_TYPE_UNKNOWN:
sprintf(name, "unknown-%s-%lld", psname, id);
break;
diff --git a/include/linux/pstore.h b/include/linux/pstore.h
index ece0c6b..af44980 100644
--- a/include/linux/pstore.h
+++ b/include/linux/pstore.h
@@ -39,6 +39,7 @@ enum pstore_type_id {
PSTORE_TYPE_PPC_RTAS = 4,
PSTORE_TYPE_PPC_OF = 5,
PSTORE_TYPE_PPC_COMMON = 6,
+ PSTORE_TYPE_PPC_OPAL = 7,
PSTORE_TYPE_UNKNOWN = 255
};
next prev parent reply other threads:[~2014-12-16 18:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-16 18:05 [PATCH v2 0/3] powerpc/pstore: Add pstore support for nvram partitions Hari Bathini
2014-12-16 18:05 ` [PATCH v2 1/3] powerpc/nvram: move generic code for nvram and pstore Hari Bathini
2014-12-17 0:03 ` Michael Ellerman
2014-12-17 11:10 ` Hari Bathini
2014-12-16 18:05 ` Hari Bathini [this message]
2014-12-16 18:06 ` [PATCH v2 3/3] pstore: add pstore support on powernv Hari Bathini
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=20141216180549.7778.16696.stgit@localhost.localdomain \
--to=hbathini@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=mahesh@linux.vnet.ibm.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).