* [U-Boot] [PATCH] arm: mach-k3: common: Clean up ATF image startup function
@ 2019-02-04 18:58 Andreas Dannenberg
2019-02-05 3:27 ` Lokesh Vutla
2019-02-10 13:11 ` [U-Boot] " Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Andreas Dannenberg @ 2019-02-04 18:58 UTC (permalink / raw)
To: u-boot
Perform some cosmetic cleanup of the ATF image startup function, namely
fixing a spelling mistake, capitalization of a few words, spacing, as
well aligning how errors are printed and as using panic() for cases that
were using a combination of printf() + hang().
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
---
arch/arm/mach-k3/common.c | 28 ++++++++++------------------
1 file changed, 10 insertions(+), 18 deletions(-)
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index e225458baf..79d4ffe988 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -45,33 +45,25 @@ void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)
/*
* It is assumed that remoteproc device 1 is the corresponding
- * cortex A core which runs ATF. Make sure DT reflects the same.
+ * Cortex-A core which runs ATF. Make sure DT reflects the same.
*/
ret = rproc_dev_init(1);
- if (ret) {
- printf("%s: ATF failed to Initialize on rproc: ret= %d\n",
- __func__, ret);
- hang();
- }
+ if (ret)
+ panic("%s: ATF failed to initialize on rproc (%d)\n", __func__,
+ ret);
ret = rproc_load(1, spl_image->entry_point, 0x200);
- if (ret) {
- printf("%s: ATF failed to load on rproc: ret= %d\n",
- __func__, ret);
- hang();
- }
+ if (ret)
+ panic("%s: ATF failed to load on rproc (%d)\n", __func__, ret);
- /* Add an extra newline to differentiate the ATF logs from SPL*/
+ /* Add an extra newline to differentiate the ATF logs from SPL */
printf("Starting ATF on ARM64 core...\n\n");
ret = rproc_start(1);
- if (ret) {
- printf("%s: ATF failed to start on rproc: ret= %d\n",
- __func__, ret);
- hang();
- }
+ if (ret)
+ panic("%s: ATF failed to start on rproc (%d)\n", __func__, ret);
- debug("ATF started. Wait indefiniely\n");
+ debug("ATF started. Waiting indefinitely...\n");
while (1)
asm volatile("wfe");
}
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] arm: mach-k3: common: Clean up ATF image startup function
2019-02-04 18:58 [U-Boot] [PATCH] arm: mach-k3: common: Clean up ATF image startup function Andreas Dannenberg
@ 2019-02-05 3:27 ` Lokesh Vutla
2019-02-10 13:11 ` [U-Boot] " Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Lokesh Vutla @ 2019-02-05 3:27 UTC (permalink / raw)
To: u-boot
On 05/02/19 12:28 AM, Andreas Dannenberg wrote:
> Perform some cosmetic cleanup of the ATF image startup function, namely
> fixing a spelling mistake, capitalization of a few words, spacing, as
> well aligning how errors are printed and as using panic() for cases that
> were using a combination of printf() + hang().
>
> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Thanks and regards,
Lokesh
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] arm: mach-k3: common: Clean up ATF image startup function
2019-02-04 18:58 [U-Boot] [PATCH] arm: mach-k3: common: Clean up ATF image startup function Andreas Dannenberg
2019-02-05 3:27 ` Lokesh Vutla
@ 2019-02-10 13:11 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2019-02-10 13:11 UTC (permalink / raw)
To: u-boot
On Mon, Feb 04, 2019 at 12:58:47PM -0600, Andreas Dannenberg wrote:
> Perform some cosmetic cleanup of the ATF image startup function, namely
> fixing a spelling mistake, capitalization of a few words, spacing, as
> well aligning how errors are printed and as using panic() for cases that
> were using a combination of printf() + hang().
>
> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190210/424b6baf/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-02-10 13:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-04 18:58 [U-Boot] [PATCH] arm: mach-k3: common: Clean up ATF image startup function Andreas Dannenberg
2019-02-05 3:27 ` Lokesh Vutla
2019-02-10 13:11 ` [U-Boot] " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.