From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796381402; b=5oOvuGYJiGpT1pE2qG+gJ4isVKVCRs1ICbe6j3ZLCoM+qKtTHy9BtInACKNjP2m0fC2R SgLxoNEPxRsrW/2oG/A2TPlFXEL4eWkHpjOh47yTuoX88m2gR/Bn0gMRcqCLVgGleqFqh VITk9MADvhoInGb3koBqsbqdYWAxNDAlyMABFvQDFmMaCLdpo0cWmyEmohLxI3LofNXfU KS+xHyEl5SOLnU6RdRG6nWQuH1x4kt2/J5BcNEFTeRQcfl6ZEuGI1XYe1qIjTK6l2SqWF C3nC1/Cgrd5z1ifNOiKTLktVQYd/JwRQpnfdV/PsxDSmpHeXrmzxGAQI67vkpSUNp2A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381402; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=CTCiT5e41TGj1hifcBtka30FflCImnvr5wVr+HlniaM=; b=cToAk9JyYMs0rGqdY7XoWHR5Jlt92P+247nZXjbbl01IB0uBcZpHBGoYRKerECDkSGe8 NHa7SCkZLb6cXPFE+zLfa3aDtzLglHVa+wY5YgrWnqdHKg8GLRCag6Eu/dCg94cWAHpXV WcirSz2FpIerE5Jins7kaXSObkJGtBPwkdFk50liqUqPilHCE3fd0kuBnlXLarhbnhnB+ mXlh5vH7oPfnQaX26+xDCsjl43qVa4NdL0ol6t9CA9ScyNN9++i49sRn2EWMCJ/RmUfRF DHnTJ+XZBwFb3VQQNB7k58zLkpEkqBR9wKpsr6SE8ZTVqEADhL+6211Il5PWlNoyQng== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Vi8ODvN+; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3776E606A333; Fri, 4 Dec 2026 10:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Vi8ODvN+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 939721F00897; Fri, 4 Dec 2026 10:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796381401; bh=CTCiT5e41TGj1hifcBtka30FflCImnvr5wVr+HlniaM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Vi8ODvN+Q8HmL5RlP2dLUYbpnaMIL55W07RyZENxGnsjrYCdN5MwFAJujiOmsqJwo jq865kk89687b7t5H02FCpgpdz3TfDcqES57/TUKYohk3mAJ5DG99RAwdVCJ9/TmAS Q4WfY1ugtqyeCKWHFtuGcAkcxpbadgHXK5qixSZMF1EGBusxu6e1uyt2C7lrOqSVX1 BiGSzMgEUAvUN6nCgkcQkWbeTXJvrqyErVsEXWHZbLKXcNxTroOuWepO3jLfxplWJ0 CXkCAmAUKj7C+IpICPrwkXXLxmHra/zEJE3jT1WI5F3sKkavedwbx+Doj/3HXH7vJ3 K73B/uNDtqNVw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v10 08/11] serial: 8250_dw: configure the Allwinner H616 UART Reply-To: sashiko-reviews@lists.linux.dev To: "James Hilliard" Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204-submit-h616-uart-fifo-v1-v10-8-1a9fb4f79635@gmail.com> References: <20261204-submit-h616-uart-fifo-v1-v10-0-1a9fb4f79635@gmail.com> <20261204-submit-h616-uart-fifo-v1-v10-8-1a9fb4f79635@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 10:50:01 +0000 X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] serial: 8250_dw: undocumented omission of DMA setup in dw8250_sunxi_setup() -- commit 750893605157ada7473d330ea8fa77963781e099 Author: James Hilliard serial: 8250_dw: configure the Allwinner H616 UART This commit adds Allwinner H616 platform data and a dw8250_sunxi_setup() callback to configure the 256-byte FIFO, RX trigger thresholds, automatic flow control, software RS485, and SKIP_SET_RATE quirk. > diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/= 8250_dw.c > index a20adb38e0466..7695755666bcb 100644 > --- a/drivers/tty/serial/8250/8250_dw.c > +++ b/drivers/tty/serial/8250/8250_dw.c [ ... ] > @@ -657,6 +658,31 @@ static int dw8250_setup(struct uart_port *p) > return dw8250_setup_dma(p); > } > =20 > +static int dw8250_sunxi_setup(struct uart_port *p) > +{ > + struct dw8250_data *data =3D to_dw8250_data(p->private_data); > + struct uart_8250_port *up =3D up_to_u8250p(p); > + int ret; > + > + p->type =3D PORT_16550A; > + p->flags |=3D UPF_FIXED_TYPE; > + p->fifosize =3D data->pdata->fifo_size; > + > + up->capabilities =3D UART_CAP_FIFO | UART_CAP_NOTEMT | UART_CAP_AFE; > + > + ret =3D dw8250_setup_rxtrig(p); > + if (ret) > + return ret; > + > + /* Use software RS485 with the Allwinner register layout */ > + p->rs485_config =3D serial8250_em485_config; > + p->rs485_supported =3D serial8250_em485_supported; > + up->rs485_start_tx =3D serial8250_em485_start_tx; > + up->rs485_stop_tx =3D serial8250_em485_stop_tx; > + > + return 0; > +} [Severity: Low] Should dw8250_sunxi_setup() or the commit message note that DMA setup is intentionally omitted? Other setup paths in 8250_dw.c call dw8250_setup_dma(), and the H616 UART nodes in sun50i-h616.dtsi declare DMA channels. Without a brief comment explaining that sunxi stays in PIO mode, a later change could mistake this for an oversight and attach 8250_dma. Enabling DMA against sun6i-dma would break H616 UART RX: sun6i_dma_tx_status() never returns DMA_PAUSED after sun6i_dma_pause(), causing serial8250_rx_dma_flush() to drop RX data, and a 256-byte FIFO yields maxburst =3D 64, which hits an out-of-range shift in find_burst_size= (). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-submit-h61= 6-uart-fifo-v1-v10-0-1a9fb4f79635@gmail.com?part=3D8