Skip to contentSkip to conversation

mmc: wmt-sdmmc: Use GFP_KERNEL instead of hard-coded value

PATCH New Axel Lin 2 participants 3 messages Apr 28, 2014 – May 14, 2014

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 mmc: wmt-sdmmc: Use GFP_KERNEL instead of hard-coded value

---
 drivers/mmc/host/wmt-sdmmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/wmt-sdmmc.c +1 -1
index 34231d5..3605c37 100644
@@ -852,7 +852,7 @@ static int wmt_mci_probe(struct platform_device *pdev)
 	priv->dma_desc_buffer = dma_alloc_coherent(&pdev->dev,
 						   mmc->max_blk_count * 16,
 						   &priv->dma_desc_device_addr,
-						   208);
+						   GFP_KERNEL);
 	if (!priv->dma_desc_buffer) {
 		dev_err(&pdev->dev, "DMA alloc fail\n");
 		ret = -EPERM;
Signature · 1 line
1.8.1.2
author
#1 lore raw

PATCH 1/1 mmc: wmt-sdmmc: Use GFP_KERNEL instead of hard-coded value

2014-04-28 8:58 GMT+08:00 Axel Lin <[email protected]>:

Quoted 10 lines
---
 drivers/mmc/host/wmt-sdmmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/wmt-sdmmc.c +0 -0
index 34231d5..3605c37 100644

drivers/mmc/host/wmt-sdmmc.c static int wmt_mci_probe(struct platform_device *pdev) · line 855

Quoted 5 lines
drivers/mmc/host/wmt-sdmmc.c +1 -1
@@ -852,7 +852,7 @@ static int wmt_mci_probe(struct platform_device *pdev)
        priv->dma_desc_buffer = dma_alloc_coherent(&pdev->dev,
                                                   mmc->max_blk_count * 16,
                                                   &priv->dma_desc_device_addr,
-                                                  208);
+                                                  GFP_KERNEL);

Hi Ulf,
This is a pretty trivial patch.
Would you pick up this patch?

Regards,
Axel

#2 lore raw

PATCH 1/1 mmc: wmt-sdmmc: Use GFP_KERNEL instead of hard-coded value

Quoted 6 lines · Axel Lin

2014-04-28 8:58 GMT+08:00 Axel Lin <[email protected]>:

Quoted 5 lines
---
 drivers/mmc/host/wmt-sdmmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

drivers/mmc/host/wmt-sdmmc.c static int wmt_mci_probe(struct platform_device *pdev) · line 855

Quoted 10 lines
drivers/mmc/host/wmt-sdmmc.c +1 -1
index 34231d5..3605c37 100644
@@ -852,7 +852,7 @@ static int wmt_mci_probe(struct platform_device *pdev)
        priv->dma_desc_buffer = dma_alloc_coherent(&pdev->dev,
                                                   mmc->max_blk_count * 16,
                                                   &priv->dma_desc_device_addr,
-                                                  208);
+                                                  GFP_KERNEL);

Hi Ulf,
This is a pretty trivial patch.
Would you pick up this patch?

Done.

Kind regards
Ulf Hansson

Quoted 3 lines

Regards,
Axel