From patchwork Wed May 15 18:15:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter via B4 Relay X-Patchwork-Id: 13665464 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A659AC25B79 for ; Wed, 15 May 2024 18:15:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WwJcRwmJWddLl5yrCTYO9kz3+sJzhJDycL/TWIUW5qA=; b=TDCM4OVRCYG4vW FSOB68CnxmQnPwSHlu/MY6HN1OZUqm9tQKV5PKjCj5RY9SIPAQyLEqbXXh6r4U6CEiTYFFt8es4wG aX9YTj22Ec2jC86T4LNFMB21RteTK8cmJvHO2+Aa4zmbxEM8dGrr/yABRJtUL5H0z+21ruB1IuhA4 uFqo7SUQPagr52ZcWviESqPa1zCt5ijsdEN6864UKaB4gmr/6THvhcPctMEr/BiDB/hL/JhgA67jO fBovRf5Ko6ODUJXoy4FoRgiF8KOChuOtpohkr7l/6aF/cNXuR8dYMibBJsG034Gu3q5lG4ehgizF3 btLM2G5leInKq3tlsJqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s7JA3-00000002WQH-3QRh; Wed, 15 May 2024 18:15:31 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s7J9n-00000002WKq-37ua for linux-arm-kernel@lists.infradead.org; Wed, 15 May 2024 18:15:23 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 043FDCE174A; Wed, 15 May 2024 18:15:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9E066C2BD11; Wed, 15 May 2024 18:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715796912; bh=rOhhqY9hje6LUTOx+VqYEfek2yHOAqEb5xlvLohkfOM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=WrnF4tHAAdtiQV7UgMCXO7PGnll/7swVO/4gZuiWSqcJyopfRnmJmi0iFfWKSCt4L 0K1FRq0tqo0JIfZ3Gy2iPwrK0qoWvpbFHFFZac8n2sj430T8TLl33yto6VqXgaoqAw 3qmx3WaQFmv7c9Mv1cQxn7ydkkkPC6FHhBA9TvG3qQyl9e2I9SN4e/qR9/hU3czfHy Iybi/fyQLdkfh98ybgroRW2iismmCjlZ8G5sKALuytMLbIJ5F3JoT2SFQkdMmxZHvi 80mwyJZbX/PD8qgxwu4P/1+7Mcp7usmLr3W0Zg5cTBA105y0tfuhgB/JnUuXgx4+BV 0W+xDt4od8WJA== 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 9167EC25B7B; Wed, 15 May 2024 18:15:12 +0000 (UTC) From: Sven Peter via B4 Relay Date: Wed, 15 May 2024 18:15:03 +0000 Subject: [PATCH v2 2/3] Bluetooth: hci_bcm4377: Increase boot timeout MIME-Version: 1.0 Message-Id: <20240515-btfix-msgid-v2-2-bb06b9ecb6d1@svenpeter.dev> References: <20240515-btfix-msgid-v2-0-bb06b9ecb6d1@svenpeter.dev> In-Reply-To: <20240515-btfix-msgid-v2-0-bb06b9ecb6d1@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=1715796911; l=1118; i=sven@svenpeter.dev; s=20240512; h=from:subject:message-id; bh=byENbovROROZ6LTg/OZr99a9V8DiMo0qMmjQUs9RxZg=; b=U9OQBMfY7bWDNjv5YOB/lQunPI+LOIMFM3a0UzhVjqnHTbEFME1936bVtxWbKi+DIDVIlYqcF 0so1SLJpV7sBpS2pfElZdkeeOyTLScDMjekuT0kVZMv0y9Y6VFbTIEs 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240515_111520_916817_84D22BF6 X-CRM114-Status: GOOD ( 10.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sven@svenpeter.dev Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Hector Martin BCM4388 takes over 2 seconds to boot, so increase the timeout. Signed-off-by: Hector Martin Reviewed-by: Sven Peter Signed-off-by: Sven Peter --- drivers/bluetooth/hci_bcm4377.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci_bcm4377.c b/drivers/bluetooth/hci_bcm4377.c index caf9b64c8111..5b818a0e33d6 100644 --- a/drivers/bluetooth/hci_bcm4377.c +++ b/drivers/bluetooth/hci_bcm4377.c @@ -33,6 +33,7 @@ enum bcm4377_chip { #define BCM4387_DEVICE_ID 0x5f71 #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;