MTD: merge 3.18 development into -next development
authorBrian Norris <computersforpeace@gmail.com>
Thu, 30 Oct 2014 01:56:26 +0000 (18:56 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 30 Oct 2014 01:56:26 +0000 (18:56 -0700)
To keep the two paths in sync

drivers/mtd/chips/cfi_cmdset_0001.c
drivers/mtd/nand/omap_elm.c

index a7543ba..3096f3d 100644 (file)
@@ -2590,6 +2590,8 @@ static void cfi_intelext_resume(struct mtd_info *mtd)
 
                /* Go to known state. Chip may have been power cycled */
                if (chip->state == FL_PM_SUSPENDED) {
+                       /* Refresh LH28F640BF Partition Config. Register */
+                       fixup_LH28F640BF(mtd);
                        map_write(map, CMD(0xFF), cfi->chips[i].start);
                        chip->oldstate = chip->state = FL_READY;
                        wake_up(&chip->wq);
index b4f61c7..0585310 100644 (file)
@@ -115,7 +115,7 @@ int elm_config(struct device *dev, enum bch_ecc bch_type,
 
        if (!info) {
                dev_err(dev, "Unable to configure elm - device not probed?\n");
-               return -ENODEV;
+               return -EPROBE_DEFER;
        }
        /* ELM cannot detect ECC errors for chunks > 1KB */
        if (ecc_step_size > ((ELM_ECC_SIZE + 1) / 2)) {