From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796056263; b=IfMmQOVxp8TH9Ghr4C+biTRQEmUJk0pt/mBK1MhHFf8zjGAb18VBVGz2+uf7sI/Io95Y EzoQnKruN09bi3JI3H42z5yNhAgArvyeKo3L6fANy7DQvS2czoT1D+hzOaEo/OmrykC5D 8qpOKJyK/8eKlHc08wbOqQU4/o910ErPfJVzWXK245wveDaYoqpYQHwbOMlj1TiZUpMgt mVcfVXMW+1D0ERJwXirP0N+QRTb0a+6D3R/d9ozpz5ACzkAOlaqAENtpW6zD0kxfX9aIw WnA5ZBn6Bg56m1c8wo5qmlBwQVmwfGm4zmDeXmsWr8mT9O+5FLdz1vcnlGPTPMQp+qw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796056263; h=DMARC-Filter:Received:Received:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=efmc/dzz1trM8GmVw3j2zraLXKwRFNz0duBOBRE3Yis=; b=i51+tUzRK2+DhSt8fVS3yYMHPUWc+4g4LfnFTH1NHu83wuNkfoXVHPYyrxiVAVHBAAGp t3LF+f/Cfq0nvChvZqWfk1r8ZTIpuWt8btnv20jX38g9NObiivp+PHTZQ3nH7dRlvH7zN G0ZTGJE9K1Dscjlj9ZQYGrOFiHSctSzMA7uHXt2miDEifymNX65PudJH1z1zL2t2eb9Df gImwEoF7PNvGLei023bokklj1y0LntanDMFonnice99ekd4kYE0ZlQT9c5O+yhCwkPCVR HkiLXUdzU8UcUwmaLb0ZjvcqtqYIOeEtURw6eiLU9N/I0Zue17meMpLlRBiA2jR5B+Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=skgNX5Lt; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E105606A31C; Mon, 30 Nov 2026 16:31:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8E105606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=skgNX5Lt Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 137931516; Mon, 30 Nov 2026 08:30:59 -0800 (PST) Received: from [192.168.178.24] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0309E3F7D8; Mon, 30 Nov 2026 08:30:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796056261; bh=GWDjVxi9DQjwxv7A4B1l4VQ7wjB2wxKZtnPAD3X5Yzc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=skgNX5LtP8maIMUBwArBhHhmPngvE2Auxg96iym53/greHeEHWoxWnUPjHcdVgjOB LWwxsLuxW7gZpPTBTBsnKV8SWAcNXrmmb/zi+iirDpBg7A7Zh2pUu4cSj/itocpdZb Eh9OZxLS+ngLGiyO5QM+AA93E4VQtk/d+y6UBxxg= Message-ID: Date: Mon, 30 Nov 2026 17:30:58 +0100 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/4] dt-bindings: serial: snps-dw-apb-uart: Add Allwinner A733 To: Vinicius Pedrosa Cc: linux-serial@vger.kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Conor Dooley , Andy Shevchenko , ilpo.jarvinen@linux.intel.com, Enzo Adriano References: <09f3a181436e6f19317224e583c2fdaa787797d7.1792439398.git.vinicius.eduardo.pedrosa@gmail.com> <414bbb7a-1018-41ac-a580-cd41708c6a78@arm.com> <20261021175822.318717-1-vinicius.eduardo.pedrosa@gmail.com> Content-Language: en-GB From: Andre Przywara In-Reply-To: <20261021175822.318717-1-vinicius.eduardo.pedrosa@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 10/21/26 19:58, Vinicius Pedrosa wrote: > Hi Andre, > > On Wed, 21 Oct 2026, Andre Przywara wrote: > >> So if I understand correctly, this compatible is really there for the >> clock gating issue, right? As the DLF part is now somewhat correctly >> auto-detected? > > Yes, the compatible is only for the clock issue (SKIP_SET_RATE). The > false DLF detection is handled generically by patch 2. > >> Can you share what your termios test looks like? Because I assume this >> affects more Allwinner SoCs (the DLF change definitely does). >> Then we should add more compatible strings here. If there is a simple >> test, I am happy to run this on a bunch of boards, to give you a list. > > I reduced the termios test to a small standalone reproducer and retested > it on the A733. While the serial console is continuously transmitting, > this program toggles CLOCAL and restores it: Thanks for that, looks simple enough. Now I'd just be interested what's your use case here? Are you driving something through the serial port that needs some runtime adjustment? Because normally I'd expect the serial setup to be done first, while no transfers occur, and then never change later again? Just want to assess the urgency of those fixes. Once AI driven people stop spamming my inbox, I might find some time to give this one a try on older boards. And for the records: the validity of this fix does not affect the requirement to have a specific compatible string: we should do this anyway. Cheers, Andre. > > #include > #include > #include > #include > > int main(int argc, char **argv) > { > const char *dev = argc > 1 ? argv[1] : "/dev/console"; > struct termios orig, changed; > int fd = open(dev, O_RDWR | O_NOCTTY | O_NONBLOCK); > > if (fd < 0 || tcgetattr(fd, &orig)) { > perror(dev); > return 1; > } > > changed = orig; > changed.c_cflag ^= CLOCAL; > > if (tcsetattr(fd, TCSANOW, &changed) || > tcsetattr(fd, TCSANOW, &orig)) { > perror("tcsetattr"); > return 1; > } > > return 0; > } > > I compile it with: > > cc -O2 -o clocal-toggle clocal-toggle.c > > and run 300 iterations from a shell on the serial console, keeping the > console busy: > > dmesg -n 1 > (while :; do seq 1 1000; done) & > gen=$! > i=0 > while [ "$i" -lt 300 ]; do > ./clocal-toggle || break > i=$((i + 1)) > done > kill $gen > > CLOCAL doesn't change the framing, so the output should stay a clean > 1..1000 sequence. A bad run shows garbage characters and missing lines. > > On the A733 I ran this test five times without SKIP_SET_RATE and all > five runs were corrupted. With the A733 compatible selecting > SKIP_SET_RATE, all five were clean. > > Running the same test on your other Allwinner boards would be very > useful. I also have a small script that checks the capture, if that > helps. > > Thanks, > Vinicius