From: David Woodhouse <dwmw2@infradead.org>
To: Jason Gunthorpe <jgg@ualberta.ca>
Cc: mtd@infradead.org
Subject: Re: MTD CVS update: 'mtd/kernel cfi_cmdset_0001.c cfi_probe.c nora.c octagon-5066.c vmax301.c'
Date: Wed, 28 Jun 2000 10:02:16 +0100 [thread overview]
Message-ID: <9649.962182936@cygnus.co.uk> (raw)
In-Reply-To: <Pine.LNX.3.96.1000627124319.12137A-100000@wakko.deltatee.com>
jgg@ualberta.ca said:
> The map driver is the only driver that knows what the eletrical
> connection is, if it knows the banks are 4 meg apart then it has to
> communicate that up. The only thing this is used for is detection, the
> detector can jump to the next bank start and do all of the banks. The
> only other option is to probe every block int the mapping region
> looking for bank starts, which is gross since the information is
> available.
Ah - you mean there are two sets of address lines which are unused - for
example:
A20-A19 : chip select
A18-A17 : not even connected on the chip sockets.
A16-A15 : present but the chips that are plugged in today don't use them
A14-A0 : connected to the chip and in use
The map driver has no clue about the ones in the third category, but it
definitely knows about the second, you're right.
I'm inclined to suggest that the map driver should map around the ones
which are hardwired, and let the flash chip driver sort out the rest,
having been given a hint as to the bank size.
Do we need to expand the map_info structure any further by including the
bank size, though? It's likely to be needed only at probe time, so shall we
pass it as an extra argument to the _probe functions instead?
> > Hmmm. How about a char * ?
> That might be best.
OK, I'll sort that out as soon as I've worked out why my cfi_cmdset_0001 code
is oopsing. I need either NOR flash in a PC, or a ksymoops for ARMv4l.
> No, the C99 named member initializers for structs:
> struct foo = {name: "Hello",size: 1024};
> Makes those big initializers readable.
Oh right - yeah, that makes sense. Using the form you quote, which is in
fact a GCC extension - C99 would be:
struct foo = { .name = "Hello", .size = 1024 };
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2000-06-28 8:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-26 16:18 MTD CVS update: 'mtd/kernel cfi_cmdset_0001.c cfi_probe.c nora.c octagon-5066.c vmax301.c' David Woodhouse
2000-06-27 5:00 ` Jason Gunthorpe
2000-06-27 8:51 ` David Woodhouse
2000-06-27 18:47 ` Jason Gunthorpe
2000-06-28 9:02 ` David Woodhouse [this message]
2000-06-28 15:13 ` Jason Gunthorpe
2000-07-03 17:09 ` Changing mtd.name to a char * David Woodhouse
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=9649.962182936@cygnus.co.uk \
--to=dwmw2@infradead.org \
--cc=jgg@ualberta.ca \
--cc=mtd@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