Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1492223lqo; Sun, 12 May 2024 05:12:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUMVnbE+/7aA+7fnCqMWiaS2wo0/c1LKkR8hyykL7C50ELCBm+qi7Nj2SVDxVcUCQ4LVOHqhnBaG+B96Dg+q31GosZfUS8NwfYJxRRngA== X-Google-Smtp-Source: AGHT+IHGj65IUFeBonZB3oAAMLscr0mZdc2EFkE4lsF+AG1Ve3H0enCyR4lYEEr71lN7CBdawq33 X-Received: by 2002:a17:90a:7d0e:b0:2a2:ba9:ba61 with SMTP id 98e67ed59e1d1-2b6ccc72e91mr7089247a91.34.1715515955213; Sun, 12 May 2024 05:12:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715515955; cv=pass; d=google.com; s=arc-20160816; b=lNmrcyvtsUESHyOkdhC1loQ8nDHbAA/Y5oCVBun4V2D0wP9/ElDLO+qAfISX3jma6v 1ibyeLNzEX/f/fNZY+/oRxr/PIcFSOGpJFL2yniSZBpWvVVwfAJPWuc/pE+FyzebjmPa /aq+/6EKrYw/8GkJVD6KBWZjGVkv8VX9KqQuLjPyN8wS+owKWa68ciJ4cLATecvLq6Sk SPrYTS2IJCSnqZR5cl8+l4RET31g3ZXxmJBi3OHMSSdNTw11zS+fEa1CsOrk6m7ujU+1 pVtn7Y/7nae91uwhmo2oBLv8ObyflT3c/4dMgNoB0/c9JilhYAmCVLnKbjAVv82B+5n/ va/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=AAPvNAYkjnnj4343n54TIurWhj7ZgaCqVdHt752F6y8=; fh=OdXYgjotU8G9KqHjauQXN4D8rf4bV/ydJhBVdih33oA=; b=KSGhJtlKsy6EEFEOqxN7ui3RBom/TebRXgsSjXnyPc/3xVyhGV0IlRoIwABVYVqPQJ dp4/kLGWdEEA6LAj2VKN7/ZjES9YVWVWZxC2pPCma/2UY44w4UcxDaC9E1H0Ee//KToy DCziP1QRwHFmY+eT1ebMd4ZYFtgTQdhNGvMiq1ZL6CXPXVn6dD4gcUQEtNoUYjWJKBs3 /LUQiBJMMn0zfmqSd374r5l69J084veSZfxSf4L1E2Ix5kqs1ggADeQrWDZcdhjYMs3W 1qPkeAtV1E8KaWaV4FM3SsPkhNdQhtlUj8cWlpjzkz4ORqiMzRe5f3iN4SWuLgdMKld7 fXrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AqNnZpM3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b670e341d2si7422368a91.5.2024.05.12.05.12.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 05:12:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AqNnZpM3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C91B62816AB for ; Sun, 12 May 2024 12:12:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CECA623748; Sun, 12 May 2024 12:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AqNnZpM3" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C5261CD13; Sun, 12 May 2024 12:12:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715515938; cv=none; b=jlRA5Web5+CPu1+tWLpqlcvkUvk6OPQlpzLjIA3Ef/vJlDJQZ7ciHET1o6LbTNVPbmFXwMCzNm1E5pBiwilH8R3GIeMVA3zLLiuz6nCh5vz9KlCmnWopS4KWdVus2t8xAfjV/KBNi0IIpz1Kd5ssg1i387yhQ84ylmrlQculGG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715515938; c=relaxed/simple; bh=uQn2LpSYH3VSkLT8zOSF6zifQuGNp9REuyof47a4VwA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=j+soa6LsFLTjW0aS2FK+x1jd+PBfuQA3TdJck98J91GeyA0fnwtoDib/8z/A+9WMqYVtUGSt8Bn+MjMtYqsHNcEtN2GFlV63pmmoJNBVXPFGWF9BcOZtkl+riv+EQlxg+ZMTPdNzCulyimFQmnDA0zABroXyQNHPO2038X96F9o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AqNnZpM3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id CF572C32783; Sun, 12 May 2024 12:12:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715515937; bh=uQn2LpSYH3VSkLT8zOSF6zifQuGNp9REuyof47a4VwA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=AqNnZpM3MZ5HNyZPwo2bV4eQ1+sLLGVHhFFC4vZYXptzUoi4p2vuPTCkBk23SLaPQ E+aiLzKIBT9goBdCFK/VjCEy06HdZXfinaiASvNGbk4WgptoBjCMFMfMMpukJR7BNP etcIHwtrNTMmButKi9Yh18kLziysGCaMa8h1h3woL/CIL0z+ItfpMo2yFyh33lvzJn 8Cyn65p0NHcS9L2KiZhjx69mKu8H7whT4havYJWa25KIcaQoHfqb9gt3Uo6zghQR5m 7+yr3Qa/kT9+8ygJ83M9KEjP4Mn+JpWI0XuVpLs1krkw4L8bsK1aKmeoDO2Bgh0dUm pQ6ysO5elyClw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7E7AC10F1A; Sun, 12 May 2024 12:12:17 +0000 (UTC) From: Sven Peter via B4 Relay Date: Sun, 12 May 2024 12:12:07 +0000 Subject: [PATCH 1/2] Bluetooth: hci_bcm4377: Increase boot timeout Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240512-btfix-msgid-v1-1-ab1bd938a7f4@svenpeter.dev> References: <20240512-btfix-msgid-v1-0-ab1bd938a7f4@svenpeter.dev> In-Reply-To: <20240512-btfix-msgid-v1-0-ab1bd938a7f4@svenpeter.dev> To: Hector Martin , Alyssa Rosenzweig , Marcel Holtmann , Luiz Augusto von Dentz Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Sven Peter X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1715515936; l=1230; i=sven@svenpeter.dev; s=20240512; h=from:subject:message-id; bh=l5zSo1PIT3qiMZokOHqlZSiHEp61gw9G4TR1ydgJdn8=; b=n9bTv01yWWAEQyW+jcLjnXCkBT8m4v+1sdLTdkCYA3JsdBqYIW4HWVo/du2TPgpdY0+vEtEB4 T1TnR3JSZ2OAgeOOqyVSTnayjE6KuEhWnqjURCkz09+JQZmZBnRmMWq X-Developer-Key: i=sven@svenpeter.dev; a=ed25519; pk=jIiCK29HFM4fFOT2YTiA6N+4N7W+xZYQDGiO0E37bNU= X-Endpoint-Received: by B4 Relay for sven@svenpeter.dev/20240512 with auth_id=159 X-Original-From: Sven Peter Reply-To: sven@svenpeter.dev From: Hector Martin BCM4388 takes over 2 seconds to boot, so increase the timeout (and also fix the units while we're here). Signed-off-by: Hector Martin Reviewed-by: Sven Peter Signed-off-by: Sven Peter --- drivers/bluetooth/hci_bcm4377.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/hci_bcm4377.c b/drivers/bluetooth/hci_bcm4377.c index 9a7243d5db71..5b818a0e33d6 100644 --- a/drivers/bluetooth/hci_bcm4377.c +++ b/drivers/bluetooth/hci_bcm4377.c @@ -32,7 +32,8 @@ enum bcm4377_chip { #define BCM4378_DEVICE_ID 0x5f69 #define BCM4387_DEVICE_ID 0x5f71 -#define BCM4377_TIMEOUT 1000 +#define BCM4377_TIMEOUT msecs_to_jiffies(1000) +#define BCM4377_BOOT_TIMEOUT msecs_to_jiffies(5000) /* * These devices only support DMA transactions inside a 32bit window @@ -1857,7 +1858,7 @@ static int bcm4377_boot(struct bcm4377_data *bcm4377) dev_dbg(&bcm4377->pdev->dev, "waiting for firmware to boot\n"); ret = wait_for_completion_interruptible_timeout(&bcm4377->event, - BCM4377_TIMEOUT); + BCM4377_BOOT_TIMEOUT); if (ret == 0) { ret = -ETIMEDOUT; goto out_dma_free; -- 2.34.1