From: Stefan Roese <ml@stefan-roese.de>
To: linux-mtd@lists.infradead.org
Cc: Timo Lindhorst <lindhors@vnet.ibm.com>,
Josh Boyer <jwboyer@gmail.com>,
Frank Haverkamp <haver@vnet.ibm.com>
Subject: [PATCH] [MTD] NAND: Fix erpn usage in ndfc driver
Date: Sat, 6 Jan 2007 12:27:39 +0100 (MET) [thread overview]
Message-ID: <200701061228.26136.ml@stefan-roese.de> (raw)
[PATCH] [MTD]: NAND: Fix erpn usage in ndfc driver
Since 440EPx uses erpn != 0 this patch fixes the usage of erpn passing
via platform_devices.
Signed-off-by: Stefan Roese <sr@denx.de>
---
commit 8ff908ce0b12fc6fbfb73cc95eaf5be4d793e66f
tree d00ab09cd4adddca0fbdefc2cc08069eff3079f0
parent 05a8057bb38bc803682f3e0af305c258b4566285
author Stefan Roese <sr@denx.de> Sat, 06 Jan 2007 12:25:24 +0100
committer Stefan Roese <sr@denx.de> Sat, 06 Jan 2007 12:25:24 +0100
drivers/mtd/nand/ndfc.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
index 039c759..fd8e910 100644
--- a/drivers/mtd/nand/ndfc.c
+++ b/drivers/mtd/nand/ndfc.c
@@ -228,7 +228,8 @@ static int ndfc_nand_probe(struct platform_device *pdev)
struct ndfc_controller_settings *settings = nc->priv;
struct resource *res = pdev->resource;
struct ndfc_controller *ndfc = &ndfc_ctrl;
- unsigned long long phys = settings->ndfc_erpn | res->start;
+ unsigned long long phys = ((unsigned long long)settings->ndfc_erpn << 32)
+ | res->start;
ndfc->ndfcbase = ioremap64(phys, res->end - res->start + 1);
if (!ndfc->ndfcbase) {
reply other threads:[~2007-01-06 11:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200701061228.26136.ml@stefan-roese.de \
--to=ml@stefan-roese.de \
--cc=haver@vnet.ibm.com \
--cc=jwboyer@gmail.com \
--cc=lindhors@vnet.ibm.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