dm: usb: Document that mixing DM_DEVICE_REMOVE and DM_USB is a bad idea
authorHans de Goede <hdegoede@redhat.com>
Wed, 1 Jul 2015 18:52:59 +0000 (20:52 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:36 +0000 (17:39 -0600)
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>
drivers/core/Kconfig

index 2861b43..e40372d 100644 (file)
@@ -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