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
92d23216
Commit
92d23216
authored
Oct 14, 2021
by
Ulf Hansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
beae4a62
6ab4e2eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
drivers/mmc/host/sdhci-pci-core.c
drivers/mmc/host/sdhci-pci-core.c
+24
-5
No files found.
drivers/mmc/host/sdhci-pci-core.c
View file @
92d23216
...
@@ -616,16 +616,12 @@ static int intel_select_drive_strength(struct mmc_card *card,
...
@@ -616,16 +616,12 @@ static int intel_select_drive_strength(struct mmc_card *card,
return
intel_host
->
drv_strength
;
return
intel_host
->
drv_strength
;
}
}
static
int
bxt_get_cd
(
struct
mmc_host
*
mmc
)
static
int
sdhci_get_cd_nogpio
(
struct
mmc_host
*
mmc
)
{
{
int
gpio_cd
=
mmc_gpio_get_cd
(
mmc
);
struct
sdhci_host
*
host
=
mmc_priv
(
mmc
);
struct
sdhci_host
*
host
=
mmc_priv
(
mmc
);
unsigned
long
flags
;
unsigned
long
flags
;
int
ret
=
0
;
int
ret
=
0
;
if
(
!
gpio_cd
)
return
0
;
spin_lock_irqsave
(
&
host
->
lock
,
flags
);
spin_lock_irqsave
(
&
host
->
lock
,
flags
);
if
(
host
->
flags
&
SDHCI_DEVICE_DEAD
)
if
(
host
->
flags
&
SDHCI_DEVICE_DEAD
)
...
@@ -638,6 +634,21 @@ static int bxt_get_cd(struct mmc_host *mmc)
...
@@ -638,6 +634,21 @@ static int bxt_get_cd(struct mmc_host *mmc)
return
ret
;
return
ret
;
}
}
static
int
bxt_get_cd
(
struct
mmc_host
*
mmc
)
{
int
gpio_cd
=
mmc_gpio_get_cd
(
mmc
);
if
(
!
gpio_cd
)
return
0
;
return
sdhci_get_cd_nogpio
(
mmc
);
}
static
int
mrfld_get_cd
(
struct
mmc_host
*
mmc
)
{
return
sdhci_get_cd_nogpio
(
mmc
);
}
#define SDHCI_INTEL_PWR_TIMEOUT_CNT 20
#define SDHCI_INTEL_PWR_TIMEOUT_CNT 20
#define SDHCI_INTEL_PWR_TIMEOUT_UDELAY 100
#define SDHCI_INTEL_PWR_TIMEOUT_UDELAY 100
...
@@ -1341,6 +1352,14 @@ static int intel_mrfld_mmc_probe_slot(struct sdhci_pci_slot *slot)
...
@@ -1341,6 +1352,14 @@ static int intel_mrfld_mmc_probe_slot(struct sdhci_pci_slot *slot)
MMC_CAP_1_8V_DDR
;
MMC_CAP_1_8V_DDR
;
break
;
break
;
case
INTEL_MRFLD_SD
:
case
INTEL_MRFLD_SD
:
slot
->
cd_idx
=
0
;
slot
->
cd_override_level
=
true
;
/*
* There are two PCB designs of SD card slot with the opposite
* card detection sense. Quirk this out by ignoring GPIO state
* completely in the custom ->get_cd() callback.
*/
slot
->
host
->
mmc_host_ops
.
get_cd
=
mrfld_get_cd
;
slot
->
host
->
quirks2
|=
SDHCI_QUIRK2_NO_1_8_V
;
slot
->
host
->
quirks2
|=
SDHCI_QUIRK2_NO_1_8_V
;
break
;
break
;
case
INTEL_MRFLD_SDIO
:
case
INTEL_MRFLD_SDIO
:
...
...
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