From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Yi Yang <yiyang13@huawei.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org, Waldemar Brodkorb <wbx@openadk.org>
Subject: Re: [PATCH] MIPS: rb532: Fix MMIO UART resource registration
Date: Mon, 9 Feb 2026 12:59:07 +0100 [thread overview]
Message-ID: <aYnMC1CgcTwYB5eY@alpha.franken.de> (raw)
In-Reply-To: <20260205-rb532-uart-v1-1-334dbdfafa60@flygoat.com>
On Thu, Feb 05, 2026 at 10:08:42AM +0000, Jiaxun Yang wrote:
> Since commit 6e690d54cfa8 ("serial: 8250: fix return error code in
> serial8250_request_std_resource()"), registering an 8250 MMIO port
> without mapbase no longer works, as the resource range is derived from
> mapbase/mapsize.
>
> Populate mapbase and mapsize accordingly. Also drop ugly membase KSEG1
> pointer and set UPF_IOREMAP instead, letting the 8250 core perform the
> ioremap.
>
> Fixes: 6e690d54cfa8 ("serial: 8250: fix return error code in serial8250_request_std_resource()")
> Cc: stable@vger.kernel.org
> Reported-by: Waldemar Brodkorb <wbx@openadk.org>
> Link: https://lore.kernel.org/linux-mips/aX-d0ShTplHKZT33@waldemar-brodkorb.de/
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
> Since it's a partial fix to the issue report, I'll not use Closes
> tag. checkpatch is unhappy :-(
> ---
> arch/mips/rb532/devices.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c
> index 8ecb56be81acc36e39192dee9f5d2a4d19b3755c..4f027efbf27b05377ddac306ff16714b8764915b 100644
> --- a/arch/mips/rb532/devices.c
> +++ b/arch/mips/rb532/devices.c
> @@ -213,11 +213,12 @@ static struct platform_device rb532_wdt = {
> static struct plat_serial8250_port rb532_uart_res[] = {
> {
> .type = PORT_16550A,
> - .membase = (char *)KSEG1ADDR(REGBASE + UART0BASE),
> + .mapbase = REGBASE + UART0BASE,
> + .mapsize = 0x1000,
> .irq = UART0_IRQ,
> .regshift = 2,
> .iotype = UPIO_MEM,
> - .flags = UPF_BOOT_AUTOCONF,
> + .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP,
> },
> {
> .flags = 0,
>
> ---
> base-commit: 0f8a890c4524d6e4013ff225e70de2aed7e6d726
> change-id: 20260205-rb532-uart-5f2d2ff28eb8
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 ]
prev parent reply other threads:[~2026-02-09 11:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-05 10:08 [PATCH] MIPS: rb532: Fix MMIO UART resource registration Jiaxun Yang
2026-02-09 11:59 ` 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=aYnMC1CgcTwYB5eY@alpha.franken.de \
--to=tsbogend@alpha.franken.de \
--cc=gregkh@linuxfoundation.org \
--cc=jiaxun.yang@flygoat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=wbx@openadk.org \
--cc=yiyang13@huawei.com \
/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