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
9d767dc5
Commit
9d767dc5
authored
Jun 18, 2019
by
Ulf Hansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
6e8e1acd
83293386
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
drivers/mmc/core/sdio.c
drivers/mmc/core/sdio.c
+12
-1
drivers/mmc/core/sdio_irq.c
drivers/mmc/core/sdio_irq.c
+4
-0
No files found.
drivers/mmc/core/sdio.c
View file @
9d767dc5
...
...
@@ -937,6 +937,10 @@ static int mmc_sdio_pre_suspend(struct mmc_host *host)
*/
static
int
mmc_sdio_suspend
(
struct
mmc_host
*
host
)
{
/* Prevent processing of SDIO IRQs in suspended state. */
mmc_card_set_suspended
(
host
->
card
);
cancel_delayed_work_sync
(
&
host
->
sdio_irq_work
);
mmc_claim_host
(
host
);
if
(
mmc_card_keep_power
(
host
)
&&
mmc_card_wake_sdio_irq
(
host
))
...
...
@@ -985,13 +989,20 @@ static int mmc_sdio_resume(struct mmc_host *host)
err
=
sdio_enable_4bit_bus
(
host
->
card
);
}
if
(
!
err
&&
host
->
sdio_irqs
)
{
if
(
err
)
goto
out
;
/* Allow SDIO IRQs to be processed again. */
mmc_card_clr_suspended
(
host
->
card
);
if
(
host
->
sdio_irqs
)
{
if
(
!
(
host
->
caps2
&
MMC_CAP2_SDIO_IRQ_NOTHREAD
))
wake_up_process
(
host
->
sdio_irq_thread
);
else
if
(
host
->
caps
&
MMC_CAP_SDIO_IRQ
)
host
->
ops
->
enable_sdio_irq
(
host
,
1
);
}
out:
mmc_release_host
(
host
);
host
->
pm_flags
&=
~
MMC_PM_KEEP_POWER
;
...
...
drivers/mmc/core/sdio_irq.c
View file @
9d767dc5
...
...
@@ -34,6 +34,10 @@ static int process_sdio_pending_irqs(struct mmc_host *host)
unsigned
char
pending
;
struct
sdio_func
*
func
;
/* Don't process SDIO IRQs if the card is suspended. */
if
(
mmc_card_suspended
(
card
))
return
0
;
/*
* Optimization, if there is only 1 function interrupt registered
* and we know an IRQ was signaled then call irq handler directly.
...
...
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