Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3282024ybp; Sun, 6 Oct 2019 08:32:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7+eBvUYmFcv92lbfF9Me8Bh3BlbIhlxRulFMvxnkdnmBPfmZcBfmE9nLpxftZjc5g9UX5 X-Received: by 2002:a05:6402:281:: with SMTP id l1mr25184805edv.40.1570375974982; Sun, 06 Oct 2019 08:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570375974; cv=none; d=google.com; s=arc-20160816; b=0jKRpGZrGKLvLEyCGkmjgpzAyNSfUv/k/ZuRhpbv8ukQBvKIhw6K1d3UYIun5z7bC7 NazIAdvVPDTPeipQ5l2F7mho56/BMhcBUrxYeQKQs32i/jv1fUAVdM0AqoWabt/OQgBn tPvf7ficxoXxf75jVIeSYfqNXiJaz2lxQQ95QrzK9v8piRA0mHryvM9ky7dNGTeN6AZY ptGKK8QcgrE1HD/BMh9ZspNeaJfc4UkznAJTn2TDEdHjc6TAh/gN8El4cUq0NW6Ku3wj qqfQdTT3S1WZSd7OZ0shpgC61krtER1bAHqxCKiKeybs88aqSGhAPUbzGuG+zcaVcVUp Bf4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=o0BxtaLU1N6datWYZtEgYXjgpH+AjF9fFYxxBlP5lxM=; b=WB5fQ0hljtExgy6aVZFpofMWkzj50mpi2sQPcfp19A6qEWW5X8ldu4EWlqIYLiinTo fOj1l9BkrZvBpsD6IWnp5+FtM9Z5h62ckfBlEenunuB4URdmgxVqyKrAoPsPQI3CQJuS RS3xwoQAFOfkUQAk1QMjlEtjWEibSeRUlEh61QURe03cSW8vMKID30PNZE+LR3iQ9skO abuJHfOklwKzcqXdRJeUT2Nb6XGF1yTjEgdvkGm884rFusjZYlL4Y5SapHkGYSQF2tgD 7SDsLTcp5DmDEhHCg8OO9UstPX1yFmibXYng3heh+gT1NKzp0mjmwZbR7yLC7utqMlxX bgmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ANd9bRY6; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9si6531526edx.273.2019.10.06.08.32.30; Sun, 06 Oct 2019 08:32:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ANd9bRY6; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726460AbfJFP3U (ORCPT + 99 others); Sun, 6 Oct 2019 11:29:20 -0400 Received: from mout.gmx.net ([212.227.17.20]:60213 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbfJFP3S (ORCPT ); Sun, 6 Oct 2019 11:29:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1570375736; bh=NwItNtT+7dpX+iWyiTITnRT5WiPEzLaDE1MGjMA7YOg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ANd9bRY6nlA9CkLmoofMgDgyztlan1n14KCoNKhBQot3NXn5C9T3Xs/aldhrhy+sB ph736MrANE20n5UErAk8E+Z8I3yoaAyzNqcSelOgc47CDB1aW30RjkHGjwS5tfSdxz IMQKgRdroVp2nhp7IGW6QfAGDjktUhmvPTDZf2sk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([37.4.249.116]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mf078-1haw9S2rBi-00gYs0; Sun, 06 Oct 2019 17:28:56 +0200 From: Stefan Wahren To: Marcel Holtmann , Johan Hedberg , Rob Herring , Mark Rutland , Eric Anholt , Florian Fainelli , Ray Jui , Scott Branden Cc: Catalin Marinas , Will Deacon , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, Stefan Wahren Subject: [PATCH V4 01/10] bluetooth: hci_bcm: Fix RTS handling during startup Date: Sun, 6 Oct 2019 17:28:19 +0200 Message-Id: <1570375708-26965-2-git-send-email-wahrenst@gmx.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570375708-26965-1-git-send-email-wahrenst@gmx.net> References: <1570375708-26965-1-git-send-email-wahrenst@gmx.net> X-Provags-ID: V03:K1:ydi0+r/v2uhwbqNRG+VV3qbpvXLV3l7XeekgER9sm7enzV2hdrO 5wzwGRlimd5NHMQ2ZXaeah2owHvMuNOS6gMPEL/m1Tofsha3vJ8PJewY+m2NyFbohzK1Pxx hV4aLd3Swv7fRMxG4GDfPoPwd9ltidUv3CgoXsm8B+MmIxGK+CZfZk8Szb2wdPGAoQjjaQ7 POsnLxUr7C7oDMoUGhddw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:sWyR1XuQ+bU=:uSjFzauqsT7GRwxIA2dY/o 6NteiLKcsUR0I7nVwpTn+guJ29HUKzrYwoeZcgMThT/xN7ZxRQVAzQBIMLhNjermHUNcPrhhz s+jd1HVhUdsF/Ln3VSBwtgQIM9mjuaQIyEqBR+bV/Dmuz0hdsCijtac+v466mXOpXry0Tb9HH AjF/V+/cWobpu/l6O6m0zGtzRydzxS9I1YlhSUCBLH2lm9xjAcD9jYwi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fer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org The RPi 4 uses the hardware handshake lines for CYW43455, but the chip doesn't react to HCI requests during DT probe. The reason is the inproper handling of the RTS line during startup. According to the startup signaling sequence in the CYW43455 datasheet, the hosts RTS line must be driven after BT_REG_ON and BT_HOST_WAKE. Signed-off-by: Stefan Wahren =2D-- drivers/bluetooth/hci_bcm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index 7646636..0f73f6a 100644 =2D-- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c @@ -445,9 +445,11 @@ static int bcm_open(struct hci_uart *hu) out: if (bcm->dev) { + hci_uart_set_flow_control(hu, true); hu->init_speed =3D bcm->dev->init_speed; hu->oper_speed =3D bcm->dev->oper_speed; err =3D bcm_gpio_set_power(bcm->dev, true); + hci_uart_set_flow_control(hu, false); if (err) goto err_unset_hu; } =2D- 2.7.4