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
88aecd2b
Commit
88aecd2b
authored
Sep 23, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated
parent
24bfbd26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
ahci_elphel.c
src/drivers/ata/ahci_elphel.c
+7
-4
No files found.
src/drivers/ata/ahci_elphel.c
View file @
88aecd2b
...
...
@@ -175,11 +175,12 @@ static void reset_all_commands(struct elphel_ahci_priv *dpriv)
}
/** Command execution timer has expired, set flag indicating that recording should be restarted */
static
void
process_timeout
(
unsigned
long
data
)
//static void process_timeout(unsigned long data)
static
void
process_timeout
(
struct
timer_list
*
t
)
{
int
report
=
0
;
unsigned
long
irq_flags
;
struct
elphel_ahci_priv
*
dpriv
=
(
struct
elphel_ahci_priv
*
)
data
;
struct
elphel_ahci_priv
*
dpriv
=
from_timer
(
dpriv
,
t
,
cmd_timer
)
;
/* we are racing with interrupt here, IRQ handler sets IRQ_PROCESSED flag to prevent timer from
* triggering error handler before this timer is removed
...
...
@@ -449,7 +450,9 @@ static int elphel_drv_probe(struct platform_device *pdev)
dpriv
->
dev
=
dev
;
spin_lock_init
(
&
dpriv
->
flags_lock
);
tasklet_init
(
&
dpriv
->
bh
,
process_queue
,
(
unsigned
long
)
dpriv
);
setup_timer
(
&
dpriv
->
cmd_timer
,
process_timeout
,
(
unsigned
long
)
dpriv
);
// function has been changed
//setup_timer(&dpriv->cmd_timer, process_timeout, (unsigned long)dpriv);
timer_setup
(
&
dpriv
->
cmd_timer
,
process_timeout
,
0
);
dpriv
->
cmd_timeout
=
DEFAULT_CMD_TIMEOUT
;
init_waitqueue_head
(
&
dpriv
->
eh
.
wait
);
...
...
@@ -468,7 +471,7 @@ static int elphel_drv_probe(struct platform_device *pdev)
if
(
ret
!=
0
)
return
ret
;
hpriv
=
ahci_platform_get_resources
(
pdev
);
hpriv
=
ahci_platform_get_resources
(
pdev
,
0
);
if
(
IS_ERR
(
hpriv
))
return
PTR_ERR
(
hpriv
);
...
...
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