Skip to content

Commit

Permalink
hw/pci-host/bonito: Use pci_config_set_interrupt_pin()
Browse files Browse the repository at this point in the history
Replace pci_set_byte(PCI_INTERRUPT_PIN) by
pci_config_set_interrupt_pin().

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Huacai Chen <chenhuacai@kernel.org>
Message-Id: <20201231224911.1467352-5-f4bug@amsat.org>
  • Loading branch information
philmd committed Jan 4, 2021
1 parent ce3f3d3 commit b4bb339
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hw/pci-host/bonito.c
Expand Up @@ -728,7 +728,8 @@ static void bonito_realize(PCIDevice *dev, Error **errp)
pci_set_word(dev->config + PCI_SUBSYSTEM_ID, 0x0000);

pci_set_byte(dev->config + PCI_INTERRUPT_LINE, 0x00);
pci_set_byte(dev->config + PCI_INTERRUPT_PIN, 0x01);
pci_config_set_interrupt_pin(dev->config, 0x01); /* interrupt pin A */

pci_set_byte(dev->config + PCI_MIN_GNT, 0x3c);
pci_set_byte(dev->config + PCI_MAX_LAT, 0x00);

Expand Down

0 comments on commit b4bb339

Please sign in to comment.