mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-24 20:26:55 +01:00
calm down error messages during NAND write / erase
This commit is contained in:
parent
a1a4b706be
commit
fe7bcef787
7
nand.c
7
nand.c
@ -107,6 +107,12 @@ void nand_irq(void)
|
|||||||
dc_flushrange((void*)current_request.args[2], PAGE_SPARE_SIZE);
|
dc_flushrange((void*)current_request.args[2], PAGE_SPARE_SIZE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case IPC_NAND_ERASE:
|
||||||
|
// no action needed upon erase completion
|
||||||
|
break;
|
||||||
|
case IPC_NAND_WRITE:
|
||||||
|
// no action needed upon write completion
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
gecko_printf("Got IRQ for unknown NAND req %d\n", current_request.req);
|
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_set_address(0, pageno);
|
||||||
nand_send_command(NAND_ERASE_PRE, 0x1c, 0, 0);
|
nand_send_command(NAND_ERASE_PRE, 0x1c, 0, 0);
|
||||||
__nand_wait();
|
__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_send_command(NAND_ERASE_POST, 0, NAND_FLAGS_IRQ | NAND_FLAGS_WAIT, 0);
|
||||||
NAND_debug("nand_erase_block(%d) done\n", pageno);
|
NAND_debug("nand_erase_block(%d) done\n", pageno);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user