Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2474813pxj; Sat, 19 Jun 2021 13:30:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRL99USb0Irwyk0/+q6vqxS3ZRHnB4aL5UYPo+oYUp7FbHsZ71oVgyqKehYdEgcXtBNAOr X-Received: by 2002:a92:dcc6:: with SMTP id b6mr12362537ilr.146.1624134655538; Sat, 19 Jun 2021 13:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624134655; cv=none; d=google.com; s=arc-20160816; b=U0aaryaA1Ag+eUHaPo7hXnnR1YjAvWQMv9yrYjsv30uKgLkpPGva/xDCWNR8U8OPHD 2vfBJg3PweuuzM319EpckID5VzxOCaxPMgidcSu277myX2Om4kkBXc2RpshWVWFYJnFr ZCOLDIs1ltn5wzSBW8r9X+rUpJIeqaHLPUOZG9Bb167JeBERVRZdMabg2BANmRd1yAb/ MUGS2v2i2CMhAYOi6VrVHypkX2rgL1OA/q0n+Beocme0LLINWgIOyKobUrlxdT8sDGy2 NkbklBscVNjFpsU1WTx8HSndoqeaSLbt6Z7V/f3dCvV+8R0xMf42JSgUV2yD9hIeJpkR KluQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bgKRjBPM8AFL+ak+0aT9uZMXv7Z59szsWp5P9GybssM=; b=hplCS8BxdCBVhwwAcUqnXa3vSVehU1r2OaliOGyca7EOLzfM9g/KfjXyxeYCYgtR4H LmNAEM11DbSnNyHT5RO147mydTbLlrQvPRImdtVfYwXr9g1qRgguBh5Hlu2DFsb2iAkj eNGzn8aW2L4wM+ohGGwB7e/y9oeCr+xej4UcAveHxRJOWHfKU+tRyrae4tX74yL5e9jX lNXYu5HtGtHuMW5U4RLfwyD6xuWwFuyajKJL/l2OEdeBQhFGvBzO/LYJwnTG15T76UZM mHjUgmghpIDx0ssI8D8uRd9KTQ+WvRcaU86R0HSvRC+dgCTF5jdlhdupqNwbT4CGp/MW 5ObQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oLFksRJf; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si7240762ilu.60.2021.06.19.13.30.43; Sat, 19 Jun 2021 13:30:55 -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=@gmail.com header.s=20161025 header.b=oLFksRJf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233992AbhFSKui (ORCPT + 99 others); Sat, 19 Jun 2021 06:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233035AbhFSKt4 (ORCPT ); Sat, 19 Jun 2021 06:49:56 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37B41C061768 for ; Sat, 19 Jun 2021 03:47:45 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id t11-20020a1cc30b0000b02901cec841b6a0so7029786wmf.0 for ; Sat, 19 Jun 2021 03:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bgKRjBPM8AFL+ak+0aT9uZMXv7Z59szsWp5P9GybssM=; b=oLFksRJfvCphjvG9FVIVr30QoP27GRWPSNihX+Jn2K6qoaY9d706OtSksRz6e0zTXD Hc6aCeai61SPAetyj5QYi/CLftu1AU568J614iTrf++J/BktRgppRPxWrwOzhl3ukffP flgst2+YnybrN7h1ROBUTFKqXUTc0pLwtg7XDLhgRtObIFlO4HT+P/ybW7mmqa4qF01p VMMiwppSXj0sbzVfTXOSDGNiSSceSiAU8GsY4WQkmOyKSE3eWvjFkL0IupZQwMj+8MoS 2pFj0fx6Sg8qzTup3CkyeYfGkOKzs4cU52gziVPHgeswtvubmawAOmrOnmKeWF0dIkri gxAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bgKRjBPM8AFL+ak+0aT9uZMXv7Z59szsWp5P9GybssM=; b=XOb1d+CPhvgdiKswZ5SSmIT27HCxNtZRRRyGy9k2vo/BUC4IkFGPLSpgl1ac5SIyKW BmWlmZo1cHw5uVLKBzOKjUprMkFRfLmDCwXuMmXpoXYgHpX+l8SJNib7jHpeiuJMJ4F0 zHhY3JpzGDW3qLwYNolPKJ+VrZ6T8s5vlnpa69I63CrO5kuy0uaCXAjb4dWoeWpvvRuX PTkPBifEXfE3moEdEqZoE2WmKzxHfsj/Y0NdJ0lP6II/zTupV3AYpjSy8BQbBM21dItX 57jtaiLEImT/vjrBiP8ECtz2xYUDopoe79QSpuWTWN4JtxroDuxTI2lNJHlitbfQtzLL 8YmA== X-Gm-Message-State: AOAM531KnmVpwRFaoktGCbrHSu5zkVEjtPnj03LVWD7I5QnWWLVov9+X pbRLiv3xa7c78Wn2NJoO3zIsatOVStq0ug== X-Received: by 2002:a05:600c:22c9:: with SMTP id 9mr15712468wmg.44.1624099663808; Sat, 19 Jun 2021 03:47:43 -0700 (PDT) Received: from agape ([5.171.81.81]) by smtp.gmail.com with ESMTPSA id l39sm6937459wms.6.2021.06.19.03.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Jun 2021 03:47:43 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 15/18] staging: rtl8723bs: remove register initializations tied to 802.11ac standard Date: Sat, 19 Jun 2021 12:47:18 +0200 Message-Id: <66706b5cb6474c4482c3342c4383fe62eba54967.1624099126.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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) -- 2.20.1