Re: MMC: Make the configuration memory resource optional

From: Guennadi Liakhovetski
Date: Wed Aug 05 2009 - 15:44:57 EST


On Wed, 5 Aug 2009, Ian Molton wrote:

> Hi all,
>
> Could all non-MFD users of tmio-mmc please ensure that the following is
> actually true on your hardware?
>
> mmc->f_max = pdata->hclk;
> mmc->f_min = mmc->f_max / 512;

That's what I currently have in the driver, yes.

> According to all the data I have, the smallest divider setting of 0x100 is /2
> and only MFD controllers with the CNF area can select no-divider mode.
>
> this would mean that non-MFD chips should be doing:
>
> mmc->f_max = pdata->hclk / 2;
> mmc->f_min = pdata->hclk / 512;

How do we verify this? Do I need some "very fast" card, so that sd would
try to drive the clock beyond pdata->hclk / 2, which should then fail?
Currently I'm using 24MHz (copied from the original driver), and the only
thing I know about the controller is its "Maximum operating frequency: 25
MHz."

Thanks
Guennadi
---
Guennadi Liakhovetski
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/