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
13616c71
Commit
13616c71
authored
Nov 26, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/fix/dma' into spi-linus
parents
5d01410f
c1aefbdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/spi/spi.c
drivers/spi/spi.c
+3
-3
No files found.
drivers/spi/spi.c
View file @
13616c71
...
@@ -615,13 +615,13 @@ static int spi_map_buf(struct spi_master *master, struct device *dev,
...
@@ -615,13 +615,13 @@ static int spi_map_buf(struct spi_master *master, struct device *dev,
sg_free_table
(
sgt
);
sg_free_table
(
sgt
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
sg_
buf
=
page_address
(
vm_page
)
+
sg_
set_page
(
&
sgt
->
sgl
[
i
],
vm_page
,
((
size_t
)
buf
&
~
PAGE_MASK
);
min
,
offset_in_page
(
buf
)
);
}
else
{
}
else
{
sg_buf
=
buf
;
sg_buf
=
buf
;
sg_set_buf
(
&
sgt
->
sgl
[
i
],
sg_buf
,
min
);
}
}
sg_set_buf
(
&
sgt
->
sgl
[
i
],
sg_buf
,
min
);
buf
+=
min
;
buf
+=
min
;
len
-=
min
;
len
-=
min
;
...
...
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