spl: Fix SPL EXT support
PATCH 1/1 spl: Fix SPL EXT support
Commit 9f12cd0e062614e19734b2ab37842d387457c5e5 has broken SPL EXT support. This patch update error code check to get SPL EXT support working again.
Tested on a Pandaboard (rev. A3).
--- common/spl/spl_ext.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
common/spl/spl_ext.c +5 -5
@@ -43,7 +43,7 @@ int spl_load_image_ext(block_dev_desc_t *block_dev, goto end; } err =ext4fs_read ((char *)header,sizeof (struct image_header ), &actlen); -if (err <=0 ) { +if (err <0 ) {puts ("spl: ext4fs_read failed\n" ); goto end; }
@@ -54,12 +54,12 @@ int spl_load_image_ext(block_dev_desc_t *block_dev, end:#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT -if (err <=0 ) +if (err <0 )printf ("%s: error reading image %s, err - %d\n" , __func__, filename, err);#endif -return err <=0 ; +return err <0 ; }#ifdef CONFIG_SPL_OS_BOOT
@@ -95,7 +95,7 @@ int spl_load_image_ext_os(block_dev_desc_t *block_dev, int partition) goto defaults; } err =ext4fs_read ((void *)CONFIG_SYS_SPL_ARGS_ADDR , filelen, &actlen); -if (err <=0 ) { +if (err <0 ) {printf ("spl: error reading image %s, err - %d, falling back to default\n" , file, err); goto defaults;
@@ -124,7 +124,7 @@ defaults:puts ("spl: ext4fs_open failed\n" ); err =ext4fs_read ((void *)CONFIG_SYS_SPL_ARGS_ADDR , filelen, &actlen); -if (err <=0 ) { +if (err <0 ) {#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT printf ("%s: error reading image %s, err - %d\n" , __func__,CONFIG_SPL_FS_LOAD_ARGS_NAME , err);
Signature · 1 line
1.8.4.5
PATCH 1/1 spl: Fix SPL EXT support
Hello Guillaume GARDET,
Quoted 60 lines · Guillaume GARDET
Commit
9f12cd0e062614e19734b2ab37842d387457c5e5has broken SPL EXT support. This patch update error code check to get SPL EXT support working again.Tested on a Pandaboard (rev. A3).
Signed-off-by Guillaume GARDET <[email protected]>Cc Tom Rini <[email protected]>Cc Suriyan Ramasami <[email protected]>--- common/spl/spl_ext.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)common/spl/spl_ext.c +5
-6@@ -43,7 +43,7 @@ int spl_load_image_ext(block_dev_desc_t *block_dev, goto end; } err =ext4fs_read ((char *)header,sizeof (struct image_header ), &actlen); -if (err <=0 ) { +if (err <0 ) {puts ("spl: ext4fs_read failed\n" ); goto end; }@@ -54,12 +54,12 @@ int spl_load_image_ext(block_dev_desc_t *block_dev, end:#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT -if (err <=0 ) +if (err <0 )printf ("%s: error reading image %s, err - %d\n" , __func__, filename, err);#endif -return err <=0 ; +return err <0 ; }#ifdef CONFIG_SPL_OS_BOOT @@ -95,7 +95,7 @@ int spl_load_image_ext_os(block_dev_desc_t *block_dev, int partition) goto defaults; } err =ext4fs_read ((void *)CONFIG_SYS_SPL_ARGS_ADDR , filelen, &actlen); -if (err <=0 ) { +if (err <0 ) {printf ("spl: error reading image %s, err - %d, falling back to default\n" , file, err); goto defaults;@@ -124,7 +124,7 @@ defaults:puts ("spl: ext4fs_open failed\n" ); err =ext4fs_read ((void *)CONFIG_SYS_SPL_ARGS_ADDR , filelen, &actlen); -if (err <=0 ) { +if (err <0 ) {#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT printf ("%s: error reading image %s, err - %d\n" , __func__,CONFIG_SPL_FS_LOAD_ARGS_NAME , err); --
Quoted 2 lines
1.8.4.5
I am not sure, if I can put a "Reviewed-by" here, but it does look good to me. Thanks
- Suriyan
PATCH 1/1 spl: Fix SPL EXT support
Hi,
Quoted 58 lines · Suriyan Ramasami
Hello Guillaume GARDET,
Quoted 53 lines · Guillaume GARDET
Commit
9f12cd0e062614e19734b2ab37842d387457c5e5has broken SPL EXT support. This patch update error code check to get SPL EXT support working again.Tested on a Pandaboard (rev. A3).
Signed-off-by Guillaume GARDET <[email protected]>Cc Tom Rini <[email protected]>Cc Suriyan Ramasami <[email protected]>--- common/spl/spl_ext.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)common/spl/spl_ext.c +4
-4@@ -43,7 +43,7 @@ int spl_load_image_ext(block_dev_desc_t *block_dev, goto end; } err =ext4fs_read ((char *)header,sizeof (struct image_header ), &actlen); -if (err <=0 ) { +if (err <0 ) {puts ("spl: ext4fs_read failed\n" ); goto end; }@@ -54,12 +54,12 @@ int spl_load_image_ext(block_dev_desc_t *block_dev, end:#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT -if (err <=0 ) +if (err <0 )printf ("%s: error reading image %s, err - %d\n" , __func__, filename, err);#endif -return err <=0 ; +return err <0 ; }#ifdef CONFIG_SPL_OS_BOOT @@ -95,7 +95,7 @@ int spl_load_image_ext_os(block_dev_desc_t *block_dev, int partition) goto defaults; } err =ext4fs_read ((void *)CONFIG_SYS_SPL_ARGS_ADDR , filelen, &actlen); -if (err <=0 ) { +if (err <0 ) {printf ("spl: error reading image %s, err - %d, falling back to default\n" , file, err); goto defaults;@@ -124,7 +124,7 @@ defaults:puts ("spl: ext4fs_open failed\n" );
Quoted 13 lines
Quoted 9 lines
common/spl/spl_ext.c +1
-2err =ext4fs_read ((void *)CONFIG_SYS_SPL_ARGS_ADDR , filelen, &actlen); -if (err <=0 ) { +if (err <0 ) {#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT printf ("%s: error reading image %s, err - %d\n" , __func__,CONFIG_SPL_FS_LOAD_ARGS_NAME , err); --1.8.4.5
I am not sure, if I can put a "Reviewed-by" here, but it does look good to me. Thanks
- Suriyan
Yes you can - but it needs to be in the right format. You can reply on the thread with 'Reviewed-by: <name> <email>'
Regards,
Simon
PATCH 1/1 spl: Fix SPL EXT support
In reply to Guillaume GARDETQuoted 9 lines · Guillaume GARDET
Commit
9f12cd0e062614e19734b2ab37842d387457c5e5has broken SPL EXT support. This patch update error code check to get SPL EXT support working again.Tested on a Pandaboard (rev. A3).
Signed-off-by Guillaume GARDET <[email protected]>Cc Tom Rini <[email protected]>Cc Suriyan Ramasami <[email protected]>
Applied to u-boot/master (and added Reviewed-by tags), thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141126/4b6d8d89/attachment.pgp>