diff mbox series

[1/1] dm: adc: imx93-adc depends on ADC (fix boot)

Message ID 20230724151758.1140-1-sebastien.szymanski@armadeus.com
State Superseded
Delegated to: Stefano Babic
Headers show
Series [1/1] dm: adc: imx93-adc depends on ADC (fix boot) | expand

Commit Message

Sébastien Szymanski July 24, 2023, 3:17 p.m. UTC
The i.MX93 11x11 EVK fails to boot with following error:

 Model: NXP i.MX93 11X11 EVK board
 DRAM:  2 GiB
 Error binding driver 'imx93-adc': -96
 Some drivers failed to bind
 Error binding driver 'simple_bus': -96
 Some drivers failed to bind
 Error binding driver 'simple_bus': -96
 Some drivers failed to bind
 initcall sequence 00000000fffb8f28 failed at call 000000008021e0d4 (err=-96)
 ### ERROR ### Please RESET the board ###

That's because since commit e7ff54d96303 ("imx93_evk: defconfig: add adc
support") CONFIG_ADC_IMX93 is enabled but CONFIG_ADC is not.
Fix this by making CONFIG_ADC_IMX93 depend on CONFIG_ADC.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
---
 drivers/adc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Fabio Estevam July 24, 2023, 3:19 p.m. UTC | #1
On Mon, Jul 24, 2023 at 12:18 PM Sébastien Szymanski
<sebastien.szymanski@armadeus.com> wrote:
>
> The i.MX93 11x11 EVK fails to boot with following error:
>
>  Model: NXP i.MX93 11X11 EVK board
>  DRAM:  2 GiB
>  Error binding driver 'imx93-adc': -96
>  Some drivers failed to bind
>  Error binding driver 'simple_bus': -96
>  Some drivers failed to bind
>  Error binding driver 'simple_bus': -96
>  Some drivers failed to bind
>  initcall sequence 00000000fffb8f28 failed at call 000000008021e0d4 (err=-96)
>  ### ERROR ### Please RESET the board ###
>
> That's because since commit e7ff54d96303 ("imx93_evk: defconfig: add adc
> support") CONFIG_ADC_IMX93 is enabled but CONFIG_ADC is not.
> Fix this by making CONFIG_ADC_IMX93 depend on CONFIG_ADC.
>
> Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>

Reviewed-by: Fabio Estevam <festevam@denx.de>
Bough Chen July 25, 2023, 2:23 a.m. UTC | #2
> -----Original Message-----
> From: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
> Sent: 2023年7月24日 23:18
> To: u-boot@lists.denx.de
> Cc: Bough Chen <haibo.chen@nxp.com>; Luca Ellero <l.ellero@asem.it>;
> Sébastien Szymanski <sebastien.szymanski@armadeus.com>
> Subject: [PATCH 1/1] dm: adc: imx93-adc depends on ADC (fix boot)
> 
> The i.MX93 11x11 EVK fails to boot with following error:
> 
>  Model: NXP i.MX93 11X11 EVK board
>  DRAM:  2 GiB
>  Error binding driver 'imx93-adc': -96
>  Some drivers failed to bind
>  Error binding driver 'simple_bus': -96
>  Some drivers failed to bind
>  Error binding driver 'simple_bus': -96
>  Some drivers failed to bind
>  initcall sequence 00000000fffb8f28 failed at call 000000008021e0d4 (err=-96)
> ### ERROR ### Please RESET the board ###
> 
> That's because since commit e7ff54d96303 ("imx93_evk: defconfig: add adc
> support") CONFIG_ADC_IMX93 is enabled but CONFIG_ADC is not.
> Fix this by making CONFIG_ADC_IMX93 depend on CONFIG_ADC.
> 
> Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>

Reviewed-by: Haibo Chen <haibo.chen@nxp.com>

> ---
>  drivers/adc/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/adc/Kconfig b/drivers/adc/Kconfig index
> 4336732dee56..a01d73846b74 100644
> --- a/drivers/adc/Kconfig
> +++ b/drivers/adc/Kconfig
> @@ -66,6 +66,7 @@ config STM32_ADC
> 
>  config ADC_IMX93
>  	bool "Enable NXP IMX93 ADC driver"
> +	depends on ADC
>  	help
>  	  This enables basic driver for NXP IMX93 ADC.
>  	  It provides:
> --
> 2.41.0
diff mbox series

Patch

diff --git a/drivers/adc/Kconfig b/drivers/adc/Kconfig
index 4336732dee56..a01d73846b74 100644
--- a/drivers/adc/Kconfig
+++ b/drivers/adc/Kconfig
@@ -66,6 +66,7 @@  config STM32_ADC
 
 config ADC_IMX93
 	bool "Enable NXP IMX93 ADC driver"
+	depends on ADC
 	help
 	  This enables basic driver for NXP IMX93 ADC.
 	  It provides: