Commit 48a763da authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

reset reg status

parent d62fa8ec
...@@ -83,6 +83,10 @@ def connection_errors(): ...@@ -83,6 +83,10 @@ def connection_errors():
def reset_device(): def reset_device():
result = False result = False
#sata.reset_device()
sata.reset_ie()
for i in range(reset_limit): for i in range(reset_limit):
if not connection_errors(): if not connection_errors():
log_msg("connection error ("+str(i)+"), resetting device",4) log_msg("connection error ("+str(i)+"), resetting device",4)
...@@ -111,7 +115,7 @@ if cmd == "set_zynq_ssd": ...@@ -111,7 +115,7 @@ if cmd == "set_zynq_ssd":
sata.set_zynq_ssd() sata.set_zynq_ssd()
reset_device() reset_device()
elif cmd == "set_zynq_esata": elif cmd == "set_zynq_esata":
sata.vsc3304.disconnect_all() sata.vsc3304.disconnect_all()
sata.set_zynq_esata() sata.set_zynq_esata()
reset_device() reset_device()
elif cmd == "set_zynq_ssata": elif cmd == "set_zynq_ssata":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment