[GIT PULL] MMC and MEMSTICK updates for v5.14

From: Ulf Hansson
Date: Mon Jun 28 2021 - 06:19:51 EST


Hi Linus,

Here's the pull-request with updates for MMC and MEMSTICK for v5.14. Details
about the highlights are as usual found in the signed tag.

Please pull this in!

Kind regards
Ulf Hansson


The following changes since commit 103a5348c22c3fca8b96c735a9e353b8a0801842:

mmc: meson-gx: use memcpy_to/fromio for dram-access-quirk (2021-06-14 14:02:33 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git tags/mmc-v5.14

for you to fetch changes up to 98b5ce4c08ca85727888fdbd362d574bcfa18e3c:

mmc: sdhci-iproc: Add support for the legacy sdhci controller on the BCM7211 (2021-06-15 17:27:48 +0200)

----------------------------------------------------------------
MMC core:
- Add support for Cache Ctrl for SD cards
- Add support for Power Off Notification for SD cards
- Add support for read/write of the SD function extension registers
- Allow broken eMMC HS400 mode to be disabled via DT
- Allow UHS-I voltage switch for SDSC cards if supported
- Disable command queueing in the ioctl path
- Enable eMMC sleep commands to use HW busy polling to minimize delay
- Extend re-use of the common polling loop to standardize behaviour
- Take into account MMC_CAP_NEED_RSP_BUSY for eMMC HPI commands

MMC host:
- jz4740: Add support for the JZ4775 variant
- sdhci-acpi: Disable write protect detection on Toshiba Encore 2 WT8-B
- sdhci-esdhc-imx: Advertise HS400 support through MMC caps
- sdhci-esdhc-imx: Enable support for system wakeup for SDIO
- sdhci-iproc: Add support for the legacy sdhci controller on the BCM7211
- vub3000: Fix control-request direction

MEMSTICK:
- A couple of fixes/cleanups.

----------------------------------------------------------------
Al Cooper (2):
dt-bindings: mmc: sdhci-iproc: Add brcm,bcm7211a0-sdhci
mmc: sdhci-iproc: Add support for the legacy sdhci controller on the BCM7211

Andreas Färber (1):
dt-bindings: mmc: rockchip-dw-mshc: Add Rockchip RK1808

Andrew Jeffery (1):
mmc: sdhci-of-aspeed: Turn down a phase correction warning

Andy Shevchenko (2):
mmc: mmc_spi: Drop duplicate 'mmc_spi' in the debug messages
mmc: mmc_spi: Imply container_of() to be no-op

Aviral Gupta (1):
mmc: core: Add a missing SPDX license header

Bean Huo (1):
mmc: block: Disable CMDQ on the ioctl path

Ben Chuang (1):
mmc: sdhci-pci-gli: Fine tune GL9763E L1 entry delay

Christian Löhle (1):
mmc: core: Allow UHS-I voltage switch for SDSC cards if supported

Geert Uytterhoeven (2):
dt-bindings: mmc: renesas,mmcif: Convert to json-schema
mmc: dw_mmc-pltfm: Remove unused <linux/clk.h>

Haibo Chen (1):
mmc: sdhci-esdhc-imx: Enable support for system wakeup for SDIO

Hans de Goede (1):
mmc: sdhci-acpi: Disable write protect detection on Toshiba Encore 2 WT8-B

Johan Hovold (1):
mmc: vub3000: fix control-request direction

Krzysztof Kozlowski (2):
mmc: sdhci-esdhc-imx: remove unused is_imx6q_usdhc
mmc: sdhci-sprd: use sdhci_sprd_writew

Liang Chen (1):
dt-bindings: mmc: rockchip-dw-mshc: add description for rk3568

Lucas Stach (3):
dt-bindings: mmc: add no-mmc-hs400 flag
mmc: sdhci-esdhc-imx: advertise HS400 mode through MMC caps
mmc: core: add support for disabling HS400 mode via DT

Rob Herring (1):
dt-bindings: mmc: Clean-up examples to match documented bindings

Shubhankar Kuranagatti (1):
drivers: memstick: core:ms_block.c: Fix alignment of block comment

Steven Lee (1):
mmc: sdhci-of-aspeed: Configure the SDHCIs as specified by the devicetree.

Suman Anna (1):
dt-bindings: mmc: sdhci-am654: Remove duplicate ti,j721e-sdhci-4bit

Tian Tao (4):
mmc: s3cmci: move to use request_irq by IRQF_NO_AUTOEN flag
mmc: core: Use pm_runtime_resume_and_get() to replace open coding
mmc: sdhci_am654: Use pm_runtime_resume_and_get() to replace open coding
mmc: sdhci-omap: Use pm_runtime_resume_and_get() to replace open coding

Tong Zhang (1):
memstick: rtsx_usb_ms: fix UAF

Ulf Hansson (14):
mmc: core: Drop open coding when preparing commands with busy signaling
mmc: core: Take into account MMC_CAP_NEED_RSP_BUSY for eMMC HPI commands
mmc: core: Re-structure some code in __mmc_poll_for_busy()
mmc: core: Extend re-use of __mmc_poll_for_busy()
mmc: core: Enable eMMC sleep commands to use HW busy polling
mmc: core: Prepare mmc_send_cxd_data() to be re-used for additional cmds
mmc: core: Drop open coding in mmc_sd_switch()
mmc: core: Parse the SD SCR register for support of CMD48/49 and CMD58/59
mmc: core: Read the SD function extension registers for power management
mmc: core: Read performance enhancements registers for SD cards
mmc: core: Add support for Power Off Notification for SD cards
mmc: core: Move eMMC cache flushing to a new bus_ops callback
mmc: core: Add support for cache ctrl for SD cards
Merge branch 'fixes' into next

Wolfram Sang (2):
mmc: debugfs: add description for module parameter
mmc: Improve function name when aborting a tuning cmd

Yue Hu (4):
mmc: mediatek: use data instead of mrq parameter from msdc_{un}prepare_data()
mmc: mediatek: remove useless data parameter from msdc_data_xfer_next()
mmc: cqhci: fix typo
mmc: cqhci: introduce get_trans_desc_offset()

Zhen Lei (2):
mmc: usdhi6rol0: fix error return code in usdhi6_probe()
mmc: jz4740: Remove redundant error printing in jz4740_mmc_probe()

Zheyu Ma (1):
mmc: via-sdmmc: add a check against NULL pointer dereference

周琰杰 (Zhou Yanjie) (2):
dt-bindings: mmc: JZ4740: Add bindings for JZ4775
mmc: JZ4740: Add support for JZ4775

.../devicetree/bindings/mmc/brcm,iproc-sdhci.yaml | 1 +
.../devicetree/bindings/mmc/ingenic,mmc.yaml | 1 +
.../devicetree/bindings/mmc/mmc-controller.yaml | 25 +-
.../devicetree/bindings/mmc/renesas,mmcif.txt | 53 ---
.../devicetree/bindings/mmc/renesas,mmcif.yaml | 135 ++++++
.../devicetree/bindings/mmc/rockchip-dw-mshc.yaml | 10 +-
.../devicetree/bindings/mmc/sdhci-am654.yaml | 1 -
drivers/memstick/core/ms_block.c | 37 +-
drivers/memstick/host/rtsx_usb_ms.c | 10 +-
drivers/mmc/core/block.c | 11 +-
drivers/mmc/core/core.c | 22 +-
drivers/mmc/core/core.h | 9 +
drivers/mmc/core/debugfs.c | 1 +
drivers/mmc/core/host.c | 3 +
drivers/mmc/core/mmc.c | 68 ++-
drivers/mmc/core/mmc_ops.c | 163 ++++---
drivers/mmc/core/mmc_ops.h | 12 +-
drivers/mmc/core/sd.c | 481 ++++++++++++++++++++-
drivers/mmc/core/sd_ops.c | 38 +-
drivers/mmc/core/sdio.c | 6 +-
drivers/mmc/host/Kconfig | 2 +-
drivers/mmc/host/cqhci-core.c | 21 +-
drivers/mmc/host/dw_mmc-pltfm.c | 1 -
drivers/mmc/host/jz4740_mmc.c | 6 +-
drivers/mmc/host/mmc_spi.c | 12 +-
drivers/mmc/host/mtk-sd.c | 25 +-
drivers/mmc/host/of_mmc_spi.c | 2 +-
drivers/mmc/host/renesas_sdhi_core.c | 2 +-
drivers/mmc/host/s3cmci.c | 7 +-
drivers/mmc/host/sdhci-acpi.c | 11 +
drivers/mmc/host/sdhci-esdhc-imx.c | 18 +-
drivers/mmc/host/sdhci-iproc.c | 30 ++
drivers/mmc/host/sdhci-of-aspeed.c | 50 ++-
drivers/mmc/host/sdhci-omap.c | 5 +-
drivers/mmc/host/sdhci-pci-gli.c | 4 +-
drivers/mmc/host/sdhci-sprd.c | 1 +
drivers/mmc/host/sdhci.c | 2 +-
drivers/mmc/host/sdhci.h | 2 +
drivers/mmc/host/sdhci_am654.c | 6 +-
drivers/mmc/host/usdhi6rol0.c | 1 +
drivers/mmc/host/via-sdmmc.c | 3 +
drivers/mmc/host/vub300.c | 2 +-
include/linux/mmc/card.h | 23 +
include/linux/mmc/host.h | 2 +-
include/linux/mmc/sd.h | 4 +
45 files changed, 987 insertions(+), 342 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/mmc/renesas,mmcif.txt
create mode 100644 Documentation/devicetree/bindings/mmc/renesas,mmcif.yaml