[PATCH 13/15] mtd: st_spi_fsm: Improve busy wait handling

2014-03-26 Thread Lee Jones
From: Angus Clark In this patch, the fsm_wait_busy() function is updated to a take a timeout parameter. This allows us to specify different timeout delays depending on the operation being performed. Previously, a fixed, worst-case delay (corresponding to the Chip Erase operation, ~300s!) was

[PATCH 13/15] mtd: st_spi_fsm: Improve busy wait handling

2014-03-26 Thread Lee Jones
From: Angus Clark angus.cl...@st.com In this patch, the fsm_wait_busy() function is updated to a take a timeout parameter. This allows us to specify different timeout delays depending on the operation being performed. Previously, a fixed, worst-case delay (corresponding to the Chip Erase