winbond_nor_write_ear(9)
π winbond_nor_write_ear(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this one lives in the Linux kernel's MTD SPI-NOR corner and it's literally the glow-up moment for your flash chip's address game. The function is winbond_nor_write_ear, and yes, "ear" is the Extended Address Register, not the thing on the side of your head π
β¨ NAME β¨
winbond_nor_write_ear β Write Extended Address Register. that's it. that's the whole vibe π
πΈ SYNOPSIS πΈ
int winbond_nor_write_ear (struct spi_nor *nor , u8 ear );
she takes two things and returns an int, no cap π«Ά
π¦ ARGUMENTS π¦
norβ pointer tostruct spi_nor. yeah, the big one. the main character of the SPI-NOR universe πearβ value to write to the Extended Address Register. this is theu8you're shoving into the EAR, so pick it wisely π
β RETURN β
0 on success, -errno otherwise. so like, zero is the slay, and anything negative is the kernel telling you "not today bestie" π
π SEE ALSO π
- Kernel file
./drivers/mtd/spi-nor/winbond.cβ the actual home of all this π winbond_nor_select_die(9)winbond_nor_set_4byte_addr_mode(9)
both of those are fr fr worth a read if you're deep in the Winbond lore, iykyk π§
lowkey important: this page is part of the Kernel API Manual, so if something looks off, it's the kernel's vibe, not mine π
mwah π that's the whole page, and it's giving documentation excellence. this gem comes from ./drivers/mtd/spi-nor and the version/date situation is October 2026 β so yeah, she's from the future and she's iconic for it βπ¦πΈ
π¦ 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