diff mbox series

[v2,25/32] distro_bootcmd: Drop DM_PCI check

Message ID 20210802005446.2267075-26-sjg@chromium.org
State Accepted
Delegated to: Tom Rini
Headers show
Series pci: Drop all pre-driver model code | expand

Commit Message

Simon Glass Aug. 2, 2021, 12:54 a.m. UTC
We don't need this check anymore since when PCI is enabled, driver model
is always used.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 include/config_distro_bootcmd.h | 5 -----
 1 file changed, 5 deletions(-)

Comments

Tom Rini Aug. 6, 2021, 12:46 p.m. UTC | #1
On Sun, Aug 01, 2021 at 06:54:38PM -0600, Simon Glass wrote:

> We don't need this check anymore since when PCI is enabled, driver model
> is always used.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
> (no changes since v1)
> 
>  include/config_distro_bootcmd.h | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
> index e70423f25dd..9b9dd308e68 100644
> --- a/include/config_distro_bootcmd.h
> +++ b/include/config_distro_bootcmd.h
> @@ -265,14 +265,9 @@
>  	BOOT_TARGET_DEVICES_references_IDE_without_CONFIG_IDE
>  #endif
>  
> -#if defined(CONFIG_DM_PCI)
>  #define BOOTENV_RUN_PCI_ENUM "run boot_pci_enum; "
>  #define BOOTENV_SHARED_PCI \
>  	"boot_pci_enum=pci enum\0"
> -#else
> -#define BOOTENV_RUN_PCI_ENUM
> -#define BOOTENV_SHARED_PCI
> -#endif
>  
>  #ifdef CONFIG_CMD_USB
>  #define BOOTENV_RUN_NET_USB_START "run boot_net_usb_start; "

This check needs to stay and be for CONFIG_PCI now, I've fixed this
locally.
Tom Rini Aug. 6, 2021, 9:21 p.m. UTC | #2
On Sun, Aug 01, 2021 at 06:54:38PM -0600, Simon Glass wrote:

> We don't need this check anymore since when PCI is enabled, driver model
> is always used.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Fixed as I noted and applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index e70423f25dd..9b9dd308e68 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -265,14 +265,9 @@ 
 	BOOT_TARGET_DEVICES_references_IDE_without_CONFIG_IDE
 #endif
 
-#if defined(CONFIG_DM_PCI)
 #define BOOTENV_RUN_PCI_ENUM "run boot_pci_enum; "
 #define BOOTENV_SHARED_PCI \
 	"boot_pci_enum=pci enum\0"
-#else
-#define BOOTENV_RUN_PCI_ENUM
-#define BOOTENV_SHARED_PCI
-#endif
 
 #ifdef CONFIG_CMD_USB
 #define BOOTENV_RUN_NET_USB_START "run boot_net_usb_start; "