Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
be8444bd
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看板
提交
be8444bd
编写于
10月 31, 2006
作者:
D
David Woodhouse
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[MTD] NAND: Add register debugging spew option to CAFÉ driver
Signed-off-by:
N
David Woodhouse
<
dwmw2@infradead.org
>
上级
195a253b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
drivers/mtd/nand/cafe.c
drivers/mtd/nand/cafe.c
+13
-13
未找到文件。
drivers/mtd/nand/cafe.c
浏览文件 @
be8444bd
...
...
@@ -72,6 +72,9 @@ module_param(skipbbt, int, 0644);
static
int
debug
=
0
;
module_param
(
debug
,
int
,
0644
);
static
int
regdebug
=
0
;
module_param
(
regdebug
,
int
,
0644
);
static
int
checkecc
=
1
;
module_param
(
checkecc
,
int
,
0644
);
...
...
@@ -228,12 +231,6 @@ static void cafe_nand_cmdfunc(struct mtd_info *mtd, unsigned command,
cafe_writel
(
cafe
,
cafe
->
ctl2
|
0x100
|
NAND_CMD_READSTART
,
NAND_CTRL2
);
do_command:
#if 0
/* http://dev.laptop.org/ticket/200
ECC on read only works if we read precisely 0x80e bytes */
if (cafe->datalen == 2112)
cafe->datalen = 2062;
#endif
cafe_dev_dbg
(
&
cafe
->
pdev
->
dev
,
"dlen %x, ctl1 %x, ctl2 %x
\n
"
,
cafe
->
datalen
,
ctl1
,
cafe_readl
(
cafe
,
NAND_CTRL2
));
...
...
@@ -254,13 +251,13 @@ static void cafe_nand_cmdfunc(struct mtd_info *mtd, unsigned command,
}
cafe
->
datalen
=
0
;
#if 0
{
int i;
printk("About to write command %08x
\n", ctl1);
for (i=0
; i< 0x5c; i+=4)
printk("Register %x: %08x\n", i, readl(cafe->mmio + i));
if
(
unlikely
(
regdebug
))
{
int
i
;
printk
(
"About to write command %08x to register 0
\n
"
,
ctl1
);
for
(
i
=
4
;
i
<
0x5c
;
i
+=
4
)
printk
(
"Register %x: %08x
\n
"
,
i
,
readl
(
cafe
->
mmio
+
i
));
}
#endif
cafe_writel
(
cafe
,
ctl1
,
NAND_CTRL1
);
/* Apply this short delay always to ensure that we do wait tWB in
* any case on any machine. */
...
...
@@ -388,7 +385,10 @@ static int cafe_nand_read_page(struct mtd_info *mtd, struct nand_chip *chip,
}
if
((
i
=
cafe_correct_ecc
(
buf
,
syn
))
<
0
)
{
dev_dbg
(
&
cafe
->
pdev
->
dev
,
"Failed to correct ECC
\n
"
);
dev_dbg
(
&
cafe
->
pdev
->
dev
,
"Failed to correct ECC at %08x
\n
"
,
cafe_readl
(
cafe
,
NAND_ADDR2
)
*
2048
);
for
(
i
=
0
;
i
<
0x5c
;
i
+=
4
)
printk
(
"Register %x: %08x
\n
"
,
i
,
readl
(
cafe
->
mmio
+
i
));
mtd
->
ecc_stats
.
failed
++
;
}
else
{
dev_dbg
(
&
cafe
->
pdev
->
dev
,
"Corrected %d symbol errors
\n
"
,
i
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录