spi_nor_sr2_..._quad_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 spi_nor_sr2_..._quad_enable(9) 🌸

okay so bestie, welcome to the Kernel API Manual β€” this one's a tiny little function page from the Linux kernel's SPI-NOR world, and honestly? it's a whole mood. it's short, it's specific, it does exactly one (1) job, and it does it flawlessly. main character energy fr fr πŸ’…


✨ NAME ✨

spi_nor_sr2_bit1_quad_enable β€” set the Quad Enable BIT(1) in the Status Register 2. that's it. that's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

int spi_nor_sr2_bit1_quad_enable (struct spi_nor *nor );

like, literally that's the signature. no cap.


✨ ARGUMENTS ✨

  • nor β€” pointer to a struct spi_nor. just a lil pointer, handing over the whole NOR flash situation so the function can go poke at it. 🫢

✨ DESCRIPTION ✨

okay so here's the tea β˜• β€” Bit 1 of the Status Register 2 is the QE bit for Spansion-like QSPI memories. that's the Quad Enable bit, and this function's entire personality is flipping it on. that's the job. iconic behavior, honestly. πŸ”₯

ngl it's giving "one small task, done with full commitment." ✨


✨ RETURN ✨

  • 0 on success β€” slay, we ate πŸ’–
  • -errno otherwise β€” 😭 something went wrong, and the error code tells you what

✨ SEE ALSO ✨

okay this is the part where I hold your hand and show you the entire friend group 🫢 β€” every single one of these lives in the kernel file ./drivers/mtd/spi-nor/core.c, and yes, I'm listing all of them because we don't do half-finished over here:

like... the whole squad. iykyk πŸ’œ


🧚 quick vibe check: this is kernel API documentation, so the (9) on the end of everything is just the manual section, not a rating. (though honestly? all of them are a 9 at least πŸ’…)

kisses bestie, that's the whole page πŸŽ€ this gem comes out of ./drivers/mtd/spi-nor, dropped with love in October 2026 β€” go forth and enable those quads ✨🌈⭐

πŸ“¦ where this page comes from