Skip to content

Commit

Permalink
usblgoff: Fix ICH RCBA validity detection
Browse files Browse the repository at this point in the history
  • Loading branch information
richardg867 committed Jan 6, 2022
1 parent c7fd0fd commit 2aba54c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usblgoff/usblgoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ pci_scan_callback(uint8_t bus, uint8_t dev, uint8_t func,

/* Get RCBA. */
printf("> RCBA is ");
mmio_base = pci_readl(bus, dev, func, 0xf0) & ~0x00003fff;
mmio_base = pci_readl(bus, dev, func, 0xf0);
if ((mmio_base & 0x00000001) && (mmio_base != 0xffffffff)) {
printf("assigned to %08X\n", mmio_base);
mmio = (uint32_t *) mmio_base;
mmio = (uint32_t *) (mmio_base & ~0x00003fff);

/* Disable all relevant I/O traps. */
for (i = 0; i < 4; i++) {
Expand Down

0 comments on commit 2aba54c

Please sign in to comment.