RE: [PATCH 01/12] mmc: sdhci: add support for SD Host Controller 3.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 18 Feb 2011, Nath, Arindam wrote:

> Hi Philip,
> 
> 
> > -----Original Message-----
> > From: Philip Rakity [mailto:prakity@xxxxxxxxxxx]
> > Sent: Friday, February 18, 2011 9:19 PM
> > To: Nath, Arindam
> > Cc: Zhangfei Gao; Chris Ball; linux-mmc@xxxxxxxxxxxxxxx; Su, Henry; Lu,
> > Aaron; anath.amd@xxxxxxxxx; Nicolas Pitre
> > Subject: [PATCH 01/12] mmc: sdhci: add support for SD Host Controller
> > 3.0
> > 
> > 
> > Arindam,
> > 
> > Could you look at making (Tuning)  CMD19 part of the sdhc.ci driver?
> > It flow is part of the Host Controller and Physical layer specs.

Still, if this is something that is common to all host controllers then 
it should live in the core code.  The host controller driver should be 
as dumb as possible and try to be command agnostic.

> There are two main reasons for exposing the callback of tuning procedure from sdhci.c:
> 
> 1. The tuning procedure is part of UHS-I initialization sequence as described in Physical Layer Spec v3.01. Since the UHS-I init sequence takes places inside sd.c, so I thought it better to place it there instead.
> 2. In future, if we need to add support for UHS-I sequence for sdio cards too, we can use the same callback from sdhci.c without any modifications.

And this won't have to be duplicated in all the host controller drivers.


Nicolas
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux