Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
32877d66
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
32877d66
编写于
5月 05, 2004
作者:
W
wdenk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* Fix memory leak in the NAND-specific JFFS2 code
* Fix SL811 USB controller when attached to a USB hub
上级
62b4ac98
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
19 addition
and
7 deletion
+19
-7
CHANGELOG
CHANGELOG
+4
-0
drivers/sl811_usb.c
drivers/sl811_usb.c
+9
-4
fs/jffs2/jffs2_1pass.c
fs/jffs2/jffs2_1pass.c
+6
-3
未找到文件。
CHANGELOG
浏览文件 @
32877d66
...
...
@@ -2,6 +2,10 @@
Changes since U-Boot 1.1.1:
======================================================================
* Fix memory leak in the NAND-specific JFFS2 code
* Fix SL811 USB controller when attached to a USB hub
* Fix config option spelling in PM520 config file
* Fix PHY discovery problem in cpu/mpc8xx/fec.c (introduced by
...
...
drivers/sl811_usb.c
浏览文件 @
32877d66
...
...
@@ -226,7 +226,12 @@ int usb_lowlevel_stop(void)
return
0
;
}
int
sl811_send_packet
(
int
dir_to_host
,
int
data1
,
__u8
*
buffer
,
int
len
)
static
int
calc_needed_buswidth
(
int
bytes
,
int
low_speed
)
{
return
bytes
*
8
+
512
;
}
static
int
sl811_send_packet
(
int
dir_to_host
,
int
data1
,
__u8
*
buffer
,
int
len
)
{
__u8
ctrl
=
SL811_USB_CTRL_ARM
|
SL811_USB_CTRL_ENABLE
;
__u16
status
=
0
;
...
...
@@ -248,7 +253,7 @@ int sl811_send_packet(int dir_to_host, int data1, __u8 *buffer, int len)
if
(
!
dir_to_host
&&
len
)
sl811_write_buf
(
0x10
,
buffer
,
len
);
if
(
sl811_read
(
SL811_SOFCNTDIV
)
*
64
<
len
*
8
*
2
)
if
(
sl811_read
(
SL811_SOFCNTDIV
)
*
64
<
calc_needed_buswidth
(
len
,
0
)
)
ctrl
|=
SL811_USB_CTRL_SOF
;
else
ctrl
&=
~
SL811_USB_CTRL_SOF
;
...
...
@@ -494,7 +499,7 @@ static int ascii2utf (char *s, u8 *utf, int utfmax)
* root_hub_string is used by each host controller's root hub code,
* so that they're identified consistently throughout the system.
*/
int
usb_root_hub_string
(
int
id
,
int
serial
,
char
*
type
,
__u8
*
data
,
int
len
)
static
int
usb_root_hub_string
(
int
id
,
int
serial
,
char
*
type
,
__u8
*
data
,
int
len
)
{
char
buf
[
30
];
...
...
@@ -503,7 +508,7 @@ int usb_root_hub_string (int id, int serial, char *type, __u8 *data, int len)
/* language ids */
if
(
id
==
0
)
{
*
data
++
=
4
;
*
data
++
=
3
;
/* 4 bytes data */
*
data
++
=
3
;
*
data
++
=
4
;
/* 4 bytes data */
*
data
++
=
0
;
*
data
++
=
0
;
/* some language id */
return
4
;
...
...
fs/jffs2/jffs2_1pass.c
浏览文件 @
32877d66
...
...
@@ -217,6 +217,7 @@ static void *get_fl_mem(u32 off, u32 size, void *ext_buf)
return
NULL
;
}
if
(
read_nand_cached
(
off
,
size
,
buf
)
<
0
)
{
if
(
!
ext_buf
)
free
(
buf
);
return
NULL
;
}
...
...
@@ -756,9 +757,11 @@ jffs2_1pass_list_inodes(struct b_lists * pL, u32 pino)
while
(
b2
)
{
jNode
=
(
struct
jffs2_raw_inode
*
)
get_fl_mem
(
b2
->
offset
,
sizeof
(
ojNode
),
&
ojNode
);
if
(
jNode
->
ino
==
jDir
->
ino
&&
jNode
->
version
>=
i_version
)
if
(
jNode
->
ino
==
jDir
->
ino
&&
jNode
->
version
>=
i_version
)
{
if
(
i
)
put_fl_mem
(
i
);
i
=
get_fl_mem
(
b2
->
offset
,
sizeof
(
*
i
),
NULL
);
}
b2
=
b2
->
next
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录