]> git.baikalelectronics.ru Git - kernel.git/commit
mtip32xx: ѕtop abusing the managed resource APIs
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Jan 2019 20:23:30 +0000 (21:23 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Jan 2019 19:50:12 +0000 (12:50 -0700)
commita5e245b19b1d753ad7d7a7d14a156fa069493b88
tree26fef09e0dfa9bfebb896acee4bf577bc1fb19c5
parentbef19531c51083c8c9366cbaaf42eab91e2932f0
mtip32xx: ѕtop abusing the managed resource APIs

The mtip32xx driver uses managed resources for DMA coherent memory
and irqs, but then always pairs them with free calls anyway, making
the resource tracking rather pointless.  Given some DMA allocations
are transient anyway, the irq freeing seems to require ordering vs
other hardware access the best solution seems to be to stop using
the managed resource API entirely.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c