[SCSI] tmscsim: remove bogus endianness conversions
cpu_to_le32 endianness conversions in tmscsim.c, followed by arithmetic operations don't look correct. Besides, {in,out}[wl] already perform the necessary conversions. Further, bus addresses of request buffers are guaranteed to be (mapped) under 4G by current scsi- and block-layer defaults. This could be explicitly enforced by using blk_queue_bounce_limit(), which, however, doesn't seem to be the common practice among SCSI drivers. Signed-off-by: G. Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
860bfecf71
commit
46e5ba2b64
@@ -19,14 +19,6 @@
|
||||
|
||||
#define SEL_TIMEOUT 153 /* 250 ms selection timeout (@ 40 MHz) */
|
||||
|
||||
#define pci_dma_lo32(a) (a & 0xffffffff)
|
||||
|
||||
typedef u8 UCHAR; /* 8 bits */
|
||||
typedef u16 USHORT; /* 16 bits */
|
||||
typedef u32 UINT; /* 32 bits */
|
||||
typedef unsigned long ULONG; /* 32/64 bits */
|
||||
|
||||
|
||||
/*
|
||||
;-----------------------------------------------------------------------
|
||||
; SCSI Request Block
|
||||
@@ -43,7 +35,9 @@ struct scatterlist *pSegmentList;
|
||||
|
||||
struct scatterlist Segmentx; /* make a one entry of S/G list table */
|
||||
|
||||
unsigned long SGBusAddr; /*;a segment starting address as seen by AM53C974A*/
|
||||
unsigned long SGBusAddr; /*;a segment starting address as seen by AM53C974A
|
||||
in CPU endianness. We're only getting 32-bit bus
|
||||
addresses by default */
|
||||
unsigned long SGToBeXferLen; /*; to be xfer length */
|
||||
unsigned long TotalXferredLen;
|
||||
unsigned long SavedTotXLen;
|
||||
|
Reference in New Issue
Block a user