Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1490096rwr; Thu, 27 Apr 2023 19:35:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5tWvimjgvBEm1zn09RyQW4Or0M8ipNS919pdn9zUkNuwKfVWjs3hI3nTi3dh23HDd3j5Ia X-Received: by 2002:a17:90b:4c8d:b0:24b:2f85:13eb with SMTP id my13-20020a17090b4c8d00b0024b2f8513ebmr3896986pjb.30.1682649333409; Thu, 27 Apr 2023 19:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682649333; cv=none; d=google.com; s=arc-20160816; b=kCSFujQaAx+r9bkqUeDNVDkTia8ci3EKyyTNkt/9aVZdQLcCg41B0/uh6trhtuuQzT LWaQa3yqVaUnRW7X4kg2GfpTgadSujfh+y6EKHZw7sx3Y5TPGL6Z40STMiumQCEMOJa5 tW8xuZQySEB8PTHl5DISbgIhJeF4INbXGPSj1wU3URYjc0DM0jd000seT2WUZE/Sd/dW Oerv6ljXGFPgDClsu8S8Zr7mrZn0kGnKKJE4F71fJALgZQb8oYIwFqfPTksh/4tT0uwG 2JclgB1Xgrrm6A0nfLGd22Rt5EG6IzY95AFcnfAa5jFfD7J5udD/uSOmIHwc6QzX73p2 wqUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=1apTWQhX+xC2rbwQlnJ25uTclln/i8hyH+o7LyssD/Q=; b=c3bPmHxhoy17kT/ylZLxapJpHYlBSiEoXSHFpIpeehPqG6/EoNXOEeiJ3qAisnU7vi NSAnGfxyhDFhm4YFSwiqY62DRht1f+nMzicXXw+sQ7V8C68bijZaPm0rxRW8V3OspYbI B7U6ESUzjkzdiomBRrhL8LOhJX/U6dUi5Ak2BNHDWp8mzTdUDY2I9wHoGw3+pXLX+3ST T8CugkkGT+mvzGaPrIvx1DYyjr73VA0mcUREFvwr0jwFS5ijE5/ljVs5ZL0XAP9bTydf Phmj0OACz8nzzdtYE+8srfd89ULrEoe+CYjgYkgZJP6noablvJcq+fAbCezQX5xbBvzu EjAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a17090a854400b00246b7a596eesi22112459pjw.146.2023.04.27.19.35.22; Thu, 27 Apr 2023 19:35:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344379AbjD1CeW (ORCPT + 63 others); Thu, 27 Apr 2023 22:34:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344285AbjD1CeW (ORCPT ); Thu, 27 Apr 2023 22:34:22 -0400 Received: from mail.kevlo.org (ns.kevlo.org [220.134.220.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4E76268D for ; Thu, 27 Apr 2023 19:34:20 -0700 (PDT) Received: from localhost (ns.kevlo.org [local]) by ns.kevlo.org (OpenSMTPD) with ESMTPA id 799a2ac0; Fri, 28 Apr 2023 10:34:17 +0800 (CST) Date: Fri, 28 Apr 2023 10:34:17 +0800 From: Kevin Lo To: linux-wireless@vger.kernel.org Cc: Bitterblue Smith , Jes Sorensen , Ping-Ke Shih Subject: [PATCH v2] wifi: rtl8xxxu: 8188f: no need to initialize interrupts Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org There's no need to initialize interrupts for RTL8188FTV like the vendor driver. Signed-off-by: Kevin Lo --- v2: - Fix my email address. --- diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 620a5cc2bfdd..7f620dc47ee0 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -4023,9 +4023,6 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw) if (priv->rtl_chip == RTL8192E) { rtl8xxxu_write32(priv, REG_HIMR0, 0x00); rtl8xxxu_write32(priv, REG_HIMR1, 0x00); - } else if (priv->rtl_chip == RTL8188F) { - rtl8xxxu_write32(priv, REG_HISR0, 0xffffffff); - rtl8xxxu_write32(priv, REG_HISR1, 0xffffffff); } else if (priv->rtl_chip == RTL8188E) { rtl8xxxu_write32(priv, REG_HISR0, 0xffffffff); val32 = IMR0_PSTIMEOUT | IMR0_TBDER | IMR0_CPWM | IMR0_CPWM2; @@ -4035,7 +4032,7 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw) val8 = rtl8xxxu_read8(priv, REG_USB_SPECIAL_OPTION); val8 |= USB_SPEC_INT_BULK_SELECT; rtl8xxxu_write8(priv, REG_USB_SPECIAL_OPTION, val8); - } else { + } else if (priv->rtl_chip != RTL8188F) { /* * Enable all interrupts - not obvious USB needs to do this */