Re: [U-Boot] Broken ecc.size when switching between sw and hw ecc (beagleboard)

2012-03-05 Thread Tom Rini
On Wed, Feb 29, 2012 at 03:00:49PM -0600, Scott Wood wrote: > On 02/29/2012 06:12 AM, Orjan Friberg wrote: > > For the beagleboard, ecc.size is not explicitly set when doing 'nandecc > > sw'. If it's not set for the NAND_ECC_SOFT case in nand_scan_tail, it's > > set to 256 bytes. > > > > When doi

Re: [U-Boot] Broken ecc.size when switching between sw and hw ecc (beagleboard)

2012-03-02 Thread Orjan Friberg
On 03/01/2012 06:32 PM, Scott Wood wrote: I'm saying that right now it's an OMAP-specific requirement and the implementation of necessity involves the OMAP driver. If another driver grows this as a requirement, we can consider refactoring so the command line frontend is common. Different ECC mo

Re: [U-Boot] Broken ecc.size when switching between sw and hw ecc (beagleboard)

2012-03-01 Thread Scott Wood
On 03/01/2012 03:17 AM, Orjan Friberg wrote: > On 02/29/2012 10:00 PM, Scott Wood wrote: >> ECC mode is normally not something that you want to be runtime >> switchable, as changing it usually changes the on-flash format. It also >> requires driver cooperation -- the actual implementation (as oppo

Re: [U-Boot] Broken ecc.size when switching between sw and hw ecc (beagleboard)

2012-03-01 Thread Orjan Friberg
On 02/29/2012 10:00 PM, Scott Wood wrote: ECC mode is normally not something that you want to be runtime switchable, as changing it usually changes the on-flash format. It also requires driver cooperation -- the actual implementation (as opposed to the command-line wrapper) is in drivers/mtd/nan

Re: [U-Boot] Broken ecc.size when switching between sw and hw ecc (beagleboard)

2012-02-29 Thread Scott Wood
On 02/29/2012 06:12 AM, Orjan Friberg wrote: > For the beagleboard, ecc.size is not explicitly set when doing 'nandecc > sw'. If it's not set for the NAND_ECC_SOFT case in nand_scan_tail, it's > set to 256 bytes. > > When doing 'nandecc hw', ecc.size is set to 512 bytes. Hence, when > changing b

[U-Boot] Broken ecc.size when switching between sw and hw ecc (beagleboard)

2012-02-29 Thread Orjan Friberg
For the beagleboard, ecc.size is not explicitly set when doing 'nandecc sw'. If it's not set for the NAND_ECC_SOFT case in nand_scan_tail, it's set to 256 bytes. When doing 'nandecc hw', ecc.size is set to 512 bytes. Hence, when changing back to 'nandecc sw' ecc.size remains at 512 bytes and