pm80xx: wait a minimum of 500ms before issuing commands to SPCv
authorBenjamin Rood <benjaminjrood@gmail.com>
Mon, 2 Nov 2015 20:42:29 +0000 (15:42 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 3 Nov 2015 04:40:35 +0000 (23:40 -0500)
commitb650a8806e1ba0315fbeda8b45c9e53d73abbb6f
tree79cadea7301fdd2059b16e02b55263f3c5080a62
parentfaf321b0b7fe3bfcb00ceb5192ecce9d6257dc06
pm80xx: wait a minimum of 500ms before issuing commands to SPCv

The documentation for the 8070 and 8072 SPCv chip explicitly states that
a minimum of 500ms must elapse before issuing commands, otherwise the
SPCv may not process them and the firmware may get into an unrecoverable
state requiring a reboot.  While the Linux guys will probably think this
is 'racy', it is called out in the chip documentation and inserting this
delay makes power management function properly.

Signed-off-by: Benjamin Rood <brood@attotech.com>
Reviewed-by: Jack Wang <jinpu.wang@profitbricks.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_init.c