no wait queue init in cfi_cmd0002

mike lee mikelee at avantwave.com
Wed Apr 27 03:15:59 EDT 2005


Dear all
    I have added a line to cfi_cmdset_0002.c to solve kernel oops of my mapping driver. Actually, i can not find any init wait queue in cmdset_0002, when i add it back , the problem solved. I get mess because there is no problem when i port another amdflash. Please correct me if i am wrong.
    I am using unpatched linux-2.6.10

struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary)
............
    for (i=0; i< cfi->numchips; i++) {
        cfi->chips[i].word_write_time = 1<<cfi->cfiq->WordWriteTimeoutTyp;
        cfi->chips[i].buffer_write_time = 1<<cfi->cfiq->BufWriteTimeoutTyp;
        cfi->chips[i].erase_time = 1<<cfi->cfiq->BlockEraseTimeoutTyp;
        init_waitqueue_head(&cfi->chips[i].wq);  //line added by mike,11/apr/2005
    }       

best regard
Mike,Lee





More information about the linux-mtd mailing list