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
9f606f11
Commit
9f606f11
authored
Dec 19, 2019
by
Ulf Hansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
2253ed4b
f667216c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
drivers/mmc/host/sdhci-of-esdhc.c
drivers/mmc/host/sdhci-of-esdhc.c
+10
-0
No files found.
drivers/mmc/host/sdhci-of-esdhc.c
View file @
9f606f11
...
...
@@ -80,6 +80,7 @@ struct sdhci_esdhc {
bool
quirk_tuning_erratum_type1
;
bool
quirk_tuning_erratum_type2
;
bool
quirk_ignore_data_inhibit
;
bool
quirk_delay_before_data_reset
;
bool
in_sw_tuning
;
unsigned
int
peripheral_clock
;
const
struct
esdhc_clk_fixup
*
clk_fixup
;
...
...
@@ -759,6 +760,11 @@ static void esdhc_reset(struct sdhci_host *host, u8 mask)
struct
sdhci_esdhc
*
esdhc
=
sdhci_pltfm_priv
(
pltfm_host
);
u32
val
;
if
(
esdhc
->
quirk_delay_before_data_reset
&&
(
mask
&
SDHCI_RESET_DATA
)
&&
(
host
->
flags
&
SDHCI_REQ_USE_DMA
))
mdelay
(
5
);
sdhci_reset
(
host
,
mask
);
sdhci_writel
(
host
,
host
->
ier
,
SDHCI_INT_ENABLE
);
...
...
@@ -1218,6 +1224,10 @@ static void esdhc_init(struct platform_device *pdev, struct sdhci_host *host)
if
(
match
)
esdhc
->
clk_fixup
=
match
->
data
;
np
=
pdev
->
dev
.
of_node
;
if
(
of_device_is_compatible
(
np
,
"fsl,p2020-esdhc"
))
esdhc
->
quirk_delay_before_data_reset
=
true
;
clk
=
of_clk_get
(
np
,
0
);
if
(
!
IS_ERR
(
clk
))
{
/*
...
...
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