From: Hans de Goede <hdegoede@redhat.com>
Date: Wed, 1 Jul 2015 18:52:59 +0000 (+0200)
Subject: dm: usb: Document that mixing DM_DEVICE_REMOVE and DM_USB is a bad idea
X-Git-Tag: v2025.01-rc5-pxa1908~12521
X-Git-Url: http://git.dujemihanovic.xyz/contact?a=commitdiff_plain;h=e5c4564ee604412ad818056419306e7dc0bc39ba;p=u-boot.git

dm: usb: Document that mixing DM_DEVICE_REMOVE and DM_USB is a bad idea

Document that mixing DM_DEVICE_REMOVE and DM_USB is a bad idea, and also why
this is a bad idea.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
---

diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
index 2861b43079..e40372dd75 100644
--- a/drivers/core/Kconfig
+++ b/drivers/core/Kconfig
@@ -38,6 +38,10 @@ config DM_DEVICE_REMOVE
 	  device. This is not normally required in SPL, so by default this
 	  option is disabled for SPL.
 
+	  Note that this may have undesirable results in the USB subsystem as
+	  it causes unplugged devices to linger around in the dm-tree, and it
+	  causes USB host controllers to not be stopped when booting the OS.
+
 config DM_STDIO
 	bool "Support stdio registration"
 	depends on DM