Browse Source

vme: tsi148: fix DMA lists longer that one item

DMA lists on tsi148 weren't processed further than the first item
because of the broken logic. This regression was introduced in:

ac1a4f2caf7b071 "Staging: VME: Ensure TSI148 link list descriptors..."

Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Cc: Igor Alekseev <igor.alekseev@itep.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Dmitry Kalinkin 10 years ago
parent
commit
f656eaee63
1 changed files with 2 additions and 2 deletions
  1. 2 2
      drivers/vme/bridges/vme_tsi148.c

+ 2 - 2
drivers/vme/bridges/vme_tsi148.c

@@ -1844,8 +1844,8 @@ static int tsi148_dma_list_add(struct vme_dma_list *list,
 
 
 		reg_split((unsigned long long)entry->dma_handle, &address_high,
 		reg_split((unsigned long long)entry->dma_handle, &address_high,
 			&address_low);
 			&address_low);
-		entry->descriptor.dnlau = cpu_to_be32(address_high);
-		entry->descriptor.dnlal = cpu_to_be32(address_low);
+		prev->descriptor.dnlau = cpu_to_be32(address_high);
+		prev->descriptor.dnlal = cpu_to_be32(address_low);
 
 
 	}
 	}