diff options
author | Yajun Deng <yajun.deng@linux.dev> | 2023-08-15 09:11:51 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-08-21 16:08:19 +0300 |
commit | f4f84fb632b30580f11133fb81372338da2229f5 (patch) | |
tree | ca441fbc65c551798a0f7f062b095c1ef2f8a637 /drivers/dma/ioat/dma.h | |
parent | 81ebed8aa2c213939a4670f508031a57d4ecbb70 (diff) | |
download | linux-f4f84fb632b30580f11133fb81372338da2229f5.tar.xz |
dmaengine: ioat: fixing the wrong dma_dev->chancnt
The chancnt would be updated in __dma_async_device_channel_register(),
but it was assigned in ioat_enumerate_channels(). Therefore chancnt has
the wrong value.
Add chancnt member to the struct ioatdma_device, ioat_dma->chancnt
is used in ioat, dma_dev->chancnt is used in dmaengine.
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230815061151.2724474-1-yajun.deng@linux.dev
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/ioat/dma.h')
-rw-r--r-- | drivers/dma/ioat/dma.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h index 35e06b382603..a180171087a8 100644 --- a/drivers/dma/ioat/dma.h +++ b/drivers/dma/ioat/dma.h @@ -74,6 +74,7 @@ struct ioatdma_device { struct dca_provider *dca; enum ioat_irq_mode irq_mode; u32 cap; + int chancnt; /* shadow version for CB3.3 chan reset errata workaround */ u64 msixtba0; |