Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
OpenBMC Firmware
talos-obmc-linux
Commits
3257d861
Commit
3257d861
authored
6 years ago
by
Vinod Koul
Browse files
Options
Download
Plain Diff
Merge branch 'topic/pl330' into for-linus
parents
baab8537
e4975654
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/dma/pl330.c
drivers/dma/pl330.c
+6
-6
No files found.
drivers/dma/pl330.c
View file @
3257d861
...
@@ -1046,13 +1046,16 @@ static bool _start(struct pl330_thread *thrd)
...
@@ -1046,13 +1046,16 @@ static bool _start(struct pl330_thread *thrd)
if (_state(thrd) == PL330_STATE_KILLING)
if (_state(thrd) == PL330_STATE_KILLING)
UNTIL(thrd, PL330_STATE_STOPPED)
UNTIL(thrd, PL330_STATE_STOPPED)
/* fall through */
case PL330_STATE_FAULTING:
case PL330_STATE_FAULTING:
_stop(thrd);
_stop(thrd);
/* fall through */
case PL330_STATE_KILLING:
case PL330_STATE_KILLING:
case PL330_STATE_COMPLETING:
case PL330_STATE_COMPLETING:
UNTIL(thrd, PL330_STATE_STOPPED)
UNTIL(thrd, PL330_STATE_STOPPED)
/* fall through */
case PL330_STATE_STOPPED:
case PL330_STATE_STOPPED:
return _trigger(thrd);
return _trigger(thrd);
...
@@ -1779,8 +1782,6 @@ static inline void _free_event(struct pl330_thread *thrd, int ev)
...
@@ -1779,8 +1782,6 @@ static inline void _free_event(struct pl330_thread *thrd, int ev)
static void pl330_release_channel(struct pl330_thread *thrd)
static void pl330_release_channel(struct pl330_thread *thrd)
{
{
struct pl330_dmac *pl330;
if (!thrd || thrd->free)
if (!thrd || thrd->free)
return;
return;
...
@@ -1789,8 +1790,6 @@ static void pl330_release_channel(struct pl330_thread *thrd)
...
@@ -1789,8 +1790,6 @@ static void pl330_release_channel(struct pl330_thread *thrd)
dma_pl330_rqcb(thrd->req[1 - thrd->lstenq].desc, PL330_ERR_ABORT);
dma_pl330_rqcb(thrd->req[1 - thrd->lstenq].desc, PL330_ERR_ABORT);
dma_pl330_rqcb(thrd->req[thrd->lstenq].desc, PL330_ERR_ABORT);
dma_pl330_rqcb(thrd->req[thrd->lstenq].desc, PL330_ERR_ABORT);
pl330 = thrd->dmac;
_free_event(thrd, thrd->ev);
_free_event(thrd, thrd->ev);
thrd->free = true;
thrd->free = true;
}
}
...
@@ -2257,13 +2256,14 @@ static int pl330_terminate_all(struct dma_chan *chan)
...
@@ -2257,13 +2256,14 @@ static int pl330_terminate_all(struct dma_chan *chan)
pm_runtime_get_sync(pl330->ddma.dev);
pm_runtime_get_sync(pl330->ddma.dev);
spin_lock_irqsave(&pch->lock, flags);
spin_lock_irqsave(&pch->lock, flags);
spin_lock(&pl330->lock);
spin_lock(&pl330->lock);
_stop(pch->thread);
_stop(pch->thread);
spin_unlock(&pl330->lock);
pch->thread->req[0].desc = NULL;
pch->thread->req[0].desc = NULL;
pch->thread->req[1].desc = NULL;
pch->thread->req[1].desc = NULL;
pch->thread->req_running = -1;
pch->thread->req_running = -1;
spin_unlock(&pl330->lock);
power_down = pch->active;
power_down = pch->active;
pch->active = false;
pch->active = false;
...
...
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