Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1542558iob; Thu, 19 May 2022 08:43:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy65oIllbOL7K2+QaHTv+MXech+UPSOSELqUjbdlg2K56cb4L8s8v0SE9PBRb955vrFdg0z X-Received: by 2002:a17:907:94c4:b0:6f9:f69f:2fd5 with SMTP id dn4-20020a17090794c400b006f9f69f2fd5mr4977274ejc.347.1652975020068; Thu, 19 May 2022 08:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652975020; cv=none; d=google.com; s=arc-20160816; b=pgZoTvyJMO4LdIC/I2U1hRXGHJu5WYokLX0HNRNiB89HvwaJjS4OuSx8cf2R0B0j4H b92SG8Gd8Z3oxoPsVjl6F3S0q2fzztHOc8ELoJdNW8awP8PPrK3i8yR5cB4v8XNxcMm4 rWwW61l3raKmx7pryYzR97WvkIcToqYSlhmMf6f6w/uf16POdsd60kv4cxSP6oJk+Aw7 qE7sYaV6esmX5XP1jotbp4EPr+oKG7AX4Nw5GvaMp0TlhY4hLOdLkZ1Kha0sxDpKCiri jjfZ+wYp7vwq6lljzsnK7DmTrDT7hbG090fQBB3E98FD9bWukhnG5gVvux6fAAMzY0Ny sKJA== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=BfbS6tAvw2MwDFblSHpbRCxhmm6MPoYZC8Y6cxTv998=; b=yAFVNsiBZsdBPE5/n4hhnAMGuHo2Rs0UzAv/wFJxIGqQgEMakFqK39cAW3thJGsXy0 2IgNCqmQ0HHai4RS/ZpMbNjv06Q4gMsEpglxkeI6UkJFrAGUZR7bw9mXnCijZip2JiOZ UlFiZIasPMVyl29TloHzf2aDVa7xzaZI2TbXvGaCGJ5tyFpTocHRL9mzHglHzLdLpShF /el9m3t5zyO8ye2IDl5tspsnvdnbt5kDlZrRzSk5KidSz8kRDLkvMa0Cd0fcpOhpitMT alvKHD8R3p6/UiAi84b/51xeP4oMul5Ls57zWlix/7U9nkAe4aCbXBcSXjjz1kO5Yytu HZoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b=gVx1eoRj; 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 di10-20020a170906730a00b006f37d29a841si6022122ejc.264.2022.05.19.08.43.00; Thu, 19 May 2022 08:43:40 -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=gVx1eoRj; 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 S238688AbiESOEk (ORCPT + 99 others); Thu, 19 May 2022 10:04:40 -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) X-Spam-Status: No, score=-7.8 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 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