diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-07 12:11:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-07 12:11:16 -0500 |
commit | e0d65113a70f1dc514e625cc4e7a7485a4bf72df (patch) | |
tree | 7320a130dc304623f5cf4b5dd8f67fb1776225ca /drivers/mtd/nand/diskonchip.c | |
parent | cf5e15fbd72c13977720aa15b7b7e00e1d8fd8f2 (diff) | |
parent | 48e546b7f281f251893baa40769581fd15f085fb (diff) |
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6: (226 commits)
mtd: tests: annotate as DANGEROUS in Kconfig
mtd: tests: don't use mtd0 as a default
mtd: clean up usage of MTD_DOCPROBE_ADDRESS
jffs2: add compr=lzo and compr=zlib options
jffs2: implement mount option parsing and compression overriding
mtd: nand: initialize ops.mode
mtd: provide an alias for the redboot module name
mtd: m25p80: don't probe device which has status of 'disabled'
mtd: nand_h1900 never worked
mtd: Add DiskOnChip G3 support
mtd: m25p80: add EON flash EN25Q32B into spi flash id table
mtd: mark block device queue as non-rotational
mtd: r852: make r852_pm_ops static
mtd: m25p80: add support for at25df321a spi data flash
mtd: mxc_nand: preset_v1_v2: unlock all NAND flash blocks
mtd: nand: switch `check_pattern()' to standard `memcmp()'
mtd: nand: invalidate cache on unaligned reads
mtd: nand: do not scan bad blocks with NAND_BBT_NO_OOB set
mtd: nand: wait to set BBT version
mtd: nand: scrub BBT on ECC errors
...
Fix up trivial conflicts:
- arch/arm/mach-at91/board-usb-a9260.c
Merged into board-usb-a926x.c
- drivers/mtd/maps/lantiq-flash.c
add_mtd_partitions -> mtd_device_register vs changed to use
mtd_device_parse_register.
Diffstat (limited to 'drivers/mtd/nand/diskonchip.c')
-rw-r--r-- | drivers/mtd/nand/diskonchip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/nand/diskonchip.c b/drivers/mtd/nand/diskonchip.c index e1b84cb90f0d..5780dbab6113 100644 --- a/drivers/mtd/nand/diskonchip.c +++ b/drivers/mtd/nand/diskonchip.c | |||
@@ -133,7 +133,7 @@ static struct rs_control *rs_decoder; | |||
133 | 133 | ||
134 | /* | 134 | /* |
135 | * The HW decoder in the DoC ASIC's provides us a error syndrome, | 135 | * The HW decoder in the DoC ASIC's provides us a error syndrome, |
136 | * which we must convert to a standard syndrom usable by the generic | 136 | * which we must convert to a standard syndrome usable by the generic |
137 | * Reed-Solomon library code. | 137 | * Reed-Solomon library code. |
138 | * | 138 | * |
139 | * Fabrice Bellard figured this out in the old docecc code. I added | 139 | * Fabrice Bellard figured this out in the old docecc code. I added |
@@ -154,7 +154,7 @@ static int doc_ecc_decode(struct rs_control *rs, uint8_t *data, uint8_t *ecc) | |||
154 | ds[3] = ((ecc[3] & 0xc0) >> 6) | ((ecc[0] & 0xff) << 2); | 154 | ds[3] = ((ecc[3] & 0xc0) >> 6) | ((ecc[0] & 0xff) << 2); |
155 | parity = ecc[1]; | 155 | parity = ecc[1]; |
156 | 156 | ||
157 | /* Initialize the syndrom buffer */ | 157 | /* Initialize the syndrome buffer */ |
158 | for (i = 0; i < NROOTS; i++) | 158 | for (i = 0; i < NROOTS; i++) |
159 | s[i] = ds[0]; | 159 | s[i] = ds[0]; |
160 | /* | 160 | /* |
@@ -1032,7 +1032,7 @@ static int doc200x_correct_data(struct mtd_info *mtd, u_char *dat, | |||
1032 | WriteDOC(DOC_ECC_DIS, docptr, Mplus_ECCConf); | 1032 | WriteDOC(DOC_ECC_DIS, docptr, Mplus_ECCConf); |
1033 | else | 1033 | else |
1034 | WriteDOC(DOC_ECC_DIS, docptr, ECCConf); | 1034 | WriteDOC(DOC_ECC_DIS, docptr, ECCConf); |
1035 | if (no_ecc_failures && (ret == -EBADMSG)) { | 1035 | if (no_ecc_failures && mtd_is_eccerr(ret)) { |
1036 | printk(KERN_ERR "suppressing ECC failure\n"); | 1036 | printk(KERN_ERR "suppressing ECC failure\n"); |
1037 | ret = 0; | 1037 | ret = 0; |
1038 | } | 1038 | } |
@@ -1653,7 +1653,7 @@ static int __init doc_probe(unsigned long physadr) | |||
1653 | nand->ecc.mode = NAND_ECC_HW_SYNDROME; | 1653 | nand->ecc.mode = NAND_ECC_HW_SYNDROME; |
1654 | nand->ecc.size = 512; | 1654 | nand->ecc.size = 512; |
1655 | nand->ecc.bytes = 6; | 1655 | nand->ecc.bytes = 6; |
1656 | nand->options = NAND_USE_FLASH_BBT; | 1656 | nand->bbt_options = NAND_BBT_USE_FLASH; |
1657 | 1657 | ||
1658 | doc->physadr = physadr; | 1658 | doc->physadr = physadr; |
1659 | doc->virtadr = virtadr; | 1659 | doc->virtadr = virtadr; |