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
43ff2dce
Commit
43ff2dce
authored
Apr 02, 2018
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/fix/dma' into spi-linus
parents
0adb3285
ce99319a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
drivers/spi/spi.c
drivers/spi/spi.c
+8
-2
No files found.
drivers/spi/spi.c
View file @
43ff2dce
...
...
@@ -779,8 +779,14 @@ static int spi_map_buf(struct spi_controller *ctlr, struct device *dev,
for
(
i
=
0
;
i
<
sgs
;
i
++
)
{
if
(
vmalloced_buf
||
kmap_buf
)
{
min
=
min_t
(
size_t
,
len
,
desc_len
-
offset_in_page
(
buf
));
/*
* Next scatterlist entry size is the minimum between
* the desc_len and the remaining buffer length that
* fits in a page.
*/
min
=
min_t
(
size_t
,
desc_len
,
min_t
(
size_t
,
len
,
PAGE_SIZE
-
offset_in_page
(
buf
)));
if
(
vmalloced_buf
)
vm_page
=
vmalloc_to_page
(
buf
);
else
...
...
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