Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4353989ybi; Sat, 6 Jul 2019 03:23:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqz80qsKuhRYppAnAwci1qqkIE8VvAUV9BHA0tARAxNp5qCFIayp8qOZfb9NunH5nMwX1fq4 X-Received: by 2002:a17:902:b608:: with SMTP id b8mr10820952pls.303.1562408586543; Sat, 06 Jul 2019 03:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562408586; cv=none; d=google.com; s=arc-20160816; b=H36+kilx84C3qA75amalUEe+SsB/SzcD7HqKPomTIMvRvSKWTKXZM/u4VBjxg9oWtQ PpW9ZuilmFYmCem07Ue4yJz1zwHde5Icl3e/+y0mdoJiZb5TGl5o20AwfFGoIJ8rO73z wvud+p8CSWepVjZZWRGu2KwVmRxRlzf06ghfHshdNKNViwiNwxIJEiVAufpLuPZVbEBr NZCNu0k2t3h0V1Biu26PhLAmUtfANmH/yuO1bR1neO2iUkXqZKm15hVJzc9DPKn9H3rl IsoqQ0AsD84iXRe6PruGWyyA7u8r/G7ZBnzPo5qCh/aEKPhvz+3ydTgBYiVLGrN3Vwfu IaBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=OdvtLfXPn5z4De7pi/06xhp7PpKfvM50yGOdt/Cykts=; b=OsCfKXDF0i20mNdT4NYyPzkLp2juMJf8zSWs1eaK/BZvQdS3QzMo8uNaQC1iNic7uH 3w4SOaJrDyr5CLfs9Ey2WTOWQvWUxpySQE46tokvq4FOzpO4j0Ad0qztcE1TOtbjfTPt LitTNHlYoKm9Tps3m6Smedk0BsHuMVJH8YMKzEcjbafmWqJnov+ql2CCPzfKAGtlRiKK 097SNGAqG3GDCZF5vLHuscYce/Oipy/Dqv285bz3NdmLW36pnJ2NYYci6UxZLYeFnCMg L3u9YxW9RnenbxuzTsSomq1DIPoow8VNIKJRH43+93/JKsaF+Gv0hauxxmAxaVGbm2x+ fAgA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k16si11876682pfk.68.2019.07.06.03.22.50; Sat, 06 Jul 2019 03:23:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725962AbfGFKWt convert rfc822-to-8bit (ORCPT + 99 others); Sat, 6 Jul 2019 06:22:49 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:56979 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725926AbfGFKWt (ORCPT ); Sat, 6 Jul 2019 06:22:49 -0400 Received: from [192.168.0.113] (CMPC-089-239-107-172.CNet.Gawex.PL [89.239.107.172]) by mail.holtmann.org (Postfix) with ESMTPSA id 52590CEFAE; Sat, 6 Jul 2019 12:31:19 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Doubt/issue in hci_dev_do_close From: Marcel Holtmann In-Reply-To: Date: Sat, 6 Jul 2019 12:22:46 +0200 Cc: linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, bgodavar@codeaurora.org, anubhavg@codeaurora.org Content-Transfer-Encoding: 8BIT Message-Id: References: <1553689723-21017-2-git-send-email-c-hbandi@codeaurora.org> <201903290535.u5TF12SC%lkp@intel.com> <20190328212320.GF112750@google.com> To: Harish Bandi X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Harish, > In hci_dev_do_close first it is sending vendor specific shutdown routine and then after some operations it is sending > the hci_reset command. > However in vendor specific shutdown routine if vendor already powered off the vendor chip. In those cases it will not > send the HCI_RESET command. That may lead to bug or some cleanup operations not done properly in Chip. > Is there any specific reason why it is sending vendor specific shutdown routine first and then sending HCI_RESET command. are you setting HCI_QUIRK_RESET_ON_CLOSE and trying to use hdev->shutdown at the same time. That is not how this is suppose to be used. The HCI_QUIRK_RESET_ON_CLOSE is just for old Bluetooth 1.0b USB devices. Regards Marcel