Skip to content

Commit c0baf6e

Browse files
author
Ulf Hansson
committed
mmc: Merge branch fixes into next
Merge the mmc fixes for v6.12-rc[n] into the next branch, to allow them to get tested together with the new mmc changes that are targeted for v6.13. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2 parents 3f31337 + 1635e40 commit c0baf6e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

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)