1
0

460-mtd-cfi_cmdset_0002-no-erase_suspend.patch 432 B

1234567891011
  1. --- a/drivers/mtd/chips/cfi_cmdset_0002.c
  2. +++ b/drivers/mtd/chips/cfi_cmdset_0002.c
  3. @@ -809,7 +809,7 @@ static int get_chip(struct map_info *map
  4. return 0;
  5. case FL_ERASING:
  6. - if (!cfip || !(cfip->EraseSuspend & (0x1|0x2)) ||
  7. + if (1 /* no suspend */ || !cfip || !(cfip->EraseSuspend & (0x1|0x2)) ||
  8. !(mode == FL_READY || mode == FL_POINT ||
  9. (mode == FL_WRITING && (cfip->EraseSuspend & 0x2))))
  10. goto sleep;