mtd: spear_smi: clear status register on init
authorShiraz Hashim <shiraz.hashim@st.com>
Mon, 2 Jul 2012 05:58:46 +0000 (11:28 +0530)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 6 Jul 2012 17:27:38 +0000 (18:27 +0100)
commit4dc48c37d1ce968b5ade7d1646927199ee536129
treed03ec4c8c7c14c66ba10860df690101e1ce56fab
parent770daa43379690667e6552d68d343111b357341d
mtd: spear_smi: clear status register on init

It was observed that sometimes smi returned errors while resume from
suspend.

For safety reasons clear status register for any errors during init. In
absence of it smi can return failures during command transmissions.

Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/spear_smi.c