Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2465427ybl; Mon, 19 Aug 2019 02:29:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+n7V9yNeq4OVDHPgn40ZNltfhA7RCVRWkXGriUT+3decIxGVvNwAIO8pLqldoNYaUQYhj X-Received: by 2002:aa7:8808:: with SMTP id c8mr18286479pfo.67.1566206979426; Mon, 19 Aug 2019 02:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566206979; cv=none; d=google.com; s=arc-20160816; b=S3VlqHOojKNJt1ULPw6/RPo0FLwnxRzrzgQAJSSer0V0DgRYVB4s8jEoiGrn/4avUd +XYy42xUpvbRjNwGdX821K9gPPh9slrnSYc+K//OPYA8cieND3hVLH0drb4+qTgWz/1N 069s72vZn+VUZAuP13BKzPAwhLtEOe2x6XEdnsgn4nJT0j+b+gEOT3nYhjEftNBU0SgS o+V4lSgG7wt5pzceQe8Xa5ZN21uaQBceyjjnAc2hVlt2YSQExQuWvXMHhVfOdz8p6E7E ITUD7z7vWpmbbmlGtGldb5QkKBXjvr6tdV9Bp89w1VYYj3xecIVF711W0sONhaq4zCN4 l9oQ== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=G1tp0fa4RbgD5sMqc81Ia0TfYLpytrGwsEYOdgrFbpQ=; b=kI4LoO9L86Ezp+lC1DDJJoqlsImd2r1gNQO91Jo0li0FO/IyCFR+2cXKzKAhyPYkfj Thvwr5Bx5gnT0GmqzFkY2p6vqmv3EmQNogCJos3tSiwa///mA4txAkulCsJl1SrUH7GM UJe1k2HXGyaSnFws0MdAEN+pwE25rJcE6rmPA7/Deaf2ABs5rb7B2j6H+BweqKOF42NR 57DQFPsVPm1PxNDS7DO0Ra18EhSmS+fyPIZ1TwT+lx9FkARG/hjUKV1GqKdbwq2DNWfs QRNutQIZWWufUUdeMmDyB/sASvqBIZqMvujwmOc5I/ZHe6yqoIIgBy+FXBwda5Fmn1eP RdpA== 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 v10si9450959plo.384.2019.08.19.02.29.11; Mon, 19 Aug 2019 02:29:39 -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 S1726594AbfHSJ3J convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Aug 2019 05:29:09 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:57304 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfHSJ3I (ORCPT ); Mon, 19 Aug 2019 05:29:08 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x7J9SqYH003436, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCAS12.realtek.com.tw[172.21.6.16]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x7J9SqYH003436 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 19 Aug 2019 17:28:52 +0800 Received: from RTITMBSVM03.realtek.com.tw ([fe80::e1fe:b2c1:57ec:f8e1]) by RTITCAS12.realtek.com.tw ([::1]) with mapi id 14.03.0439.000; Mon, 19 Aug 2019 17:28:52 +0800 From: Max Chou To: Marcel Holtmann , alex_lu CC: Johan Hedberg , "linux-bluetooth@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v3] Bluetooth: btusb: Fix suspend issue for Realtek devices Thread-Topic: [PATCH v3] Bluetooth: btusb: Fix suspend issue for Realtek devices Thread-Index: AQHVUpgkG6pBoXbbekKNiT4P/vBZNKb6JA4AgAgVjHA= Date: Mon, 19 Aug 2019 09:28:50 +0000 Message-ID: <805C62CFCC3D8947A436168B9486C77DEE396F3E@RTITMBSVM03.realtek.com.tw> References: <20190814120252.GA4572@toshiba> In-Reply-To: Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.83.214] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Dear Kernel Maintainer Marcel, Sorry for the inconvenience. For the original target, this patch is edited for low power consumption hence controller should not receive DEVICE_REMOTE_WAKE_UP that it's able to save power in suspend mode because BT wake-up function is disabled. In upstream driver, there should be higher priority for function rather than performance. In other words, this patch can meet the low power consumption in suspend mode but will lose BT wake-up function. It is not a good idea for that. Please help to revert this modification. Thank you. BRs, Max -----Original Message----- From: Marcel Holtmann Sent: Wednesday, August 14, 2019 9:54 PM To: alex_lu Cc: Johan Hedberg ; linux-bluetooth@vger.kernel.org; linux-kernel@vger.kernel.org; Max Chou Subject: Re: [PATCH v3] Bluetooth: btusb: Fix suspend issue for Realtek devices Hi Alex, > From the perspective of controller, global suspend means there is no > SET_FEATURE (DEVICE_REMOTE_WAKEUP) and controller would drop the > firmware. It would consume less power. So we should not send this kind > of SET_FEATURE when host goes to suspend state. > Otherwise, when making device enter selective suspend, host should > send SET_FEATURE to make sure the firmware remains. > > Signed-off-by: Alex Lu > --- > Changes in v3: > - Change to fit for bluetooth-next > Changes in v2: > - Change flag to be more descriptive > - Delete pointless #ifdef CONFIG_BT_HCIBTUSB_RTL and #endif > > drivers/bluetooth/btusb.c | 34 ++++++++++++++++++++++++++++++---- > 1 file changed, 30 insertions(+), 4 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel ------Please consider the environment before printing this e-mail.