The command thread checks the ctrl health periodically before sending
updates to the controller. The function that it uses is aac_check_health
which does more than get the health status.
Signed-off-by: Raghava Aditya Renukunta <email address hidden>
Reviewed-by: David Carroll <email address hidden>
Signed-off-by: Martin K. Petersen <email address hidden>
(cherry picked from commit b5a7478a18ebbe45e70e8cccf71dd877bfdc8281 linux-next)
Signed-off-by: Seth Forshee <email address hidden>
Now the driver issues a soft reset and waits for the controller to be up
and running by periodically checking on the status of the controller
health registers. Also prevents ARC adapters from issuing soft reset if
IOP resets failed.
Signed-off-by: Raghava Aditya Renukunta <email address hidden>
Reviewed-by: David Carroll <email address hidden>
Signed-off-by: Martin K. Petersen <email address hidden>
(cherry picked from commit 92ea09df1c113829e2fd479fc952a855c36d7e53 linux-next)
Signed-off-by: Seth Forshee <email address hidden>
Added function that waits with a timeout for the ctrl to be up and running
after triggering an IOP reset. Also removed 30 sec sleep as it is not
needed.
Signed-off-by: Raghava Aditya Renukunta <email address hidden>
Reviewed-by: David Carroll <email address hidden>
Signed-off-by: Martin K. Petersen <email address hidden>
(cherry picked from commit dec430cefee5941ae1a7132057e11a1ac7395a17 linux-next)
Signed-off-by: Seth Forshee <email address hidden>