LoongArch: Introduce the Loongson-2K MMC host controller driver
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest4 patches 5 repliesIn review
- v34 patches 5 repliesSuperseded
- v24 patches 8 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 4 patches | 5 replies | Superseded |
Changes in v4 from the cover letter
patch(2/4):
- Code formatting;
- Fix lkp error
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | dt-bindings: mmc: Add Loongson-2K SD/SDIO/eMMC controller bindingDocumentation/ MAINTAINERS | +75 | 1 reply | |
| 2/4 | mmc: loongson2: Add Loongson-2K SD/SDIO controller driverMAINTAINERS drivers/ drivers/ +1 more | +813 | 0 replies | |
| 3/4 | dt-bindings: mmc: loongson,ls2k0500-mmc: Add compatible for Loongson-2K2000Documentation/ | +45 | 0 replies | |
| 4/4 | mmc: loongson2: Add Loongson-2K2000 SD/SDIO/eMMC controller driverdrivers/ | +231 | 0 replies |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Conor Dooley | Huacai Chen | Rob Herring (Arm) |
|---|---|---|---|
| Series | R-b | ||
| 1/4 | R-b | ||
| 2/4 | |||
| 3/4 | A-b | ||
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v4 0/4] LoongArch: Introduce the Loongson-2K MMC host controller driver
Hi all:
This patchset introduce the MMC host controller on Loongson-2K series CPUs.
They are similar, except for the interface characteristics and the use of DMA engine, specifically, the Loongson-2K0500/Loongson-2K1000 use an externally shared APBDMA engine, while the Loongson-2K2000 uses an internally exclusive DMA.
Based on this, I'm splitting the driver into two patches.
List of the patchset:
Patch1: bindings for Loongson-2K0500/Loongson-2K1000;
Patch2: driver for MMC controller using externally shared APBDMA engine;
Patch3: bindings for Loongson-2K2000;
Patch4: driver for MMC controller using internally exclusive DMA.
Thanks.
-------
V4:
patch(2/4):
- Code formatting;
- Fix lkp error
https://lore.kernel.org/all/[email protected]/ patch(4/4): - Rename function names: ls2k1000_mmc_regmap_config -> ls2k0500_mmc_regmap_config loongson2_mmc_reorder_cmd_data -> ls2k0500_mmc_reorder_cmd_data loongson2_mmc_set_internal_dma -> ls2k2000_mmc_set_internal_dma
- Use macro definitions for magic numbers.
Link to V3:
https://lore.kernel.org/all/[email protected]/
V3:
patch(1/4):
- Rename dt-binding file as loongson,ls2k0500-mmc.yaml.
patch(2/4):
- Fix lkp error;
https://lore.kernel.org/all/[email protected]/ - Add regulators support for ios ops;
- Add ack_sdio_irq() callback;
- Add MMC_CAP2_SDIO_IRQ_NOTHREAD flag;
patch(3/4):
- Add Ack-by tag.
patch(4/4):
- Update commit for fix_data_timeout().
Link to V2:
https://lore.kernel.org/all/[email protected]/
V2:
patch(1/4):
- Add reg define for each reg entry.
patch(2/4):
- Put all code in the c-file;
- Use mmc_from_priv() instead of host->mmc;
- Use sdio_signal_irq() instead of mmc_signal_sdio_irq();
- Use devm_mmc_alloc_host() instead of mmc_alloc_host();
- Use mmc_regulator_get_supply();
patch(4/4):
- Add fix_cmd_interrupt function which is needed by Loongson-2K2000.
Link to V1:
https://lore.kernel.org/linux-mmc/[email protected]/
Binbin Zhou (4):
dt-bindings: mmc: Add Loongson-2K SD/SDIO/eMMC controller binding
mmc: loongson2: Add Loongson-2K SD/SDIO controller driver
dt-bindings: mmc: loongson,ls2k0500-mmc: Add compatible for
Loongson-2K2000
mmc: loongson2: Add Loongson-2K2000 SD/SDIO/eMMC controller driver
.../bindings/mmc/loongson,ls2k0500-mmc.yaml | 112 ++ MAINTAINERS | 7 + drivers/mmc/host/Kconfig | 13 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/loongson2-mmc.c | 1029 +++++++++++++++++ 5 files changed, 1162 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/loongson,ls2k0500-mmc.yaml create mode 100644 drivers/mmc/host/loongson2-mmc.c
base-commit: f5c755ef810009b85350884c483705bd04365370
Signature · 1 line
2.47.1