]> www.infradead.org Git - users/jedix/linux-maple.git/commit
[SCSI] bnx2i: Fixed the endian on TTT for NOP out transmission
authorEddie Wai <eddie.wai@broadcom.com>
Fri, 26 Aug 2011 18:16:47 +0000 (11:16 -0700)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 00:57:38 +0000 (08:57 +0800)
commit5a1e2aa00adf2bb6a7755907db65b3173f28e542
tree5e66f236ece54e9963adc2590577698fc0389115
parent712225798d9c83da23aedfc20e35346571b64f01
[SCSI] bnx2i: Fixed the endian on TTT for NOP out transmission

The iscsi_nopout task's TTT is defined as __be32 while the DMA
memory to the chip is CPU specific.  This creates a problem for
unsolicited NOP-In responses where the TTT is not the RESERVED
tag of 0xFFs.  This patch adds a call to be32_to_cpu for the TTT
specified.

Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit 610602f369b4c810c9df05e431abd38f38cb8e0d)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/scsi/bnx2i/bnx2i_hwi.c