Linux Serial subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Olivier Louvignes" <olivier@mgcrea.io>
Cc: linux-serial@vger.kernel.org
Subject: Re: [PATCH v2 2/2] serial: 8250_ingenic: Set UMR and UACR at probe
Date: Sat, 24 Oct 2026 22:13:46 +0000	[thread overview]
Message-ID: <sashiko-outbox-183921@kernel.org> (raw)
In-Reply-To: <20261024220712.23250-3-olivier@mgcrea.io>

> Ingenic UARTs have two registers beyond the 16550's: UMR, the number of
> clocks a bit takes, and UACR, which adds one clock to chosen bits of a
> frame, for fractional baud rates. The JZ4725, JZ4740, JZ4755, JZ4760,
> X1000, X1830, X2000 and X1600 programming manuals all have them at 0x24
> and 0x28. The divisor the 8250 core computes assumes 16 clocks a bit and
> none added.
> 
> The driver never writes them, so a UART keeps whatever was there before.
> On a HiBy R1 (X1600) the vendor boot loader sets UMR to 8 on its console
> UART, and the vendor kernel had left 8 on UART0, which carries the
> Bluetooth chip: every rate came out doubled, and the chip never answered
> ("command 0xfc18 tx timeout" from hci_bcm). Their reset value, 0, which
> the X1000 and X1600 manuals call normal mode, does not work on the X1600
> either: with UMR at 0 the same command times out.
> 
> Set UMR to 16 and UACR to 0 at probe.
> 
> Tested on a HiBy R1: with UMR at 0 or 8 the BCM43430A1 on UART0 fails to
> set up; with this patch it comes up at 1.5 Mbaud and streams A2DP audio.
> 
> Signed-off-by: Olivier Louvignes <olivier@mgcrea.io>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261024220712.23250-1-olivier@mgcrea.io?part=2


  reply	other threads:[~2026-10-24 22:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-24 22:07 [PATCH v2 0/2] serial: 8250_ingenic: Set UMR and UACR, add the X1600 Olivier Louvignes
2026-10-24 22:07 ` [PATCH v2 1/2] dt-bindings: serial: ingenic: Add " Olivier Louvignes
2026-10-24 22:13   ` sashiko-bot
2026-10-26 12:41   ` Krzysztof Kozlowski
2026-10-24 22:07 ` [PATCH v2 2/2] serial: 8250_ingenic: Set UMR and UACR at probe Olivier Louvignes
2026-10-24 22:13   ` sashiko-bot [this message]
2026-10-25 22:13   ` Paul Cercueil
2026-10-25 22:05 ` [PATCH v2 0/2] serial: 8250_ingenic: Set UMR and UACR, add the X1600 H. Nikolaus Schaller

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=sashiko-outbox-183921@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=olivier@mgcrea.io \
    --cc=sashiko-reviews@lists.linux.dev \
    /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