soc: qcom: socinfo: Fix to print correct images information
'images' sysfs node is supposed to dump information about all images without the need to write to select_image. But As it doesn't look up the next image correctly after a image which doesn't have information in SMEM, it prints only the information of the fist a few images. After increase the correct offset of SMEM address, 'images' can print all information correctly. Change-Id: I08dfb2812bde42dd661d5a85d473eaf60ef215c5 Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
This commit is contained in:
parent
176f9fe465
commit
dfb5ed21a3
1 changed files with 3 additions and 1 deletions
|
@ -954,8 +954,10 @@ msm_get_images(struct device *dev,
|
|||
|
||||
*buf = '\0';
|
||||
for (image = 0; image < SMEM_IMAGE_VERSION_BLOCKS_COUNT; image++) {
|
||||
if (*image_address == '\0')
|
||||
if (*image_address == '\0') {
|
||||
image_address += SMEM_IMAGE_VERSION_SINGLE_BLOCK_SIZE;
|
||||
continue;
|
||||
}
|
||||
|
||||
pos += snprintf(buf + pos, PAGE_SIZE - pos, "%d:\n",
|
||||
image);
|
||||
|
|
Loading…
Add table
Reference in a new issue