Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7336777ybl; Tue, 24 Dec 2019 00:17:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzTGMxpqscLwp7rBHWfofNp5ju1VIX/qfRVgwjMfQ2WssI5h39X4IlT5Gb0YM2kqL7haApE X-Received: by 2002:a9d:7ad9:: with SMTP id m25mr35268038otn.13.1577175438824; Tue, 24 Dec 2019 00:17:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577175438; cv=none; d=google.com; s=arc-20160816; b=vvhZqmXHP0DxverK3293BGH98fqpUJj+natyD10Mqu+9u+vdRM97P21ENJOclAlV1j vNFyLcT0kfYR3SmjLbyKSA8OvSgbIUOvcgGQHWUtlJAh4+f8SwLBMJ7djELkfKZPt8IH VWyzh0bG3kmQs+6VBOWdnN6rWoI1sz4xZb27j5GSfMhbEA3zK3hTaQx4pkk+uDyWUebk m132o9BKZ9CYny/pUMZ+ty2ozYJXkKEW5jzQjAzp0XKgFilYr/jMrliRwNYN4mT382zN 2QPXjul0krWkUyjIybXD3YQlCRSgZ6qruLREuIWRUcbI3tkoAVIlCKJOYks9+Ht12zFm 5gUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=65owg5tS9EjyjBHFZZMLtS7eIG4lkQn3GdrTFT0y6GY=; b=ZaLrHRFblXhbrjozCmKqcYYs7QaA5ZtiZx1/jW2xwI7uGZhotUFFcLdqz1c6YzuGQO NmaKQv3Tqc28veFnU4jV5WECwCybqiq217axtbwZcKBoo12fg8gK+6DLnZSIX6ipsjAk D0wIgZKXAxizn9Upkw8Xqoz93mmk8cuHnQgHJMd+wZaYYVqJpk0GgKApsf/lbZJZKEsq zmiT4gueZ46tg/vyjGTagEaWsgGeC/olxoIa3Bhy5dtrSOcPgR/gqt/FL08S5YFcvHgA GtPcdsM3Mu+8yZbsFHQuNB6H5z+nIunT5KSlNBGG6hY/c/NooJTJDZ9LY968Y4TDowwt /amw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=queP6YwX; 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 t20si2099235oth.311.2019.12.24.00.16.58; Tue, 24 Dec 2019 00:17:18 -0800 (PST) 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=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=queP6YwX; 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 S1726284AbfLXIQQ (ORCPT + 99 others); Tue, 24 Dec 2019 03:16:16 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:33069 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbfLXIQQ (ORCPT ); Tue, 24 Dec 2019 03:16:16 -0500 Received: by mail-ot1-f68.google.com with SMTP id b18so3661251otp.0 for ; Tue, 24 Dec 2019 00:16:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=65owg5tS9EjyjBHFZZMLtS7eIG4lkQn3GdrTFT0y6GY=; b=queP6YwX7qd1b62fWy5ua6Etvp5mKgYeuMifv0Ya7LA/JQXEf4eIS41ZGTKZsRPcH+ RFyq1V/aNBAjvxkcqC6Jl+Lngi9Cq9KflXs2/X1/qTgBPe6b3ZZJSf5bqZYHOVSyc3pv HIwLHiRKX9UL2fOFoSlSmP3W7HFkU4byhvEO+KU0ISrO3Ic1arSuYdFjkBfyvirYJ3Pe 8XNYiHTnd88kcyxA76AAro3WOTaGpjiTSVI5MrCkFZrrhE61OQw0hDTZTXlMwf5PHO9X hem1QrRUg8rrLLtbBxL04yA57zNggCTJCyjGUHKeMz3V98YWwpVJBUfUhtBmv+W6aICm Y+Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=65owg5tS9EjyjBHFZZMLtS7eIG4lkQn3GdrTFT0y6GY=; b=ZZKHevyRueHwM9Q4oWOWiSG4btkeiNq0i+20lf8y/xEXzafdNPhh7hPfLEZ16bK20A lTeMvGCbhsY1A2BPC2/7Qy4meKYJzGhHFPEuWeyY1/DAYXnu+nVZtUtaILCTzbxiR5wH fyO14ozJLcHT4i3X5FhM/rpJfrsF2PmJAaHWpu2uqkr95otfMXOFLzCNnpxmeMkONdoy 8HS44WX7nDrSKtg8KatWzCUU+ToJIn9bUfUCZSRU6hT5j80tlVfG42O8usvEGwCu1BVt zREkYto1IGssR4Wpf1dJBKydknZ5jjcTrT6ee4pIMed0eMDNLmynbHp8bldMTeD7cZ/k B34A== X-Gm-Message-State: APjAAAXutvGVqnWnBocdj+GVIaX4aMRjSIqRj3jHGbRybLNyNvTpKOKG UnD9/oKYrB3Sl4yGyBI0zOEeC07RESj3Nep1gyuleQ== X-Received: by 2002:a9d:774e:: with SMTP id t14mr36664193otl.358.1577175375116; Tue, 24 Dec 2019 00:16:15 -0800 (PST) MIME-Version: 1.0 References: <20191220092156.13443-1-yhchuang@realtek.com> <20191220092156.13443-6-yhchuang@realtek.com> <2fefc26a026f47f1a34b2592040da1ec@realtek.com> In-Reply-To: <2fefc26a026f47f1a34b2592040da1ec@realtek.com> From: Chris Chiu Date: Tue, 24 Dec 2019 16:17:47 +0800 Message-ID: Subject: Re: [PATCH 05/11] rtw88: 8822c: modify rf protection setting To: Tony Chuang Cc: Kalle Valo , linux-wireless , Brian Norris Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Dec 24, 2019 at 3:50 PM Tony Chuang wrote: > > > On Fri, Dec 20, 2019 at 5:22 PM wrote: > > > > > > From: Chien-Hsun Liao > > > > > > According to some experiments, the original rf protection > > > setting can not perfectly make sure that there is no hardware > > > pi write during the direct write. So, modify the setting so > > > that the hardware block of pi would be turned off during the > > > direct write. > > > > > > > Sorry, I don't really understand this part. Does it mean rtw8822c_rstb_3wire() > > is to disable/enable the hardware block of PI? In this patch, I can only > > see the code block of ENABLE_PI/DISABLE_PI been removed and some > > rtw_write_rf()s been protected by new rtw8822c_rstb_3wire(). If the new > > function is to replace the ENABLE_PI/DISABLE_PI, maybe they should be > > removed in the reg.h. And It seems rtw8822c_rstb_3wire() is only for 8822c, > > means there's no such problem for 8822b? > > > > Yes, rtw8822c_rstb_3wire() is to disable/enable PI. Only 8822c uses mix mode. > That means, 8822c uses direct write for RF registers except for register 0x0. > And 8822b uses sipi write (indirect). So 8822b doesn't have such problem. > > Yan-Hsuan Got it. Could you also explain this in the commit message so that we won't misread the code? Thanks. Chris