Commit 77867fff authored by Dan Williams's avatar Dan Williams

ioat: fix type mismatch for ->dmacount

->dmacount tracks the sequence number of active descriptors.  It is
written to the DMACOUNT register to update the channel's view of pending
descriptors in the chain.  The register is 16-bits so ->dmacount should
be unsigned and 16-bit as well.  Also modify ->desccount to maintain
alignment.

This was never a problem in practice because we never compared dmacount
values, but this is a bug waiting to happen.
Signed-off-by: default avatarMaciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent f2427e27
......@@ -102,8 +102,8 @@ struct ioat_dma_chan {
struct delayed_work work;
int pending;
int dmacount;
int desccount;
u16 dmacount;
u16 desccount;
struct ioatdma_device *device;
struct dma_chan common;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment