Re: [PATCH 2/2] hw/ide/via: implement legacy/native mode switching

2023-10-23 Thread BALATON Zoltan
On Mon, 23 Oct 2023, Mark Cave-Ayland wrote: On 20/10/2023 00:09, BALATON Zoltan wrote: On Thu, 19 Oct 2023, Mark Cave-Ayland wrote: Allow the VIA IDE controller to switch between both legacy and native modes by calling pci_ide_update_mode() to reconfigure the device whenever PCI_CLASS_PROG i

Re: [PATCH 2/2] hw/ide/via: implement legacy/native mode switching

2023-10-23 Thread Mark Cave-Ayland
On 20/10/2023 00:09, BALATON Zoltan wrote: On Thu, 19 Oct 2023, Mark Cave-Ayland wrote: Allow the VIA IDE controller to switch between both legacy and native modes by calling pci_ide_update_mode() to reconfigure the device whenever PCI_CLASS_PROG is updated. This patch also moves the setting o

Re: [PATCH 2/2] hw/ide/via: implement legacy/native mode switching

2023-10-19 Thread BALATON Zoltan
On Thu, 19 Oct 2023, Mark Cave-Ayland wrote: Allow the VIA IDE controller to switch between both legacy and native modes by calling pci_ide_update_mode() to reconfigure the device whenever PCI_CLASS_PROG is updated. This patch also moves the setting of PCI_CLASS_PROG from via_ide_realize() to vi

[PATCH 2/2] hw/ide/via: implement legacy/native mode switching

2023-10-19 Thread Mark Cave-Ayland
Allow the VIA IDE controller to switch between both legacy and native modes by calling pci_ide_update_mode() to reconfigure the device whenever PCI_CLASS_PROG is updated. This patch also moves the setting of PCI_CLASS_PROG from via_ide_realize() to via_ide_reset() and clears PCI_INTERRUPT_PIN to e