Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2186510rwd; Fri, 2 Jun 2023 06:11:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4M2XAr+8O1XkkHusKbP6xFHwvIGzmYuwzadO26JjAfh4Ma6/rsK44UjrIX+cILbiTGVhGG X-Received: by 2002:a17:902:d4c1:b0:1ae:35ba:8c8f with SMTP id o1-20020a170902d4c100b001ae35ba8c8fmr2621104plg.13.1685711483737; Fri, 02 Jun 2023 06:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685711483; cv=none; d=google.com; s=arc-20160816; b=0IHhHfrXO7dXsTvG2LxgRta7Z0yrb//7snise6YAiaO5oY1xxIgR4yKao4WS4YvgQb VpJYNhiFV7j2tybBbG0r7e+6Cku8AX1zXQMA/BWMX9jnBP6/Usd/tdjjovWD5kSlf82T Udlk264H84MisVpkP/NB1qD6CkTd6XYhXW9jr3mlPWgRow1YLXahGU0E6P6t+9HFsj5t XU0YNHUcMYU5QqEDmvkUdp3G6P5XYLFYLqZTyXXNHPwc2MJgzE3ryOj2KX+IvOlVDDID hycr1ePgF+0OJFBbR9ykE7Z1zzoiO0RgMVWLjEDflpHtlkGzZoY1b+fUltxk3hU/ebMm Symw== 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=s9PKohAm4LOVZl7eIWB4zu1hUtRKsQJVSNdGWnYViLs=; b=joF/TWA8cjP2cI9U9DyoPpStD3jUN4x+V6zgnXGS+aN7UWm4fDDbCZtc5EkuABe2ha dxlmfKyeZwOvW+TvEArqL+/WEQ5f0CFwU9FK0zHhYTGO6KRc0de4foEYgYkq4kZm9KN/ 1DRByO7bMPHLRyGroVd+SFNEEsc02/OV9deI8T3fKWh9I2AYmQUMGCTDGP1Bqf3F9b7K X6UxJUi+FMIsBf/NZZeJc7RD6qxzXyrFjnCIIOioB5262Lyxv9EPUciVmB6nHxRI07Nf uf//berSEjYTnO5a/Yg3dC2fdtfj7/M56JoyPJzWsXnZ7Es5/npSjJMCTkwP45Cvd7lS yZWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oR8aJMD0; 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 hg9-20020a17090b300900b0024bc03cfa95si2751953pjb.156.2023.06.02.06.11.10; Fri, 02 Jun 2023 06:11:23 -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=oR8aJMD0; 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 S234705AbjFBMxY (ORCPT + 99 others); Fri, 2 Jun 2023 08:53:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233790AbjFBMxX (ORCPT ); Fri, 2 Jun 2023 08:53:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 680F1180; Fri, 2 Jun 2023 05:53:22 -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 0370C64EC2; Fri, 2 Jun 2023 12:53:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F407C433D2; Fri, 2 Jun 2023 12:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685710401; bh=ZV3TXb4k3/oksLoC4wMufxc1DqE6EYIOcySR9DR8FeE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oR8aJMD0ZbgcO8098hioibDz0XaQQvUdvPPf0+iatNwkwlmlnMHQyKNi82bTde7NZ VkFAE4/2M90yaw8yKbtbXI7NbEuJsFWMRFQmHvnWUFkgc3TUh34YaJt7rUqyr67p+1 8oYUaEoDY7lLG8N2ToKrQrv+yyENjindJF16fazmqsHxuo44FfMiziKzRpXdH9bQ1u nwGV2Vo6YlvJPxhNKonKbAr5GPJdmWm152t1O7A9vaB2oF42xsrxmCUDG+RLsZLJii 8SRw5yUXnvwc0+NhTti8FyJ5BRUCQeHrYF60o/983LmO9v8oZasnXRUGyykqplZS1C TvmAnl5aSRipw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q54Hb-00050s-36; Fri, 02 Jun 2023 14:53:31 +0200 Date: Fri, 2 Jun 2023 14:53:31 +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.3 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 Mon, May 22, 2023 at 07:52:45AM -0500, Corey Minyard wrote: > On Mon, May 22, 2023 at 01:59:36PM +0200, Johan Hovold wrote: > > 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? > > I'm guessing this is it. From the schematic I think this is the > TXD_ECI pin, though I'm not 100% sure. I'd have to dig through the > device tree and SOC manual to be sure which port is which. It should be the second SCI interface which do not support break. > Would it be possible to return an error in this situation instead of it > silently not working? Just to avoid others having the same issue. I just posted a patch series which does that. The USB serial drivers do not currently return any errors related to break signalling even though this has been possible since 2008. The same mechanism can be used to report that break signalling is not supported by a device or driver, but the USB serial drivers would be the first tty drivers that actually do this. If it turns out to cause any trouble we can still use this series to avoid the unnecessary wait. Care to give the series a try? https://lore.kernel.org/lkml/20230602124642.19076-1-johan@kernel.org Johan