History

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

Linus Torvalds committed 2 years ago

Commit aa35f542 parents eeae5ef 1635e402 files · +5 −5Browse files

Unified · Split

2 files
  1. drivers/mmc/host/dw_mmc.c +2 −2
  2. drivers/mmc/host/sunxi-mmc.c +3 −3
drivers/mmc/host/dw_mmc.c+2−2
@@ -2957,8 +2957,8 @@ static int dw_mci_init_slot(struct dw_mci *host) · 2956 unmodified lines
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+3−3
@@ -1191,10 +1191,9 @@ static const struct sunxi_mmc_cfg sun50i_a64_emmc_cfg = { · 1190 unmodified lines
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[] = { · 16 unmodified lines
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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t