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
531dabc7
Commit
531dabc7
authored
Aug 17, 2018
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/mv_xor' into for-linus
parents
2cc50b9f
4bcde3a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
drivers/dma/mv_xor_v2.c
drivers/dma/mv_xor_v2.c
+10
-6
No files found.
drivers/dma/mv_xor_v2.c
View file @
531dabc7
...
...
@@ -174,6 +174,7 @@ struct mv_xor_v2_device {
int
desc_size
;
unsigned
int
npendings
;
unsigned
int
hw_queue_idx
;
struct
msi_desc
*
msi_desc
;
};
/**
...
...
@@ -588,11 +589,9 @@ static void mv_xor_v2_tasklet(unsigned long data)
*/
dma_cookie_complete
(
&
next_pending_sw_desc
->
async_tx
);
if
(
next_pending_sw_desc
->
async_tx
.
callback
)
next_pending_sw_desc
->
async_tx
.
callback
(
next_pending_sw_desc
->
async_tx
.
callback_param
);
dma_descriptor_unmap
(
&
next_pending_sw_desc
->
async_tx
);
dmaengine_desc_get_callback_invoke
(
&
next_pending_sw_desc
->
async_tx
,
NULL
);
}
dma_run_dependencies
(
&
next_pending_sw_desc
->
async_tx
);
...
...
@@ -643,9 +642,9 @@ static int mv_xor_v2_descq_init(struct mv_xor_v2_device *xor_dev)
xor_dev
->
dma_base
+
MV_XOR_V2_DMA_DESQ_SIZE_OFF
);
/* write the DESQ address to the DMA enngine*/
writel
(
xor_dev
->
hw_desq
&
0xFFFFFFFF
,
writel
(
lower_32_bits
(
xor_dev
->
hw_desq
)
,
xor_dev
->
dma_base
+
MV_XOR_V2_DMA_DESQ_BALR_OFF
);
writel
(
(
xor_dev
->
hw_desq
&
0xFFFF00000000
)
>>
32
,
writel
(
upper_32_bits
(
xor_dev
->
hw_desq
)
,
xor_dev
->
dma_base
+
MV_XOR_V2_DMA_DESQ_BAHR_OFF
);
/*
...
...
@@ -780,6 +779,7 @@ static int mv_xor_v2_probe(struct platform_device *pdev)
msi_desc
=
first_msi_entry
(
&
pdev
->
dev
);
if
(
!
msi_desc
)
goto
free_msi_irqs
;
xor_dev
->
msi_desc
=
msi_desc
;
ret
=
devm_request_irq
(
&
pdev
->
dev
,
msi_desc
->
irq
,
mv_xor_v2_interrupt_handler
,
0
,
...
...
@@ -897,8 +897,12 @@ static int mv_xor_v2_remove(struct platform_device *pdev)
xor_dev
->
desc_size
*
MV_XOR_V2_DESC_NUM
,
xor_dev
->
hw_desq_virt
,
xor_dev
->
hw_desq
);
devm_free_irq
(
&
pdev
->
dev
,
xor_dev
->
msi_desc
->
irq
,
xor_dev
);
platform_msi_domain_free_irqs
(
&
pdev
->
dev
);
tasklet_kill
(
&
xor_dev
->
irq_tasklet
);
clk_disable_unprepare
(
xor_dev
->
clk
);
return
0
;
...
...
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