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
348ecd61
Commit
348ecd61
authored
Oct 28, 2021
by
Ulf Hansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
237ecf1b
90935eb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
drivers/mmc/host/tmio_mmc_core.c
drivers/mmc/host/tmio_mmc_core.c
+12
-5
No files found.
drivers/mmc/host/tmio_mmc_core.c
View file @
348ecd61
...
...
@@ -195,6 +195,10 @@ static void tmio_mmc_reset(struct tmio_mmc_host *host)
sd_ctrl_write32_as_16_and_16
(
host
,
CTL_IRQ_MASK
,
host
->
sdcard_irq_mask_all
);
host
->
sdcard_irq_mask
=
host
->
sdcard_irq_mask_all
;
if
(
host
->
native_hotplug
)
tmio_mmc_enable_mmc_irqs
(
host
,
TMIO_STAT_CARD_REMOVE
|
TMIO_STAT_CARD_INSERT
);
tmio_mmc_set_bus_width
(
host
,
host
->
mmc
->
ios
.
bus_width
);
if
(
host
->
pdata
->
flags
&
TMIO_MMC_SDIO_IRQ
)
{
...
...
@@ -956,8 +960,15 @@ static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
case
MMC_POWER_OFF
:
tmio_mmc_power_off
(
host
);
/* For R-Car Gen2+, we need to reset SDHI specific SCC */
if
(
host
->
pdata
->
flags
&
TMIO_MMC_MIN_RCAR2
)
if
(
host
->
pdata
->
flags
&
TMIO_MMC_MIN_RCAR2
)
{
host
->
reset
(
host
);
if
(
host
->
native_hotplug
)
tmio_mmc_enable_mmc_irqs
(
host
,
TMIO_STAT_CARD_REMOVE
|
TMIO_STAT_CARD_INSERT
);
}
host
->
set_clock
(
host
,
0
);
break
;
case
MMC_POWER_UP
:
...
...
@@ -1185,10 +1196,6 @@ int tmio_mmc_host_probe(struct tmio_mmc_host *_host)
_host
->
set_clock
(
_host
,
0
);
tmio_mmc_reset
(
_host
);
if
(
_host
->
native_hotplug
)
tmio_mmc_enable_mmc_irqs
(
_host
,
TMIO_STAT_CARD_REMOVE
|
TMIO_STAT_CARD_INSERT
);
spin_lock_init
(
&
_host
->
lock
);
mutex_init
(
&
_host
->
ios_lock
);
...
...
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