Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2837385rwd; Mon, 22 May 2023 05:13:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4oau6Qoh7yAwUZcZJAQ5N6bwRzi0Uly3pbr9gjS+XVxFfLehcY2zcOuZeTjUwuClDcS962 X-Received: by 2002:a05:6a21:6d9b:b0:105:e434:670b with SMTP id wl27-20020a056a216d9b00b00105e434670bmr12375455pzb.4.1684757624779; Mon, 22 May 2023 05:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684757624; cv=none; d=google.com; s=arc-20160816; b=sG/aQHqnp8WuuiRnbDvDbOTtQEpbN9QyULKF8afuvxV40n4Nuxa+Z8ElNpHCVmq87K 7nlzjoThU3M37NJXnN5ruWuPpVBC5lsqFzwSuPCp4DNHCNRQEPFNdcBBH5u1OHriMVcz vAZ5ElOTVugg5cJ6NdZ17CSK9c6SVG54xw9U1qH4qWrP3BPeIStz5yae4/ZZydU+ghyf +LjZcFss13oTvN8pNdiw7cuKUGQ9ZOlY9b+K3ZR+HsVZGrJs6WGVskAaiN2FERnEwHBf JUYwpwWMWLEZ0HmLsLfGmDXwuW/tKknpU4qqjMXF04vWTGoU8nCKAnzSpsPubUxsCqKX qsew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cPWI6FTqRebgYePsmCnBXdi1iMWsHqcaXA8isr0+H3Y=; b=tLHgIzmPY4/UzuHbNJU14sTypX2ySZndC1YOqLxz1ReR5UQNZ3wWKe8DRicg1VqExK vHxNEwYD4NxqDXfB16P5vRgYq6W/5jorfmlKcu5kLbR4YeNjRiL6SRFV/1qG8Lv8m6vZ w/++Z0V62kRyVPjIxXAYRG/gnv7/W40JNhswagNT9tvlbjt9kimwlfKbUHnRcMIHZHhB oXYJHSkTaCNWeMe2GICEmsIOPcIGpJUL8Uh6SW/kIVqJ1lX68QnH3FvFFD7nMJ6lxz0G NWQStNv6FtneGsvOSpfZ3UIg3hHUw+X0sH/1BX5bEWML9X8Qqd+WbAhwD285r4TzpEOv GO9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H+zjQstK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a636d04000000b0050f9b910fa1si4716042pgc.368.2023.05.22.05.13.30; Mon, 22 May 2023 05:13:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H+zjQstK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233703AbjEVMAx (ORCPT + 99 others); Mon, 22 May 2023 08:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233645AbjEVL7z (ORCPT ); Mon, 22 May 2023 07:59:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 468A6100; Mon, 22 May 2023 04:59:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 222DB6135D; Mon, 22 May 2023 11:59:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83D25C433EF; Mon, 22 May 2023 11:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684756776; bh=noLNVGz2jJ7O7o4ac5on++xmXX/K/ni7BD/UCTe0wmM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H+zjQstKzirDiOEWd50KK6ocVionxHN0tfFF9k6+xTfxZxsNBCmbTglBCdUhrNdyY +n83SPrjEYrFQW5NJXpZ0U4+TCf1nnEjsLTRO9ag4IIOCl59tFi2kDTdRc/vp9rSoI OwX8FePZJpGZB9/OZEGOVw5uyp+yHidwL25L6RDEF/GzHtlQsPdg/F+HvO6Lkom7al D2c/LkXnEfD5yPtY83mgeF8CwwyYvuKaL5RY8FABjPJoUYshGHVY8aVr+CTs0/2h1o vzLzZ4n6j4W3op1CUIcl5mNMyCDp/9jiqp+njaZBgWLfBy235wH8PtPhznPRwk5tOt 0bjelTZX/FE5g== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q14CO-0001dA-JB; Mon, 22 May 2023 13:59:37 +0200 Date: Mon, 22 May 2023 13:59:36 +0200 From: Johan Hovold To: Corey Minyard Cc: Craig Shelley , Linux Kernel , linux-usb@vger.kernel.org Subject: Re: Break doesn't work on a CP2105 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Corey, and sorry about the late reply on this. On Wed, Apr 26, 2023 at 03:04:03PM -0500, Corey Minyard wrote: > I have a development board with a CP2105 on it, and I was trying to send > a break to it to do a sysrq. And it wasn't working. > > I have verified that the target driver works by setting a really slow > baud rate and sending something with a lot of zero bits. It got breaks > just fine. > > If I use TCSBRK, it seems to just send a short time with zeros, not > even a full character's worth. It receives a valid character with the > top few bits set. If I use TCSBRKP with a longer time, like 2.5 > seconds, it waits the whole time, then at the very end it gets the > character as with the shorter break. > > I can't find a programming manual for the chip, and I'm not sure what's > going on. I just verified that break works on the first port of my cp2105 but not on the second one (I seem to receive the last characters sent instead). Apparently this is expected as the datasheet (AN571) says the following about the SET_BREAK command: This command is not supported on the second CP2105 interface. Which port are you seeing this behaviour with? Johan