diff options
| author | Eric Blake | 2016-05-06 18:26:37 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-05-12 15:22:09 +0200 |
| commit | 441692ddd8321d5e0f09b163e86410e578d87236 (patch) | |
| tree | 976fca6ae8171f26574a889f058c039778ba8eea /scripts | |
| parent | nand: Switch to byte-based block access (diff) | |
| download | qemu-441692ddd8321d5e0f09b163e86410e578d87236.tar.gz qemu-441692ddd8321d5e0f09b163e86410e578d87236.tar.xz qemu-441692ddd8321d5e0f09b163e86410e578d87236.zip | |
onenand: Switch to byte-based block access
Sector-based blk_write() should die; switch to byte-based
blk_pwrite() instead. Likewise for blk_read().
This particular device picks its size during onenand_initfn(),
and can be at most 0x80000000 bytes; therefore, shifting an
'int sec' request to get back to a byte offset should never
overflow 32 bits. But adding assertions to document that point
should not hurt.
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
