瀏覽代碼

Fix order for reading rx-status registers in 32bit mode of DM9000

A last minute cleanup before submitting the DM9000A patch series yesterday introduced
a bug in reading the rx-status registers in 32bit mode only.
This patch repairs this.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Remy Bohmer 17 年之前
父節點
當前提交
d6ee5fa40c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/net/dm9000x.c

+ 2 - 1
drivers/net/dm9000x.c

@@ -211,10 +211,11 @@ static void dm9000_inblk_32bit(void *data_ptr, int count)
 
 static void dm9000_rx_status_32bit(u16 *RxStatus, u16 *RxLen)
 {
-	u32 tmpdata = DM9000_inl(DM9000_DATA);
+	u32 tmpdata;
 
 	DM9000_outb(DM9000_MRCMD, DM9000_IO);
 
+	tmpdata = DM9000_inl(DM9000_DATA);
 	*RxStatus = tmpdata;
 	*RxLen = tmpdata >> 16;
 }