Ulf Hansson
e9968c6fa8
mmc: mmci: Send a CMD12 to clear the DPSM at errors
...
The current approach with sending a CMD12 (STOP_TRANSMISSION) to complete a
data transfer request, either because of using the open-ended transmission
type or because of receiving an error during a pre-defined data transfer,
isn't sufficient for the STM32 sdmmc variant. More precisely, this variant
needs to clear the DPSM ("Data Path State Machine") by sending a CMD12, for
all failing ADTC commands.
Support this, by adding a struct mmc_command inside the struct mmci_host
and initialize it to a CMD12 during ->probe(). Let's also add checks for
the new conditions, to enable mmci_data_irq() and mmci_cmd_irq() to
postpone the calls to mmci_request_end(), but instead send the CMD12.
Cc: Ludovic Barre <ludovic.barre@st.com >
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
Tested-by: Ludovic Barre <ludovic.barre@st.com >
2019-02-25 08:40:58 +01:00
..
2018-12-17 08:26:24 +01:00
2018-08-21 16:06:17 +02:00
2019-02-25 08:40:58 +01:00
2018-05-29 12:24:26 +02:00
2019-02-25 08:40:58 +01:00
2017-08-30 15:03:38 +02:00
2017-09-08 15:38:22 +02:00
2017-10-30 11:50:33 +01:00
2017-04-24 21:42:10 +02:00
2019-02-25 08:40:58 +01:00
2016-01-05 18:04:57 +01:00
2017-12-11 12:44:34 +01:00
2017-12-11 13:11:21 +01:00
2019-02-25 08:40:58 +01:00
2019-01-22 08:46:20 +01:00
2018-10-08 12:02:22 +02:00
2015-03-23 14:13:28 +01:00
2018-10-08 11:40:43 +02:00
2018-02-27 15:12:25 +01:00
2018-03-15 09:27:11 +01:00
2017-02-13 13:19:59 +01:00
2018-05-02 15:08:38 +02:00
2018-02-27 15:12:25 +01:00
2017-11-02 11:10:55 +01:00
2018-07-03 10:57:16 +02:00
2018-03-15 14:43:22 +01:00
2019-02-25 08:40:58 +01:00
2019-02-25 08:40:58 +01:00
2018-12-17 08:26:24 +01:00
2019-02-13 08:41:15 +01:00
2018-12-17 08:26:24 +01:00
2019-02-25 08:40:58 +01:00
2018-10-09 09:13:03 +02:00
2018-08-01 12:01:13 +02:00
2018-10-09 09:16:53 +02:00
2019-02-25 08:40:58 +01:00
2019-02-25 08:40:58 +01:00
2017-08-30 14:01:41 +02:00
2019-01-28 12:49:28 +01:00
2018-05-31 15:02:16 +02:00
2019-02-25 08:40:58 +01:00
2019-02-25 08:40:58 +01:00
2018-12-17 08:26:24 +01:00
2018-12-17 09:00:52 +01:00
2019-02-25 08:40:58 +01:00
2019-02-25 08:40:58 +01:00
2017-11-02 11:10:55 +01:00
2019-02-25 08:40:58 +01:00
2018-12-17 09:01:59 +01:00
2018-12-17 08:26:24 +01:00
2018-10-08 11:40:43 +02:00
2017-11-29 10:16:44 +00:00
2018-12-17 08:26:24 +01:00
2019-02-25 08:40:58 +01:00
2016-07-25 10:34:46 +02:00
2019-02-25 08:40:58 +01:00
2018-01-11 15:50:53 +01:00
2018-12-17 08:26:24 +01:00
2019-02-25 08:40:58 +01:00
2019-02-25 08:40:58 +01:00
2018-12-17 08:26:24 +01:00
2016-07-29 11:29:04 +02:00
2016-07-29 11:29:04 +02:00
2019-02-25 08:40:58 +01:00
2018-12-17 08:26:24 +01:00
2019-01-14 14:14:27 +01:00
2018-12-17 08:26:24 +01:00
2018-12-17 08:26:24 +01:00
2017-10-30 11:46:01 +01:00
2018-10-08 11:40:43 +02:00
2018-12-17 08:26:24 +01:00
2016-07-29 11:29:04 +02:00
2019-02-25 08:40:58 +01:00
2018-01-04 12:46:11 +01:00
2019-02-25 08:40:58 +01:00
2017-04-24 21:41:28 +02:00
2018-07-16 11:21:45 +02:00
2019-02-25 08:40:58 +01:00
2019-02-25 08:40:58 +01:00
2018-05-29 12:24:26 +02:00
2018-10-08 11:40:43 +02:00
2018-10-08 11:40:43 +02:00
2019-02-25 08:40:58 +01:00
2018-10-08 11:40:43 +02:00
2018-05-29 12:24:26 +02:00
2018-10-08 11:40:43 +02:00
2018-10-08 11:40:43 +02:00
2018-10-08 11:40:43 +02:00
2018-05-29 12:24:26 +02:00
2019-02-25 08:40:58 +01:00
2019-02-25 08:40:58 +01:00
2018-12-17 08:26:24 +01:00
2017-10-04 10:50:36 +02:00
2019-02-25 08:40:58 +01:00
2019-02-25 08:40:58 +01:00
2017-08-30 14:01:44 +02:00
2018-10-08 11:40:43 +02:00
2019-02-25 08:40:58 +01:00
2018-10-08 11:40:43 +02:00
2019-02-25 08:40:58 +01:00
2018-10-15 14:39:45 +02:00
2018-12-17 08:26:24 +01:00
2017-08-30 14:01:42 +02:00
2014-11-26 14:30:58 +01:00
2018-10-15 14:53:21 +02:00
2018-10-08 11:40:43 +02:00
2018-05-21 15:49:20 +02:00
2017-11-02 15:20:28 +01:00
2017-11-02 15:20:29 +01:00
2018-05-21 15:49:21 +02:00
2019-02-25 08:40:58 +01:00