mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: boards: protonic-imx6: fix bbu_handler device paths
@ 2023-04-03 12:25 Marco Felsch
  2023-04-04  7:05 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Felsch @ 2023-04-03 12:25 UTC (permalink / raw)
  To: barebox

The update handler path must be a full-path starting at '/'. Fix this by
adding the '/dev/' path prefix.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 arch/arm/boards/protonic-imx6/board.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/protonic-imx6/board.c b/arch/arm/boards/protonic-imx6/board.c
index d2fb25d3cc..0d57f409d2 100644
--- a/arch/arm/boards/protonic-imx6/board.c
+++ b/arch/arm/boards/protonic-imx6/board.c
@@ -530,7 +530,7 @@ static int prt_imx6_bbu(struct prt_imx6_priv *priv)
 		emmc_flags = BBU_HANDLER_FLAG_DEFAULT;
 	}
 
-	devicefile = basprintf("mmc%d", dcfg->emmc_usdhc);
+	devicefile = basprintf("/dev/mmc%d", dcfg->emmc_usdhc);
 	if (!devicefile) {
 		ret = -ENOMEM;
 		goto exit_bbu;
@@ -540,7 +540,7 @@ static int prt_imx6_bbu(struct prt_imx6_priv *priv)
 	if (ret)
 		goto exit_bbu;
 
-	devicefile = basprintf("mmc%d", dcfg->sd_usdhc);
+	devicefile = basprintf("/dev/mmc%d", dcfg->sd_usdhc);
 	if (!devicefile) {
 		ret = -ENOMEM;
 		goto exit_bbu;
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: boards: protonic-imx6: fix bbu_handler device paths
  2023-04-03 12:25 [PATCH] ARM: boards: protonic-imx6: fix bbu_handler device paths Marco Felsch
@ 2023-04-04  7:05 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2023-04-04  7:05 UTC (permalink / raw)
  To: Marco Felsch; +Cc: barebox

On Mon, Apr 03, 2023 at 02:25:09PM +0200, Marco Felsch wrote:
> The update handler path must be a full-path starting at '/'. Fix this by
> adding the '/dev/' path prefix.
> 
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> ---
>  arch/arm/boards/protonic-imx6/board.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/boards/protonic-imx6/board.c b/arch/arm/boards/protonic-imx6/board.c
> index d2fb25d3cc..0d57f409d2 100644
> --- a/arch/arm/boards/protonic-imx6/board.c
> +++ b/arch/arm/boards/protonic-imx6/board.c
> @@ -530,7 +530,7 @@ static int prt_imx6_bbu(struct prt_imx6_priv *priv)
>  		emmc_flags = BBU_HANDLER_FLAG_DEFAULT;
>  	}
>  
> -	devicefile = basprintf("mmc%d", dcfg->emmc_usdhc);
> +	devicefile = basprintf("/dev/mmc%d", dcfg->emmc_usdhc);
>  	if (!devicefile) {
>  		ret = -ENOMEM;
>  		goto exit_bbu;
> @@ -540,7 +540,7 @@ static int prt_imx6_bbu(struct prt_imx6_priv *priv)
>  	if (ret)
>  		goto exit_bbu;
>  
> -	devicefile = basprintf("mmc%d", dcfg->sd_usdhc);
> +	devicefile = basprintf("/dev/mmc%d", dcfg->sd_usdhc);
>  	if (!devicefile) {
>  		ret = -ENOMEM;
>  		goto exit_bbu;
> -- 
> 2.39.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-04  7:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-03 12:25 [PATCH] ARM: boards: protonic-imx6: fix bbu_handler device paths Marco Felsch
2023-04-04  7:05 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox