From: Don Brace Date: Fri, 1 Jul 2016 18:37:38 +0000 (-0500) Subject: hpsa: change hpsa_passthru_ioctl timeout X-Git-Tag: v4.1.12-93~2^2~145 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b13dda93f0d320b698fdbc5375fa64d8eed6044b;p=users%2Fjedix%2Flinux-maple.git hpsa: change hpsa_passthru_ioctl timeout Was not alloting for FW Flash times. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen Orabug: 25605941 (cherry picked from commit 3fb134cb4c170debf2b786d689fe263186feea4b) Signed-off-by: Jack Vogel --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 68d538e5ca3c9..f045ae1be0b48 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -6565,7 +6565,7 @@ static int hpsa_passthru_ioctl(struct ctlr_info *h, void __user *argp) c->SG[0].Ext = cpu_to_le32(HPSA_SG_LAST); /* not chaining */ } rc = hpsa_scsi_do_simple_cmd(h, c, DEFAULT_REPLY_QUEUE, - DEFAULT_TIMEOUT); + NO_TIMEOUT); if (iocommand.buf_size > 0) hpsa_pci_unmap(h->pdev, c, 1, PCI_DMA_BIDIRECTIONAL); check_ioctl_unit_attention(h, c); @@ -6698,7 +6698,7 @@ static int hpsa_big_passthru_ioctl(struct ctlr_info *h, void __user *argp) c->SG[--i].Ext = cpu_to_le32(HPSA_SG_LAST); } status = hpsa_scsi_do_simple_cmd(h, c, DEFAULT_REPLY_QUEUE, - DEFAULT_TIMEOUT); + NO_TIMEOUT); if (sg_used) hpsa_pci_unmap(h->pdev, c, sg_used, PCI_DMA_BIDIRECTIONAL); check_ioctl_unit_attention(h, c);