Ludovic Barre
33ba6fec00
mmc: mmci_sdmmc: fix power on issue due to pwr_reg initialization
...
This patch fix a power-on issue, and avoid to retry the power sequence.
In power off sequence: sdmmc must set pwr_reg in "power-cycle" state
(value 0x2), to prevent the card from being supplied through the signal
lines (all the lines are driven low).
In power on sequence: when the power is stable, sdmmc must set pwr_reg
in "power-off" state (value 0x0) to drive all signal to high before to
set "power-on".
To avoid writing the same value to the power register several times, this
register is cached by the pwr_reg variable. At probe pwr_reg is initialized
to 0 by kzalloc of mmc_alloc_host.
Like pwr_reg value is 0 at probing, the power on sequence fail because
the "power-off" state is not writes (value 0x0) and the lines
remain drive to low.
This patch initializes "pwr_reg" variable with power register value.
This it done in sdmmc variant init to not disturb default mmci behavior.
Signed-off-by: Ludovic Barre <ludovic.barre@st.com >
Link: https://lore.kernel.org/r/20200420161831.5043-1-ludovic.barre@st.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-05-28 11:21:00 +02:00
..
2020-05-07 15:10:25 +02:00
2020-05-28 11:20:56 +02:00
2020-05-28 11:21:00 +02:00
2020-05-28 11:20:56 +02:00
2019-12-19 08:19:43 +01:00
2020-03-27 13:26:25 +01:00
2019-12-18 12:55:11 +01:00
2019-08-06 18:59:14 +02:00
2017-04-24 21:42:10 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-04-20 09:24:39 +02:00
2020-03-24 14:39:52 +01:00
2019-12-18 13:37:07 +01:00
2019-01-22 08:46:20 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-09-11 16:10:37 +02:00
2020-05-28 11:20:58 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2020-05-28 11:20:58 +02:00
2019-05-30 11:26:32 -07:00
2019-12-16 13:00:41 +01:00
2020-03-24 14:35:39 +01:00
2020-03-24 14:35:39 +01:00
2020-05-28 11:20:58 +02:00
2020-04-20 09:24:39 +02:00
2020-05-28 11:20:59 +02:00
2020-05-28 11:20:59 +02:00
2019-12-18 13:37:07 +01:00
2019-06-05 17:36:37 +02:00
2020-05-28 11:21:00 +02:00
2020-05-28 11:20:58 +02:00
2020-03-24 14:35:40 +01:00
2019-11-14 16:28:56 +01:00
2020-05-28 11:20:58 +02:00
2019-12-18 14:55:11 +01:00
2019-06-19 17:09:55 +02:00
2019-12-19 08:19:42 +01:00
2019-12-19 08:19:42 +01:00
2019-04-15 11:55:54 +02:00
2019-12-16 13:00:41 +01:00
2019-06-19 17:09:55 +02:00
2019-12-19 08:19:42 +01:00
2019-12-19 08:19:42 +01:00
2017-11-02 11:10:55 +01:00
2020-05-28 11:20:58 +02:00
2019-12-16 12:29:36 +01:00
2019-09-11 15:58:39 +02:00
2020-05-28 11:20:57 +02:00
2020-03-18 11:55:02 +01:00
2019-06-19 17:09:07 +02:00
2020-05-28 11:20:56 +02:00
2019-07-11 18:11:21 -07:00
2020-03-24 14:39:53 +01:00
2019-12-18 14:46:06 +01:00
2019-11-13 16:10:16 +01:00
2020-05-11 10:51:30 +02:00
2019-02-25 08:40:58 +01:00
2020-01-20 12:01:19 +01:00
2020-03-24 14:39:45 +01:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:29:19 -07:00
2020-05-28 11:20:57 +02:00
2020-03-24 14:35:41 +01:00
2020-03-24 14:39:53 +01:00
2020-03-24 14:39:53 +01:00
2020-05-28 11:21:00 +02:00
2020-05-28 11:20:58 +02:00
2019-11-20 13:40:47 +01:00
2020-05-28 11:20:57 +02:00
2018-10-08 11:40:43 +02:00
2020-01-20 12:10:36 +01:00
2019-05-30 11:26:32 -07:00
2020-03-24 14:39:52 +01:00
2018-01-04 12:46:11 +01:00
2020-05-28 11:20:57 +02:00
2019-05-21 10:50:45 +02:00
2018-07-16 11:21:45 +02:00
2020-05-07 15:10:25 +02:00
2019-09-11 15:59:01 +02:00
2020-03-24 14:39:45 +01:00
2018-05-29 12:24:26 +02:00
2019-09-11 15:58:39 +02:00
2020-03-24 14:39:45 +01:00
2019-06-05 17:36:37 +02:00
2019-08-06 18:59:14 +02:00
2019-12-18 14:46:06 +01:00
2019-12-18 13:37:07 +01:00
2019-12-18 14:46:06 +01:00
2020-05-28 11:20:59 +02:00
2019-05-30 11:26:41 -07:00
2020-03-24 14:39:52 +01:00
2019-06-05 17:37:10 +02:00
2020-04-20 10:09:03 +02:00
2019-06-05 17:37:10 +02:00
2020-05-28 11:20:59 +02:00
2020-05-28 11:20:59 +02:00
2019-05-24 17:36:45 +02:00
2019-12-19 08:19:42 +01:00
2020-05-28 11:20:58 +02:00
2019-06-19 17:09:55 +02:00
2020-03-24 14:35:38 +01:00
2019-09-13 13:48:35 +02:00
2020-03-24 14:35:38 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-12-16 13:00:41 +01:00
2020-05-28 11:21:00 +02:00
2019-05-30 11:26:32 -07:00
2020-01-06 09:45:59 +01:00
2020-03-24 14:39:52 +01:00
2020-05-28 11:20:56 +02:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:55 +02:00