Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393_sata
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393_sata
Commits
306aed1f
Commit
306aed1f
authored
Mar 03, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unmount and unload before resetting vsc3304
parent
c9553bd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
x393sata_eyesis4pi_control.py
py393sata/x393sata_eyesis4pi_control.py
+9
-5
No files found.
py393sata/x393sata_eyesis4pi_control.py
View file @
306aed1f
...
...
@@ -240,7 +240,11 @@ def reload_driver():
result
=
True
return
result
def
unmount_unload_disconnect
():
unload_ahci_elphel_driver
()
sata
.
vsc3304
.
disconnect_all
()
mem
=
x393_mem
.
X393Mem
(
0
,
0
,
1
)
sata
=
x393sata
.
x393sata
()
# 1,0,"10389B")
...
...
@@ -251,19 +255,19 @@ else:
if
cmd
==
"set_zynq_ssd"
:
sata
.
vsc3304
.
disconnect_all
()
unmount_unload_disconnect
()
sata
.
set_zynq_ssd
()
reset_device
()
elif
cmd
==
"set_zynq_esata"
:
sata
.
vsc3304
.
disconnect_all
()
unmount_unload_disconnect
()
sata
.
set_zynq_esata
()
reset_device
()
elif
cmd
==
"set_zynq_ssata"
:
sata
.
vsc3304
.
disconnect_all
()
unmount_unload_disconnect
()
sata
.
set_zynq_ssata
()
reset_device
()
elif
cmd
==
"set_esata_ssd"
:
sata
.
vsc3304
.
disconnect_all
()
unmount_unload_disconnect
()
sata
.
set_esata_ssd
()
reset_device
()
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment