Re: [Qemu-devel] [PATCH V2 07/10] SD card: introduce "if-idx" property for SD card objects

2012-04-11 Thread Peter Maydell
On 5 April 2012 16:48, Igor Mitsyanko wrote: > -#define SD_INIT(sd, bdrv, is_spi)   (SD_GET_CLASS(sd)->init(sd, bdrv, > is_spi)) > +#define SD_INIT(sd, bdrv, is_spi)   (SD_GET_CLASS(sd)->init(sd, is_spi)) > diff --git a/hw/ssi-sd.c b/hw/ssi-sd.c > index beecc0e..38057ba 100644 > --- a/hw/ssi-sd.

[Qemu-devel] [PATCH V2 07/10] SD card: introduce "if-idx" property for SD card objects

2012-04-06 Thread Igor Mitsyanko
Rather then pass on a BlockDriverState pointer to SD init function, we now should set "if-idx" property of SD card object to a value corresponding to index of DriveInfo we want to attach to SD card. All users were converted to use this new approach to SD card initialization. Omap and PXA mmc ini