Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
8b78e83b
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
8b78e83b
编写于
1月 09, 2006
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
上级
cf10b285
b887030a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
24 addition
and
6 deletion
+24
-6
drivers/scsi/sata_nv.c
drivers/scsi/sata_nv.c
+24
-6
未找到文件。
drivers/scsi/sata_nv.c
浏览文件 @
8b78e83b
...
...
@@ -29,6 +29,12 @@
* NV-specific details such as register offsets, SATA phy location,
* hotplug info, etc.
*
* 0.10
* - Fixed spurious interrupts issue seen with the Maxtor 6H500F0 500GB
* drive. Also made the check_hotplug() callbacks return whether there
* was a hotplug interrupt or not. This was not the source of the
* spurious interrupts, but is the right thing to do anyway.
*
* 0.09
* - Fixed bug introduced by 0.08's MCP51 and MCP55 support.
*
...
...
@@ -124,10 +130,10 @@ static void nv_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val);
static
void
nv_host_stop
(
struct
ata_host_set
*
host_set
);
static
void
nv_enable_hotplug
(
struct
ata_probe_ent
*
probe_ent
);
static
void
nv_disable_hotplug
(
struct
ata_host_set
*
host_set
);
static
void
nv_check_hotplug
(
struct
ata_host_set
*
host_set
);
static
int
nv_check_hotplug
(
struct
ata_host_set
*
host_set
);
static
void
nv_enable_hotplug_ck804
(
struct
ata_probe_ent
*
probe_ent
);
static
void
nv_disable_hotplug_ck804
(
struct
ata_host_set
*
host_set
);
static
void
nv_check_hotplug_ck804
(
struct
ata_host_set
*
host_set
);
static
int
nv_check_hotplug_ck804
(
struct
ata_host_set
*
host_set
);
enum
nv_host_type
{
...
...
@@ -176,7 +182,7 @@ struct nv_host_desc
enum
nv_host_type
host_type
;
void
(
*
enable_hotplug
)(
struct
ata_probe_ent
*
probe_ent
);
void
(
*
disable_hotplug
)(
struct
ata_host_set
*
host_set
);
void
(
*
check_hotplug
)(
struct
ata_host_set
*
host_set
);
int
(
*
check_hotplug
)(
struct
ata_host_set
*
host_set
);
};
static
struct
nv_host_desc
nv_device_tbl
[]
=
{
...
...
@@ -309,12 +315,16 @@ static irqreturn_t nv_interrupt (int irq, void *dev_instance,
qc
=
ata_qc_from_tag
(
ap
,
ap
->
active_tag
);
if
(
qc
&&
(
!
(
qc
->
tf
.
ctl
&
ATA_NIEN
)))
handled
+=
ata_host_intr
(
ap
,
qc
);
else
// No request pending? Clear interrupt status
// anyway, in case there's one pending.
ap
->
ops
->
check_status
(
ap
);
}
}
if
(
host
->
host_desc
->
check_hotplug
)
host
->
host_desc
->
check_hotplug
(
host_set
);
h
andled
+=
h
ost
->
host_desc
->
check_hotplug
(
host_set
);
spin_unlock_irqrestore
(
&
host_set
->
lock
,
flags
);
...
...
@@ -497,7 +507,7 @@ static void nv_disable_hotplug(struct ata_host_set *host_set)
outb
(
intr_mask
,
host_set
->
ports
[
0
]
->
ioaddr
.
scr_addr
+
NV_INT_ENABLE
);
}
static
void
nv_check_hotplug
(
struct
ata_host_set
*
host_set
)
static
int
nv_check_hotplug
(
struct
ata_host_set
*
host_set
)
{
u8
intr_status
;
...
...
@@ -522,7 +532,11 @@ static void nv_check_hotplug(struct ata_host_set *host_set)
if
(
intr_status
&
NV_INT_STATUS_SDEV_REMOVED
)
printk
(
KERN_WARNING
"nv_sata: "
"Secondary device removed
\n
"
);
return
1
;
}
return
0
;
}
static
void
nv_enable_hotplug_ck804
(
struct
ata_probe_ent
*
probe_ent
)
...
...
@@ -560,7 +574,7 @@ static void nv_disable_hotplug_ck804(struct ata_host_set *host_set)
pci_write_config_byte
(
pdev
,
NV_MCP_SATA_CFG_20
,
regval
);
}
static
void
nv_check_hotplug_ck804
(
struct
ata_host_set
*
host_set
)
static
int
nv_check_hotplug_ck804
(
struct
ata_host_set
*
host_set
)
{
u8
intr_status
;
...
...
@@ -585,7 +599,11 @@ static void nv_check_hotplug_ck804(struct ata_host_set *host_set)
if
(
intr_status
&
NV_INT_STATUS_SDEV_REMOVED
)
printk
(
KERN_WARNING
"nv_sata: "
"Secondary device removed
\n
"
);
return
1
;
}
return
0
;
}
static
int
__init
nv_init
(
void
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录