On 2026-09-25 12:56, Torsten Duwe wrote:
> From: Torsten Duwe <[email protected]>
> 
> MFD base driver for the RP1 chip, similar to Linux'
> drivers/misc/rp1/rp1_pci.c

[...]

> +     /* Turn on bus-mastering */
> +     dm_pci_clrset_config16(dev, PCI_COMMAND, 0, PCI_COMMAND_MASTER | 
> PCI_COMMAND_MEMORY);
> +
> +     /*
> +      * HACK: Set bar address in the correct order.
> +      * Required for correct U-Boot operation.
> +      */
> +     dm_pci_write_config32(dev, PCI_BASE_ADDRESS_1, 0);
> +     dm_pci_write_config32(dev, PCI_BASE_ADDRESS_0, 0x40000);

Shouldn't we turn the decode after?
Can the device answer the wrong adress here?

Cheers,
Anders

Reply via email to