# \[PATCH v3 11/12\] mmc: sunxi: Convert MMC driver to the standard clock phase API

- From: David Lanzendörfer \<hidden\>
- Date: 2014-09-26 14:27:10 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2014/09/8097610
- Thread: https://ratatoskr.run/linux-devicetree/2014/09/8096902/t.md

```text
Hello
> Now that we have proper support to use the generic phase API in our clock
> driver, switch the MMC driver to use it.
> [...]
>  	/* determine delays */
>  	if (rate <= 400000) {
> -		oclk_dly = 0;
> -		sclk_dly = 7;
> +		oclk_dly = 180;
> +		sclk_dly = 42;
> [...]
How did you calculate the actual phase values from the original parameters?

greatings
-- 
David Lanzend?rfer
OpenSourceSupport GmbH
System engineer and supporter
http://www.o2s.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140926/8bc39436/attachment.sig>
```
