hw/sd: add card-reparenting function
commit97fb87cc5db87d449f16336226f71232a2054ff4
authorClement Deschamps <clement.deschamps@antfield.fr>
Tue, 28 Feb 2017 14:55:09 +0000 (28 14:55 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 17:10:00 +0000 (28 17:10 +0000)
tree3ed43e208ef0916826a68596068adb9fc850b285
parent91c968ac72f59345a2ebc3abd483c26200afdf3a
hw/sd: add card-reparenting function

Provide a new function sdbus_reparent_card() in sd core for reparenting
a card from a SDBus to another one.

This function is required by the raspi platform, where the two SD
controllers can be dynamically switched.

Signed-off-by: Clement Deschamps <clement.deschamps@antfield.fr>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1488293711-14195-3-git-send-email-peter.maydell@linaro.org
Message-id: 20170224164021.9066-3-clement.deschamps@antfield.fr
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: added a doc comment to the header file; changed to
 use new behaviour of qdev_set_parent_bus()]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sd/core.c
include/hw/sd/sd.h