public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: llandre <r&d2@dave-tech.it>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Bug in StrataFlash drivers
Date: Thu, 10 Nov 2005 15:18:44 +0100	[thread overview]
Message-ID: <437356C4.9090704@dave-tech.it> (raw)

Several platforms are equipped with StrataFlash memory. Most of the 
existing drivers seem to not handle correctly odd-sized buffers in 
writing. IIUC the bug is the function flash_write_cfibuffer - enabled 
when CFG_FLASH_USE_BUFFER_WRITE is defined - when working with 16-bit 
wide memories. The following code ...

		...
		case FLASH_CFI_8BIT:
			cnt = len;
			break;
		case FLASH_CFI_16BIT:
			cnt = len >> 1;
			break;
		case FLASH_CFI_32BIT:
		...

... must be changed like this:

		...
			break;
		case FLASH_CFI_16BIT:						
			cnt = len >> 1;
			if (len % 2)
				cnt += 1;
			break;
		case FLASH_CFI_32BIT:
		...


Best regards,
llandre

DAVE Electronics System House - R&D Department
web:   http://www.dave-tech.it
email: r&d2 at dave-tech.it

             reply	other threads:[~2005-11-10 14:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-10 14:18 llandre [this message]
2005-11-10 16:44 ` [U-Boot-Users] Bug in StrataFlash drivers Wolfgang Denk
2005-11-11  9:29   ` llandre
     [not found] <20051111093808.0F719352681@atlas.denx.de>
2005-11-11 10:26 ` llandre
2006-08-18  9:40   ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2005-11-11 15:39 Menon, Nishanth
2005-11-11 15:47 ` llandre
2005-11-21 20:40   ` Detlev Zundel

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=437356C4.9090704@dave-tech.it \
    --to=r&d2@dave-tech.it \
    --cc=u-boot@lists.denx.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