Skip to content

Commit

Permalink
Add blk_pos parameter to mmc multi_io_quirk callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Elwell authored and popcornmix committed Apr 23, 2015
1 parent 07d2cff commit c8ffccd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions drivers/mmc/card/block.c
Expand Up @@ -1401,6 +1401,7 @@ static void mmc_blk_rw_rq_prep(struct mmc_queue_req *mqrq,
brq->data.blocks = card->host->ops->multi_io_quirk(card,
(rq_data_dir(req) == READ) ?
MMC_DATA_READ : MMC_DATA_WRITE,
brq->cmd.arg,
brq->data.blocks);
}

Expand Down
4 changes: 3 additions & 1 deletion drivers/mmc/host/omap_hsmmc.c
Expand Up @@ -1798,7 +1798,9 @@ static int omap_hsmmc_disable_fclk(struct mmc_host *mmc)
}

static int omap_hsmmc_multi_io_quirk(struct mmc_card *card,
unsigned int direction, int blk_size)
unsigned int direction,
u32 blk_pos,
int blk_size)
{
/* This controller can't do multiblock reads due to hw bugs */
if (direction == MMC_DATA_READ)
Expand Down
4 changes: 3 additions & 1 deletion drivers/mmc/host/sh_mobile_sdhi.c
Expand Up @@ -170,7 +170,9 @@ static int sh_mobile_sdhi_write16_hook(struct tmio_mmc_host *host, int addr)
}

static int sh_mobile_sdhi_multi_io_quirk(struct mmc_card *card,
unsigned int direction, int blk_size)
unsigned int direction,
u32 blk_pos,
int blk_size)
{
/*
* In Renesas controllers, when performing a
Expand Down
4 changes: 3 additions & 1 deletion drivers/mmc/host/tmio_mmc_pio.c
Expand Up @@ -1001,7 +1001,9 @@ static int tmio_mmc_get_ro(struct mmc_host *mmc)
}

static int tmio_multi_io_quirk(struct mmc_card *card,
unsigned int direction, int blk_size)
unsigned int direction,
u32 blk_pos,
int blk_size)
{
struct tmio_mmc_host *host = mmc_priv(card->host);

Expand Down
4 changes: 3 additions & 1 deletion include/linux/mmc/host.h
Expand Up @@ -146,7 +146,9 @@ struct mmc_host_ops {
* I/O. Returns the number of supported blocks for the request.
*/
int (*multi_io_quirk)(struct mmc_card *card,
unsigned int direction, int blk_size);
unsigned int direction,
u32 blk_pos,
int blk_size);
};

struct mmc_card;
Expand Down

0 comments on commit c8ffccd

Please sign in to comment.