public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/5] RFC: usb: Drop requirement for USB unbinding
@ 2015-09-08 17:15 Simon Glass
  2015-09-08 17:15 ` [U-Boot] [PATCH 1/5] Revert "dm: usb: Rename usb_find_child to usb_find_emul_child" Simon Glass
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Simon Glass @ 2015-09-08 17:15 UTC (permalink / raw)
  To: u-boot

There was quite a bit of discussion about the change that required the
unbinding of USB devices for the subsystem to function correctly. E.g.

https://patchwork.ozlabs.org/patch/485637/

The key issue is the usb_get_dev_index() function which is not a good API
for driver model. We can drop use of this function once everything is
converted to driver model. Then I believe the problems raised by Hans go
away. For now we can add a deprecation warning on the function.

It is easy to convert USB keyboards to driver model. This series includes
a patch for that.

This series also includes reverts for the three commits which as discussed
I would like to drop. U-Boot should be able to run normally and exit without
unbinding anything.

I cannot actually repeat the problem that Hans mentions in the above thread
so I may be missing a step. Hans, any ideas on this?


Simon Glass (5):
  Revert "dm: usb: Rename usb_find_child to usb_find_emul_child"
  Revert "dm: usb: Use device_unbind_children to clean up usb devs on
    stop"
  Revert "dm: Export device_remove_children / device_unbind_children"
  dm: usb: Add support for USB keyboards with driver model
  dm: usb: Deprecate usb_get_dev_index()

 common/cmd_usb.c              | 12 +++++-----
 common/usb_kbd.c              | 52 +++++++++++++++++++++++++++++++++++++++++--
 drivers/core/device-remove.c  | 22 ++++++++++++++----
 drivers/usb/host/usb-uclass.c | 31 ++++++++++++++++----------
 include/dm/device-internal.h  | 26 ----------------------
 include/dm/uclass-id.h        |  1 +
 6 files changed, 94 insertions(+), 50 deletions(-)

-- 
2.5.0.457.gab17608

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-10-30 20:24 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-08 17:15 [U-Boot] [PATCH 0/5] RFC: usb: Drop requirement for USB unbinding Simon Glass
2015-09-08 17:15 ` [U-Boot] [PATCH 1/5] Revert "dm: usb: Rename usb_find_child to usb_find_emul_child" Simon Glass
2015-09-08 17:15 ` [U-Boot] [PATCH 2/5] Revert "dm: usb: Use device_unbind_children to clean up usb devs on stop" Simon Glass
2015-09-08 17:15 ` [U-Boot] [PATCH 3/5] Revert "dm: Export device_remove_children / device_unbind_children" Simon Glass
2015-09-08 17:15 ` [U-Boot] [PATCH 4/5] dm: usb: Add support for USB keyboards with driver model Simon Glass
2015-09-08 18:33   ` Marek Vasut
2015-09-10  2:45     ` Simon Glass
2015-09-10 11:40       ` Marek Vasut
2015-09-11  0:43         ` Simon Glass
2015-09-11  8:14           ` Hans de Goede
2015-09-12 15:15   ` Hans de Goede
2015-10-18 23:17     ` Simon Glass
2015-10-19  8:34       ` Hans de Goede
2015-10-29 19:09         ` Simon Glass
2015-10-30 20:24           ` Simon Glass
2015-09-08 17:15 ` [U-Boot] [PATCH 5/5] dm: usb: Deprecate usb_get_dev_index() Simon Glass
2015-09-12 15:00 ` [U-Boot] [PATCH 0/5] RFC: usb: Drop requirement for USB unbinding Hans de Goede
2015-09-12 15:11   ` Simon Glass
2015-09-12 15:21     ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox