mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Marco Felsch <[email protected]>
To: Sascha Hauer <[email protected]>
Cc: Barebox List <[email protected]>
Subject: Re: [PATCH 1/2] ARM: imx8mm-evk: Switch to deep-probe
Date: Mon, 24 Oct 2022 09:58:06 +0200	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

Hi Sascha,

On 22-10-24, Sascha Hauer wrote:
> Signed-off-by: Sascha Hauer <[email protected]>
> ---
>  arch/arm/boards/nxp-imx8mm-evk/board.c | 24 +++++++++++++++++++-----
>  1 file changed, 19 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/arm/boards/nxp-imx8mm-evk/board.c b/arch/arm/boards/nxp-imx8mm-evk/board.c
> index 6e4df60065..3f14c05da1 100644
> --- a/arch/arm/boards/nxp-imx8mm-evk/board.c
> +++ b/arch/arm/boards/nxp-imx8mm-evk/board.c
> @@ -8,6 +8,7 @@
>  #include <linux/phy.h>
>  #include <linux/sizes.h>
>  #include <mach/bbu.h>
> +#include <deep-probe.h>
>  
>  #include <envfs.h>
>  
> @@ -30,14 +31,11 @@ static int ar8031_phy_fixup(struct phy_device *phydev)
>  	return 0;
>  }
>  
> -static int nxp_imx8mm_evk_init(void)
> +static int imx8mm_evk_probe(struct device_d *dev)
>  {
>  	int emmc_bbu_flag = 0;
>  	int sd_bbu_flag = 0;
>  
> -	if (!of_machine_is_compatible("fsl,imx8mm-evk"))
> -		return 0;
> -
>  	barebox_set_hostname("imx8mm-evk");
>  
>  	if (bootsource_get() == BOOTSOURCE_MMC) {
> @@ -60,4 +58,20 @@ static int nxp_imx8mm_evk_init(void)
>  				   ar8031_phy_fixup);
>  	return 0;
>  }
> -device_initcall(nxp_imx8mm_evk_init);
> +
> +static const struct of_device_id imx8mm_evk_of_match[] = {
> +	{
> +		.compatible = "fsl,imx8mm-evk",
> +	},
> +	{ /* sentinel */ },

Nit: No comma needed after this entry.

> +};
> +
> +

One to much.

> +static struct driver_d imx8mm_evk_board_driver = {
> +	.name = "board-imx8mm-evk",
> +	.probe = imx8mm_evk_probe,
> +	.of_compatible = imx8mm_evk_of_match,
> +};
> +coredevice_platform_driver(imx8mm_evk_board_driver);
> +
> +BAREBOX_DEEP_PROBE_ENABLE(imx8mm_evk_of_match);
> -- 
> 2.30.2
> 
> 
> 



      parent reply	other threads:[~2022-10-24  7:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-24  6:36 Sascha Hauer
2022-10-24  6:36 ` [PATCH 2/2] ARM: imx8mm-evk: Add missing fsp_table Sascha Hauer
2022-10-24  7:58 ` Marco Felsch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
OSZAR »