From: David Woodhouse <dwmw2@infradead.org>
To: Jason Gunthorpe <jgg@deltatee.com>
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: Tue, 27 Jun 2000 09:51:00 +0100 [thread overview]
Message-ID: <26144.962095860@cygnus.co.uk> (raw)
In-Reply-To: <Pine.LNX.3.96.1000626225302.29267B-100000@white.priv.deltatee.com>
jgg@deltatee.com said:
> Could you also add bank_size?
Do we really need it? I turned my previous question around - why does the
_map_ driver need to know about it?
You've said, and I agree, that the map driver won't necessarily know the
size of the chips within the area, so it can't know how the aliases are
arranged and remap the space itself.
So the flash probe code needs to work that out for itself, and as
soon as the cfi_check_chipalias() function does something other than
'return 0' that'll be fine. Presumably you have something similar.
Having worked out where each chip starts in the map, and recorded its start
address in the per-chip data structure, why does the flash driver need to
tell the map about it? Why not just use the 'correct' addresses?
> Both oct and vmax are 8bit devices so your FIXME is wrong. Everything
> using mapped before this has to be 8 bit because the JEDEC driver didn't
> support any higher.
Fixed. Thanks.
> Also, while you are changing things, can you widen the name feild in
> the mtd_info to about 100 chars? I want to plunk detection info in
> there too.
Hmmm. How about a char * ?
jgg@deltatee.com said:
> Should probably also use the named initializers the rest of the
> kernel is moving to for these big structs.
You mean a static initialiser that ends up in the data segment rather than
kmalloc'd? What does it do for us?
I was aware of the netdev name changes - but that changed from a char * to
a constant-length char[] to allow name changes to work without overflowing
the original string.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2000-06-27 8:48 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 [this message]
2000-06-27 18:47 ` Jason Gunthorpe
2000-06-28 9:02 ` David Woodhouse
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=26144.962095860@cygnus.co.uk \
--to=dwmw2@infradead.org \
--cc=jgg@deltatee.com \
--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