Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1272229imm; Tue, 22 May 2018 01:06:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoUC+VQSUSTQgGwOPx3ElIdR+9Bci6aMZACvAw+zsQOOKwBJMBUatrLxFBf6pZJ+TQHEfqV X-Received: by 2002:a62:230b:: with SMTP id j11-v6mr23091637pfj.177.1526976364159; Tue, 22 May 2018 01:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526976364; cv=none; d=google.com; s=arc-20160816; b=VShZydaXntdmGeDM/SRJksZFg+/pYk6aH0Mh6ED+Kw7HZbdgSZbO6+7OxnrSJZE9T0 OUi7tj33YS5BmlUIN8sks1MEVAqeHRhzl6DjLnVXVTyhLJ7WZuSpvj27eCSDzASdLpCs pb9fwSZzg40bZ02kPto43PYjHE2nUl4E8a+bqvndUgvxmidj4Jl0GumqPv7AwbaTZqGr se7GgPit3Nf7vPMWBW1xTQewEEoA2XEqRByLuCLNszrx2QaSMo9jOcpDD2kzqHmP9Enu 6l1X9ybERLsWV8kewjWUKx0T56B01UPaF/Bm72SewAFUOsOu48mYbyb5isZhE2EqRZry +R2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=I3kqN2Hn14moYDjNOg+pmkD5a+IPB8/IDVCBkFAU24k=; b=JM1uyOD3HghpmfKasa0cRPmyKpjOB4o8SjI6dTRxJXEWoPZViexitYkrn4nCpGPsVl 4YC1uOtLcM8SVGGMO3LzjLinjPDPmG2S6wlrwWNEfFyew+cEqjuIwq8NnlGMzac7Qpeu WDjsaovP5xp8RBTS9Vvj4/y6gEJ4+ayUbQedqSKK6YdYoZFDv0716qHw32KrP6k7JT4p xavDz2W5vEmVi3dtn9NOZbChszfMS15msKfKPRaJWzop3fJcbwHgK5B3atTe8JHMUEwU 5yuakWESoSrWWIgLt4/qT3f+t/nhEhBXoX1lkRSDKJppaOgkge1iMyRr6yhzKLPNPHoI RwUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 d127-v6si12820457pgc.236.2018.05.22.01.05.49; Tue, 22 May 2018 01:06:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751339AbeEVIFc (ORCPT + 99 others); Tue, 22 May 2018 04:05:32 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:16882 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751173AbeEVIF2 (ORCPT ); Tue, 22 May 2018 04:05:28 -0400 X-UUID: d5ec1e41e4d84482a8e978fbd1ce0f97-20180522 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 373844205; Tue, 22 May 2018 16:05:25 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 22 May 2018 16:05:23 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 22 May 2018 16:05:23 +0800 Message-ID: <1526976323.18877.47.camel@mtkswgap22> Subject: Re: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings From: Sean Wang To: Marcel Holtmann CC: Rob Herring , Mark Rutland , Johan Hedberg , devicetree , BlueZ development , linux-arm-kernel , , Date: Tue, 22 May 2018 16:05:23 +0800 In-Reply-To: <920B3BE9-3FE8-4AC6-8C5F-63B0E00182AC@holtmann.org> References: <1d6097f538b3182b2876ad48225ecd6e2d1b128c.1526374087.git.sean.wang@mediatek.com> <920B3BE9-3FE8-4AC6-8C5F-63B0E00182AC@holtmann.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-05-22 at 09:21 +0200, Marcel Holtmann wrote: > Hi Sean, > [ ... ] > > - if (hci_dev_test_flag(hdev, HCI_SETUP)) { > > + if (hci_dev_test_flag(hdev, HCI_SETUP) || > > + test_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks)) { > > hci_sock_dev_event(hdev, HCI_DEV_SETUP); > > I am not 100% sure that we want to send the HCI_DEV_SETUP event also multiple times. That is a userspace change that I would need to think about. We need to check create_monitor_event() and see what the btmon trace for this looks like. Can you send me a btmon -w trace.log when this change is active. > > Regards > > Marcel > Sure, I'll send you the trace.log with the change is active. Sean