]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Pass buffer size to OPAL validate flash call
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>
Thu, 5 Jun 2014 04:43:40 +0000 (10:13 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Jun 2014 04:54:04 +0000 (14:54 +1000)
commit6ccaf56538d56385bbadf08287c45b249409b3b4
treea4e9d3c6581cde428eccd4df046585855eec3677
parentce7057cf82cafd61180a478285b1dc672d9ade68
powerpc/powernv: Pass buffer size to OPAL validate flash call

We pass actual buffer size to opal_validate_flash() OPAL API call
and in return it contains output buffer size.

Commit 5710f00d (Fix little endian issues) missed to set the size
param before making OPAL call. So firmware image validation fails.

This patch sets size variable before making OPAL call.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Tested-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/opal-flash.c