add a gpio feature for devices supporting the generic GPIO interface
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.25 / 850-jffs2_erase_progress_indicator.patch
1 diff -Nur linux-2.6.24/fs/jffs2/erase.c linux-2.6.24-owrt/fs/jffs2/erase.c
2 --- linux-2.6.24/fs/jffs2/erase.c 2008-01-30 17:30:15.000000000 +0100
3 +++ linux-2.6.24-owrt/fs/jffs2/erase.c 2008-01-30 22:20:02.000000000 +0100
4 @@ -35,6 +35,8 @@
5 {
6 int ret;
7 uint32_t bad_offset;
8 + static char s[]="|/-\\", *p=s;
9 +
10 #ifdef __ECOS
11 ret = jffs2_flash_erase(c, jeb);
12 if (!ret) {
13 @@ -47,6 +49,11 @@
14
15 D1(printk(KERN_DEBUG "jffs2_erase_block(): erase block %#08x (range %#08x-%#08x)\n",
16 jeb->offset, jeb->offset, jeb->offset + c->sector_size));
17 +
18 + printk("%c\b", *p);
19 + if (*++p==0)
20 + p=s;
21 +
22 instr = kmalloc(sizeof(struct erase_info) + sizeof(struct erase_priv_struct), GFP_KERNEL);
23 if (!instr) {
24 printk(KERN_WARNING "kmalloc for struct erase_info in jffs2_erase_block failed. Refiling block for later\n");
This page took 0.051251 seconds and 5 git commands to generate.