Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Imre Kaloz <kaloz@kernel.org>
Cc: linux-mips@vger.kernel.org, Kees Cook <kees@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] MIPS: PCI: xtalk-bridge: disable byte swapping for SGI RAD1
Date: Sat, 5 Dec 2026 11:47:42 +0100	[thread overview]
Message-ID: <axPrzjc4YykWzxjg@alpha.franken.de> (raw)
In-Reply-To: <20261026131752.7519-1-kaloz@kernel.org>

On Mon, Oct 26, 2026 at 02:17:52PM +0100, Imre Kaloz wrote:
> The RAD1 audio DMA engine moves big-endian sample words. With the
> Bridge byte swap left on for its slot, captured samples arrive
> byte-reversed and playback feeds the DACs scrambled words.
> 
> Signed-off-by: Imre Kaloz <kaloz@kernel.org>
> ---
>  arch/mips/pci/pci-xtalk-bridge.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/mips/pci/pci-xtalk-bridge.c b/arch/mips/pci/pci-xtalk-bridge.c
> index cf115abb54e0..1072e70bcd42 100644
> --- a/arch/mips/pci/pci-xtalk-bridge.c
> +++ b/arch/mips/pci/pci-xtalk-bridge.c
> @@ -105,6 +105,9 @@ static void bridge_disable_swapping(struct pci_dev *dev)
>  DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3,
>  	bridge_disable_swapping);
>  
> +/* The RAD1 audio DMA engine transfers its sample words big-endian. */
> +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, 0x0005, bridge_disable_swapping);
> +
>  
>  /*
>   * The Bridge ASIC supports both type 0 and type 1 access.  Type 1 is
> -- 
> 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 ]

      reply	other threads:[~2026-12-05 11:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-26 13:17 [PATCH] MIPS: PCI: xtalk-bridge: disable byte swapping for SGI RAD1 Imre Kaloz
2026-12-05 10:47 ` Thomas Bogendoerfer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axPrzjc4YykWzxjg@alpha.franken.de \
    --to=tsbogend@alpha.franken.de \
    --cc=kaloz@kernel.org \
    --cc=kees@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox