Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1021522pxy; Thu, 22 Apr 2021 20:53:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOIm9WjqMsHtZpAdRg7aVTboWODL+i7rtQXXj2ld4Td549bFsp/G0ez8imle1xvkzo1ujd X-Received: by 2002:a05:6a00:2ad:b029:262:2f1e:71b with SMTP id q13-20020a056a0002adb02902622f1e071bmr1938253pfs.28.1619150017939; Thu, 22 Apr 2021 20:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619150017; cv=none; d=google.com; s=arc-20160816; b=svJqEU7aGDIllvg+0mGTDogDFQimXXYv6W09shH2afUhLG4mHVV8eQ8HXpoSJCGhMt Lt4DmxtYV0iPIcigCvMKMsvVdpy+oqtQWbZaoKPls+CVpBr/iPgM1qYKyBYRxOxh6hwr 9RevmpIiILuKYnHxJG4jQ8TzGrGPv8Y4qqhm7rNYOkl79mo5NOqIszlgdETkdw11odi0 DtjEfK5YznDJbkAcVmCY4Ksrs+k86jM7qXMDsZXgCdMEeSnl4xBzxLVIMLAIU/T/fIRs 7JBcBfygKYAwd9HZxMV99MKnSo8GItUwMRp9MJjanu5tXbrOJSatIrLwz1Qoepia4IZn UM+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :authenticated-by; bh=lHR9v2u2KHPrrs2YbMZWtY00LcHkHonLSpiDQnY4NMY=; b=isgMcxGc3bQH4xoSVvhnL42in1t/CYvSDJYwuvgB8rOLkU9uAV3qg7aD5e6Fp+i9Jm ijiIx/S/EkNVCqF4BcLKXKMZXXWi3KBlyvZ5q5ssC7trq4ZfwFn4VrSdh85dNyh3Qg6A qRYwLzWk1ymApLbfEAj7ozKzYTjv3M4SAnkyZm45bQUuVTBmFzFrGyOrzDfvI1vu98p5 7mjwMUPfN1tpfkypOPYiHk1rC/kA843dupEtBoc9hmLf9UnIEXHAK2k3VScgoW/DaO1Z TYu3tbX+3rgOAtIP3oB78tDs4yhSXFJ4EoAfm6T3B1G+yo8qdh/xgMXX03KEnhHRCy7U 7CLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w71si5879407pff.96.2021.04.22.20.53.24; Thu, 22 Apr 2021 20:53:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240292AbhDWDxZ (ORCPT + 99 others); Thu, 22 Apr 2021 23:53:25 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:41283 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240195AbhDWDxY (ORCPT ); Thu, 22 Apr 2021 23:53:24 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 13N3qdS53021899, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36502.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.71/5.88) with ESMTPS id 13N3qdS53021899 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 23 Apr 2021 11:52:39 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36502.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 23 Apr 2021 11:52:38 +0800 Received: from localhost.localdomain (172.21.132.99) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 23 Apr 2021 11:52:37 +0800 From: To: CC: , , , , , , , , Subject: [PATCH v3 0/2] Bluetooth hci_h5 btrtl Add flag for keep power in suspend/resume Date: Fri, 23 Apr 2021 11:52:27 +0800 Message-ID: <20210423035229.27513-1-hildawu@realtek.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.132.99] X-ClientProxiedBy: RTEXMBS01.realtek.com.tw (172.21.6.94) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIxLzQvMjMgpFekyCAwMToxMjowMA==?= X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-AntiSpam-Outbound-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 04/23/2021 03:40:47 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 10 X-KSE-AntiSpam-Info: Lua profiles 163299 [Apr 22 2021] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: hildawu@realtek.com X-KSE-AntiSpam-Info: LuaCore: 443 443 d64ad0ad6f66abd85f8fb55fe5d831fdcc4c44a0 X-KSE-AntiSpam-Info: {Prob_from_in_msgid} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;realtek.com:7.1.1;127.0.0.199:7.1.2 X-KSE-AntiSpam-Info: {Track_Chinese_Simplified, headers_charset} X-KSE-AntiSpam-Info: Rate: 10 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 04/23/2021 03:44:00 X-KSE-ServerInfo: RTEXH36502.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-AntiSpam-Outbound-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 04/23/2021 03:40:47 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 10 X-KSE-AntiSpam-Info: Lua profiles 163299 [Apr 22 2021] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: hildawu@realtek.com X-KSE-AntiSpam-Info: LuaCore: 443 443 d64ad0ad6f66abd85f8fb55fe5d831fdcc4c44a0 X-KSE-AntiSpam-Info: {Prob_from_in_msgid} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;realtek.com:7.1.1 X-KSE-AntiSpam-Info: Rate: 10 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 04/23/2021 03:44:00 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: hildawu Hello! This v3 series is for support Host can be wakeup and device no need power down and no need re-dowload fw. Supported this feature chips RTL8822C/RTL8852A include UART interface. Avoid re-define related information. So move shared structure info the btrtl.h. The patch 1 is adjust the position of strcut definition for btrtl and hci_h5. The purpose for avoid re-defining chip features in btrtl with USB and UART devices. Let UART devices (hci_h5) can get relevant information too. That can be easily managed feature of chips. The patch 2 is support for Host can received BT device signal then wake Host up. So this patch, add a flag for these devices didnot power off and didnot re-download patch during suspend and resume. version 3 changes - Reworked to use UART flag, refer to Maintainer's suggestion. - Split into two patches for different purpose. version 2 changes - Add the missing struct member - Modify title length Thanks. Hilda hildawu (2): Bluetooth: btrtl: Adjust the position of strcut definition Bluetooth: hci_h5: Add flag for keep power during suspend/resume drivers/bluetooth/btrtl.c | 36 ----------------------------------- drivers/bluetooth/btrtl.h | 36 ++++++++++++++++++++++++++++++++++- drivers/bluetooth/hci_h5.c | 34 +++++++++++++++++++++++---------- drivers/bluetooth/hci_ldisc.c | 3 ++- drivers/bluetooth/hci_uart.h | 1 + 5 files changed, 62 insertions(+), 48 deletions(-) -- 2.17.1