Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2012854iob; Thu, 5 May 2022 13:16:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg6IM9YTuiP8rw6eyNwWnzUao4kXan3s82hQJZqaUZKnYjO9jDSS1wDOgRjx44Dj+4AeHU X-Received: by 2002:a17:907:a06f:b0:6f4:d336:6baa with SMTP id ia15-20020a170907a06f00b006f4d3366baamr9145173ejc.638.1651781795759; Thu, 05 May 2022 13:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651781795; cv=none; d=google.com; s=arc-20160816; b=Ke+rrXKWrX9hysDXNrAaHVYPfs7+FEuWke8Pi59+5pB2c5OJHWlU03+3+hAklaA3JW LwlL1s9hHi8S2229JnOxEP9LY3/KtTN5eiSG6ko+D/oEpRBoXVawPDnYuUTHBqYsVBQA reZdi4mSSvDAYVoN/HL3iQxF13rWHXx6tCCb7PUvP7a0whqzcwvpzoj8rCyGOE0ZDmEC vtBH0BYEsLWjdDrSv5pUfXAaGDaFtzqJZJjiGqBphtgduK9LF/k5tDzGNCT7R8IAbB0f +WPIQ6T3kyDkxFz5ij8cxatqXtUgGgAnCSRrPQCvixz38K5ptjoEqUwA4vlT+BJ0dQoA YhtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=My/SyTCngDcjFXsXj51FL/c9O9kUaJ/gtdSfWPiXpjY=; b=MUV0wZazPhDLuahRLqYCKnVFwRV3VQgr19/1ugz8+uzvc4gDrpk+UX9UDchJ3xlyYs Djexv79z4K4hohVoFwZ36vukuhKC1ixe6SOuI1wbtfTySyO8ZhJxuScqV8//jfljUdkv euQU8yRMLdAhonHrCsT7so4UoMgPinRaMRQA08h8TZD5PvbKf7G/yODyyFQ9lgjRaIAP smh0Aujl/XLRa7PdX4ezvrem0WzK+yQpJICkF2GVuqu2kFfUWJW306VJX4LZdIw7d8ep gXl+YhLYnobmOP0vFutr/XB7YAMUvIMJeqdk/L1VLUzHNCWuWV+5KzXf/J4DQ+iLHPCz YsKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b=LGu7GDoy; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=infineon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020a170906704c00b006f39e6a26b0si3199892ejj.252.2022.05.05.13.15.55; Thu, 05 May 2022 13:16:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=fail header.i=@infineon.com header.s=IFXMAIL header.b=LGu7GDoy; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=infineon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381330AbiEEQU3 (ORCPT + 99 others); Thu, 5 May 2022 12:20:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381266AbiEEQU2 (ORCPT ); Thu, 5 May 2022 12:20:28 -0400 Received: from smtp2.infineon.com (smtp2.infineon.com [IPv6:2a00:18f0:1e00:4::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34ACC5B8AB; Thu, 5 May 2022 09:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1651767408; x=1683303408; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=e4ygsikyJl0tMYtfWtwA8j3Qi+E39Mbf/ZG9ORl73wk=; b=LGu7GDoybbUgiB7+LbMIePQzOrWIaWWnEu9lzUYEwG3011bsjXHOW+Fc 7K1b9qbi/NcXPtRILU+ZnbMxJlDSFpSf8MjJH9Jgk517zGrX6VuzruzAM IO8Bv8q7MTk8vQgNKeiW7nbbihP6nhJ/oBomklEFLin8pQTy9AIvrKJ6U E=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6400,9594,10338"; a="176210663" X-IronPort-AV: E=Sophos;i="5.91,201,1647298800"; d="scan'208";a="176210663" Received: from unknown (HELO mucxv002.muc.infineon.com) ([172.23.11.17]) by smtp2.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 18:16:46 +0200 Received: from MUCSE812.infineon.com (MUCSE812.infineon.com [172.23.29.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mucxv002.muc.infineon.com (Postfix) with ESMTPS; Thu, 5 May 2022 18:16:46 +0200 (CEST) Received: from MUCSE807.infineon.com (172.23.29.33) by MUCSE812.infineon.com (172.23.29.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 5 May 2022 18:16:46 +0200 Received: from [10.160.221.24] (172.23.8.247) by MUCSE807.infineon.com (172.23.29.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 5 May 2022 18:16:45 +0200 Message-ID: Date: Thu, 5 May 2022 18:16:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH 1/2] dt-bindings: net: broadcom-bluetooth: Add property for autobaud mode Content-Language: en-US To: Linus Walleij CC: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , "Krzysztof Kozlowski" , , , , Marcel Holtmann , Johan Hedberg , "Luiz Augusto von Dentz" , References: <64b59ca66cc22e6433a044e7bba2b3e97c810dc2.1651647576.git.hakan.jansson@infineon.com> <1e8cfbc6-8452-0e87-9713-536d235e5b51@infineon.com> From: Hakan Jansson In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [172.23.8.247] X-ClientProxiedBy: MUCSE816.infineon.com (172.23.29.42) To MUCSE807.infineon.com (172.23.29.33) X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,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-bluetooth@vger.kernel.org On 5/5/2022 4:13 PM, Linus Walleij wrote: > I suppose a general flag could be useful but to be honest I don't know >> if any other devices besides the ones using the Broadcom driver has any >> use for it. You would probably also still want to be able to use >> current-speed to set the link speed and end up using both >> current-speed=x and current-speed-auto at the same time, which might >> look a little confusing? > I do not think it is more confusing than being able to use > current-speed and brcm,uses-autobaud-mode at the same time. > >> Please let me know if you'd still prefer "current-speed-auto" over >> "brcm,uses-autobaud-mode" and I'll revise the patch and rename it! > It actually depends a bit. > > This: > >>>> + The controller should be started in autobaud mode by asserting >>>> + BT_UART_CTS_N (i.e. host RTS) during startup. Only HCI commands supported >>>> + in autobaud mode should be used until patch FW has been loaded. > sounds a bit vague? Yes, perhaps. I was thinking the details could be helpful but I can see how they might be perceived as vague and confusing. Maybe it would be better to just leave it at "The controller should be started in autobaud mode"? > > Does it mean that CTS is asserted, then you send a bit (CTS then goes low) > and then CTS is asserted again when the device is ready to receieve more > data? i.e is this some kind of one-bit mode, because it doesn't sound like > it is using CTS as it was used in legacy modems. CTS and RTS are actually used in the normal way during communication. The host will assert its RTS to indicate being ready to receive data from the controller. This flag just controls whether this happens before or after the controller is powered on. The controller will check the initial state of its BT_UART_CTS_N pin (connected to host's RTS) when starting up. It will enter autobaud mode if the signal is already asserted. > Some more explanation of this mode is needed so we can understand if > this is something generic or a BRCM-only thing. > > Yours, > Linus Walleij Thanks, HÃ¥kan