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=1796014000; b=pAC5JTQE6wFt8kFXNMnuOhppgEmL5XF6u2M98spD0tLMQgvsACvkepHjntLy1TaynFWi J6eFnwxLiqh8NIXnejqSr+YhYe0P/N2Hm4ltguSW+STkCQF3qvlrtdJekWtkj+KNMQOnD DJ07Np6rrMxfyl+zy6pLb+DSTrscJ+FAsw+fFiIcb8U3J0ilP65vIAtB3RTdZisCbPQXr h4hM+epyprqhMqzBw29bPk3ZxwNIyiHHK+tQsUygmfiLXPcfB7KsQR59Heh5lL1kEypdV /Fy+ZAePwU8amwkBqfOc9+oCNOs4rNzk1E7niIwyjkKRuCIJ2YKl6UnqSjc4aohUh3A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796014000; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=cpdG0mSpKTZ0EVhNHD+rfCMzo64E9n7p4NX/OTtWNjM=; b=rUABQ+wBvYG9f+JOUI83W/6qjlmUuqrue02fN9darmOV1iFam6UaMBUMJguz5hCKUZua 3NRyLO4PkbFYwnbNxy9fmmgUh1t3GZWG0sxZX1EcJuFRvhUbqum0tUHnckoU94xdEQ9bE wYcH2Anu/81mo4gFcRGfG9In2CJduY5lA565x60YEbJHfkgZ0lxKPMZRIzRB+kXy2zPk9 ILXLdblpJuWoe7A88XAvERM+cF19ZpSBgquxvq9vqXg4JulB+VRHjgiw/YxZ6kBmg7k7u YRgeXmzIVKSbTY2A6LpjjfYEgnUFICC/G++xTALz+JEgX3es8vTU6pphTolUXQy6GmQ== 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=DT7mybEJ; 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 2DE65606A31C for ; Mon, 30 Nov 2026 04:46:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DT7mybEJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C2511F00896; Mon, 30 Nov 2026 04:46:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796013999; bh=cpdG0mSpKTZ0EVhNHD+rfCMzo64E9n7p4NX/OTtWNjM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=DT7mybEJztiivVnl1+j+M9iXgvCpwWlBZhmSlB08+XRSYyFVudKuhyN/lDZcMqyN8 LfQxUmXpZ9+OWABh67jpRQ/mOasIDpnaffSV9+aUFNOALMGgSnsUd/IaTbGY0NFQQr 5WZrC65fFkJkhihuoZjdcpYqan7lO1qTjCxzQ8EIkUzC8l6B6BwCU/rWHXnUYyUm15 JpzfaqkjnKioininwjJzHD98yD1aJgab8jElqM1ZuVUaVtv30yC8fs9NrfB7hz0cU1 /NwKdmvLJ5exVrVczVfgBjMJzbXHMXc4x/UYxIFT/D5fNAtZwvzE3iACi1KGLdD2zM eUchjfeWDZ/NQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] USB: cdc-acm: Add MISSING_CAP_BRK quirk for the CH347F Reply-To: sashiko-reviews@lists.linux.dev To: "Weihong Guan" Cc: linux-usb@vger.kernel.org In-Reply-To: <20261130044249.178335-1-weihong.guan@gmail.com> References: <20261130044249.178335-1-weihong.guan@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 04:46:39 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > The WCH CH347F (1a86:55de) presents its two UARTs as CDC ACM > interfaces whose descriptors advertise only line coding > (bmCapabilities 0x02), yet it carries out SEND_BREAK: on (0xffff) > then off (0) drives a BREAK on the UART. Since 66aad7d8d3ec ("usb: > cdc-acm: return correct error code on unsupported break"), cdc-acm > refuses TIOCSBRK on such a device with -EOPNOTSUPP, so > tcsendbreak() fails. >=20 > The CH343 had the same trouble and got MISSING_CAP_BRK in > 14ae24cba291 ("usb: cdc-acm: Restore CAP_BRK functionnality to > CH343"). Give the CH347F the same quirk. Match its control > interfaces by class: its interface 4 is vendor-specific (SPI, I2C, > JTAG), and a plain USB_DEVICE() entry has cdc-acm probe it and fail. >=20 > Tested on a CH347F EVT board, each UART wired to a CH583 whose > serial bootloader is entered by a BREAK: without the quirk > tcsendbreak() fails with -EOPNOTSUPP on both ttyACMs; with it the > BREAK reaches the CH583 every time on either UART, and the > bootloader's test suite passes on each, 61 of 61. >=20 > Fixes: 66aad7d8d3ec ("usb: cdc-acm: return correct error code on unsuppor= ted break") > Cc: stable@vger.kernel.org > Assisted-by: Claude:claude-opus-5.5 > Signed-off-by: Weihong Guan Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130044249.1783= 35-1-weihong.guan@gmail.com?part=3D1