Skip to content

mmc: tmio: Add SDIO IRQ support

Arnd Hannemann linux-mmc linux-sh 3 versions – Applied

Status from this message: Applied to rmobile/sdio, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 6 repliesApplied
  2. v26 patches 2 repliesSuperseded
  3. v14 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- Drop the patch which disables IRQs early in remove it caused hangs during rmmod
- Disable device IRQ in tmio_mmc_clk_start/stop to avoid spurious SDIO IRQs (previously there was a small time window where this could happen)
- Fix a null pointer dereference which would have been triggered when spurious SDIO IRQs would have been generated
- Include patch for sh7723 / ap325rx

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6mmc: tmio: implement SDIO IRQdrivers/mmc/host/tmio_mmc.c include/linux/mfd/tmio.h+82 -03 replies
2/6mfd: sh_mobile_sdhi: activate SDIO IRQ for tmio_mmcdrivers/mfd/sh_mobile_sdhi.c+5 -01 reply
3/6ARM: mach-shmobile: sh7372 Enable SDIO IRQsarch/arm/mach-shmobile/board-ap4evb.c arch/arm/mach-shmobile/intc-sh7372.c+4 -31 reply
4/6sh: sh7724 Enable SDIO IRQsarch/sh/boards/mach-ecovec24/setup.c arch/sh/boards/mach-kfr2r09/setup.c arch/sh/boards/mach-se/7724/setup.c +1 more+9 -20 replies
5/6sh: sh7722 Enable SDIO IRQsarch/sh/boards/mach-migor/setup.c arch/sh/kernel/cpu/sh4a/setup-sh7722.c+3 -10 replies
6/6sh: sh7723 / ap325rxa enable SDIO IRQsarch/sh/boards/mach-ap325rxa/setup.c arch/sh/kernel/cpu/sh4a/setup-sh7723.c+18 -21 reply

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchSamuel OrtizMagnus Damm
1/6
2/6A-b
3/6
4/6
5/6
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH 0/6 v3] mmc: tmio: Add SDIO IRQ support

[PATCH 1/6 v3] mmc: tmio: implement SDIO IRQ
[PATCH 2/6 v3] mfd: sh_mobile_sdhi: activate SDIO IRQ for tmio_mmc [PATCH 3/6 v3] ARM: mach-shmobile: sh7372 Enable SDIO IRQs [PATCH 4/6 v3] sh: sh7724 Enable SDIO IRQs
[PATCH 5/6 v3] sh: sh7722 Enable SDIO IRQs
[PATCH 6/6 v3] sh: sh7723 / ap325rxa enable SDIO IRQs

These patches add SDIO IRQ support for the tmio mmc cell of the sh_mobile_sdhi mfd and activate the usage of SDIO IRQs on all SoCs where sh_mobile_sdhi is currently used.

The patchset depends on:
mmc: tmio_mmc: allow multi-element scatter-gather lists
https://patchwork.kernel.org/patch/317142/
mmc: tmio_mmc: fix PIO fallback on DMA descriptor allocation failure
https://patchwork.kernel.org/patch/317162/
mmc: tmio: merge the private header into the driver
https://patchwork.kernel.org/patch/349931/
mmc: tmio: implement a bounce buffer for unaligned DMA
https://patchwork.kernel.org/patch/349941/

Changes in v3:
- Drop the patch which disables IRQs early in remove it caused hangs during rmmod
- Disable device IRQ in tmio_mmc_clk_start/stop to avoid spurious SDIO IRQs (previously there was a small time window where this could happen)
- Fix a null pointer dereference which would have been triggered when spurious SDIO IRQs would have been generated
- Include patch for sh7723 / ap325rx

Changes in v2:
- Add TMIO_MMC_SDIO_IRQ flag, which expresses that the hardware is known to support SDIO IRQ as suggested by Magnus Damm
- Activate this flag for sh_mobile_sdhi
- Add a patch which disables IRQs early in remove
to avoid spurious SDIO IRQs, during module unload
- Patches 4-6 are unmodified but included for
completeness