scsi: smartpqi: Map full length of PCI BAR 0
authorMike McGowen <mike.mcgowen@microchip.com>
Fri, 28 Apr 2023 15:37:01 +0000 (10:37 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 8 May 2023 11:17:11 +0000 (07:17 -0400)
commit3e7e55aa3df2d58b1d27e3380d293da525cf5a3b
tree3f53b5341885d30f7af6c02858aa08d644234130
parentac9a78681b921877518763ba0e89202254349d1b
scsi: smartpqi: Map full length of PCI BAR 0

Map full length of PCI BAR 0 at driver init.

During driver initialization, the driver must make a kernel call to map the
controller registers into kernel address space.  A parameter to this call
is the length of the memory to be mapped.  The driver was specifying the
wrong length.

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Mike McGowen <mike.mcgowen@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Link: https://lore.kernel.org/r/20230428153712.297638-2-don.brace@microchip.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c