[PATCH 8/8] ARM: omap_hsmmc: remove platform data dma_mask and initialization

From
Russell King - ARM Linux <hidden>
Date
2012-04-18 19:42:24
Also in
linux-mmc, linux-omap
Reply to
T Krishnamoorthy, Balaji, 2012-04-18
On Wed, Apr 18, 2012 at 09:05:56PM +0530, T Krishnamoorthy, Balaji wrote:
On Wed, Apr 18, 2012 at 8:59 PM, Russell King - ARM Linux
[off-list ref] wrote:
quoted
On Wed, Apr 18, 2012 at 08:53:32PM +0530, T Krishnamoorthy, Balaji wrote:
quoted
Hi,

drivers/mmc/host/omap.c is also using dma_mask should that also be removed
Does this driver make use of this platform data?

If so, it needs converting to DMA engine _before_ this patch (which is
one reason why its a good idea to do these changes as separate patches...
as I've done.) ?It means stuff like this can be slotted in as necessary
in the patch order.

I'm told that driver is OMAP2 only - I don't have any OMAP2 platforms to
be able to test it on (I only have OMAP3 and OMAP4.)
Yes, this driver is for omap2420 and omap1 devices.
Looking at this driver, there seems to be some interaction between how
the DMA is programmed for each part of the scatterlist, and how the
MMC interface is programmed, specifically:

        frame = data->blksz;
        if (cpu_is_omap15xx() && frame > 32)
                frame = 32;
        else if (frame > 64)
                frame = 64;
        frame >>= 1;
        if (!(data->flags & MMC_DATA_WRITE)) {
                buf = 0x800f | ((frame - 1) << 8);
        } else {
                buf = 0x0f80 | ((frame - 1) << 0);
        }
        OMAP_MMC_WRITE(host, BUF, buf);

Does this register have to be written on every scatterlist entry, or can
it be written once@the start of request processing?
Thread (56 messages) 56 messages, 9 authors, last reply 2012-04-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help