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=1796378576; b=BUXDQ4nXrzifXmsNZKWJPlUhhlS5MkayCrDJtwMwuyl5lUnBJyI/bJ4uQLsIJbgzd0E9 BfGdJMEc8zCheUP3xTS412OQ/4Vel6m9eAdktg+S9Ba3c2KJ1UinohROQ6TS7viMF1Oke KXoCO+QuiO4t6aSvf6RSIuLaKs6YLQ5gSkhe1EiCd7sBYRa0VYF/TKV2RRqbHt7V70G82 SfDHVUgILrtSOeSD5PqFgkTinbFQ8odnGVuKpVCd9ZIcruXusbNcBF4uRvfE0WtQxas3d s4/O9LG7vQQtMX4AMSjOtnfJgV+Wkp2ABocVygw2+3Tf8ZOCjwk38vEUUl3BJV/tpOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796378576; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=ix9FIpCCg7UXHX+wFPf/mqcKamduwH6tq9bMB0jQ1rI=; b=mr4hD/nGyhFbgyQ5y4739TDA3WkdOxOJMz/bYVCM8yjoAzDleAkHrVnchHHGWy5F/fm7 aIliOIfkHMkmFRoIrF5KGgmltA1H26hsLO6NfknkGf6aoQnctSTYL/2qq66cB114B4oUk ntru/H107KRdNVGfMEhjOfd6dSRdHHF96txJGZMyFjy07ev4ITWLDTSzniysd3D1C5as7 fxIY/xyA1yNgNyKMWpSHIlsJ7lSPCGBVpDEDccWy2jmG/zwkt3LlbVjBr+RVjaAx5J9nL SH/qp+HSTGpiwD9wiwRRDxGWSTpTIdg33a6iUeEedSPxghvx8bauOOJ0W+D5qM7iUeQ== 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=GbSiTQWk; 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 CEEFC606A322 for ; Fri, 4 Dec 2026 10:02:56 +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=GbSiTQWk Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F49F1F000CE; Fri, 4 Dec 2026 10:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796378576; bh=ix9FIpCCg7UXHX+wFPf/mqcKamduwH6tq9bMB0jQ1rI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=GbSiTQWkCZbw4Wm/XBYnLVzaxsaViU37yWsa1d2ePbRitC1AxX0K6MiFa/+afXeNq uoyWUNYzs05WDuWm3KlITCVJEJ//Kg1iuDN02pegdgQ8WFILILcXi0meyu1ZJhBkhX vpEW13NBEpghHKw8mg1SeJTBLa93r0RNQ96yPSNStalz8NmreCNckIO1UaCNL1Bz6C 2r1I47EqKfyDIXPQwBvr5+QZybd2xi9JpMvcCJjUuLj1CvGrSxIDYAeUqi8ZiS1Y8A A5sAgLy5S1gw45RiUhHX2CMvV7y+M+4bZ0p6gZF4A7tWcaOmUkE9gLKU0KKMQStLZY T5FoyAl/PjPHA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5] serial: 8250_dw: preserve BUSY-safe fractional divisor programming Reply-To: sashiko-reviews@lists.linux.dev To: "James Hilliard" Cc: linux-serial@vger.kernel.org In-Reply-To: <20261204-submit-serial-8250-dw-divisor-v1-v5-1-722389dea6aa@gmail.com> References: <20261204-submit-serial-8250-dw-divisor-v1-v5-1-722389dea6aa@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 10:02:56 +0000 X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > dw8250_probe() installs a divisor setter that makes the UART idle and > checks DLAB before writing DLL and DLH. When dw8250_setup_port() detects > fractional-divisor support, it replaces that setter with the library's > callback. The replacement writes DLF and uses serial8250_do_set_divisor(), > bypassing the divisor setter's idle sequence and DLAB readback. >=20 > If the LCR update fails to set DLAB, the subsequent divisor writes can > reach TX and IER instead of DLL and DLH. >=20 > Expose the library's fractional-divisor calculation and DLF write as > shared helpers. Install the BUSY-safe setter after hardware discovery and > use the shared DLF helper to program the fractional field only after DLAB > has been confirmed, alongside DLL and DLH. Keep fractional-divisor > detection and calculator selection in the library, preserving the core > calculation for integer-only ports. Let the shared DLF setter check for > fractional-divisor support so callers can use it for either kind of port. >=20 > Fixes: a7b9ce39fbe4 ("serial: 8250_dw: Ensure BUSY is deasserted") > Cc: stable@vger.kernel.org > Reviewed-by: Andy Shevchenko > Signed-off-by: James Hilliard Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-submit-ser= ial-8250-dw-divisor-v1-v5-1-722389dea6aa@gmail.com?part=3D1