Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5256144rwd; Mon, 5 Jun 2023 00:21:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6skwB2YiGt8y6/gJC5L6TAOna73c+lE5XrnJ9sGrEp6l/6JTJpGaWLcsZTsr6ABv0CvxHY X-Received: by 2002:a05:6a00:24d2:b0:654:719b:34f4 with SMTP id d18-20020a056a0024d200b00654719b34f4mr8229838pfv.19.1685949670906; Mon, 05 Jun 2023 00:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685949670; cv=none; d=google.com; s=arc-20160816; b=Dem4493yAnSaepcynn2xF5CoHlc0PwIg6tnp9LicNFiRDFo3DZSvKpqyIAaasE+82q Q64gpm99m8w7fM0oIQ7uq8c9suYY46p/n0GmRoc3hDwL4eQV99Tehyq9CI/iALzxWrBQ fdoA4REKyxkGs+NDmHz5rxC9fvuq/GbeoegNPYCVSFq6piBlNbTYHBhSKGoDwenibqnl cUVhdKxVRzraVYkkgl9ZY0CZHI/3rmliuH6cMA+Reb6nw38HFJhDj+th94/yJh7jI1M+ TJngsdOCNEjtGSl0ejMZUqUb4I7KjvofiHtF+jV2ElCI4y6o7Df4GSkaCS45SU2Dxzai qOHA== 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=fPNXU1HkHy36RWi0rT0zK+C2LOas+km8Kx5RZTF2cUw=; b=qMioiwnvOy3gF3/35FZWjFtsXTKBdxInyDb0b+P5js+TITvfy654zu6dDV/QzByJYc gtTiRQePof3TfKVScxkqdSVp8Hcj+bp9E1+0Vbjyb+zVOlDTlLFikCf2Y4aFURytuacf UeRpB/Ln6MHThFWOAJKM9q+VnJXb7dGFMZm5AlwG/jV/uEQHVQbYHGNrKaDFyne7GqTu e7LrRy0oICTdHqwZoFCt48FZlD0c3Louj0JF08Ezry7oJepO4i7IQF51fC0qPkGqUTRo wc972gIEGhRmEPX4y9nG4kAd3GFgtSCKkKjMxbDaFaw314xlcW+NtPfNJecsFjl1nDlX ZntA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HtOtJiV5; 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 e17-20020aa798d1000000b006439b23e8b7si4884005pfm.9.2023.06.05.00.20.56; Mon, 05 Jun 2023 00:21:10 -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=HtOtJiV5; 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 S231251AbjFEHQL (ORCPT + 99 others); Mon, 5 Jun 2023 03:16:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbjFEHQI (ORCPT ); Mon, 5 Jun 2023 03:16:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 555021BD; Mon, 5 Jun 2023 00:15:43 -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 211BA60F19; Mon, 5 Jun 2023 07:15:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BC8CC433EF; Mon, 5 Jun 2023 07:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685949312; bh=RV1uSWYECRF6po/E+w6yWpCHTfpG9zLcmT+80L61Dp8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HtOtJiV5bbausUrO3yqE5B5ePbLaipOSV60pQ7DMAmGts71BW2BZnaNt2GDJZ3vMg JqD39VkYSSH5Qypp/+nEjZxdf9IfW2aTFp/4L89ESCYjz0gw34ydjp6nSoZpNukv+s Kx1gx1dqWbHW24bYOjS0t8JF/9eCcwbNUQpC0PP8DGp90nH9J6AaDnBIppPeM6H30C koIYRScxM9U+YmgAFTMLfGpXGvij9UG0WZLohVN+612rV5TeM2IWGhgmj+krM52YDX 8Kt9rrZSrzqA30kmd08ZN97pobyijFWBHHfzBgzsm3RdLdYGd1zemVjV77+aKtzQwL 542Nw1ZqwNkkQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q64R6-00077O-OC; Mon, 05 Jun 2023 09:15:29 +0200 Date: Mon, 5 Jun 2023 09:15:28 +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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Sun, Jun 04, 2023 at 03:11:43PM -0500, Corey Minyard wrote: > On Sun, Jun 04, 2023 at 02:17:16PM +0200, Johan Hovold wrote: > > I just verified break signalling on the first port of my CP2105 using a > > logic analyser and everything seems to work as expected. > > > > There's also no mention of any issue with break in the errata. > > > > Could you check which firmware revision you have by enabling debugging > > and reconnecting the device? > [ 4.253869] usb 2-1.2: new full-speed USB device number 3 using ehci-pci > [ 4.342570] usb 2-1.2: New USB device found, idVendor=10c4, idProduct=ea70, bcdDevice= 1.00 > [ 4.350939] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5 > [ 4.358259] usb 2-1.2: Product: CP2105 Dual USB to UART Bridge Controller > [ 4.365052] usb 2-1.2: Manufacturer: Silicon Labs > [ 4.369765] usb 2-1.2: SerialNumber: 01070456 > [ 4.374925] cp210x 2-1.2:1.0: cp210x converter detected > [ 4.381086] cp210x 2-1.2:1.0: cp210x_get_fw_version - 1.18.1 > [ 4.386915] usb 2-1.2: cp210x converter now attached to ttyUSB0 > [ 4.393529] cp210x 2-1.2:1.1: cp210x converter detected > [ 4.399835] cp210x 2-1.2:1.1: cp210x_get_fw_version - 1.18.1 > [ 4.405657] usb 2-1.2: cp210x converter now attached to ttyUSB1 So we have the same firmware revision. > This is an embedded reference board, I guess there is some probability > that this is just broken on this board, though I'm not quite sure how. Is the port accessible somehow so that you could hook up a scope or logic analyser? Or is that what you did already when you mentioned seeing garbage sent after 2.5 seconds? That last bit seems to match the behaviour I see with the second, SCI port, where the last character sent is resent when trying to signal a break. Johan