MIPS: Alchemy: fix dbdma2
authorManuel Lauss <manuel.lauss@gmail.com>
Thu, 11 May 2023 15:30:10 +0000 (17:30 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 23 May 2023 09:00:02 +0000 (11:00 +0200)
commit2d645604f69f3a772d58ead702f9a8e84ab2b342
treefb4c28a89ea1ce48b84ad6c690c0bb052b05c203
parentf2041708dee30a3425f680265c337acd28293782
MIPS: Alchemy: fix dbdma2

Various fixes for the Au1200/Au1550/Au1300 DBDMA2 code:

- skip cache invalidation if chip has working coherency circuitry.
- invalidate KSEG0-portion of the (physical) data address.
- force the dma channel doorbell write out to bus immediately with
  a sync.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/alchemy/common/dbdma.c