Re: [PATCH 1/2] qdev: Introduce qdev_get_bus_device

2020-01-24 Thread Igor Mammedov
On Wed, 15 Jan 2020 23:40:24 +0100 Julia Suvorova wrote: I's add () at the end of SUJ so it would be obvious that's a function > For bus devices, it is useful to be able to handle the parent device. maybe something like that would be more clear: Add a wrapper qdev_get_bus_device() to replace de

Re: [PATCH 1/2] qdev: Introduce qdev_get_bus_device

2020-01-20 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > Hi Julia, > > Cc'ing Markus for the qdev/qbus analysis. > > On 1/15/20 11:40 PM, Julia Suvorova wrote: >> For bus devices, it is useful to be able to handle the parent device. >> >> Signed-off-by: Julia Suvorova >> --- >> hw/core/qdev.c |

Re: [PATCH 1/2] qdev: Introduce qdev_get_bus_device

2020-01-16 Thread Philippe Mathieu-Daudé
Hi Julia, Cc'ing Markus for the qdev/qbus analysis. On 1/15/20 11:40 PM, Julia Suvorova wrote: For bus devices, it is useful to be able to handle the parent device. Signed-off-by: Julia Suvorova --- hw/core/qdev.c | 5 + hw/pci-bridge/pci_expander_bridge.c | 4 ++

[PATCH 1/2] qdev: Introduce qdev_get_bus_device

2020-01-15 Thread Julia Suvorova
For bus devices, it is useful to be able to handle the parent device. Signed-off-by: Julia Suvorova --- hw/core/qdev.c | 5 + hw/pci-bridge/pci_expander_bridge.c | 4 +++- hw/scsi/scsi-bus.c | 4 +++- hw/usb/bus.c| 4 +++- hw/