[SCSI] ipr: fix a register read to use the correct address for 64 bit adapters
authorWayne Boyer <wayneb@linux.vnet.ibm.com>
Mon, 10 May 2010 16:14:07 +0000 (09:14 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 24 May 2010 16:11:05 +0000 (11:11 -0500)
commit7be96900a2a662c67403559acd250f011b1d70db
treef7d3aa2ffb317f35fea7e37dd0982bb140dde3c9
parent96d21f00ab59c9f27fad191d12a2ccfeff3c9108
[SCSI] ipr: fix a register read to use the correct address for 64 bit adapters

Fix ipr_reset_enable_ioa() to read the correct IOA to host interrupt register
address for 64 bit adapters.  We need to read the lower 32 bits, not the upper
32 bits.

Also change the write of the 64 bit mask value to a single writeq instead
of two writel calls.

Finally, use the correct u8 type for the type field in the ipr_resource_entry
structure.

Signed-off-by: Wayne Boyer <wayneb@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/ipr.c
drivers/scsi/ipr.h