[PATCH 5.4 298/340] mtd: spi-nor: core: Add erase size check for erase command initialization