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
971573cf
Commit
971573cf
authored
8 years ago
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: dma: pass_phys() not sg_virt() to cache ops
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
6b700393
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
arch/arc/mm/dma.c
arch/arc/mm/dma.c
+2
-2
No files found.
arch/arc/mm/dma.c
View file @
971573cf
...
...
@@ -170,7 +170,7 @@ static void arc_dma_sync_sg_for_cpu(struct device *dev,
struct
scatterlist
*
sg
;
for_each_sg
(
sglist
,
sg
,
nelems
,
i
)
_dma_cache_sync
(
(
unsigned
int
)
sg_virt
(
sg
),
sg
->
length
,
dir
);
_dma_cache_sync
(
sg_phys
(
sg
),
sg
->
length
,
dir
);
}
static
void
arc_dma_sync_sg_for_device
(
struct
device
*
dev
,
...
...
@@ -181,7 +181,7 @@ static void arc_dma_sync_sg_for_device(struct device *dev,
struct
scatterlist
*
sg
;
for_each_sg
(
sglist
,
sg
,
nelems
,
i
)
_dma_cache_sync
(
(
unsigned
int
)
sg_virt
(
sg
),
sg
->
length
,
dir
);
_dma_cache_sync
(
sg_phys
(
sg
),
sg
->
length
,
dir
);
}
static
int
arc_dma_supported
(
struct
device
*
dev
,
u64
dma_mask
)
...
...
This diff is collapsed.
Click to expand it.
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