Skip to content

Commit aa35f54

Browse files
committed
Merge tag 'mmc-v6.12-rc3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
Pull MMC host fixes from Ulf Hansson: - dw_mmc: Revert fix for IDMAC operation with pages bigger than 4K - sunxi-mmc: Fix A100 compatible description * tag 'mmc-v6.12-rc3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: Revert "mmc: dw_mmc: Fix IDMAC operation with pages bigger than 4K" mmc: sunxi-mmc: Fix A100 compatible description
2 parents eeae5ef + 1635e40 commit aa35f54

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/mmc/host/dw_mmc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2957,8 +2957,8 @@ static int dw_mci_init_slot(struct dw_mci *host)
29572957
if (host->use_dma == TRANS_MODE_IDMAC) {
29582958
mmc->max_segs = host->ring_size;
29592959
mmc->max_blk_size = 65535;
2960-
mmc->max_req_size = DW_MCI_DESC_DATA_LENGTH * host->ring_size;
2961-
mmc->max_seg_size = mmc->max_req_size;
2960+
mmc->max_seg_size = 0x1000;
2961+
mmc->max_req_size = mmc->max_seg_size * host->ring_size;
29622962
mmc->max_blk_count = mmc->max_req_size / 512;
29632963
} else if (host->use_dma == TRANS_MODE_EDMAC) {
29642964
mmc->max_segs = 64;

drivers/mmc/host/sunxi-mmc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,10 +1191,9 @@ static const struct sunxi_mmc_cfg sun50i_a64_emmc_cfg = {
11911191
.needs_new_timings = true,
11921192
};
11931193

1194-
static const struct sunxi_mmc_cfg sun50i_a100_cfg = {
1194+
static const struct sunxi_mmc_cfg sun50i_h616_cfg = {
11951195
.idma_des_size_bits = 16,
11961196
.idma_des_shift = 2,
1197-
.clk_delays = NULL,
11981197
.can_calibrate = true,
11991198
.mask_data0 = true,
12001199
.needs_new_timings = true,
@@ -1217,8 +1216,9 @@ static const struct of_device_id sunxi_mmc_of_match[] = {
12171216
{ .compatible = "allwinner,sun20i-d1-mmc", .data = &sun20i_d1_cfg },
12181217
{ .compatible = "allwinner,sun50i-a64-mmc", .data = &sun50i_a64_cfg },
12191218
{ .compatible = "allwinner,sun50i-a64-emmc", .data = &sun50i_a64_emmc_cfg },
1220-
{ .compatible = "allwinner,sun50i-a100-mmc", .data = &sun50i_a100_cfg },
1219+
{ .compatible = "allwinner,sun50i-a100-mmc", .data = &sun20i_d1_cfg },
12211220
{ .compatible = "allwinner,sun50i-a100-emmc", .data = &sun50i_a100_emmc_cfg },
1221+
{ .compatible = "allwinner,sun50i-h616-mmc", .data = &sun50i_h616_cfg },
12221222
{ /* sentinel */ }
12231223
};
12241224
MODULE_DEVICE_TABLE(of, sunxi_mmc_of_match);

0 commit comments

Comments
 (0)