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
a9a7b06f
Commit
a9a7b06f
authored
May 23, 2017
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc: merge __dma_set_mask into dma_set_mask
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
8cc9c260
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
arch/powerpc/include/asm/dma-mapping.h
arch/powerpc/include/asm/dma-mapping.h
+0
-1
arch/powerpc/kernel/dma.c
arch/powerpc/kernel/dma.c
+4
-9
No files found.
arch/powerpc/include/asm/dma-mapping.h
View file @
a9a7b06f
...
...
@@ -112,7 +112,6 @@ static inline void set_dma_offset(struct device *dev, dma_addr_t off)
#define HAVE_ARCH_DMA_SET_MASK 1
extern
int
dma_set_mask
(
struct
device
*
dev
,
u64
dma_mask
);
extern
int
__dma_set_mask
(
struct
device
*
dev
,
u64
dma_mask
);
extern
u64
__dma_get_required_mask
(
struct
device
*
dev
);
static
inline
bool
dma_capable
(
struct
device
*
dev
,
dma_addr_t
addr
,
size_t
size
)
...
...
arch/powerpc/kernel/dma.c
View file @
a9a7b06f
...
...
@@ -314,14 +314,6 @@ EXPORT_SYMBOL(dma_set_coherent_mask);
#define PREALLOC_DMA_DEBUG_ENTRIES (1 << 16)
int
__dma_set_mask
(
struct
device
*
dev
,
u64
dma_mask
)
{
if
(
!
dev
->
dma_mask
||
!
dma_supported
(
dev
,
dma_mask
))
return
-
EIO
;
*
dev
->
dma_mask
=
dma_mask
;
return
0
;
}
int
dma_set_mask
(
struct
device
*
dev
,
u64
dma_mask
)
{
if
(
ppc_md
.
dma_set_mask
)
...
...
@@ -334,7 +326,10 @@ int dma_set_mask(struct device *dev, u64 dma_mask)
return
phb
->
controller_ops
.
dma_set_mask
(
pdev
,
dma_mask
);
}
return
__dma_set_mask
(
dev
,
dma_mask
);
if
(
!
dev
->
dma_mask
||
!
dma_supported
(
dev
,
dma_mask
))
return
-
EIO
;
*
dev
->
dma_mask
=
dma_mask
;
return
0
;
}
EXPORT_SYMBOL
(
dma_set_mask
);
...
...
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