[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] via-ide: Set user_creatable to false
From: |
BALATON Zoltan |
Subject: |
[PATCH] via-ide: Set user_creatable to false |
Date: |
Fri, 15 Oct 2021 11:16:54 +0200 |
This model only works as a function of the via superio chip not as a
standalone PCI device.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
This should be before the last patch changing via-ide or squshed into
it. And similar to usb part but there I need to add it to the info
struct. I can resend with these if you think this series worth the
hassle. The previous one fixing the usb irq works without this clean up.
hw/ide/via.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/ide/via.c b/hw/ide/via.c
index 252d18f4ac..82def819c4 100644
--- a/hw/ide/via.c
+++ b/hw/ide/via.c
@@ -217,6 +217,9 @@ static void via_ide_class_init(ObjectClass *klass, void
*data)
dc->reset = via_ide_reset;
dc->vmsd = &vmstate_ide_pci;
+ /* Reason: only works as function of VIA southbridge */
+ dc->user_creatable = false;
+
k->realize = via_ide_realize;
k->exit = via_ide_exitfn;
k->vendor_id = PCI_VENDOR_ID_VIA;
--
2.21.4
- [PATCH 4/4] via-ide: Avoid using isa_get_irq(), (continued)
- [PATCH 4/4] via-ide: Avoid using isa_get_irq(), BALATON Zoltan, 2021/10/14
- Re: [PATCH 4/4] via-ide: Avoid using isa_get_irq(), Philippe Mathieu-Daudé, 2021/10/17
- Re: [PATCH 4/4] via-ide: Avoid using isa_get_irq(), BALATON Zoltan, 2021/10/17
- Re: [PATCH 4/4] via-ide: Avoid using isa_get_irq(), Philippe Mathieu-Daudé, 2021/10/17
- Re: [PATCH 4/4] via-ide: Avoid using isa_get_irq(), BALATON Zoltan, 2021/10/17
- Re: [PATCH 4/4] via-ide: Avoid using isa_get_irq(), Gerd Hoffmann, 2021/10/18
- Re: [PATCH 4/4] via-ide: Avoid using isa_get_irq(), BALATON Zoltan, 2021/10/18
- Re: [PATCH 4/4] via-ide: Avoid using isa_get_irq(), BALATON Zoltan, 2021/10/17
- Re: [PATCH 4/4] via-ide: Avoid using isa_get_irq(), Philippe Mathieu-Daudé, 2021/10/17
- Re: [PATCH 4/4] via-ide: Avoid using isa_get_irq(), BALATON Zoltan, 2021/10/17
[PATCH] via-ide: Set user_creatable to false,
BALATON Zoltan <=