Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2641055pxb; Mon, 31 Jan 2022 00:34:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUNnqGy89VzKx+KD3afBTJPKuWS96WVm3yGwnN+tu94l2Yfx6GYo7pU2d38wnQ6nLACcU0 X-Received: by 2002:a17:907:2ce6:: with SMTP id hz6mr16136576ejc.89.1643618071710; Mon, 31 Jan 2022 00:34:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643618071; cv=none; d=google.com; s=arc-20160816; b=Mp4qxrp9Zcq0altwf4hc/pS6+rumzlummb5oaA+rkNZHELJjoulmq7H/wJ/Z/n4xyf otan1dFSQs1Iwo1lA1FyoyKY03EEbJooRKdNUKgw3C+60rl1tHHzG9jGAtWrzlYOfogk LilSYApvYbkhDFAt0He3Aqy8PeYcbaDHm2EwDQ5nJmrvBE9R4WVG0E61yztBoqCX8PFg aao/gDb78IN83Cm3BQHPm/m1oOU93Wqs2RaNhaNonpzfr9NolSoFt7wwAHXD42mMNj7D 4GJZKIKLQzpj8Uc8pRJlyAW0mOZy1JrrA/aLkVT08OfvSghcqJDT4WBkPHbG4ExmPQsT R3xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MuWXa/dKeqGYD0Uv835NnGzX3ZFfUYNI8MH1vd0SUz0=; b=Ek6LaDCjxo2C+obR9dI0o8Jqol7xqSR0+sjJrPQXWtz5lln7BO4/N7rAvte0qSkmzQ /AJD6f973wg12L5HknwgxQPBrjQzLpMmBRc2x1Cgeoh0JeZF23z+WChCgkeB4Z/Lefyc u6aYc2aUJ+HRIl+9Lhja5sxPtV0OhoBmj7HjrVVdQkXGMNpzsLdu2B1e45Zf1PNkXBqQ tqNETDqEo/4YaYZtiLx7Z6enDYbPfUFSq5I09wrodSkNxCIRvm6iNVIRnGCiK4VCMA62 QSKWJX89Oipy0hGf9L7XuWpXNzc/UzqAs3E7jpzscaSrby5mO/v1Ow6N2EceFzlMbbzK oTVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@heitbaum.com header.s=google header.b=EJpUCkcd; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 i1si7690731ejy.824.2022.01.31.00.33.48; Mon, 31 Jan 2022 00:34:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@heitbaum.com header.s=google header.b=EJpUCkcd; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231689AbiA1LYl (ORCPT + 99 others); Fri, 28 Jan 2022 06:24:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232031AbiA1LYk (ORCPT ); Fri, 28 Jan 2022 06:24:40 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A03F2C06173B for ; Fri, 28 Jan 2022 03:24:40 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id s61-20020a17090a69c300b001b4d0427ea2so10671893pjj.4 for ; Fri, 28 Jan 2022 03:24:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heitbaum.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=MuWXa/dKeqGYD0Uv835NnGzX3ZFfUYNI8MH1vd0SUz0=; b=EJpUCkcd+r5r2AiIM2NRsEH+zuMJdDorQZuoPjgBDWTHW+XGXvJZMzc5c236FdkISz 8FzYgvJTwBNOzbhdM0BUdIA2+CHiybdOYb5+u3g+9/kbf+S8j4EXLgg2T6N/02vVEnkA vBgXQVLIGTGm/g7tRFDYxyssWdda+DP/I15PI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MuWXa/dKeqGYD0Uv835NnGzX3ZFfUYNI8MH1vd0SUz0=; b=Dxl4FX3MYF/oeRVH6s1bIBNTnkqky6jJdjuzlgV/SLgEz44/boKFVphzAHZ+sKTijT Q7bMGZ+ww51jg+efqegWFDmpqIS+cy9tyLEONTnHKf4awnyAD6F3nbZ4Boa1p7K+pwy5 eMujh+rk4V9ixUShZEeafycjKy8nN2msfnoieQ8W6fAEP1x3AxHoGqfUd1Dt5PuW7Ivl 0q272t4+5pmVpv74hvXjdvJeL56+GQpPYaWzG1sdRhNBN2edCpbIdD0il2z8f/SS94t0 5j00RpVM8B4LTMOqTLW9qkR3Us860NL7i89LTCO+51o951QcTUwEp+82VeNsJnpdH+Aj TzUQ== X-Gm-Message-State: AOAM531NLlJxxuVMwDCNiiEoIev/sKkqEmKmnQPhknf+6uZfu0tQOnMl A5TudUMgNUvAUPRoL4dlo6eWcg== X-Received: by 2002:a17:90b:4f49:: with SMTP id pj9mr19168988pjb.211.1643369080062; Fri, 28 Jan 2022 03:24:40 -0800 (PST) Received: from adf6a34bf206 ([203.221.136.13]) by smtp.gmail.com with ESMTPSA id k12sm9394044pfc.107.2022.01.28.03.24.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 03:24:39 -0800 (PST) Date: Fri, 28 Jan 2022 11:24:32 +0000 From: Rudi Heitbaum To: Marcel Holtmann Cc: Vyacheslav Bocharov , Johan Hedberg , Luiz Augusto von Dentz , BlueZ , LKML Subject: Re: [PATCH v7 0/2] Bluetooth: hci_h5: btrtl: Add support for RTL8822CS hci_ver 0x08 Message-ID: <20220128112432.GA28@adf6a34bf206> References: <20220126073905.3637841-1-adeep@lexina.in> <9CE136E5-3BEC-42CB-8A19-644E2B4D0D10@holtmann.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9CE136E5-3BEC-42CB-8A19-644E2B4D0D10@holtmann.org> Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Wed, Jan 26, 2022 at 02:40:38PM +0100, Marcel Holtmann wrote: > 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. Thanks Marcel and Vyacheslav > Regards > > Marcel >