spear_smi_wait_till_ready(9)
β¨ spear_smi_wait_till_ready β¨
okay so bestie, this is a page from the Kernel API Manual (section 9, kernel-space vibes only π
) and it's about one tiny but iconic helper β spear_smi_wait_till_ready. she's the one who sits there and waits for the flash to be done being busy. no cap, she's the patience of the group chat π«Ά
πΈ NAME πΈ
spear_smi_wait_till_ready β wait till flash is ready π
like literally that's her whole job. she waits. until the flash is ready. queen behavior π
π¦ SYNOPSIS π¦
int spear_smi_wait_till_ready (struct spear_smi *dev , u32 bank ,
unsigned long timeout );
π ARGUMENTS π
devβ the structure of SMI information. this is the whole situation, the main character of the struct world πbankβ the flash corresponding to this bank. yes, this bank specifically. gotta be specific, iykyk β¨timeoutβ the timeout for the busy wait condition. your patience budget, fr fr β³
π DESCRIPTION π
so what she does: this routine checks for the WIP (write in progress) bit in the Status register. that's it. that's the whole mission π―
if it's successful, the routine returns 0 β slay, we're ready, go off π
else it returns -EBUSY. translation: still busy bestie, come back later ππ
ngl the -EBUSY return is the "leave me on read" of kernel error codes. not a crash, not a bug β just not yet π
π₯ SEE ALSO π₯
Kernel file ./drivers/mtd/devices/spear_smi.c
struct spear_smi(9)struct spear_snor_flash(9)spear_smi_read_sr(9)spear_smi_int_handler(9)spear_smi_hw_init(9)get_flash_index(9)spear_smi_write_enable(9)spear_smi_erase_sector(9)spear_mtd_erase(9)spear_mtd_read(9)spear_mtd_write(9)spear_smi_probe_flash(9)spear_smi_probe(9)spear_smi_remove(9)
like, the whole squad is linked above β go read them too, they ate πβ¨
π« and that's the page! brought to you by ./drivers/mtd/devices, dated October 2026, and of course the manual name spear_smi_wait_till_ready(9) β mwah, stan her, she waits so you don't have to ππ¦π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms