sdhci: Pass drive parameter to sdhci-pci via qdev property
authorKevin O'Connor <kevin@koconnor.net>
Mon, 17 Aug 2015 19:20:33 +0000 (15:20 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 12 Oct 2015 08:21:10 +0000 (09:21 +0100)
commit5ec911c30ff4337d4185e29e82a254349f5a22da
tree6ae39c5bf456eb94da8ab33786d98059f8cc632a
parentb37686f7e84b22cfaf7fd01ac5133f2617cc3027
sdhci: Pass drive parameter to sdhci-pci via qdev property

Commit 19109131 disabled the sdhci-pci support because it used
drive_get_next().  This patch reenables sdhci-pci and changes it to
pass the drive via a qdev property - for example:
 -device sdhci-pci,drive=drive0 -drive id=drive0,if=sd,file=myimage

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/sd/sd.c
hw/sd/sdhci.c
hw/sd/sdhci.h