Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp4506033ybn; Sat, 28 Sep 2019 01:55:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqym/FJn1n+tCN/6vxOv8Cr8oap6TI2C8IVmLRtw0t9ZfvE3JeFmy2+s+L39k4Nn64U+0jew X-Received: by 2002:a17:906:fc02:: with SMTP id ov2mr11206197ejb.273.1569660951495; Sat, 28 Sep 2019 01:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569660951; cv=none; d=google.com; s=arc-20160816; b=IFzLcse9syNCojCY3sABQlF1v6+COrxjf5A32U2AdTn0FV2YQSDmch9Aat25FN+F0Z YMYN+Q/bofoFiA15u/wIjUVX5CswH70iUPrZDyfT4eeMq3I+dJKFeYNlvrKfkMw2JAzl BTtt56L1efyucjp/gFEoN6gobFkXQ94vIRLLEA8VDXDMfyBQi0bBHVDks8Bnddu2MwDv 6Q3YnbtPuV/DUOXQf0VW5K9rL8okNlXWgb5rcsM5c/IN1Gy1ALvWDELvIPJtKrTnxKuZ 1rRv5KYuqITiSxL+2sJOB/vMcEGlJ0kYd3CgklegrbTC0vAwemSm/PZBaYB3innrA+Zz JKAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=hUwncMBFl5mApHdUqbMKfQqqKvQADbMsxbinJrLTd/8=; b=uhV85t4jP3eEBhuYC2aqxkCUMIrDdxwTlY7r2srFlwOL9khqIbzztzvEgnel8UGDBJ ZFLuhRzFN64qQLvJCJORG/KeeuIQ7H+dkEYgXGn1f9dd24GQdhnrH1QBN9jMzByTkSWT Arp32TvcZfh0tfbZKAaxDKDhRTIp0if05iO0UNdEgjKD5cJDytj6wGcdZ42rJYW6+9U9 j1KyR1VwUecyE4kZvI2dOIleUK0YGPS0FLiVCzer0PFMlG0wqbS7JrZOgQT79KmveTsC oiCKytLdzYGKk7jNP3tTJkqXprJncC/5ekVOVGFr9zDjXFkdrtSsl7ob7x2HCLWlXb8i 68aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NN45x0IF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l26si3272051edb.258.2019.09.28.01.55.02; Sat, 28 Sep 2019 01:55:51 -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=@gmail.com header.s=20161025 header.b=NN45x0IF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725872AbfI1Iyu (ORCPT + 99 others); Sat, 28 Sep 2019 04:54:50 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54930 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbfI1Iyt (ORCPT ); Sat, 28 Sep 2019 04:54:49 -0400 Received: by mail-wm1-f65.google.com with SMTP id p7so8249326wmp.4 for ; Sat, 28 Sep 2019 01:54:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=hUwncMBFl5mApHdUqbMKfQqqKvQADbMsxbinJrLTd/8=; b=NN45x0IFkfIE0Cz5urrroYUv4EW+22Mek07QWKYcuYzx0+tbuwy56QjwWvyE5/OpAU +BwFBxe/HwgiARhNV9fjU3jC6KLFG0Li9hy79NV/hbO98jNz+ujVDeCnXRJo8gIUWJbz l4rzY7BxJnAIfDQH9HCKg5nu2e57TTyJqFTADvJWZznLQLGiU2cHDyPHY+QQE9q7h5dV TnhT3bvyn1hYTDXXqI9bXxWZUfi1tQnCdG040T6Fti73kCPGHyh6fskflVUZ1D0hyp4o N5phdN0ck2zfv9lTgoj2EKam7ROlIqKr0fDncICwoEKBvV5sncv0yV+/Tn/A9ZM3bsrP tMbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=hUwncMBFl5mApHdUqbMKfQqqKvQADbMsxbinJrLTd/8=; b=dKLV8DjR1MJlH1cj/pZWXa9AK2Q6vD9mIjBWKP4NqWFhfnurQJFyTljN0fw4A8wCaK lNu7xqabUkIcm3g0cuZa//aBQS0oWCgKfptnybzbEXDEoJ28ZjGkzMMmmVgZ3pobqSvJ lFbhn7ISGpC1W0KRH3okCzOFZP8HJ6j895eqrKRU2klrDkT0IOCWYEPlY1Ana/WsBRcW Op9NtnC/oDbAdAgnJuoSUzMM78Q6ApOcV0u+G53LmyrLClxLrFujea84lbDuIdgMRjX5 I1fY3qN4vw8/lC9LkCbemk4ZImAVz/LJ95f0B4080BB20oCiiT6718n9nZ+S7i/8e+UJ v4kQ== X-Gm-Message-State: APjAAAXWfy4Fvop/0OPcei1vcUIu3apWqvHyoO8uNoN5gGJWlY5qadMV t4Hwnk9ks6r37Vo6WsUrD7c= X-Received: by 2002:a7b:c4c9:: with SMTP id g9mr11026370wmk.150.1569660887583; Sat, 28 Sep 2019 01:54:47 -0700 (PDT) Received: from localhost ([37.238.189.6]) by smtp.gmail.com with ESMTPSA id i7sm10531617wrb.64.2019.09.28.01.54.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2019 01:54:46 -0700 (PDT) Date: Sat, 28 Sep 2019 11:54:44 +0300 From: Mohammad Rasim To: marcel@holtmann.org, johan.hedberg@gmail.com, linux-bluetooth@vger.kernel.org Subject: [BUG] command 0x1009 tx timeout error in BCM2070 Message-ID: <20190928085323.tfjiiyrktu3vscvk@manjaro.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, This bug has been in the kernel for years and it was posted on kernel bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=64671 My exact bluetooth module with IDS is: 0a5c:21b4 Broadcom Corp. BCM2070 Bluetooth 2.1 + EDR on pc startup the bluetooth device is not ready and bluetoothctl doesn't see the controller looking at the dmesg errors I see this line: ``` [ 11.618685] Bluetooth: hci0: command 0x1009 tx timeout ``` There are two ways to workaround this issue: 1- reload the btusb kernel modules: rmmod btusb modprobe btusb This will reset the device and now the controller is up and recognised by bluetoothctl 2- reset the device I used this python script to reset the device: ``` #!/usr/bin/python from usb.core import find as finddev dev = finddev(idVendor=0x0a5c, idProduct=0x21b4) dev.reset() ``` after running this the controller is working and i can connect an pair devices and i see this in the dmesg errors: ``` [ 62.746083] Bluetooth: hci0: unexpected event for opcode 0x1009 ``` Maybe this is a timing issue in which the btusb driver is trying to probe the device before it's ready ?! I hope this can be solved from within the kernel code, I can test any patches and give my feedback. Regards