]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a46ef7f192c8e73061f2d1a451682124415f9f5
tree79cadea7301fdd2059b16e02b55263f3c5080a62
parentbca56f16d6f6b637cef94168d34002ae33613795
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