Skip to content

Commit f19efdb

Browse files
committed
mmc: sd: HACK add module parameter to allow CQ write depth modification
Needed for comparative testing. Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
1 parent da91f3e commit f19efdb

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

drivers/mmc/core/core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ static const unsigned freqs[] = { 400000, 300000, 200000, 100000 };
6161
bool use_spi_crc = 1;
6262
module_param(use_spi_crc, bool, 0);
6363

64+
uint max_posted_writes = 1;
65+
module_param(max_posted_writes, uint, 0644);
66+
6467
static int mmc_schedule_delayed_work(struct delayed_work *work,
6568
unsigned long delay)
6669
{

drivers/mmc/core/core.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ int mmc_attach_sdio(struct mmc_host *host);
8484

8585
/* Module parameters */
8686
extern bool use_spi_crc;
87+
extern uint max_posted_writes;
8788

8889
/* Debugfs information for hosts and cards */
8990
#ifdef CONFIG_DEBUG_FS

drivers/mmc/core/sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ static int mmc_sd_init_card(struct mmc_host *host, u32 ocr,
14071407

14081408
card->ocr = ocr;
14091409
card->type = MMC_TYPE_SD;
1410-
card->max_posted_writes = 1;
1410+
card->max_posted_writes = max_posted_writes;
14111411
memcpy(card->raw_cid, cid, sizeof(card->raw_cid));
14121412
}
14131413

0 commit comments

Comments
 (0)