[Skiboot] [PATCH] libflash/mbox-flash: Fix bad WRITE_FLUSH parameter
    Cyril Bur 
    cyril.bur at au1.ibm.com
       
    Tue Mar 21 14:03:20 AEDT 2017
    
    
  
The position to flush from should be relative to the window not to the
entire flash.
"Args 0-1: Where within window as number of blocks"
This is actually quite nice as skiboot will always want to flush the
entire window, so from zero to size.
Fixes: 23fe769115c41e8859ce3d23dc75953bfb290f45
Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
 libflash/mbox-flash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libflash/mbox-flash.c b/libflash/mbox-flash.c
index 7bf731d0..61de4ff8 100644
--- a/libflash/mbox-flash.c
+++ b/libflash/mbox-flash.c
@@ -342,7 +342,7 @@ static int mbox_flash_write(struct blocklevel_device *bl, uint64_t pos,
 		 * without flushing entitles the BMC to throw away the
 		 * data
 		 */
-		rc = mbox_flash_flush(mbox_flash, pos, size);
+		rc = mbox_flash_flush(mbox_flash, 0, size);
 		if (rc)
 			return rc;
 
-- 
2.12.0
    
    
More information about the Skiboot
mailing list