Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp804313pxv; Thu, 1 Jul 2021 09:34:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAIK2snQCT3e3suhhVIIKdVyyben7GskyYwPJu5L8OFmGqXOXmWkNSA9hAS3xIsdqC8mYB X-Received: by 2002:a17:906:b79a:: with SMTP id dt26mr779843ejb.264.1625157291412; Thu, 01 Jul 2021 09:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625157291; cv=none; d=google.com; s=arc-20160816; b=J4Uzgv9uHfqyqSGhpIBQZbI4yLsgDoBl7ZVcQHq/lBlWgXht02XrCvv0kiSz1zFP42 AAuuRhmx6qAtGCPGlJz73GeqqrVqcnsfg3ct98httJhH9OOKxiPGR3Zg+qm8uRZ57Kzq VuWs9X+Z096NUu3G1wKxawXBQSsBbqj3jjvU8z6YU75wBhODBhf++7nKzd+OjDnCIF6s yXDqH1Lahp2gHYOVvnSHD5Pyvc15esPQeHRqBhly5JuEJ/Ys9b/gs7+zNso6MYQMAw8m ldWdyXK3ymo3C0hUv0oK7PSmc8IBjMUMaB2Ud7Md8IcjJWIxlgAD59GrCFXVgFfDQ/gR sstg== 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 :message-id:date:subject:cc:to:from; bh=QYxcuipKvR06cwnuX2TWopIhk0gBvCgfNzJS4fZ1w3E=; b=qH/UlT+G9QSQoANBkTa8IQqnoLnl2EWkaSNroKfJrMgLsRF4bF6SK2/g+rnLOw9/vP rtWdBPJvIy3czJt/j3lWv/frygu7GPrb3iqUSxs13jqM4fOC+zC7WRl8saB0aI43f9kb BImyEkWDLtI8z47blmD0ydgRgcDmJMUQvTklX+jjq0OmHw9Er2S8/f1BOu+C/Oajg09I bapao1IvTKvOK05aYLLuwaQnV+/GYPjO8D4E7tJcbA10KGMVIjXaCjntOQlQSQp56KQq 5WbOMq79Mgk5RqoFPNbixw9fY91bfYT3TjiWWMGi3S3rz6J2E/VNuaODz6GN6Jc2DUAs dudA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 1si416067ejm.532.2021.07.01.09.34.22; Thu, 01 Jul 2021 09:34:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbhGAQgs (ORCPT + 99 others); Thu, 1 Jul 2021 12:36:48 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:37668 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbhGAQgr (ORCPT ); Thu, 1 Jul 2021 12:36:47 -0400 Received: from 111-240-144-27.dynamic-ip.hinet.net ([111.240.144.27] helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lyzdj-0000i1-Tp; Thu, 01 Jul 2021 16:34:12 +0000 From: chris.chiu@canonical.com To: Jes.Sorensen@gmail.com, kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, code@reto-schneider.ch Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Chiu Subject: [PATCH] rtl8xxxu: disable interrupt_in transfer for 8188cu and 8192cu Date: Fri, 2 Jul 2021 00:33:54 +0800 Message-Id: <20210701163354.118403-1-chris.chiu@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Chris Chiu There will be crazy numbers of interrupts triggered by 8188cu and 8192cu module, around 8000~10000 interrupts per second, on the usb host controller. Compare with the vendor driver source code, it's mapping to the configuration CONFIG_USB_INTERRUPT_IN_PIPE and it is disabled by default. Since the interrupt transfer is neither used for TX/RX nor H2C commands. Disable it to avoid the confusing interrupts for the 8188cu and 8192cu module which I only have for verification. Signed-off-by: Chris Chiu --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 03c6ed7efe06..6a3dfa71b27f 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -1670,7 +1670,7 @@ static int rtl8xxxu_identify_chip(struct rtl8xxxu_priv *priv) priv->rf_paths = 2; priv->rx_paths = 2; priv->tx_paths = 2; - priv->usb_interrupts = 1; + priv->usb_interrupts = 0; priv->rtl_chip = RTL8192C; } priv->has_wifi = 1; @@ -1680,7 +1680,7 @@ static int rtl8xxxu_identify_chip(struct rtl8xxxu_priv *priv) priv->rx_paths = 1; priv->tx_paths = 1; priv->rtl_chip = RTL8188C; - priv->usb_interrupts = 1; + priv->usb_interrupts = 0; priv->has_wifi = 1; } -- 2.20.1