* Is mtdblock_ro to be used only with 512byte page size flash only?
@ 2008-02-08 10:40 Max Stirling
2008-02-08 11:22 ` Max Stirling
0 siblings, 1 reply; 2+ messages in thread
From: Max Stirling @ 2008-02-08 10:40 UTC (permalink / raw)
To: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 324 bytes --]
In mtdblock_ro code, mtdblock_readsect function calls mtd->read passing
a hard coded parameter of 512 (the third parameter).
Is this refering to 512 bytes data which is like one page in case of the
flash I am using? If that is the case then can this block RO code be
used only with flash which has a 512 data size?
M.S
[-- Attachment #2: vicky_irobot.vcf --]
[-- Type: text/x-vcard, Size: 48 bytes --]
begin:vcard
fn:M S
n:S;M
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is mtdblock_ro to be used only with 512byte page size flash only?
2008-02-08 10:40 Is mtdblock_ro to be used only with 512byte page size flash only? Max Stirling
@ 2008-02-08 11:22 ` Max Stirling
0 siblings, 0 replies; 2+ messages in thread
From: Max Stirling @ 2008-02-08 11:22 UTC (permalink / raw)
To: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 386 bytes --]
Max Stirling wrote:
> In mtdblock_ro code, mtdblock_readsect function calls mtd->read
> passing a hard coded parameter of 512 (the third parameter).
>
> Is this refering to 512 bytes data which is like one page in case of
> the flash I am using? If that is the case then can this block RO code
> be used only with flash which has a 512 data size?
>
> M.S
Ok this is the sector size.
[-- Attachment #2: vicky_irobot.vcf --]
[-- Type: text/x-vcard, Size: 48 bytes --]
begin:vcard
fn:M S
n:S;M
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-08 11:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-08 10:40 Is mtdblock_ro to be used only with 512byte page size flash only? Max Stirling
2008-02-08 11:22 ` Max Stirling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox