From: Alan Cox Date: Mon, 12 Oct 2009 14:38:26 +0000 (+0100) Subject: Staging: et131x: Fix the add_10bit macro X-Git-Tag: v2.6.32-rc5~12^2~2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=317c68c04d53198f38314d29ba28b8fc632eccab;p=~shefty%2Frdma-dev.git Staging: et131x: Fix the add_10bit macro Duh.. we need to preserve the wrap bit when adding. Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/et131x/et1310_address_map.h b/drivers/staging/et131x/et1310_address_map.h index 6294d3814e7..2c3d65a622a 100644 --- a/drivers/staging/et131x/et1310_address_map.h +++ b/drivers/staging/et131x/et1310_address_map.h @@ -223,7 +223,7 @@ typedef union _TXDMA_PR_NUM_DES_t { extern inline void add_10bit(u32 *v, int n) { - *v = INDEX10(*v + n); + *v = INDEX10(*v + n) | (*v & ET_DMA10_WRAP); } /*