Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
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
linux-elphel
Commits
d32daf13
Commit
d32daf13
authored
Nov 28, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change command timeout via sysfs
parent
048506cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ahci_elphel.c
src/drivers/ata/ahci_elphel.c
+7
-0
No files found.
src/drivers/ata/ahci_elphel.c
View file @
d32daf13
...
...
@@ -1578,6 +1578,11 @@ static ssize_t wr_speed_read(struct device *dev, struct device_attribute *attr,
static
ssize_t
timeout_write
(
struct
device
*
dev
,
struct
device_attribute
*
attr
,
const
char
*
buff
,
size_t
buff_sz
)
{
struct
elphel_ahci_priv
*
dpriv
=
dev_get_dpriv
(
dev
);
if
(
kstrtouint
(
buff
,
10
,
&
dpriv
->
cmd_timeout
)
!=
0
)
return
-
EINVAL
;
return
buff_sz
;
}
...
...
@@ -1734,6 +1739,8 @@ static void dump_dpriv_fields(struct elphel_ahci_priv *dpriv)
printk
(
KERN_DEBUG
"head ptr: %u, tail ptr: %u
\n
"
,
dpriv
->
head_ptr
,
dpriv
->
tail_ptr
);
printk
(
KERN_DEBUG
"flags: 0x%x
\n
"
,
dpriv
->
flags
);
printk
(
KERN_DEBUG
"lba_start = %llu, lba_current = %llu, lba_end = %llu
\n
"
,
dpriv
->
lba_ptr
.
lba_start
,
dpriv
->
lba_ptr
.
lba_write
,
dpriv
->
lba_ptr
.
lba_end
);
printk
(
KERN_DEBUG
"lba_ptr.wr_count = %u, curr_cmd = 0x%x, max_data_sz = %u, curr_data_chunk = %d, curr_data_offset = %u
\n
"
,
dpriv
->
lba_ptr
.
wr_count
,
dpriv
->
curr_cmd
,
dpriv
->
max_data_sz
,
dpriv
->
curr_data_chunk
,
dpriv
->
curr_data_offset
);
}
...
...
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