Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp334809pxt; Thu, 5 Aug 2021 00:29:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv+DOF+vOwLUxoS5+p88ancOLbbUWqhdfxNJ7kMnjrxD8PVeMsorfcdKU418/jKrACb7PK X-Received: by 2002:a05:6e02:1314:: with SMTP id g20mr699000ilr.185.1628148569341; Thu, 05 Aug 2021 00:29:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628148569; cv=none; d=google.com; s=arc-20160816; b=RUBFGzyEPtxho2avww7Ymt464jnKWINj1vjGxPBF+9c3+i9vnZB2Xhk545F/FLFzTj ShGOWdvPKl8lCnoqaaBXB7lhE7Jg+vPGXsut1VeK2yb59tbdhRyVfNBhOncQ7kZy4nZL /g/VfochRMs4tnNdZ2kaDf7KY0RKwcb6vLCGVU3d1EHM7N5+pY3E7bFZpOfEr6gnGUlE g1IiTdvYRXdGldMNvWx3L64yrrlLh5TSufmbBfkrorgYRr9ZVZ9mTI21cRq02wiXELex Dwoe3r/nDl5tGGdDYViIH4hOZLMUuP8XPpDby/vDY3tF8RrA9WJbsCONeRF4rMHCJmKs Lykw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8OHXExxtDwOoQLWpw5qKeYWpDd/wE3WEDJewZmrIO40=; b=yegWY+3pv0Cup9oVX4l64Sszy44uYIwpWUFM1sFv49TZL7NixgCzZ3efdydm3VbWm+ Y/XBwvjt2Dkiugnmr7H5mc6xYBa5AGtvbB3AT0cJQoFeDD/dztclCrKNyTM+brA4efWV nB4fAhUmvsKGTuf4qESPB8vDCDmn6AANUarfwUQVzVfqjgB9os1a0dJDkutrBGnVwNgi P2g6YnmQyZFjxK87OUmeQ91RVQEZGifmI7hXiihiGu9PyXVH1T9Ej/QNUMMtz9e3HweF CoiHTt0LepiLOYxLeksLcqCJrvof6Nq+hbXzw/Z2pwftnUFUxgyoSBNj9dew/biT7MoU EbzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SNyh52+R; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si5086658ilu.111.2021.08.05.00.28.59; Thu, 05 Aug 2021 00:29:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SNyh52+R; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232409AbhHEHEv (ORCPT + 99 others); Thu, 5 Aug 2021 03:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231970AbhHEHEu (ORCPT ); Thu, 5 Aug 2021 03:04:50 -0400 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EB3CC0613C1 for ; Thu, 5 Aug 2021 00:04:36 -0700 (PDT) Received: by mail-il1-x130.google.com with SMTP id r1so4099727iln.6 for ; Thu, 05 Aug 2021 00:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8OHXExxtDwOoQLWpw5qKeYWpDd/wE3WEDJewZmrIO40=; b=SNyh52+RN1RrKXgLlxVfz7kcXrdsHqrbacEOmQ5w4MvubZE2x+fb1EKKWBGq04t0m6 0ocTTD2u2Jkd2k8VOfjftapFYwQgkFXbbd0JKMVvlOWRb3LwYt/QBeLJGECinQO/bk8A MugGWPBAClM2LNa9gfr/BKWulJ3YXR1ZFaBV0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8OHXExxtDwOoQLWpw5qKeYWpDd/wE3WEDJewZmrIO40=; b=ju0UN3VA0Ly6uw4kUEKQLigdKhZreY5+JMa61/6eB+5fcKv0dUnOZUgQK4J2Ek3rqP FToUVO9KEr4ABmgKcIOlhTfSSkYYTza3KMbiPrVQFbf+jegl9uLgRIkh76s8fFR4Zvx5 9dLEnk267JkxkZZvPRVKkg0DGqAabHjRBWI67AwvRaU7yIpghu4BV9Hxlr/o88i7Pf4Q 3lh9tLp+F53CMxSmkVR3xzBVJpeHR3ccBVkh7AEGbjQ5bVkud3WiviCbr6D1XmZlrcZq W0wOYQNhmi6uXz6iB3/pdlvrdMacVWOcAuCQgK0YEgwEnT25UQunX/A/A1IzV3lv1wCD npKQ== X-Gm-Message-State: AOAM533Yo1z8QR6QcCFx7KiG2SmrGG73ZPuNN+5yYRDuoaZdtdvhMImK vIu5jpcz7NM1W0lHc1kEqsGRBuwOoRR5Y121Tf4zzg== X-Received: by 2002:a92:c8c1:: with SMTP id c1mr577209ilq.106.1628147075759; Thu, 05 Aug 2021 00:04:35 -0700 (PDT) MIME-Version: 1.0 References: <20210514071452.25220-1-kai.heng.feng@canonical.com> <20210802030538.2023-1-hdanton@sina.com> <20210805070114.2803-1-hdanton@sina.com> In-Reply-To: <20210805070114.2803-1-hdanton@sina.com> From: Hsin-Yi Wang Date: Thu, 5 Aug 2021 15:04:09 +0800 Message-ID: Subject: Re: [PATCH v2] Bluetooth: Shutdown controller after workqueues are flushed or cancelled To: Hillf Danton Cc: Kai-Heng Feng , Marcel Holtmann , Mattijs Korpershoek , Bluez , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Thu, Aug 5, 2021 at 3:01 PM Hillf Danton wrote: > > On Thu, 5 Aug 2021 14:12:10 +0800 Hsin-Yi Wang wrote: > > > >The original patch 60789afc02f592b8d91217b60930e7a76271ae07 > >("Bluetooth: Shutdown controller after workqueues are flushed or > >cancelled") is causing the tx fail when downloading fw on mediatek > >mt8183 device using QCA bluetooth: > > Want to know if reverting 60789afc02f59 is a cure. Reverting 60789afc02f592b8d91217b60930e7a76271ae07 can also fixed the issue. > > > > >[ 225.205061] Bluetooth: qca_download_firmware() hci0: QCA > >Downloading qca/rampatch_00440302.bin > >[ 227.252653] Bluetooth: hci_cmd_timeout() hci0: command 0xfc00 tx timeout > >... > >follows by a lot of: > >[ 223.604971] Bluetooth: qca_recv() hci0: Frame reassembly failed (-84) > >[ 223.605027] Bluetooth: qca_recv() hci0: Frame reassembly failed (-84) > > > >After applying the fixup to allow tx, the issue is solved. > > Feel free to specify the fixup and its link to 60789afc02f59. The fixup is pasted by Kai-Heng here: https://lkml.org/lkml/2021/8/3/103