ioat: fix type mismatch for ->dmacount
authorDan Williams <dan.j.williams@intel.com>
Tue, 28 Jul 2009 21:44:04 +0000 (14:44 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 9 Sep 2009 00:29:54 +0000 (17:29 -0700)
commit77867fff033ea549096c49d863c564ad7d8be36f
treed39bce48f29aa9ce6f23f15e73fab8333d91bc75
parentf2427e276ffec5ce599c6bc116e0927269a360ef
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: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/ioat/dma.h