Trivial fixes for Rockchip's SPL boot order
Subsystems (3)
cover Trivial fixes for Rockchip's SPL boot order
This series contains some trivial fixes.
The first patch fixes a spelling mistake in a comment.
The second patch adds the full devicetree node path (rather than just the ID) in the debug message when a boot device can't be found.
This series may be found at [0].
[0]: https://gitlab.collabora.com/obbardc/u-boot/-/tree/wip/obbardc/rockchip-spl-boot-order-fixes-v1
Christopher Obbard (2):
rockchip: spl-boot-order: Fix spelling succes→success
rockchip: spl-boot-order: Improve debugging message when device isn't
found
arch/arm/mach-rockchip/spl-boot-order.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/2 rockchip: spl-boot-order: Fix spelling succes→success
Fix a simple spelling mistake in a comment.
---
arch/arm/mach-rockchip/spl-boot-order.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/spl-boot-order.c +1 -1
@@ -29,7 +29,7 @@* -ENOSYS, if the device matching the node can not be mapped onto a * SPL boot device (e.g. the third MMC device) * -1, for unspecified failures -* a positive integer (from the BOOT_DEVICE_... family) on succes. +* a positive integer (from the BOOT_DEVICE_... family) on success. */ static int spl_node_to_boot_device (int node)
Signature · 1 line
2.43.0
Re: [PATCH v1 1/2] rockchip: spl-boot-order: Fix spelling succes→success
Hello Christopher,
Quoted 1 line · Christopher Obbard
Fix a simple spelling mistake in a comment.
I'd suggest that the main part of the patch subject is adjusted a bit, e.g. to something like "fix a typo".
Otherwise, looking good to me.
Quoted 20 lines
Signed-off-by Christopher Obbard <[email protected]>---
arch/arm/mach-rockchip/spl-boot-order.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-rockchip/spl-boot-order.c +1
-1@@ -29,7 +29,7 @@* -ENOSYS, if the device matching the node can not be mapped onto a * SPL boot device (e.g. the third MMC device) * -1, for unspecified failures -* a positive integer (from the BOOT_DEVICE_... family) on succes. +* a positive integer (from the BOOT_DEVICE_... family) on success. */ static int spl_node_to_boot_device (int node)
Re: [PATCH v1 1/2] rockchip: spl-boot-order: Fix spelling succes→success
In reply to Christopher ObbardHi Christopher,
Quoted 5 lines · Christopher Obbard
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Fix a simple spelling mistake in a comment.
Signed-off-by Christopher Obbard <[email protected]>
Thanks,
Quentin
PATCH 2/2 rockchip: spl-boot-order: Improve debugging message when device isn't found
In reply to Christopher ObbardWhen debugging the SPL boot order, the node ID of a device which hasn't been found is printed but it can be quite hard to relate that to the specific devicetree node. To aid debugging, print the node path as well as the ID.
Original debug message:
board_boot_order: could not map node @73c to a boot-device
With this patch applied this becomes e.g:
board_boot_order: could not map node @73c (/spi@ff1d0000/flash@0) to a boot-device
---
arch/arm/mach-rockchip/spl-boot-order.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-rockchip/spl-boot-order.c +2 -2
@@ -151,8 +151,8 @@ void board_boot_order(u32 *spl_boot_list)/* Try to map this back onto SPL boot devices */ boot_device =spl_node_to_boot_device (node);if (boot_device <0 ) { -debug ("%s: could not map node @%x to a boot-device\n" , - __func__, node); +debug ("%s: could not map node @%x (%s) to a boot-device\n" , + __func__, node, conf);continue ; }
Signature · 1 line
2.43.0
Re: [PATCH v1 2/2] rockchip: spl-boot-order: Improve debugging message when device isn't found
Hello Christopher,
Quoted 5 lines · Christopher Obbard
When debugging the SPL boot order, the node ID of a device which hasn't been found is printed but it can be quite hard to relate that to the specific devicetree node. To aid debugging, print the node path as well as the ID.
Quoted 8 lines
Original debug message:
board_boot_order: could not map node @73c to a boot-deviceWith this patch applied this becomes e.g:
board_boot_order: could not map node @73c (/spi@ff1d0000/flash@0)to a boot-device
I'd suggest that the main part of the patch subject is adjusted a bit, e.g. to something like "show DT path for missing device".
Otherwise, looking good to me.
Quoted 21 lines
Signed-off-by Christopher Obbard <[email protected]>---
arch/arm/mach-rockchip/spl-boot-order.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-rockchip/spl-boot-order.c +2
-2@@ -151,8 +151,8 @@ void board_boot_order(u32 *spl_boot_list)/* Try to map this back onto SPL boot devices */ boot_device =spl_node_to_boot_device (node);if (boot_device <0 ) { -debug ("%s: could not map node @%x to a boot-device\n" , - __func__, node); +debug ("%s: could not map node @%x (%s) to a boot-device\n" , + __func__, node, conf);continue ; }
Re: [PATCH v1 2/2] rockchip: spl-boot-order: Improve debugging message when device isn't found
In reply to Christopher ObbardHi Christopher,
Quoted 7 lines · Christopher Obbard
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
When debugging the SPL boot order, the node ID of a device which hasn't been found is printed but it can be quite hard to relate that to the specific devicetree node. To aid debugging, print the node path as well as the ID.
Quoted 8 lines
Original debug message:
board_boot_order: could not map node @73c to a boot-deviceWith this patch applied this becomes e.g:
board_boot_order: could not map node @73c (/spi@ff1d0000/flash@0) to a boot-device
Does it actually make sense to print the node "number" here (I have no clue what it represents and if it's useful for debugging)? Can't we just replace @%x with the node path (conf) directly instead?
Cheers,
Quentin