Re: [U-Boot] [PATCH] mmc: sdhci: Fix the SD clock stop sequence

2015-09-22 Thread Yang, Wenyou
Hi Pantelis, > -Original Message- > From: Pantelis Antoniou [mailto:pa...@antoniou-consulting.com] > Sent: 2015年9月21日 23:36 > To: Yang, Wenyou > Cc: U-Boot Mailing List > Subject: Re: [PATCH] mmc: sdhci: Fix the SD clock stop sequence > > Hi Wenyou, > > > On Sep 16, 2015, at 11:22 , Weny

Re: [U-Boot] [PATCH] mmc: sdhci: Fix the SD clock stop sequence

2015-09-21 Thread Pantelis Antoniou
Hi Wenyou, > On Sep 16, 2015, at 11:22 , Wenyou Yang wrote: > > According to the SDHC specification, stopping the SD Clock is by setting > the SD Clock Enable bit in the Clock Control register at 0, instead of > setting all bits at 0. > > Before stopping the SD clock, we need to make sure all S

[U-Boot] [PATCH] mmc: sdhci: Fix the SD clock stop sequence

2015-09-16 Thread Wenyou Yang
According to the SDHC specification, stopping the SD Clock is by setting the SD Clock Enable bit in the Clock Control register at 0, instead of setting all bits at 0. Before stopping the SD clock, we need to make sure all SD transactions to complete, so add checking the CMD and DAT bits in the Pre