Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4612008pxj; Tue, 22 Jun 2021 04:20:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHLANg2S8AMAI3La3SOrj2hl27INt91o7P/JDMEt3m0RS8y+d9i4RhgMmFdAa2vIHVWWFv X-Received: by 2002:a05:6402:1716:: with SMTP id y22mr4217715edu.237.1624360799935; Tue, 22 Jun 2021 04:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624360799; cv=none; d=google.com; s=arc-20160816; b=O59p+PtgD3+4hE6/BWa8wqLMh7YA0965a1bbNABlo5gch1uB8JkfzHu8JWMmrH+s5Y gKX7nrFbcrGy/TRt0omJoavarnAB4vWXn1ro8QpENwagWIz/Irt9SQssz3EV4+J0ilh1 oj5kHbySZjAOxVX5lbvv3m1KckHV1JS6uUx0VoyTDydQG76oq41Jl9JXIEzUzeIqZPhq yajgDDAkF+77vdGuG6kzAFBOASf+7ZTIN5zg5IZD9G+xlmPpVVXPDwzdpYyDoZqUDuWO Ju16o2rgu/V7uw/HUISqrzjJP1iKu0irHsIBHYQvrtqSpuREyvGXuCVu3d/zNa8v45i/ 9uWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=002w5D0lwhYSH2t/vQFvpXDZXSTcT1c6YHrb39gLjf4=; b=Yb6Z/FdOPi21U4NjA7iBWW8hcaSBXaJ5fjG+2ReqEbOQVfTabWyci2vJulGBO48j7o Ifck48YAd00SLX8Zgg2rJMmJ128z9Do5SOXUXZeQqeosAv11HY7mfKnKXeWsQUe4aDZQ CzYoMAHjPfRH9M5jhPf6cPYa/lr2gMI84TecQAx4t8r1/ztIOQFauFEbHQeQyeUDKxHd zedyWjQwV6TOCqWET9OxkM0CcNiBJ/tYrZWldoT8G23rW7QigSKIGj+AJsYeW7yIGNwD Vp0xv8G5A61EIv2DovIPEnrfbhzjqS+GUO1QshRtrlKuZT1uvSHOcS3UlhTYzDMIH4EP obug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="fJ1ySI0/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gv25si13643488ejc.161.2021.06.22.04.19.36; Tue, 22 Jun 2021 04:19:59 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="fJ1ySI0/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230222AbhFVLRV (ORCPT + 99 others); Tue, 22 Jun 2021 07:17:21 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:53574 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230137AbhFVLRU (ORCPT ); Tue, 22 Jun 2021 07:17:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624360504; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=002w5D0lwhYSH2t/vQFvpXDZXSTcT1c6YHrb39gLjf4=; b=fJ1ySI0/9RsGr7GJwBhRUMDRAnxsbJ0aFQvTfzrjgP0qguyNcWcYsUIIn1a9+1JaXfiBvq rGZ2CAym19IfKOfdUYyYjFS9YCRNHxSScZ+N6h3fhCnQ9ANncQtWRA5qdPJi7aN9E8F/lV Rh6aEd62OKVBr9D+aB3y70FWh2f6ECY= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-124-FFzaRjQEON601thF3ACaYQ-1; Tue, 22 Jun 2021 07:15:03 -0400 X-MC-Unique: FFzaRjQEON601thF3ACaYQ-1 Received: by mail-ej1-f72.google.com with SMTP id de48-20020a1709069bf0b029048ae3ebecabso3889419ejc.16 for ; Tue, 22 Jun 2021 04:15:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=002w5D0lwhYSH2t/vQFvpXDZXSTcT1c6YHrb39gLjf4=; b=D9H+59m6d2XKtq2JviuHSgMRK/AJiT6YXPk1xwqe5yspEyOAAOPYkAbkienam01k9A NrmH0yH4Kf0PxdN9KfB4XFXpo41JeubHOz9o9B8JhHJKDf2vsXoqqE9HguOl4A6/kyJy bUIbu2M+IYi8CrekqEI2MB+nW3h5WKDAd0H0Xr7TfBfx1ghXaZoArbfqvGsUOvhRcSJf C8pAd9ibdGZdhuTy0IN9z1hnLYm9Nm/MuU+kB0RRBMYmVHwrC7/z3s9f/Xy2L54jT8He 5LY88IGvmu31sThJisWxLiH2Jbq82bNFy3r4R5BzM1MGgva0V6f6UvUi9caOXjEBO05q 36Pw== X-Gm-Message-State: AOAM531VQGbkAgZBM6caMP/OVlzI/+ALfoWuifdLkUb/N0K7nKbF2VOi 3syY+bQTICRq4urWn3m1+rGYF8CUKc78O6iljvJl6Iyf18q7rV9YNryUfF6VTV+0MT9uPmV54gL g/HdVSOZc4NLY9AuraL3wA4Bh41OZorAMWDUMoNJ7d5AlImhxLeyVGXGROzVom2JCd0BlN0HkpD Ea X-Received: by 2002:a17:906:1792:: with SMTP id t18mr3411006eje.38.1624360501831; Tue, 22 Jun 2021 04:15:01 -0700 (PDT) X-Received: by 2002:a17:906:1792:: with SMTP id t18mr3410983eje.38.1624360501611; Tue, 22 Jun 2021 04:15:01 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id jx17sm2837266ejc.60.2021.06.22.04.15.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Jun 2021 04:15:01 -0700 (PDT) Subject: Re: [PATCH 12/18] staging: rtl8723bs: remove VHT dead code To: Fabio Aiuto Cc: gregkh@linuxfoundation.org, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20210622091602.GA1426@agape.jhs> <4f128bd2-b84b-132e-c75f-0030701a8a9b@redhat.com> <20210622095757.GB1426@agape.jhs> From: Hans de Goede Message-ID: Date: Tue, 22 Jun 2021 13:15:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210622095757.GB1426@agape.jhs> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabio, On 6/22/21 11:57 AM, Fabio Aiuto wrote: > On Tue, Jun 22, 2021 at 11:19:36AM +0200, Hans de Goede wrote: > > Hi Hans, > >> Hi Fabio, >> >>> Moreover I have been quite conservative, for I left untouched HT indexes above >>> 7 which rtl8723bs doesn't support. >>> >>> So IMO I think this patch is fine as is... >>>> Perhaps this entire block can never be executed ? >>> >>> the block is executed but there's no register write happening. Just >>> updating of values which will never be fetched. >> >> Ack, my bad I was under the impression that phy_SetTxPowerByRateBase() >> would actually do a register write, but I checked and it just updates >> some unused table values, so dropping this code is fine and you can >> keep this patch for v2 of the patch set. >> >> Regards, >> >> Hans >> > > thank you, what do you think about what I replied about patch 1, I somehow did not receive your reply, so I've just read it on the archives. > shall > I remove the '> 14 if block' or leave it as is? I think it would be best to keep the '> 14 if block' for now and remove all of them in a later patch-series (I assume there will be more of them). > Do you think is necessary > to keep the conditions inside the block and pack them? You could also remove the condition and just set the band to WIRELESS_INVALID unconditionally as you suggest, that is fine. But if you keep the condition, like you did in v1 of the patch, then you must pack the 2 masks together. Regards, Hans