Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a5ec7f86
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
156
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a5ec7f86
编写于
7月 03, 2011
作者:
J
James Bottomley
提交者:
James Bottomley
7月 03, 2011
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[SCSI] isci: fix checkpatch errors
Signed-off-by:
N
James Bottomley
<
JBottomley@Parallels.com
>
上级
5b45b69c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
44 addition
and
42 deletion
+44
-42
drivers/scsi/isci/phy.c
drivers/scsi/isci/phy.c
+1
-1
drivers/scsi/isci/probe_roms.c
drivers/scsi/isci/probe_roms.c
+4
-3
drivers/scsi/isci/remote_device.c
drivers/scsi/isci/remote_device.c
+1
-1
drivers/scsi/isci/request.h
drivers/scsi/isci/request.h
+2
-2
drivers/scsi/isci/task.c
drivers/scsi/isci/task.c
+36
-35
未找到文件。
drivers/scsi/isci/phy.c
浏览文件 @
a5ec7f86
...
...
@@ -197,7 +197,7 @@ sci_phy_link_layer_initialization(struct isci_phy *iphy,
llctl
=
SCU_SAS_LLCTL_GEN_VAL
(
NO_OUTBOUND_TASK_TIMEOUT
,
(
u8
)
ihost
->
user_parameters
.
no_outbound_task_timeout
);
switch
(
phy_user
->
max_speed_generation
)
{
switch
(
phy_user
->
max_speed_generation
)
{
case
SCIC_SDS_PARM_GEN3_SPEED
:
link_rate
=
SCU_SAS_LINK_LAYER_CONTROL_MAX_LINK_RATE_GEN3
;
break
;
...
...
drivers/scsi/isci/probe_roms.c
浏览文件 @
a5ec7f86
...
...
@@ -34,8 +34,9 @@
#include "task.h"
#include "probe_roms.h"
static
efi_char16_t
isci_efivar_name
[]
=
{
'R'
,
's'
,
't'
,
'S'
,
'c'
,
'u'
,
'O'
};
static
efi_char16_t
isci_efivar_name
[]
=
{
'R'
,
's'
,
't'
,
'S'
,
'c'
,
'u'
,
'O'
};
struct
isci_orom
*
isci_request_oprom
(
struct
pci_dev
*
pdev
)
{
...
...
@@ -182,7 +183,7 @@ struct isci_orom *isci_get_efi_var(struct pci_dev *pdev)
struct
isci_oem_hdr
*
oem_hdr
;
u8
*
tmp
,
sum
;
int
j
;
ssize_t
data_len
;
unsigned
long
data_len
;
u8
*
efi_data
;
u32
efi_attrib
=
0
;
...
...
drivers/scsi/isci/remote_device.c
浏览文件 @
a5ec7f86
...
...
@@ -73,7 +73,7 @@
static
void
isci_remote_device_not_ready
(
struct
isci_host
*
ihost
,
struct
isci_remote_device
*
idev
,
u32
reason
)
{
struct
isci_request
*
ireq
;
struct
isci_request
*
ireq
;
dev_dbg
(
&
ihost
->
pdev
->
dev
,
"%s: isci_device = %p
\n
"
,
__func__
,
idev
);
...
...
drivers/scsi/isci/request.h
浏览文件 @
a5ec7f86
...
...
@@ -440,8 +440,8 @@ void sci_smp_request_copy_response(struct isci_request *ireq);
static
inline
int
isci_task_is_ncq_recovery
(
struct
sas_task
*
task
)
{
return
(
sas_protocol_ata
(
task
->
task_proto
)
&&
task
->
ata_task
.
fis
.
command
==
ATA_CMD_READ_LOG_EXT
&&
task
->
ata_task
.
fis
.
lbal
==
ATA_LOG_SATA_NCQ
);
task
->
ata_task
.
fis
.
command
==
ATA_CMD_READ_LOG_EXT
&&
task
->
ata_task
.
fis
.
lbal
==
ATA_LOG_SATA_NCQ
);
}
...
...
drivers/scsi/isci/task.c
浏览文件 @
a5ec7f86
...
...
@@ -88,44 +88,45 @@ static void isci_task_refuse(struct isci_host *ihost, struct sas_task *task,
* function should not be completed to the host in the regular path.
*/
switch
(
disposition
)
{
case
isci_perform_normal_io_completion
:
/* Normal notification (task_done) */
dev_dbg
(
&
ihost
->
pdev
->
dev
,
"%s: Normal - task = %p, response=%d, "
"status=%d
\n
"
,
__func__
,
task
,
response
,
status
);
case
isci_perform_normal_io_completion
:
/* Normal notification (task_done) */
dev_dbg
(
&
ihost
->
pdev
->
dev
,
"%s: Normal - task = %p, response=%d, "
"status=%d
\n
"
,
__func__
,
task
,
response
,
status
);
task
->
lldd_task
=
NULL
;
task
->
lldd_task
=
NULL
;
isci_execpath_callback
(
ihost
,
task
,
task
->
task_done
);
break
;
isci_execpath_callback
(
ihost
,
task
,
task
->
task_done
);
break
;
case
isci_perform_aborted_io_completion
:
/* No notification because this request is already in the
* abort path.
*/
dev_dbg
(
&
ihost
->
pdev
->
dev
,
"%s: Aborted - task = %p, response=%d, "
"status=%d
\n
"
,
__func__
,
task
,
response
,
status
);
break
;
case
isci_perform_aborted_io_completion
:
/*
* No notification because this request is already in the
* abort path.
*/
dev_dbg
(
&
ihost
->
pdev
->
dev
,
"%s: Aborted - task = %p, response=%d, "
"status=%d
\n
"
,
__func__
,
task
,
response
,
status
);
break
;
case
isci_perform_error_io_completion
:
/* Use sas_task_abort */
dev_dbg
(
&
ihost
->
pdev
->
dev
,
"%s: Error - task = %p, response=%d, "
"status=%d
\n
"
,
__func__
,
task
,
response
,
status
);
case
isci_perform_error_io_completion
:
/* Use sas_task_abort */
dev_dbg
(
&
ihost
->
pdev
->
dev
,
"%s: Error - task = %p, response=%d, "
"status=%d
\n
"
,
__func__
,
task
,
response
,
status
);
isci_execpath_callback
(
ihost
,
task
,
sas_task_abort
);
break
;
isci_execpath_callback
(
ihost
,
task
,
sas_task_abort
);
break
;
default:
dev_dbg
(
&
ihost
->
pdev
->
dev
,
"%s: isci task notification default case!"
,
__func__
);
sas_task_abort
(
task
);
break
;
default:
dev_dbg
(
&
ihost
->
pdev
->
dev
,
"%s: isci task notification default case!"
,
__func__
);
sas_task_abort
(
task
);
break
;
}
}
...
...
@@ -1056,7 +1057,7 @@ int isci_task_abort_task(struct sas_task *task)
dev_dbg
(
&
isci_host
->
pdev
->
dev
,
"%s: old_request == %p
\n
"
,
__func__
,
old_request
);
any_dev_reset
=
isci_device_is_reset_pending
(
isci_host
,
isci_device
);
any_dev_reset
=
isci_device_is_reset_pending
(
isci_host
,
isci_device
);
spin_lock_irqsave
(
&
task
->
task_state_lock
,
flags
);
...
...
@@ -1115,9 +1116,9 @@ int isci_task_abort_task(struct sas_task *task)
__func__
,
task
);
}
goto
out
;
}
else
}
else
{
spin_unlock_irqrestore
(
&
task
->
task_state_lock
,
flags
);
}
spin_lock_irqsave
(
&
isci_host
->
scic_lock
,
flags
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录