Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] qla2xxx: Perform fast mailbox read of flash regardless of size nor address alignment.

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

authored by

Andrew Vasquez and committed by
James Bottomley
368bbe07 f08b7251

+3
+3
drivers/scsi/qla2xxx/qla_sup.c
··· 2292 2292 uint32_t faddr, left, burst; 2293 2293 struct qla_hw_data *ha = vha->hw; 2294 2294 2295 + if (IS_QLA25XX(ha) || IS_QLA81XX(ha)) 2296 + goto try_fast; 2295 2297 if (offset & 0xfff) 2296 2298 goto slow_read; 2297 2299 if (length < OPTROM_BURST_SIZE) 2298 2300 goto slow_read; 2299 2301 2302 + try_fast: 2300 2303 optrom = dma_alloc_coherent(&ha->pdev->dev, OPTROM_BURST_SIZE, 2301 2304 &optrom_dma, GFP_KERNEL); 2302 2305 if (!optrom) {