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
nexedi
linux
Commits
9afabfe3
Commit
9afabfe3
authored
Aug 04, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/fix/core' into spi-linus
parents
19583ca5
3fc25421
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
drivers/spi/spi.c
drivers/spi/spi.c
+6
-4
No files found.
drivers/spi/spi.c
View file @
9afabfe3
...
...
@@ -619,6 +619,8 @@ static int spi_map_buf(struct spi_master *master, struct device *dev,
}
ret
=
dma_map_sg
(
dev
,
sgt
->
sgl
,
sgt
->
nents
,
dir
);
if
(
!
ret
)
ret
=
-
ENOMEM
;
if
(
ret
<
0
)
{
sg_free_table
(
sgt
);
return
ret
;
...
...
@@ -647,8 +649,8 @@ static int __spi_map_msg(struct spi_master *master, struct spi_message *msg)
if
(
!
master
->
can_dma
)
return
0
;
tx_dev
=
&
master
->
dma_tx
->
dev
->
device
;
rx_dev
=
&
master
->
dma_rx
->
dev
->
device
;
tx_dev
=
master
->
dma_tx
->
device
->
dev
;
rx_dev
=
master
->
dma_rx
->
device
->
dev
;
list_for_each_entry
(
xfer
,
&
msg
->
transfers
,
transfer_list
)
{
if
(
!
master
->
can_dma
(
master
,
msg
->
spi
,
xfer
))
...
...
@@ -687,8 +689,8 @@ static int spi_unmap_msg(struct spi_master *master, struct spi_message *msg)
if
(
!
master
->
cur_msg_mapped
||
!
master
->
can_dma
)
return
0
;
tx_dev
=
&
master
->
dma_tx
->
dev
->
device
;
rx_dev
=
&
master
->
dma_rx
->
dev
->
device
;
tx_dev
=
master
->
dma_tx
->
device
->
dev
;
rx_dev
=
master
->
dma_rx
->
device
->
dev
;
list_for_each_entry
(
xfer
,
&
msg
->
transfers
,
transfer_list
)
{
if
(
!
master
->
can_dma
(
master
,
msg
->
spi
,
xfer
))
...
...
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