mmc mxcmmc: fix falling back to PIO
Subsystems (2)
Sascha Hauer
maintainerPATCH v2 1/1 mmc mxcmmc: fix falling back to PIO
When we can't configure the dma channel we want to fall back to PIO. We do this by setting host->do_dma to zero. This does not work as do_dma is used to see whether dma can be used for the current transfer. Instead, we have to set host->dma to NULL.
--- drivers/mmc/host/mxcmmc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/mmc/host/mxcmmc.c +2 -1
@@ -730,7 +730,8 @@ static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)dev_err (mmc_dev (host->mmc),"failed to config DMA channel. Falling back to PIO\n" );dma_release_channel (host->dma); - host->do_dma =0 ; + host->dma =NULL ; + host->dma =0 ; } }
Signature · 1 line
1.7.5.4
Sascha Hauer
maintainerPATCH v2 1/1 mmc mxcmmc: fix falling back to PIO
Quoted 5 lines · Sascha Hauer
When we can't configure the dma channel we want to fall back to PIO. We do this by setting
host->do_dmato zero. This does not work asdo_dmais used to see whether dma can be used for the current transfer. Instead, we have to sethost->dmato NULL.
Argh. Still wrong. I stop sending patches for today.
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Sascha Hauer
maintainerPATCH v2 1/1 mmc mxcmmc: fix falling back to PIO
In reply to Sascha HauerHi Chris,
Can you take this one please?
Sascha
Quoted 31 lines · Sascha Hauer
When we can't configure the dma channel we want to fall back to PIO. We do this by setting
host->do_dmato zero. This does not work asdo_dmais used to see whether dma can be used for the current transfer. Instead, we have to sethost->dmato NULL.Signed-off-by Sascha Hauer <[email protected]>Cc Chris Ball <[email protected]>Cc linux-mmc at vger.kernel.org--- drivers/mmc/host/mxcmmc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)drivers/mmc/host/mxcmmc.c +2
-1@@ -730,7 +730,8 @@ static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)dev_err (mmc_dev (host->mmc),"failed to config DMA channel. Falling back to PIO\n" );dma_release_channel (host->dma); - host->do_dma =0 ; + host->dma =NULL ; + host->dma =0 ; } }Signature · 1 line
1.7.5.4
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH v2 1/1 mmc mxcmmc: fix falling back to PIO
Hi,
Quoted 20 lines · Sascha Hauer
Hi Chris,
Can you take this one please?
Sascha
Quoted 13 lines · Sascha Hauer
When we can't configure the dma channel we want to fall back to PIO. We do this by setting
host->do_dmato zero. This does not work asdo_dmais used to see whether dma can be used for the current transfer. Instead, we have to sethost->dmato NULL.Signed-off-by Sascha Hauer <[email protected]>Cc Chris Ball <[email protected]>Cc linux-mmc at vger.kernel.org--- drivers/mmc/host/mxcmmc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
Quoted 11 lines
drivers/mmc/host/mxcmmc.c static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) · line 734
Quoted 11 lines
drivers/mmc/host/mxcmmc.c +2
-1@@ -730,7 +730,8 @@ static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)dev_err (mmc_dev (host->mmc),"failed to config DMA channel. Falling back to PIO\n" );dma_release_channel (host->dma); - host->do_dma =0 ; + host->dma =NULL ; + host->dma =0 ;
NULL or 0, that is the question? Or both?
That looks a little bit screwed.
Lothar Wa?mann
Signature · 9 lines
___________________________________________________________ Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Gesch?ftsf?hrer: Matthias Kaussen Handelsregistereintrag: Amtsgericht Aachen, HRB 4996 www.karo-electronics.de | info at karo-electronics.de ___________________________________________________________
Sascha Hauer
maintainerPATCH v2 1/1 mmc mxcmmc: fix falling back to PIO
Quoted 23 lines · Lothar Wa?mann
Hi,
Quoted 20 lines · Sascha Hauer
Hi Chris,
Can you take this one please?
Sascha
Quoted 13 lines · Sascha Hauer
When we can't configure the dma channel we want to fall back to PIO. We do this by setting
host->do_dmato zero. This does not work asdo_dmais used to see whether dma can be used for the current transfer. Instead, we have to sethost->dmato NULL.Signed-off-by Sascha Hauer <[email protected]>Cc Chris Ball <[email protected]>Cc linux-mmc at vger.kernel.org--- drivers/mmc/host/mxcmmc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
Quoted 13 lines
Quoted 11 lines
drivers/mmc/host/mxcmmc.c static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) · line 734
Quoted 11 lines
drivers/mmc/host/mxcmmc.c +2
-1@@ -730,7 +730,8 @@ static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)dev_err (mmc_dev (host->mmc),"failed to config DMA channel. Falling back to PIO\n" );dma_release_channel (host->dma); - host->do_dma =0 ; + host->dma =NULL ; + host->dma =0 ;NULL or 0, that is the question? Or both?
That looks a little bit screwed.
NULL. Hm, this was already fixed in my tree. I just sent an updated patch.
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |