calm down error messages during NAND write / erase

This commit is contained in:
bushing 2009-05-07 05:01:08 -07:00
parent a1a4b706be
commit fe7bcef787

7
nand.c
View File

@ -107,6 +107,12 @@ void nand_irq(void)
dc_flushrange((void*)current_request.args[2], PAGE_SPARE_SIZE);
}
break;
case IPC_NAND_ERASE:
// no action needed upon erase completion
break;
case IPC_NAND_WRITE:
// no action needed upon write completion
break;
default:
gecko_printf("Got IRQ for unknown NAND req %d\n", current_request.req);
}
@ -244,7 +250,6 @@ void nand_erase_block(u32 pageno) {
__nand_set_address(0, pageno);
nand_send_command(NAND_ERASE_PRE, 0x1c, 0, 0);
__nand_wait();
// should we really be using NAND_FLAGS_IRQ here?
nand_send_command(NAND_ERASE_POST, 0, NAND_FLAGS_IRQ | NAND_FLAGS_WAIT, 0);
NAND_debug("nand_erase_block(%d) done\n", pageno);
}