What about DMA channel? Isn't it necessary?
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 3d4a7d1..262d846 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -514,10 +514,18 @@ mmc_omap_start_dma_transfer(struct mmc_omap_host
*host, struct mmc_request *req)
if (!(data->flags & MMC_DATA_WRITE)) {
host->dma_dir = DMA_FROM_DEVICE;
- sync_dev = OMAP24XX_DMA_MMC1_RX;
+ if (host->id == OMAP_MMC1_DEVID)
+ sync_dev = OMAP24XX_DMA_MMC1_RX;
+ else
+ sync_dev = OMAP24XX_DMA_MMC2_RX;
+
} else {
host->dma_dir = DMA_TO_DEVICE;
- sync_dev = OMAP24XX_DMA_MMC1_TX;
+ if (host->id == OMAP_MMC1_DEVID)
+ sync_dev = OMAP24XX_DMA_MMC1_TX;
+ else
+ sync_dev = OMAP24XX_DMA_MMC2_TX;
+
}
On Tue, Mar 18, 2008 at 3:57 PM, Syed Mohammed, Khasim <[EMAIL PROTECTED]>
wrote:
>
>
> > -----Original Message-----
> > From: Seth Forshee [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 18, 2008 7:17 PM
> > To: Syed Mohammed, Khasim; Remith Ravi
> > Cc: Tony Lindgren; [email protected]
> > Subject: Re: OMAP MMC multiport support
> >
>
> > The current code needs a little bit of updating to support the second
> > MMC controller on the 2430. Below is a rough patch with the changes
> > that get it working for me (on a custom board), but it is not based
> > off of the git repo so it's not likely to apply directly. Hopefully
> > it will be helpful as a reference though.
> >
> > Cheers,
> > Seth
> >
> Seth,
>
> This looks ok to me, can you please do some cleanups and submit this patch
> to Tony for getting it onto tree?
>
> Thanks for the patch.
>
> Regards,
> Khasim
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
--
Francisco Keppler Silva Alecrim
OSMRC - INdT - Manaus
http://franciscoalecrim.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html