Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3617017pxj; Mon, 21 Jun 2021 02:50:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC/sO2ssdqQDYrNuIheeimXFDanvSLcaLQ1HWG/l1QyLa3r4uKSRXTHdOtdjViQqAXlZJt X-Received: by 2002:a05:6e02:198d:: with SMTP id g13mr6493581ilf.41.1624269040050; Mon, 21 Jun 2021 02:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624269040; cv=none; d=google.com; s=arc-20160816; b=zPOZQ7NhGPVFxBgk2ONulBWLQzcOx/GtunapxRIR59ge/JNq4YSqbbbPaVg+e3NOAU PcS/FBkMa6wF2tY4x7fPUYvegm0DBcUnyD1kBvj0mJT/KAxGSoxMK3ianBOS7o/xsJHI i983tKM5kq0pjQ4a8oETXUJqC8UVdwHFxDwFA2vO2oA2OfJviCH1xS6LKbsKEqh0cD+X fhI54IYl9nUFM5Zss5YZWVuZojPdYkvEtmCmjOKwarYvCI+XF23jvS6ukMC3yttzyfGg 0adQbVne0A7bMW/d2K9vH5hvHfxzxAF9A/CbQ0p+CDK9Ppi4EJnCFOJh/nyj33g+b/+q f1PA== 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=MTkPHmy6rfTioWrJ0iPRxegps5plB8OPwiidQxmduZA=; b=maNKjX1qGIMZB8RQglFwnItsdPz/M2Sw0ueBsNf9Sg8+3o7VtQfwqllbDnm0SESMCu 6Jv5YkrmqkpLeZrNSGZtNVfVfbop/+UNBRUfrBxq12gr84Aa6NUyWv73Fu++XbnQOkmo GBDWLB3z6LgsbKHnNwCkGOSERrU88brSNDP75ektqj2qmlijMiopqXSDHnvYOa+N+Uny pKEg6uaB+OhzsLkwTGsygjAH/jDpFOW03fgPjKXMGZaVbz6w1Hd1yC5d36p8bezwWKo4 JA5barOo8g4ZiwjJI6K0+8hRJx1xbtR5VSFqdWu5D9DErqf7bfjCd1xakgis9+Wr5aew VvHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dmvt+kZ1; 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 t6si11626132ils.3.2021.06.21.02.50.27; Mon, 21 Jun 2021 02:50:40 -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=dmvt+kZ1; 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 S229888AbhFUJut (ORCPT + 99 others); Mon, 21 Jun 2021 05:50:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:34531 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbhFUJus (ORCPT ); Mon, 21 Jun 2021 05:50:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624268914; 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=MTkPHmy6rfTioWrJ0iPRxegps5plB8OPwiidQxmduZA=; b=dmvt+kZ1TqHG90cFE92NWT8Lf9wKWB8DNmCpR+3uNdhV0xlHXFWSdKAIF2821daywXMqr2 S5iTpim1cqb3zaBFIAdh0QqcX4OuhvSj0opUiiufnBqG6TGvtUSO8usQmlVfMPFD9LMJ6f UjTasKKwAdfN5Sjj3Wq6FVylIP8clAg= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-506-xGQhqw8lPJSakJTIcafZGw-1; Mon, 21 Jun 2021 05:48:33 -0400 X-MC-Unique: xGQhqw8lPJSakJTIcafZGw-1 Received: by mail-ed1-f69.google.com with SMTP id v12-20020aa7dbcc0000b029038fc8e57037so7503711edt.0 for ; Mon, 21 Jun 2021 02:48:33 -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=MTkPHmy6rfTioWrJ0iPRxegps5plB8OPwiidQxmduZA=; b=d6LC+zkOFbOz4W8LD1+IOV2BmiD2aDs9+OaCc/o7o3PC9+JI7pBSEd2KV09eDaxWOc FGX0MvCp5XT87GCVORQ2R/pwS/ITh2z5jAtRfb7eEBgv5vQhntE8+iOTOhq6SGXYS8Bo cm2ziCQ6vqu/4pIuYcLqqa6DRgPnCTxr4z0aINL99d7AqAn4dO7uixQVwOVCgGHK21yo AIDQMdvp+pOfYX8ZTW08VQxkx7fPrK3V1bdEbEeDI3nvjE12c9iHtIg6cwo4AfWV2Dvo oBQak0jBW6u8Q5AgfW6JC1Wt8W8C0mkcWOp0/+w+58hcdLr9IdJc9Sbma7/iy+hgqwQP oUqg== X-Gm-Message-State: AOAM5324yE7evcBTQqKVotQHm/p26Fx9HcSxt48Q3VIT/8eAnRRT8sXk E6VduE3pIO/cS86y5vIbn1lZtxiwOE1nJmz0IFXRdIYlzy4z/1iHqCeB+QeBsi8SE/DGQ5h+pPR K4YjCQHULpWzxmKGAYoynPm0TD4gEmTrRbiFoemsUXv7gdg9jB0a64HIcnD1YKFh67Mvws+nvP7 9i X-Received: by 2002:aa7:c1da:: with SMTP id d26mr5123787edp.278.1624268911909; Mon, 21 Jun 2021 02:48:31 -0700 (PDT) X-Received: by 2002:aa7:c1da:: with SMTP id d26mr5123766edp.278.1624268911733; Mon, 21 Jun 2021 02:48:31 -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 n10sm8220548edw.70.2021.06.21.02.48.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Jun 2021 02:48:28 -0700 (PDT) Subject: Re: [PATCH 15/18] staging: rtl8723bs: remove register initializations tied to 802.11ac standard To: Fabio Aiuto , gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <66706b5cb6474c4482c3342c4383fe62eba54967.1624099126.git.fabioaiuto83@gmail.com> From: Hans de Goede Message-ID: Date: Mon, 21 Jun 2021 11:48:27 +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: <66706b5cb6474c4482c3342c4383fe62eba54967.1624099126.git.fabioaiuto83@gmail.com> 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, On 6/19/21 12:47 PM, Fabio Aiuto wrote: > remove register initializations tied to 802.11ac standard which > is not supported by the device. > > It's a dangerous operation, relying only on comments, but tested > on a Lenovo Ideapad MIIX 300-10IBY tablet seems to work. > > Signed-off-by: Fabio Aiuto TBH I think this patch should be dropped from the series, you are dropping a bunch of register writes which likely are actually doing something, so this is not just dead code removal. Regards, Hans > --- > drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 12 ------------ > 1 file changed, 12 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c > index 059d3050acc6..3a03dfb8d275 100644 > --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c > +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c > @@ -1718,24 +1718,12 @@ void _InitBurstPktLen_8723BS(struct adapter *Adapter) > struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); > > rtw_write8(Adapter, 0x4c7, rtw_read8(Adapter, 0x4c7)|BIT(7)); /* enable single pkt ampdu */ > - rtw_write8(Adapter, REG_RX_PKT_LIMIT_8723B, 0x18); /* for VHT packet length 11K */ > rtw_write8(Adapter, REG_MAX_AGGR_NUM_8723B, 0x1F); > rtw_write8(Adapter, REG_PIFS_8723B, 0x00); > rtw_write8(Adapter, REG_FWHW_TXQ_CTRL_8723B, rtw_read8(Adapter, REG_FWHW_TXQ_CTRL)&(~BIT(7))); > if (pHalData->AMPDUBurstMode) > rtw_write8(Adapter, REG_AMPDU_BURST_MODE_8723B, 0x5F); > rtw_write8(Adapter, REG_AMPDU_MAX_TIME_8723B, 0x70); > - > - /* ARFB table 9 for 11ac 5G 2SS */ > - rtw_write32(Adapter, REG_ARFR0_8723B, 0x00000010); > - if (IS_NORMAL_CHIP(pHalData->VersionID)) > - rtw_write32(Adapter, REG_ARFR0_8723B+4, 0xfffff000); > - else > - rtw_write32(Adapter, REG_ARFR0_8723B+4, 0x3e0ff000); > - > - /* ARFB table 10 for 11ac 5G 1SS */ > - rtw_write32(Adapter, REG_ARFR1_8723B, 0x00000010); > - rtw_write32(Adapter, REG_ARFR1_8723B+4, 0x003ff000); > } > > static void ResumeTxBeacon(struct adapter *padapter) >