~ubuntu-branches/ubuntu/karmic/linux-mvl-dove/karmic-proposed

« back to all changes in this revision

Viewing changes to drivers/mtd/chips/cfi_cmdset_0002.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bader
  • Date: 2010-03-10 22:24:12 UTC
  • mto: (15.1.2 karmic-security)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20100310222412-k86m3r53jw0je7x1
Tags: upstream-2.6.31
ImportĀ upstreamĀ versionĀ 2.6.31

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
        }
283
283
}
284
284
 
 
285
static void fixup_M29W128G_write_buffer(struct mtd_info *mtd, void *param)
 
286
{
 
287
        struct map_info *map = mtd->priv;
 
288
        struct cfi_private *cfi = map->fldrv_priv;
 
289
        if (cfi->cfiq->BufWriteTimeoutTyp) {
 
290
                pr_warning("Don't use write buffer on ST flash M29W128G\n");
 
291
                cfi->cfiq->BufWriteTimeoutTyp = 0;
 
292
        }
 
293
}
 
294
 
285
295
static struct cfi_fixup cfi_fixup_table[] = {
286
296
        { CFI_MFR_ATMEL, CFI_ID_ANY, fixup_convert_atmel_pri, NULL },
287
297
#ifdef AMD_BOOTLOC_BUG
298
308
        { CFI_MFR_AMD, 0x1301, fixup_s29gl064n_sectors, NULL, },
299
309
        { CFI_MFR_AMD, 0x1a00, fixup_s29gl032n_sectors, NULL, },
300
310
        { CFI_MFR_AMD, 0x1a01, fixup_s29gl032n_sectors, NULL, },
 
311
        { CFI_MFR_ST,  0x227E, fixup_M29W128G_write_buffer, NULL, },
301
312
#if !FORCE_WORD_WRITE
302
313
        { CFI_MFR_ANY, CFI_ID_ANY, fixup_use_write_buffers, NULL, },
303
314
#endif