Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1507535lqo; Sun, 12 May 2024 05:55:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhYMeMXnkV5uT7EOjkXBf8vgZWQr7dgxo05AX9wY/RF0Vl2qOBzqVOJRqK5QN3wQrQ7sHR7OvDQnJqm99k5t8QQHn00Q9msVXhK2yPAg== X-Google-Smtp-Source: AGHT+IFONo5wvo/4mJQnW3EW+sf1Pkqz+ei5c3z0K65ZlWCl2D9JRihHnejnSebA5JH9icvKYm1u X-Received: by 2002:a05:6a20:d80a:b0:1af:d7e2:3465 with SMTP id adf61e73a8af0-1afde1df2bemr9444119637.58.1715518522357; Sun, 12 May 2024 05:55:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715518522; cv=pass; d=google.com; s=arc-20160816; b=ZKOdOCqoPk42ZWGMpKK5OWf4fWCsfgJzp3zD9iDuXBKpNIYOuC6ocRewnz+K3LTXY4 +Tz8dNB1RAlv79uEBmsA2iZU7kmttOVdM4h0tpoNmhuMk5+1lijRoA7hrVFxvMTYIwHh ev+DacUklx90T9K+wgiTYNMLCz7W4T/f0ZTHhYkRxNd1ZDoab3yRBXpwDtR1elL5v0FS uWE/N+8V4CkNQSCvZ9+fIoS0BegXo+vVaH5g9B0CCHZ3DDwOR//yVNnimz6GV5pdm1/g qPt05QCy3VnKLaWEZTMV0jiHZYdD26n6bdc4hPTHsAZQLrfmmH51/zcM06sE0piEpnjF vr+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=65uydMKsXwdgGvElxFGsQ1IHZwcsbe/Z1F22WVwwxT0=; fh=f1CqoYY9Z4hlueNzmgK3DHdRfUnR9pf7h2/+zj6iWzg=; b=Zj+Y3NJIFcMmg2/q+A13VJNPPcz2zslfJB8ry96K++XiEyJy7NXVSiqf746kaIyq9U VOwfYKhkqFUpn1GoRhfSJmoEf1u12fX3MfY84L2qXIRm8oLy1OEzBEofH8mF41u+E6Tn m58mn+3lpTYvxBgryfd+OjZj494gSoJR/c+CQS+tVYC8Ohn9mBnDdAgMT4nXXjXIgkYn VgYt7oNOr+QM2Pudlw8SgGNumQLTD3+WXhoiMY1fNcpK8T4VZp89YwPpf/eqQWyRLVBH Lryy+cubW+nWwaD1AUTkilayuB+Q23A2wnhy6vt9+5ZeMXTxDvMgALkvb0gYlCpIIjib 8yIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=pYi6gSZT; arc=pass (i=1 spf=pass spfdomain=gmx.net dkim=pass dkdomain=gmx.net dmarc=pass fromdomain=gmx.net); spf=pass (google.com: domain of linux-bluetooth+bounces-4545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63409e82386si7298017a12.87.2024.05.12.05.55.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 05:55:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4545-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=@gmx.net header.s=s31663417 header.b=pYi6gSZT; arc=pass (i=1 spf=pass spfdomain=gmx.net dkim=pass dkdomain=gmx.net dmarc=pass fromdomain=gmx.net); spf=pass (google.com: domain of linux-bluetooth+bounces-4545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.net 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 F27B32820CE for ; Sun, 12 May 2024 12:55:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21F97224D4; Sun, 12 May 2024 12:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.net header.i=wahrenst@gmx.net header.b="pYi6gSZT" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (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 9D6D0200C1; Sun, 12 May 2024 12:55:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715518513; cv=none; b=IEKq+bZ8n84FkCH4WNc0RPzggQePz7xUXgMbOkiQVf4+dZhafraSkxoBQWvqPVXXVzUbc6m0BzsiAIXNbcZWXiulxzwHEO6KUcwhCvHjYJ2kR06V4ih97n/+CLZSefcdsaOeIxVC3WXwdK9/L/UMGOnD5DuqRRsNRmaA60fJOVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715518513; c=relaxed/simple; bh=mIt63qw212cpAShNPP9LQYJ12C7+kTwiUZQ8TsN9/Jg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=H2XSSnhWniNnfaZZ+VpWT+5FeFv0aWhMut3c6gBSj7iFom752ow0MJTR4TRGfmXz2PNngyDxvw762NPOIrNxJSuFmI0lxojioT72iDyAWFqkGzXrqt4SjcRQyeQm2u8a+EyDgQi2LeiFCipE3ZlgSrtuMlumRQjRtaxWsb+enxg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.net; spf=pass smtp.mailfrom=gmx.net; dkim=pass (2048-bit key) header.d=gmx.net header.i=wahrenst@gmx.net header.b=pYi6gSZT; arc=none smtp.client-ip=212.227.15.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1715518485; x=1716123285; i=wahrenst@gmx.net; bh=65uydMKsXwdgGvElxFGsQ1IHZwcsbe/Z1F22WVwwxT0=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=pYi6gSZTWWr2qGxXXW2TzarxCiS/2CI3jUqS5o3E/cceGdSdyem4AlUKrrxklPyz mVkOtv/8mrzQdn8V+m13DX0IAHnt6UYmYSzQ3MH1NulJR3ONJRdNRGaoCPmVvmMpE rEST+QqmDTRIU8ulpdB8ULhPt+/TdP0df20Fb4i4kruY6XGsTyKds/OQcfOuDti8c ugZfWfZAeP2U3n+Ls9GkY9AqB4VWat1ANsmUsee9ThmgdoYk5z0drXTD+Sqvp9ELZ zrl9rX4B8Aq0jworPAm5cDuAQk8ZqZdOx/BxOXZ8fyRoVD8p8TkhW4/ndA4HmvBJp GYcwUGmhBxGmF6/bZA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.1.126] ([37.4.248.43]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M5wLZ-1sDXe347L9-007UP2; Sun, 12 May 2024 14:54:45 +0200 Message-ID: <3ddebd00-4c3e-4b80-88a8-50906e86b6fa@gmx.net> Date: Sun, 12 May 2024 14:54:42 +0200 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] Bluetooth: hci_bcm4377: Increase boot timeout To: sven@svenpeter.dev, 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 References: <20240512-btfix-msgid-v1-0-ab1bd938a7f4@svenpeter.dev> <20240512-btfix-msgid-v1-1-ab1bd938a7f4@svenpeter.dev> Content-Language: en-US From: Stefan Wahren In-Reply-To: <20240512-btfix-msgid-v1-1-ab1bd938a7f4@svenpeter.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:wDNzp1FdFaP8gPWjqAL6qQ4hYViTop2O8vxFQiURhUFUphGZ+9s HPLuU49yKlTKVdBFV4x2MT+drPg9BYCn7XTddd6imZEQhnZgSL+sLN2rEJTeAK+yhKw05H8 zgociRAj2my2NMbTqHoaUlZSpFqes3W+OHFvUlcVzMiwWUUjeH6YtiFjgyeqwAgWC9dL9st BLtUecVkhAJDhKi3nyjqw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:L5PpRHjVWwU=;MmaKHzK0c2w6z2F2Xbl+MQcS+I+ t8a6zhJ1uNNpmLKnQysMceeuJvuFZj1dHMMTGCkkD9Js7mqW8uJPTQZN4gGYQTVr3FCi30j3I b64NBN8LN4MWqMIwwCilGswYq8AAaEz7Ofaa/Nxq0ZO44pvEafATCHJZOLhwaRhAakDWgskPe fRv62VHsVJi+PMLl/2fkXLY3UJvxuHzojmHNOfzWQPyB91o5oL2Nq79896/XWlvHjrhVfBWCn b/ATnSBhZ7rk5UQUiI0fRS2NpOb39XvdmzWtW78GKbUaM7Fgt29akObIlNRx1vWrnaF0Jzk58 R7rZkym18p1AkFXkn1nua3lj5cpFF882dWksMNvnDvU1bwqMwqLbchvp78RDmO8gs4V48ZOTC IdokiThSNZ/crKfogDl/AhoEHD3afBYJhkDZtvwtxZ0TlaOA+FcbWWwMqEshUYgpbpHUlcmrE tsxxlHBUftwj6ITx+HXvL8TALHAGDPZyJhBozN0mm63K/HCzsEGmI4xQFP6otx6SxveRcv711 hmC7L0z89gmQ7SCFzVWVCfrswFjnrBlr/5wVdO6GhHrpNghU5SS5lVtwp6oxwnVIpvkTuj43u fTyn1+35IvHnOBkf81m1aBUR8rt3nSRBzpWjmQIHc4yoW0EPrir4Eb+mznq9H8CvBcQ4nWwip 1BUQAPE23BVavG4a/YciN9onBDI+5zO6FKFaW7YRFoVgPbxg5dJnuzCk4hCwSPIYY3M67ClLb FgrEXcej523oXrODx6QNAK9uTb1zja/oiAt5P0z2EUxhYKLIGzzFxr1RHFY+jQiMlHqPsL8eV hrE5bt/8Ju2SfbgE58zDvVTPBW3sFNNF3e2GKX+lPgWtQ= Hi Sven, Am 12.05.24 um 14:12 schrieb Sven Peter via B4 Relay: > 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_bcm= 4377.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) this change affect all timeouts not just the boot timeout, so i would prefer to split this. > +#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 *bcm43= 77) > dev_dbg(&bcm4377->pdev->dev, "waiting for firmware to boot\n"); > > ret =3D wait_for_completion_interruptible_timeout(&bcm4377->event, > - BCM4377_TIMEOUT); > + BCM4377_BOOT_TIMEOUT); > if (ret =3D=3D 0) { > ret =3D -ETIMEDOUT; > goto out_dma_free; >