Re: [Qemu-devel] [PATCH 06/10] sdhci_sysbus: Create SD card device in users, not the device itself

2015-12-19 Thread Peter Crosthwaite
On Thu, Dec 17, 2015 at 04:18:19PM -0800, Alistair Francis wrote: > On Fri, Dec 11, 2015 at 8:37 AM, Peter Maydell > wrote: > > Move the creation of the SD card device from the sdhci_sysbus > > device itself into the boards that create these devices. > > This allows us

Re: [Qemu-devel] [PATCH 06/10] sdhci_sysbus: Create SD card device in users, not the device itself

2015-12-18 Thread Peter Maydell
On 18 December 2015 at 00:18, Alistair Francis wrote: > On Fri, Dec 11, 2015 at 8:37 AM, Peter Maydell > wrote: >> >> +/* Create and plug in the SD cards */ >> +for (i = 0; i < XLNX_ZYNQMP_NUM_SDHCI; i++) { >> +BusState

Re: [Qemu-devel] [PATCH 06/10] sdhci_sysbus: Create SD card device in users, not the device itself

2015-12-17 Thread Alistair Francis
On Fri, Dec 11, 2015 at 8:37 AM, Peter Maydell wrote: > Move the creation of the SD card device from the sdhci_sysbus > device itself into the boards that create these devices. > This allows us to remove the cannot_instantiate_with_device_add > notation because we no

[Qemu-devel] [PATCH 06/10] sdhci_sysbus: Create SD card device in users, not the device itself

2015-12-11 Thread Peter Maydell
Move the creation of the SD card device from the sdhci_sysbus device itself into the boards that create these devices. This allows us to remove the cannot_instantiate_with_device_add notation because we no longer call drive_get_next in the device model. Signed-off-by: Peter Maydell