[RFC] mtd/nand: modify NAND_CHIPOPTIONS_MSK
computersforpeace at gmail.com
Mon Nov 28 13:34:06 EST 2011
On Mon, Nov 28, 2011 at 6:20 AM, Jan Weitzel <j.weitzel at phytec.de> wrote:
> Trying to set NAND_NO_SUBPAGE_WRITE from platform fail, because
> nand_flash_detect_onfi options from struct nand_flash_dev overwrite the flag.
> Removing NAND_NO_SUBPAGE_WRITE from NAND_CHIPOPTIONS_MSK fix this,
> but setting it via struct nand_flash_dev table is not longer supported.
Is it necessary to change the mask? I'm not real familiar with this
particular option, but can't you set your flags after the initial
identification stage? For instance, something like this:
chip->options |= NAND_NO_SUBPAGE_WRITE;
More information about the linux-mtd