Re: [PATCH v2] mmc: dw_mmc: add hw_reset support

2016-01-03 Thread Shawn Lin
On 2016/1/4 13:52, Jaehoon Chung wrote: Hi, Shawn. On 01/04/2016 11:50 AM, Shawn Lin wrote: This patch implement hw_reset function for DesignWare MMC controller. By adding this feature, mmc blk can do some basic recovery. >From Synopsys DesignWare Cores Mobile Storage Host Databook (Section 7.

Re: [PATCH v2] mmc: dw_mmc: add hw_reset support

2016-01-03 Thread Jaehoon Chung
Hi, Shawn. On 01/04/2016 11:50 AM, Shawn Lin wrote: > This patch implement hw_reset function for DesignWare > MMC controller. By adding this feature, mmc blk can > do some basic recovery. > >>From Synopsys DesignWare Cores Mobile Storage Host Databook > (Section 7.4.4), we get the details: > 1. P

[PATCH v2] mmc: dw_mmc: add hw_reset support

2016-01-03 Thread Shawn Lin
This patch implement hw_reset function for DesignWare MMC controller. By adding this feature, mmc blk can do some basic recovery. >From Synopsys DesignWare Cores Mobile Storage Host Databook (Section 7.4.4), we get the details: 1. Program CMD12 to end any transfer in process. 2. Wait for DTO, even