Return-Path: Message-ID: <1527057423.4607.3.camel@mtkswgap22> Subject: Re: [SPAM]Re: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings From: Sean Wang To: Marcel Holtmann CC: Mark Rutland , devicetree , Johan Hedberg , , BlueZ development , Rob Herring , , linux-arm-kernel Date: Wed, 23 May 2018 14:37:03 +0800 In-Reply-To: <1526976323.18877.47.camel@mtkswgap22> References: <1d6097f538b3182b2876ad48225ecd6e2d1b128c.1526374087.git.sean.wang@mediatek.com> <920B3BE9-3FE8-4AC6-8C5F-63B0E00182AC@holtmann.org> <1526976323.18877.47.camel@mtkswgap22> Content-Type: multipart/mixed; boundary="=-JSBWckcOte03YOpWJ8HM" MIME-Version: 1.0 List-ID: --=-JSBWckcOte03YOpWJ8HM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Tue, 2018-05-22 at 16:05 +0800, Sean Wang wrote: > 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 > Hi, Marcel Attached trace.log was captured when I inputted commands power on and then off in bluetoothctl. Sean > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek --=-JSBWckcOte03YOpWJ8HM Content-Disposition: attachment; filename="trace.log" Content-Type: text/x-log; name="trace.log"; charset="UTF-8" Content-Transfer-Encoding: base64 YnRzbm9vcAAAAAABAA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