Re: [PATCH v2 04/53] MIPS: PCI: xtalk-bridge: flush config space writes
From: Thomas Bogendoerfer
Date: Sat Dec 05 2026 - 08:34:35 EST
On Tue, Oct 13, 2026 at 03:16:24PM +0200, Imre Kaloz wrote:
> PIC hangs on a config access issued behind a config write that is still
> posted, as when probing an SGI PCI digital audio board. Read the widget
> flush register after each config write other than an IOC3's.
>
> Signed-off-by: Imre Kaloz <kaloz@xxxxxxxxxx>
> ---
> arch/mips/pci/pci-xtalk-bridge.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/mips/pci/pci-xtalk-bridge.c b/arch/mips/pci/pci-xtalk-bridge.c
> index 18251a68fa06..16c1ac2c2551 100644
> --- a/arch/mips/pci/pci-xtalk-bridge.c
> +++ b/arch/mips/pci/pci-xtalk-bridge.c
> @@ -252,6 +252,9 @@ static int pci_conf0_write_config(struct pci_bus *bus, unsigned int devfn,
> if (res)
> return PCIBIOS_DEVICE_NOT_FOUND;
>
> + /* PIC hangs on a config access behind an unflushed config write. */
> + bridge_read(bc, b_wid_tflush);
> +
> return PCIBIOS_SUCCESSFUL;
> }
>
> @@ -293,6 +296,8 @@ static int pci_conf1_write_config(struct pci_bus *bus, unsigned int devfn,
> if (res)
> return PCIBIOS_DEVICE_NOT_FOUND;
>
> + bridge_read(bc, b_wid_tflush);
> +
> return PCIBIOS_SUCCESSFUL;
> }
>
> --
> 2.47.3
applied to mips-next
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]