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
d0b75c91
Commit
d0b75c91
authored
Dec 18, 2019
by
Ulf Hansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
66a83feb
75d27ea1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
drivers/mmc/host/sdhci-of-esdhc.c
drivers/mmc/host/sdhci-of-esdhc.c
+2
-2
drivers/mmc/host/sdhci-pci-core.c
drivers/mmc/host/sdhci-pci-core.c
+9
-1
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.c
+3
-0
drivers/mmc/host/sdhci.h
drivers/mmc/host/sdhci.h
+2
-0
No files found.
drivers/mmc/host/sdhci-of-esdhc.c
View file @
d0b75c91
...
...
@@ -1301,8 +1301,8 @@ static int sdhci_esdhc_probe(struct platform_device *pdev)
host
->
quirks
&=
~
SDHCI_QUIRK_NO_BUSY_IRQ
;
if
(
of_find_compatible_node
(
NULL
,
NULL
,
"fsl,p2020-esdhc"
))
{
host
->
quirks
2
|=
SDHCI_QUIRK_RESET_AFTER_REQUEST
;
host
->
quirks
2
|=
SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
;
host
->
quirks
|=
SDHCI_QUIRK_RESET_AFTER_REQUEST
;
host
->
quirks
|=
SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
;
}
if
(
of_device_is_compatible
(
np
,
"fsl,p5040-esdhc"
)
||
...
...
drivers/mmc/host/sdhci-pci-core.c
View file @
d0b75c91
...
...
@@ -27,6 +27,7 @@
#include <linux/mmc/slot-gpio.h>
#include <linux/mmc/sdhci-pci-data.h>
#include <linux/acpi.h>
#include <linux/dmi.h>
#ifdef CONFIG_X86
#include <asm/iosf_mbi.h>
...
...
@@ -783,11 +784,18 @@ static int byt_emmc_probe_slot(struct sdhci_pci_slot *slot)
return
0
;
}
static
bool
glk_broken_cqhci
(
struct
sdhci_pci_slot
*
slot
)
{
return
slot
->
chip
->
pdev
->
device
==
PCI_DEVICE_ID_INTEL_GLK_EMMC
&&
dmi_match
(
DMI_BIOS_VENDOR
,
"LENOVO"
);
}
static
int
glk_emmc_probe_slot
(
struct
sdhci_pci_slot
*
slot
)
{
int
ret
=
byt_emmc_probe_slot
(
slot
);
slot
->
host
->
mmc
->
caps2
|=
MMC_CAP2_CQE
;
if
(
!
glk_broken_cqhci
(
slot
))
slot
->
host
->
mmc
->
caps2
|=
MMC_CAP2_CQE
;
if
(
slot
->
chip
->
pdev
->
device
!=
PCI_DEVICE_ID_INTEL_GLK_EMMC
)
{
slot
->
host
->
mmc
->
caps2
|=
MMC_CAP2_HS400_ES
,
...
...
drivers/mmc/host/sdhci.c
View file @
d0b75c91
...
...
@@ -3756,6 +3756,9 @@ int sdhci_setup_host(struct sdhci_host *host)
mmc_hostname
(
mmc
),
host
->
version
);
}
if
(
host
->
quirks
&
SDHCI_QUIRK_BROKEN_CQE
)
mmc
->
caps2
&=
~
MMC_CAP2_CQE
;
if
(
host
->
quirks
&
SDHCI_QUIRK_FORCE_DMA
)
host
->
flags
|=
SDHCI_USE_SDMA
;
else
if
(
!
(
host
->
caps
&
SDHCI_CAN_DO_SDMA
))
...
...
drivers/mmc/host/sdhci.h
View file @
d0b75c91
...
...
@@ -409,6 +409,8 @@ struct sdhci_host {
#define SDHCI_QUIRK_BROKEN_CARD_DETECTION (1<<15)
/* Controller reports inverted write-protect state */
#define SDHCI_QUIRK_INVERTED_WRITE_PROTECT (1<<16)
/* Controller has unusable command queue engine */
#define SDHCI_QUIRK_BROKEN_CQE (1<<17)
/* Controller does not like fast PIO transfers */
#define SDHCI_QUIRK_PIO_NEEDS_DELAY (1<<18)
/* Controller does not have a LED */
...
...
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