Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1605971ybh; Fri, 13 Mar 2020 04:18:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuoV6feHPKJkf/dl9Z1YxkJmEAeAPp8pHGAu7IbpuBBw0v+QODp93QxkasLhg+GCkX/7CWB X-Received: by 2002:a54:440e:: with SMTP id k14mr6372295oiw.76.1584098319863; Fri, 13 Mar 2020 04:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584098319; cv=none; d=google.com; s=arc-20160816; b=fGtrclhxlb9JrwIYLNNje0w4owT0hG0FsU73DraBDDaf+PU+sHP/bk47IHAWZOJxzx 8Ls+I0WBshY8b+pPorQzr2jxRkhvyVav6/gsBjYegO1wYpUIJHjHEk32+zhFZKOivIR4 RRDHh27suQ+ddNjj2yRmDTcWITDlKjd+bNcx3X7bGTrLtsA5SamPu4g6KiWmedrrGjeu sC/VMEbpx4NQcA4shITMGtm8UBLVLl8cdj+uFW4hFFHov/lLkwSZfT3H0TIr2cnxEXnA jXoJZZ0oWKq8qb1Lbr7EX8QNi7OKIgmhsEMSCSlhZzenALTf3JN2A9yJQ4gCV583IQeQ mFCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature; bh=Xc4FB3oznvugEjbpM7jT0IwIOwJrVRzNrb8L75b626k=; b=a3gxeIa1eMfwCi7CUC885YZo57vYmywKKHQrHTmeOiG9MBDi53vaJfRBtr7SnyCauE 6dacvuhd6i8ncKz1YH53JVbAN2hvkMPx09GHNhYrwanhqW+f9fSAc3/kOu4kL/yhufPV QuS/vxagEQcSaqsO0K51R3zEX05uj3ulrYFop9EuDLtQwRJyzKHWUScT4/2yfOmCNR3r dsmghkeQbnOm+wzeokadKrixHHTpiR4k6V96iKf+4ht9sdu/C/MlDNyRWZROlo7JRmoB wKWc3uVCw9s28wyjR7W7jp1BJjrM6otfjy1sIjrdp+yekBgKBNJGTyOBv/jzUnZzoMto U0Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=FmVcnmAu; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 x16si4128970otp.180.2020.03.13.04.18.27; Fri, 13 Mar 2020 04:18:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=FmVcnmAu; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726504AbgCMLR2 (ORCPT + 99 others); Fri, 13 Mar 2020 07:17:28 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:32823 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726464AbgCMLR1 (ORCPT ); Fri, 13 Mar 2020 07:17:27 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1584098247; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=Xc4FB3oznvugEjbpM7jT0IwIOwJrVRzNrb8L75b626k=; b=FmVcnmAus4M/HCGaitjtTIh1d4FjnmxoT60taDJNV+ThIQYjTDEU4q4zDO1/yHN00xQ10T6g //pysHI4W4GGg6YWjHbZOUVk3TK8vdagrw1sH0dm7PwGFBFKPm73ZpytF5z3VP+gGWs8XxrV EzogiaLjUAeGKshl9a2yZndFHdI= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e6b6bbb.7f8aca725810-smtp-out-n01; Fri, 13 Mar 2020 11:17:15 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 44A4CC432C2; Fri, 13 Mar 2020 11:17:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8D55EC433D2; Fri, 13 Mar 2020 11:17:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8D55EC433D2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Tony Chuang Cc: "linux-wireless\@vger.kernel.org" , "briannorris\@chromium.org" , Arend Van Spriel , Johannes Berg , "tamizhr\@codeaurora.org" Subject: Re: [PATCH v2 2/2] rtw88: add a debugfs entry to enable/disable coex mechanism References: <20200309075852.11454-1-yhchuang@realtek.com> <20200309075852.11454-3-yhchuang@realtek.com> <877dzpu2lt.fsf@tynnyri.adurom.net> <33d4904b71a04ed8b0226ce07b037e05@realtek.com> Date: Fri, 13 Mar 2020 13:17:09 +0200 In-Reply-To: <33d4904b71a04ed8b0226ce07b037e05@realtek.com> (Tony Chuang's message of "Fri, 13 Mar 2020 02:23:38 +0000") Message-ID: <87a74ko66i.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Tony Chuang writes: > Kalle Valo : > >> writes: >> >> > From: Yan-Hsuan Chuang >> > >> > Sometimes we need to stop the coex mechanism to debug, so that we >> > can manually control the device through various outer commands. >> > Hence, add a new debugfs coex_enable to allow us to enable/disable >> > the coex mechanism when driver is running. >> > >> > To disable coex >> > echo 0 > /sys/kernel/debug/ieee80211/phyX/rtw88/coex_enable >> > >> > To enable coex >> > echo 1 > /sys/kernel/debug/ieee80211/phyX/rtw88/coex_enable >> > >> > To check coex dm is enabled or not >> > cat /sys/kernel/debug/ieee80211/phyX/rtw88/coex_enable >> >> I forgot, did we add a command to nl80211 for managing btcoex? At least >> we have talking about that for years. Please check that first before >> adding a debugfs interface for this. >> > > Yes, I found there was a thread [1] talking about adding a callback to > enable/disable btcoex, but it seems not get applied eventually. Too bad, I really think we should have at least enable/disable functionality in nl80211. But if it's not there, I guess it's ok to have yet another driver custom debugfs file :/ > And there's another thread [2] talking about add a btcoex subsystem. > But seems like nobody can implement it cleanly in the host. > > I think adding btcoex subsystem could have a lot of pain since each > vendor is using different mechanism controlling the btcoex, and it > usually comes with RF related design which is difficult to write a common > function to deal with all kinds of them. Yeah, btcoex subsystem is a big challenge. -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches