Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
cf7315b2
Commit
cf7315b2
authored
Jun 26, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/topcliff' into spi-next
parents
adb25d53
f5d8ee3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/spi/spi-topcliff-pch.c
drivers/spi/spi-topcliff-pch.c
+4
-4
No files found.
drivers/spi/spi-topcliff-pch.c
View file @
cf7315b2
...
...
@@ -367,7 +367,7 @@ static irqreturn_t pch_spi_handler(int irq, void *dev_id)
if
(
reg_spsr_val
&
SPSR_ORF_BIT
)
{
dev_err
(
&
board_dat
->
pdev
->
dev
,
"%s Over run error
\n
"
,
__func__
);
if
(
data
->
current_msg
->
complete
!=
0
)
{
if
(
data
->
current_msg
->
complete
)
{
data
->
transfer_complete
=
true
;
data
->
current_msg
->
status
=
-
EIO
;
data
->
current_msg
->
complete
(
data
->
current_msg
->
context
);
...
...
@@ -643,7 +643,7 @@ static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw)
list_for_each_entry_safe
(
pmsg
,
tmp
,
data
->
queue
.
next
,
queue
)
{
pmsg
->
status
=
-
ENOMEM
;
if
(
pmsg
->
complete
!=
0
)
if
(
pmsg
->
complete
)
pmsg
->
complete
(
pmsg
->
context
);
/* delete from queue */
...
...
@@ -693,7 +693,7 @@ static void pch_spi_nomore_transfer(struct pch_spi_data *data)
* [To the spi core..indicating end of transfer] */
data
->
current_msg
->
status
=
0
;
if
(
data
->
current_msg
->
complete
!=
0
)
{
if
(
data
->
current_msg
->
complete
)
{
dev_dbg
(
&
data
->
master
->
dev
,
"%s:Invoking callback of SPI core
\n
"
,
__func__
);
data
->
current_msg
->
complete
(
data
->
current_msg
->
context
);
...
...
@@ -1186,7 +1186,7 @@ static void pch_spi_process_messages(struct work_struct *pwork)
list_for_each_entry_safe
(
pmsg
,
tmp
,
data
->
queue
.
next
,
queue
)
{
pmsg
->
status
=
-
EIO
;
if
(
pmsg
->
complete
!=
0
)
{
if
(
pmsg
->
complete
)
{
spin_unlock
(
&
data
->
lock
);
pmsg
->
complete
(
pmsg
->
context
);
spin_lock
(
&
data
->
lock
);
...
...
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