staging: mt7621-mmc: MIPS: ralink: add sdhci for mt7620a SoC
authorJohn Crispin <blogic@openwrt.org>
Wed, 14 Mar 2018 20:22:35 +0000 (07:22 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 18:56:02 +0000 (19:56 +0100)
commit8b634a9c7620b15691322cd53071122d2ab249a7
tree551ea7df3e3f7870d22b4b9f8ae8333bdf5ebda8
parent0853c7a53eb369b41821b9eda22a8de55f434060
staging: mt7621-mmc: MIPS: ralink: add sdhci for mt7620a SoC

NeilBrown:
  Added range-check on pdev->id before assigning ot
    host->id

  of_dma_configure() sets a default ->dma_mask of
  DMA_BIT_MASK(32), claiming devices can DMA from
  the full 32bit address space.
  The mtk-mmc driver does not support access to
  highmem pages, so it is really limited to the
  bottom 512M (actually 448M due to 64M of IO space).
  Setting ->dma_mask to NULL causes mmc_setup_queue()
  to fall-back to using BLK_BOUNCE_HIGH to tell the
  block layer to use a bounce-buffer for any highmem
  pages requiring IO.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/Kconfig
drivers/staging/Makefile
drivers/staging/mt7621-mmc/Kconfig [new file with mode: 0644]
drivers/staging/mt7621-mmc/Makefile [new file with mode: 0644]
drivers/staging/mt7621-mmc/TODO [new file with mode: 0644]
drivers/staging/mt7621-mmc/board.h [new file with mode: 0644]
drivers/staging/mt7621-mmc/dbg.c [new file with mode: 0644]
drivers/staging/mt7621-mmc/dbg.h [new file with mode: 0644]
drivers/staging/mt7621-mmc/mt6575_sd.h [new file with mode: 0644]
drivers/staging/mt7621-mmc/sd.c [new file with mode: 0644]