Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5494559pxb; Wed, 26 Jan 2022 13:22:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7WlbQ4Kvy17iPaURJPDxwdrvbug6wBHXod7fQAxmhp/7MFEkRDefNb6qmRjAgNzuIvRnr X-Received: by 2002:a17:90b:4f4c:: with SMTP id pj12mr10663503pjb.102.1643232143306; Wed, 26 Jan 2022 13:22:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643232143; cv=none; d=google.com; s=arc-20160816; b=T6HMZthqNX0DYcik0Wjz2AlTCSSrNvTaC53kGo7I+rpnz6CIH7EzunVX8XMZM3V38D 6OxA4NrfqhVsvVq0BmXQXHx8TOy2BzzEH8ylsq1BtlBNfsG80/2rrm4owYg/y1zS23Ze 7fnY9tRUj79CYTbgtkx0QfpNtCXCSYxZXXAdw6djJ5eFtTuMtEsLbWlaLDBrd8ShAlVW 1cS0pKkf71G0RuiVzMvkLlFSBXOQobHG3lKbqFoltJUqoD9R3ZGaQy/3csNOdgnZkXvz AUY/1/uQ5kxEJHOS6ReLdvx18OzabPWWKKAUJRqBOBUUCb5fRg/fsyZHVyA4UpWrYlQn 3unw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=QUzVbCvfNWCTXFQi9z1fUAQu9SqNiHrQ+Jmy5f0pVlk=; b=aewdOV+19GPtNVAWw8diVfmtbxbqLbOSEFqOaJgADVvTIxMoJlO7dKvisiBDhHhJPW pFL9F6Nci4coQbovr0u13qRD2TkWJqEY4d0sG/ewUnonyiIo241sK1CiS4qLNmstgXy4 3cDGbSmL8xHmZr/8x2AY2rPeD58O847AV3dgRphXyT6e5KCVDsIN+z4+/l2DVJleOlP7 o1B4QW5PE57NToxKhCXFZBSc7Gt6NOLaZzk7cr2RlOgR8UxsekKznJkTcdX1ajCfNnfb YpakDIFo4xHWCBgGqjmJZnM73QEdE2W/9FSs+2MeUwCgwAdSAjz3/DC09misWmUqBzHl dtSg== 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 u16si232163plg.368.2022.01.26.13.22.11; Wed, 26 Jan 2022 13:22:23 -0800 (PST) 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 S240233AbiAZNkl (ORCPT + 99 others); Wed, 26 Jan 2022 08:40:41 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:60769 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231530AbiAZNkl (ORCPT ); Wed, 26 Jan 2022 08:40:41 -0500 Received: from smtpclient.apple (p4ff9fc34.dip0.t-ipconnect.de [79.249.252.52]) by mail.holtmann.org (Postfix) with ESMTPSA id 9D2BECED06; Wed, 26 Jan 2022 14:40:39 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Subject: Re: [PATCH v7 0/2] Bluetooth: hci_h5: btrtl: Add support for RTL8822CS hci_ver 0x08 From: Marcel Holtmann In-Reply-To: <20220126073905.3637841-1-adeep@lexina.in> Date: Wed, 26 Jan 2022 14:40:38 +0100 Cc: Johan Hedberg , Luiz Augusto von Dentz , BlueZ , LKML , Rudi Heitbaum Content-Transfer-Encoding: 7bit Message-Id: <9CE136E5-3BEC-42CB-8A19-644E2B4D0D10@holtmann.org> References: <20220126073905.3637841-1-adeep@lexina.in> To: Vyacheslav Bocharov X-Mailer: Apple Mail (2.3693.40.0.1.81) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vyacheslav, > Add a variation of RTL8822CS with hci_ver = 0x08. This is fully similar > to RTL8822CS with hci_ver = 0x0a observed on the Tanix TX6 Android set-top > box and JetHome JetHub H1. > > While testing the RTL8822CS SDIO WiFi/BT adapter, I found that in some > cases the kernel could not initialize it. However, manually resetting the > adapter via gpio allows it to start correctly. > Apparently at system start the adapter is in an undefined state (including > the unknown state of gpio after starting uboot). A forced reset helps to > initialize the adapter in most cases. Experimentally it was found that > 100ms is enough to reset. > So, add power reset via enable-gpios in h5_btrtl_open function. > > Changes from v6..v4: > - fix patch description > Changes from v3: > - add has_msft_ext option > Changes from v2: > - align the patches for bluetooth-next > Changes from v1: > - remove Signed-off-by chbgdn as not reachable > > Vyacheslav Bocharov (2): > Bluetooth: btrtl: Add support for RTL8822C hci_ver 0x08 > Bluetooth: hci_h5: Add power reset via gpio in h5_btrtl_open > > drivers/bluetooth/btrtl.c | 8 ++++++++ > drivers/bluetooth/hci_h5.c | 5 +++++ > 2 files changed, 13 insertions(+) both patches have been applied to bluetooth-next tree. Regards Marcel