Skip to content

ata: sata_dwc_460ex: make it working again

Andy Shevchenko linux-ide linuxppc-dev lkml 2 versions – In review

Get series with b4
b4 am 1461661404-1952-1-git-send-email-andriy.shevchenko@linux.intel.com

Versions newest first · linked by author and title

  1. v2 Latest23 patches 16 repliesIn review
  2. v123 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- simplify patch 8 (David Laight)
- add Tested-by and Acked-by tags

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23ata: sata_dwc_460ex: remove incorrect lockingdrivers/ata/sata_dwc_460ex.c+1 -30 replies
2/23ata: sata_dwc_460ex: fix crash on offline links without an attached drivedrivers/ata/sata_dwc_460ex.c+7 -00 replies
3/23ata: sata_dwc_460ex: set dma_boundary to 0x1fffdrivers/ata/sata_dwc_460ex.c+7 -12 replies
4/23ata: sata_dwc_460ex: burst size must be in items not bytesdrivers/ata/sata_dwc_460ex.c+3 -30 replies
5/23ata: sata_dwc_460ex: DMA is always a flow controllerdrivers/ata/sata_dwc_460ex.c+1 -10 replies
6/23ata: sata_dwc_460ex: select only core part of DMA driverdrivers/ata/Kconfig+1 -10 replies
7/23ata: sata_dwc_460ex: skip dma setup for non-dma commandsdrivers/ata/sata_dwc_460ex.c+9 -260 replies
8/23ata: sata_dwc_460ex: don't call ata_sff_qc_issue() on DMA commandsdrivers/ata/sata_dwc_460ex.c+2 -20 replies
9/23ata: sata_dwc_460ex: use "dmas" DT property to find dma channeldrivers/ata/Kconfig drivers/ata/sata_dwc_460ex.c+138 -710 replies
10/23ata: sata_dwc_460ex: add phy supportdrivers/ata/Kconfig drivers/ata/sata_dwc_460ex.c+23 -00 replies
11/23ata: sata_dwc_460ex: get rid of global datadrivers/ata/sata_dwc_460ex.c+29 -500 replies
12/23ata: sata_dwc_460ex: correct HOSTDEV{P}_FROM_*() macrosdrivers/ata/sata_dwc_460ex.c+6 -110 replies
13/23ata: sata_dwc_460ex: remove empty libata callbackdrivers/ata/sata_dwc_460ex.c+0 -220 replies
14/23ata: sata_dwc_460ex: get rid of some pointless castsdrivers/ata/sata_dwc_460ex.c+15 -150 replies
15/23ata: sata_dwc_460ex: get rid of incorrect castdrivers/ata/sata_dwc_460ex.c+2 -20 replies
16/23ata: sata_dwc_460ex: add __iomem to register base pointerdrivers/ata/sata_dwc_460ex.c+1 -10 replies
17/23ata: sata_dwc_460ex: supply physical address of FIFO to DMAdrivers/ata/sata_dwc_460ex.c+7 -60 replies
18/23ata: sata_dwc_460ex: switch to new dmaengine_terminate_* APIdrivers/ata/sata_dwc_460ex.c+1 -10 replies
19/23ata: sata_dwc_460ex: use readl/writel_relaxed()drivers/ata/sata_dwc_460ex.c+43 -480 replies
20/23ata: sata_dwc_460ex: tidy up sata_dwc_clear_dmacr()drivers/ata/sata_dwc_460ex.c+6 -80 replies
21/23ata: sata_dwc_460ex: use devm_ioremapdrivers/ata/sata_dwc_460ex.c+11 -190 replies
22/23ata: sata_dwc_460ex: make debug messages neatdrivers/ata/sata_dwc_460ex.c+4 -40 replies
23/23powerpc/4xx: Device tree update for the 460ex DWC SATAarch/powerpc/boot/dts/canyonlands.dts+12 -30 replies

Reviews trailers per patch

1 of 23 patches has a Reviewed-by or Acked-by.

PatchChristian LamparterRob Herring
1/23T-b
2/23
3/23T-b
4/23T-b
5/23T-b
6/23T-b
7/23T-b
8/23
9/23T-b
10/23T-b
11/23T-b
12/23T-b
13/23T-b
14/23T-b
15/23T-b
16/23T-b
17/23T-b
18/23T-b
19/23T-b
20/23T-b
21/23T-b
22/23T-b
23/23A-b

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

Read the v2 thread

Cover letter [PATCH v2 00/23] ata: sata_dwc_460ex: make it working again

The last approach in the commit 8b3444852a2b ("sata_dwc_460ex: move to generic DMA driver") to switch to generic DMA engine API wasn't tested on bare metal. Besides that we expecting new board support coming with the same SATA IP but with different DMA.

This series is targetting the following things:
- a few bug fixes to the original driver
- a part to fix the DMA engine usage and in particularly dw_dmac driver
- move driver to use generic PHY and "dmas" property which leads to update in DTS

The driver has been tested myself on Sam460ex and WD MyBookLive (apollo3g) boards. In any case I ask Christian, Måns, and Julian to independently test and provide Tested-by tag or an error report.

Series depends on previously published but not yet fully applied series [1].

The patches are also available via public branch [2].

[1] http://www.spinics.net/lists/dmaengine/msg09250.html
[2] https://bitbucket.org/andy-shev/linux/branch/topic%2Fdw%2Fsata

Since v1:
- simplify patch 8 (David Laight)
- add Tested-by and Acked-by tags

Andy Shevchenko (11):
ata: sata_dwc_460ex: set dma_boundary to 0x1fff
ata: sata_dwc_460ex: burst size must be in items not bytes
ata: sata_dwc_460ex: DMA is always a flow controller
ata: sata_dwc_460ex: select only core part of DMA driver
ata: sata_dwc_460ex: don't call ata_sff_qc_issue() on DMA commands
ata: sata_dwc_460ex: correct HOSTDEV{P}_FROM_*() macros
ata: sata_dwc_460ex: supply physical address of FIFO to DMA
ata: sata_dwc_460ex: switch to new dmaengine_terminate_* API
ata: sata_dwc_460ex: use devm_ioremap
ata: sata_dwc_460ex: make debug messages neat powerpc/4xx: Device tree update for the 460ex DWC SATA

Christian Lamparter (1):
ata: sata_dwc_460ex: fix crash on offline links without an attached
drive

Mans Rullgard (11):
ata: sata_dwc_460ex: remove incorrect locking
ata: sata_dwc_460ex: skip dma setup for non-dma commands
ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
ata: sata_dwc_460ex: add phy support
ata: sata_dwc_460ex: get rid of global data
ata: sata_dwc_460ex: remove empty libata callback
ata: sata_dwc_460ex: get rid of some pointless casts
ata: sata_dwc_460ex: get rid of incorrect cast
ata: sata_dwc_460ex: add __iomem to register base pointer
ata: sata_dwc_460ex: use readl/writel_relaxed()
ata: sata_dwc_460ex: tidy up sata_dwc_clear_dmacr()

 arch/powerpc/boot/dts/canyonlands.dts |  15 +-
 drivers/ata/Kconfig                   |  12 +-
 drivers/ata/sata_dwc_460ex.c          | 552 +++++++++++++++++-----------------
 3 files changed, 305 insertions(+), 274 deletions(-)
Signature · 6 lines
2.8.0.rc3

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev