Commit 317c68c0 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

Staging: et131x: Fix the add_10bit macro

Duh.. we need to preserve the wrap bit when adding.
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b9d2dde0
...@@ -223,7 +223,7 @@ typedef union _TXDMA_PR_NUM_DES_t { ...@@ -223,7 +223,7 @@ typedef union _TXDMA_PR_NUM_DES_t {
extern inline void add_10bit(u32 *v, int n) extern inline void add_10bit(u32 *v, int n)
{ {
*v = INDEX10(*v + n); *v = INDEX10(*v + n) | (*v & ET_DMA10_WRAP);
} }
/* /*
......
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