From: Mathias Thore <mathias.thore@infinera.com>
To: linux-mtd@lists.infradead.org
Cc: Mathias Thore <mathias.thore@infinera.com>
Subject: [PATCH] mtd: cfi_cmdset_0002: PPB locking support for larger capacity devices
Date: Wed, 5 Apr 2017 13:57:43 +0200 [thread overview]
Message-ID: <20170405115743.27441-1-mathias.thore@infinera.com> (raw)
Currently cfi_cmdset_0002.c supports advanced sector protection scheme
for devices with 512 or fewer sectors. This patch increases the limit
to enable advanced sector protection on devices with larger capacity.
Signed-off-by: Mathias Thore <mathias.thore@infinera.com>
---
drivers/mtd/chips/cfi_cmdset_0002.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c
index 9dca881..4966f12 100644
--- a/drivers/mtd/chips/cfi_cmdset_0002.c
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
@@ -2532,7 +2532,7 @@ struct ppb_lock {
int locked;
};
-#define MAX_SECTORS 512
+#define MAX_SECTORS 1024
#define DO_XXLOCK_ONEBLOCK_LOCK ((void *)1)
#define DO_XXLOCK_ONEBLOCK_UNLOCK ((void *)2)
--
2.10.2
next reply other threads:[~2017-04-05 11:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-05 11:57 Mathias Thore [this message]
2017-08-10 9:31 ` [PATCH] mtd: cfi_cmdset_0002: PPB locking support for larger capacity devices Boris Brezillon
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=20170405115743.27441-1-mathias.thore@infinera.com \
--to=mathias.thore@infinera.com \
--cc=linux-mtd@lists.infradead.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: 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