Home
last modified time | relevance | path

Searched hist:f72071b8 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/include/linux/mtd/
H A Dmtd.hf72071b8 Fri Dec 15 06:39:52 CST 2017 Boris Brezillon <boris.brezillon@free-electrons.com> mtd: Add an helper to make erase request aligned on ->erasesize

There's currently nothing forcing alignment of einfo->addr and
einfo->len on mtd->erasesize. Since we don't know if automatically
aligning those field in mtd_erase() will hurt some drivers, we add an
helper function to let drivers that need such an alignment explicitly
ask for it.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Miquel Raynal <miquel.raynal@free-electrons.com>
f72071b8 Fri Dec 15 06:39:52 CST 2017 Boris Brezillon <boris.brezillon@free-electrons.com> mtd: Add an helper to make erase request aligned on ->erasesize

There's currently nothing forcing alignment of einfo->addr and
einfo->len on mtd->erasesize. Since we don't know if automatically
aligning those field in mtd_erase() will hurt some drivers, we add an
helper function to let drivers that need such an alignment explicitly
ask for it.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Miquel Raynal <miquel.raynal@free-electrons.com>