/**
  * nand_suspend - [MTD Interface] Suspend the NAND flash
  * @mtd: MTD device structure
+ *
+ * Returns 0 for success or negative error code otherwise.
  */
 static int nand_suspend(struct mtd_info *mtd)
 {
        struct nand_chip *chip = mtd_to_nand(mtd);
+       int ret = 0;
 
        mutex_lock(&chip->lock);
-       chip->suspended = 1;
+       if (chip->suspend)
+               ret = chip->suspend(chip);
+       if (!ret)
+               chip->suspended = 1;
        mutex_unlock(&chip->lock);
 
-       return 0;
+       return ret;
 }
 
 /**
        struct nand_chip *chip = mtd_to_nand(mtd);
 
        mutex_lock(&chip->lock);
-       if (chip->suspended)
+       if (chip->suspended) {
+               if (chip->resume)
+                       chip->resume(chip);
                chip->suspended = 0;
-       else
+       } else {
                pr_err("%s called for a chip which is not in suspended state\n",
                        __func__);
+       }
        mutex_unlock(&chip->lock);
 }
 
 
  * @lock:              lock protecting the suspended field. Also used to
  *                     serialize accesses to the NAND device.
  * @suspended:         set to 1 when the device is suspended, 0 when it's not.
+ * @suspend:           [REPLACEABLE] specific NAND device suspend operation
+ * @resume:            [REPLACEABLE] specific NAND device resume operation
  * @bbt:               [INTERN] bad block table pointer
  * @bbt_td:            [REPLACEABLE] bad block table descriptor for flash
  *                     lookup.
 
        struct mutex lock;
        unsigned int suspended : 1;
+       int (*suspend)(struct nand_chip *chip);
+       void (*resume)(struct nand_chip *chip);
 
        uint8_t *oob_poi;
        struct nand_controller *controller;