Re: [PATCH v2] mtd: spinand: set request type explicitly in spinand_{is,mark}bad() functions

From: Miquel Raynal

Date: Fri Nov 20 2026 - 10:09:22 EST


On Thu, 19 Nov 2026 08:57:42 +0100, Gabor Juhos wrote:
> Commit 701981cab016 ("mtd: nand: Add a NAND page I/O request type")
> added a 'type' member to the 'nand_page_io_req' structure and updated
> the request iterators to utilize that, but the spinand_{is,mark}bad()
> functions were not updated by the commit. However in both of these
> functions the new member is implicitly inititalized to zero which
> corresponds to NAND_PAGE_READ. This is correct for the spinand_isbad()
> function since that uses a read request to get the bad block marker
> bytes, but the spinand_markbad() function does a write request so it
> should set the request type to NAND_PAGE_WRITE.
>
> [...]

Applied to mtd/fixes, thanks!

[1/1] mtd: spinand: set request type explicitly in spinand_{is,mark}bad() functions
commit: 7ab84dc9c3d91c7cd72abb96ec4e253e44560f95

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl