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
31b758f2
Commit
31b758f2
authored
Oct 19, 2021
by
Ulf Hansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
976171c3
162079f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
drivers/mmc/host/Kconfig
drivers/mmc/host/Kconfig
+1
-1
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci-esdhc-imx.c
+16
-0
No files found.
drivers/mmc/host/Kconfig
View file @
31b758f2
...
@@ -508,7 +508,7 @@ config MMC_OMAP_HS
...
@@ -508,7 +508,7 @@ config MMC_OMAP_HS
config MMC_WBSD
config MMC_WBSD
tristate "Winbond W83L51xD SD/MMC Card Interface support"
tristate "Winbond W83L51xD SD/MMC Card Interface support"
depends on ISA_DMA_API
depends on ISA_DMA_API
&& !M68K
help
help
This selects the Winbond(R) W83L51xD Secure digital and
This selects the Winbond(R) W83L51xD Secure digital and
Multimedia card Interface.
Multimedia card Interface.
...
...
drivers/mmc/host/sdhci-esdhc-imx.c
View file @
31b758f2
...
@@ -1187,6 +1187,7 @@ static void esdhc_reset_tuning(struct sdhci_host *host)
...
@@ -1187,6 +1187,7 @@ static void esdhc_reset_tuning(struct sdhci_host *host)
struct
sdhci_pltfm_host
*
pltfm_host
=
sdhci_priv
(
host
);
struct
sdhci_pltfm_host
*
pltfm_host
=
sdhci_priv
(
host
);
struct
pltfm_imx_data
*
imx_data
=
sdhci_pltfm_priv
(
pltfm_host
);
struct
pltfm_imx_data
*
imx_data
=
sdhci_pltfm_priv
(
pltfm_host
);
u32
ctrl
;
u32
ctrl
;
int
ret
;
/* Reset the tuning circuit */
/* Reset the tuning circuit */
if
(
esdhc_is_usdhc
(
imx_data
))
{
if
(
esdhc_is_usdhc
(
imx_data
))
{
...
@@ -1199,7 +1200,22 @@ static void esdhc_reset_tuning(struct sdhci_host *host)
...
@@ -1199,7 +1200,22 @@ static void esdhc_reset_tuning(struct sdhci_host *host)
}
else
if
(
imx_data
->
socdata
->
flags
&
ESDHC_FLAG_STD_TUNING
)
{
}
else
if
(
imx_data
->
socdata
->
flags
&
ESDHC_FLAG_STD_TUNING
)
{
ctrl
=
readl
(
host
->
ioaddr
+
SDHCI_AUTO_CMD_STATUS
);
ctrl
=
readl
(
host
->
ioaddr
+
SDHCI_AUTO_CMD_STATUS
);
ctrl
&=
~
ESDHC_MIX_CTRL_SMPCLK_SEL
;
ctrl
&=
~
ESDHC_MIX_CTRL_SMPCLK_SEL
;
ctrl
&=
~
ESDHC_MIX_CTRL_EXE_TUNE
;
writel
(
ctrl
,
host
->
ioaddr
+
SDHCI_AUTO_CMD_STATUS
);
writel
(
ctrl
,
host
->
ioaddr
+
SDHCI_AUTO_CMD_STATUS
);
/* Make sure ESDHC_MIX_CTRL_EXE_TUNE cleared */
ret
=
readl_poll_timeout
(
host
->
ioaddr
+
SDHCI_AUTO_CMD_STATUS
,
ctrl
,
!
(
ctrl
&
ESDHC_MIX_CTRL_EXE_TUNE
),
1
,
50
);
if
(
ret
==
-
ETIMEDOUT
)
dev_warn
(
mmc_dev
(
host
->
mmc
),
"Warning! clear execute tuning bit failed
\n
"
);
/*
* SDHCI_INT_DATA_AVAIL is W1C bit, set this bit will clear the
* usdhc IP internal logic flag execute_tuning_with_clr_buf, which
* will finally make sure the normal data transfer logic correct.
*/
ctrl
=
readl
(
host
->
ioaddr
+
SDHCI_INT_STATUS
);
ctrl
|=
SDHCI_INT_DATA_AVAIL
;
writel
(
ctrl
,
host
->
ioaddr
+
SDHCI_INT_STATUS
);
}
}
}
}
}
}
...
...
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