[Skiboot] [PATCH 4/5] libflash/mbox-flash: Implement MARK_WRITE_ERASED mbox call

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue May 2 17:34:17 AEST 2017


On Mon, 2017-04-24 at 19:14 +1000, Cyril Bur wrote:
> +               msg_put_u16(msg, 0, pos >> mbox_flash->shift);
> +               msg_put_u16(msg, 2, len >> mbox_flash->shift);
> +               rc = msg_send(mbox_flash, msg);
> +               if (rc) {

Either you do proper alignment as for mark dirty or you verify
that the inputs are aligned and error out if not with a warning.

Cheers,
Ben.



More information about the Skiboot mailing list