alistair23-linux/drivers/mtd/devices
Vipin Kumar 2c99b8bfb2 mtd: spear_smi: handle return value of timeouts properly
Handle timouts in general and return value of
'wait_event_interruptible_timeout' in particular, to capture all
conditions.

'wait_event_interruptible_timeout' returns either of the following three
values :-
   * 0               - time out occurred.
   * negative
      * -ERESTARTSYS - return because of a signal
      * other        - for a real error
   * positive        - time remaining

Fix particularly 'ERESTARTSYS' condition which is not properly handled
by the smi driver at a couple of places leading to an erroneous
situation.

Signed-off-by: Antonio BORNEO <antonio.borneo@st.com>
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-07-06 18:27:48 +01:00
..
block2mtd.c mtd: block2mtd: fix recursive call of mtd_writev 2012-06-01 20:23:19 +01:00
doc2000.c mtd: flash drivers set ecc strength 2012-03-27 00:56:46 +01:00
doc2001.c mtd: flash drivers set ecc strength 2012-03-27 00:56:46 +01:00
doc2001plus.c mtd: flash drivers set ecc strength 2012-03-27 00:56:46 +01:00
docecc.c mtd: spelling, capitalization, uniformity 2011-09-11 15:02:13 +03:00
docg3.c - More robust parsing especially of xattr data in JFFS2 2012-06-01 16:55:42 -07:00
docg3.h mtd: docg3 add protection against concurrency 2012-03-27 01:03:27 +01:00
docprobe.c mtd: docprobe: use kzalloc instead 2012-01-09 18:25:51 +00:00
Kconfig mtd: fix bogus inequation 2012-07-06 18:17:55 +01:00
lart.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00
m25p80.c mtd: m25p80: Add support for Atmel at45db081d 2012-07-06 18:17:07 +01:00
Makefile mtd: ST SPEAr: Add SMI driver for serial NOR flash 2012-03-27 00:14:16 +01:00
ms02-nv.c mtd: do not duplicate length and offset checks in drivers 2012-03-27 00:28:18 +01:00
ms02-nv.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
mtd_dataflash.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00
mtdram.c mtd: harmonize mtd_point interface implementation 2012-03-27 00:32:11 +01:00
phram.c mtd: phram: fix section mismatch for phram_setup 2012-03-27 01:02:29 +01:00
pmc551.c MTD merge for 3.4 2012-03-30 17:31:56 -07:00
slram.c MTD merge for 3.4 2012-03-30 17:31:56 -07:00
spear_smi.c mtd: spear_smi: handle return value of timeouts properly 2012-07-06 18:27:48 +01:00
sst25l.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00