Re: [PATCH 2/5] hw/pcmcia/microdrive: Register machine reset handler

2021-04-26 Thread Philippe Mathieu-Daudé
On 4/25/21 8:36 PM, Peter Maydell wrote: > On Sat, 24 Apr 2021 at 17:22, Philippe Mathieu-Daudé wrote: >> >> The abstract PCMCIA_CARD is a bus-less TYPE_DEVICE, so devices >> implementing it are not reset automatically. >> Register a reset handler so children get reset on machine reset. >> >>

Re: [PATCH 2/5] hw/pcmcia/microdrive: Register machine reset handler

2021-04-25 Thread Peter Maydell
On Sat, 24 Apr 2021 at 17:22, Philippe Mathieu-Daudé wrote: > > The abstract PCMCIA_CARD is a bus-less TYPE_DEVICE, so devices > implementing it are not reset automatically. > Register a reset handler so children get reset on machine reset. > > Note, the DSCM-1 device (TYPE_DSCM1) which

[PATCH 2/5] hw/pcmcia/microdrive: Register machine reset handler

2021-04-24 Thread Philippe Mathieu-Daudé
The abstract PCMCIA_CARD is a bus-less TYPE_DEVICE, so devices implementing it are not reset automatically. Register a reset handler so children get reset on machine reset. Note, the DSCM-1 device (TYPE_DSCM1) which inherits TYPE_MICRODRIVE and PCMCIA_CARD reset itself when a disk is