From: Stephen Cameron Date: Fri, 23 Jan 2015 22:44:07 +0000 (-0600) Subject: hpsa: do not ack controller events on controllers that do not support it X-Git-Tag: v4.0-rc1~126^2~21 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e4aa3e6ae2a82ecfce7eecc6c52dcaba7b9e3f84;p=karo-tx-linux.git hpsa: do not ack controller events on controllers that do not support it Acking controller events on controllers that do not support it can cause such controllers to lock up. Reviewed-by: Scott Teel Signed-off-by: Joe Handzik Signed-off-by: Don Brace Signed-off-by: Christoph Hellwig --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 5abd49d85940..afd192d2d27d 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -6674,6 +6674,9 @@ static void hpsa_ack_ctlr_events(struct ctlr_info *h) int i; char *event_type; + if (!(h->fw_support & MISC_FW_EVENT_NOTIFY)) + return; + /* Ask the controller to clear the events we're handling. */ if ((h->transMethod & (CFGTBL_Trans_io_accel1 | CFGTBL_Trans_io_accel2)) &&