From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5BF2C433EF for ; Thu, 19 May 2022 14:04:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239281AbiESOEm (ORCPT ); Thu, 19 May 2022 10:04:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236329AbiESOEj (ORCPT ); Thu, 19 May 2022 10:04:39 -0400 Received: from smtp11.infineon.com (smtp11.infineon.com [IPv6:2a00:18f0:1e00:4::5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 738C0387A8; Thu, 19 May 2022 07:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1652969078; x=1684505078; h=message-id:date:mime-version:subject:from:to:cc: references:in-reply-to:content-transfer-encoding; bh=0czR4Rztd8M0RS8cqQi+Tten5LECKymhcAxIJzh4FeI=; b=gVx1eoRjNyAo2yy6/kjpb+VTaSjaCgaX/AcWJ97xLvR5JrvSZToWFbC1 2sdZW++a5lyjeq2DPq+8RxRmJ6vj7gkyZDUlUifpuHZhk6h+PS8Gq2F7B Dzf4AS557D1U5y4/rOW5uKbT0MWBdO5A1YzBC3x8N5cTPf1Az5lKq2QNO k=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6400,9594,10351"; a="295878357" X-IronPort-AV: E=Sophos;i="5.91,237,1647298800"; d="scan'208";a="295878357" Received: from unknown (HELO mucxv002.muc.infineon.com) ([172.23.11.17]) by smtp11.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 16:04:35 +0200 Received: from MUCSE822.infineon.com (MUCSE822.infineon.com [172.23.29.53]) (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, 19 May 2022 16:04:35 +0200 (CEST) Received: from MUCSE807.infineon.com (172.23.29.33) by MUCSE822.infineon.com (172.23.29.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 19 May 2022 16:04:34 +0200 Received: from [10.160.230.235] (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, 19 May 2022 16:04:33 +0200 Message-ID: <0dffeb79-3182-fab1-e25a-aab4107beb6e@infineon.com> Date: Thu, 19 May 2022 16:04:33 +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 From: Hakan Jansson 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> 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: MUCSE805.infineon.com (172.23.29.31) To MUCSE807.infineon.com (172.23.29.33) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, I checked the state of this patch on Devicetree Bindings Patchwork and it's marked "Changes Requested". I'd be happy to revise the patch but it's not clear to me what changes are requested. Could you please help guide me how to proceed? Sorry if I'm missing something obvious here. Thanks, Håkan On 5/5/2022 6:16 PM, Hakan Jansson wrote: > > > 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