Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
d0b75c91
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
d0b75c91
编写于
12月 18, 2019
作者:
U
Ulf Hansson
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fixes' into next
上级
66a83feb
75d27ea1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
3 deletion
+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
未找到文件。
drivers/mmc/host/sdhci-of-esdhc.c
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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 */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录