2016-12-02 10:50:26 +00:00
|
|
|
From dc519294e6a463eae2f1ad1d65fd06b1c4d10c96 Mon Sep 17 00:00:00 2001
|
2016-02-25 10:14:01 +00:00
|
|
|
From: Phil Elwell <phil@raspberrypi.org>
|
|
|
|
Date: Mon, 15 Feb 2016 10:00:27 +0000
|
2016-09-10 12:54:26 +00:00
|
|
|
Subject: [PATCH] bcm2835-sdhost: Restore ATOMIC flag to PIO sg mapping
|
2016-02-25 10:14:01 +00:00
|
|
|
|
|
|
|
Allocation problems have been seen in a wireless driver, and
|
|
|
|
this is the only change which might have been responsible.
|
|
|
|
---
|
|
|
|
drivers/mmc/host/bcm2835-sdhost.c | 7 +++----
|
|
|
|
1 file changed, 3 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
--- a/drivers/mmc/host/bcm2835-sdhost.c
|
|
|
|
+++ b/drivers/mmc/host/bcm2835-sdhost.c
|
|
|
|
@@ -874,15 +874,14 @@ static void bcm2835_sdhost_prepare_data(
|
|
|
|
host->flush_fifo = 0;
|
|
|
|
host->data->bytes_xfered = 0;
|
|
|
|
|
|
|
|
-
|
|
|
|
if (!host->dma_desc) {
|
|
|
|
/* Use PIO */
|
|
|
|
- int flags;
|
|
|
|
+ int flags = SG_MITER_ATOMIC;
|
|
|
|
|
|
|
|
if (data->flags & MMC_DATA_READ)
|
|
|
|
- flags = SG_MITER_TO_SG;
|
|
|
|
+ flags |= SG_MITER_TO_SG;
|
|
|
|
else
|
|
|
|
- flags = SG_MITER_FROM_SG;
|
|
|
|
+ flags |= SG_MITER_FROM_SG;
|
|
|
|
sg_miter_start(&host->sg_miter, data->sg, data->sg_len, flags);
|
|
|
|
host->blocks = data->blocks;
|
|
|
|
}
|