Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp780993imm; Wed, 23 May 2018 05:33:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqJFjOmFNZCw7WRaEN4SbH3vEerYXxyRcTHsA9bx/z4+fdOaI/4qmMNbsy45EVZY+P6o+kG X-Received: by 2002:a17:902:8c95:: with SMTP id t21-v6mr2769057plo.306.1527078802745; Wed, 23 May 2018 05:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527078802; cv=none; d=google.com; s=arc-20160816; b=xIkGVEmp6smp+pmWkGCZvEsuNjZWkGtR+mn64b+etJRqztZYFblpun0FITX4iy1Gbs M8biB4Vv3qIARQjWlef7kvU5BPPjMfhVKl9wkqgH9p/38Zulbl2RRQDVLD1wljcTjQ2h JdWO/FO5d3QtDvP05rKXF5W8P5/Y4nYZCMH/kv1Zp7NaDow5ibIURE6KOsWQ40h/Wgub EWho2Gu49ZBD3ITLX0+w49Yve7GpEKUMpf1r64+05kvpFWlrDGrtaTzqx4mGKA6MkAJo a1Mrl6EGJtYFUXTgChXacG3dNtXoT9b9VyjbqgwC0SyKTaLCAk6QwQkeyTuVqAVD5LDt aYRg== 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:arc-authentication-results; bh=tWs/Jw5Ek38ILiY5mVcThd3ymykgE/TFvPQPoEsxuxA=; b=ESgC0nkjSAXfRREB65mhvzzzrRmozEeR9PUaibxNVPqt6He1XMFz+kWofeWyvaBPH8 O4jsUTUBy3p/dVSo0nMBXeHAm4p9sdzuI9zxQqX/4Dah7gAn5tm/6JkhWhKpIlA6pAPs r1MtbDO3+Y7v5FqTQ8guUgnJhrzUDuuCH2IWFL2kehLLjoKrN3G0D/wJnPwd66BeZZDF rweXrWNKp24NpTiogjtWdjzeJEI1E5X4A4YIyfnG4pEEO0n8q2kfq/uB/TZVY8RYW2Xu vTuwjB5qbWO9gyja4MVZKz7wIRAZ4cqwPw0f0KiDUj/EEA9J91Z6BwICQnC5EX16tdFV 08OQ== 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 u6-v6si17839465pld.74.2018.05.23.05.33.07; Wed, 23 May 2018 05:33:22 -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 S932772AbeEWMbh convert rfc822-to-8bit (ORCPT + 99 others); Wed, 23 May 2018 08:31:37 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:47700 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932081AbeEWMbe (ORCPT ); Wed, 23 May 2018 08:31:34 -0400 Received: from marcel-macpro.fritz.box (p5B3D2CDF.dip0.t-ipconnect.de [91.61.44.223]) by mail.holtmann.org (Postfix) with ESMTPSA id 2C9C9CF2A1; Wed, 23 May 2018 14:38:07 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings From: Marcel Holtmann In-Reply-To: <1527057423.4607.3.camel@mtkswgap22> Date: Wed, 23 May 2018 14:31:30 +0200 Cc: Mark Rutland , devicetree , Johan Hedberg , LKML , BlueZ development , Rob Herring , linux-mediatek@lists.infradead.org, linux-arm-kernel Content-Transfer-Encoding: 8BIT Message-Id: References: <1d6097f538b3182b2876ad48225ecd6e2d1b128c.1526374087.git.sean.wang@mediatek.com> <920B3BE9-3FE8-4AC6-8C5F-63B0E00182AC@holtmann.org> <1526976323.18877.47.camel@mtkswgap22> <1527057423.4607.3.camel@mtkswgap22> To: Sean Wang X-Mailer: Apple Mail (2.3445.6.18) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >> > > > Attached trace.log was captured when I inputted commands power on and > then off in bluetoothctl. the trace.log is somehow mangled. Something is not fully correct. Can you read it with btmon -r trace.log? Regards Marcel