From: Todd Poynor <tpoynor@mvista.com>
To: lists@ku-gbr.de
Cc: linux-mtd@lists.infradead.org
Subject: Re: Intel flash that powers up locked
Date: Thu, 02 Jun 2005 16:31:12 -0700 [thread overview]
Message-ID: <429F96C0.3080508@mvista.com> (raw)
In-Reply-To: <20050601134130.GA19482@synertronixx3>
Konstantin Kletschke wrote:
...
> However, this code Oopses in cfi_intelext_unlockall():
...
> Creating 5 MTD partitions on "scb9328_flash":
> 0x00000000-0x00020000 : "U-boot"
> 0x00020000-0x00040000 : "U-boot_env"
> mtd->numeraseregions 0
> rumms
> Unable to handle kernel NULL pointer dereference at virtual address 00000008
I'll hazard a guess that you're calling the function passing the
partition "slave" mtd structure instead of the "master" mtd structure
created at chip probe time (since you're passing the partition creation
stage instead of doing this at chip probe time). See the mtdpart.c code
for the mapping between the two kinds of structures, such as
part_unlock(), which passes the master structure. Only the master
structure has various fields properly filled out, especially things
determined by the chip driver, and numeraseregions doesn't seem to be
copied from master to slave after a quick glance.
If that's a bad guess then sorry for the misdirection. ;) Let us know
how you are calling the unlock function to take some of the guesswork
out of it.
--
Todd
next prev parent reply other threads:[~2005-06-02 23:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-01 13:41 Intel flash that powers up locked Konstantin Kletschke
2005-06-02 4:15 ` Ratan Panneerselvam
2005-06-02 10:19 ` Konstantin Kletschke
2005-06-02 10:46 ` Thomas Gleixner
2005-06-02 11:52 ` Konstantin Kletschke
2005-06-02 23:31 ` Todd Poynor [this message]
2005-06-23 15:35 ` Konstantin Kletschke
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=429F96C0.3080508@mvista.com \
--to=tpoynor@mvista.com \
--cc=linux-mtd@lists.infradead.org \
--cc=lists@ku-gbr.de \
/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