Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp427728rwr; Thu, 4 May 2023 22:29:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4uiCvicwzgYKMr0RnkitCHl5Re474no3FH7Xbbb5hzf+RuiE2DOtK4hroDKRYkU8hZFMxr X-Received: by 2002:a17:902:9694:b0:1a9:8769:36bd with SMTP id n20-20020a170902969400b001a9876936bdmr264668plp.36.1683264583661; Thu, 04 May 2023 22:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683264583; cv=none; d=google.com; s=arc-20160816; b=0MpXlUHJD0LTx/ZI5M2cHd3xQxTZB/xG2dYL3hgh3Fci/Mmh01HFov1h/6x6No99n0 /OUlZlDHb4nK4J8GORm9nz9hkDng0/7BMFfRSgRlCv7qsx8WRHpiL4gdxemnKJSxmvO2 bLQi1K84Lw1zgEwbB6zRkIdl0VfpIWLyZnDa4iT7OVc4G2RHkFLnrUrHyGPPbPu1v3Q3 /8IeDPtWrgMLtAxTsEUYwKWaRFK8XNFDPZj5wz14glUqFeKHeyv/q6UqkslWFin97Rn6 RucSHZTbU4lIw9xtl+DQAdo6JdgkmF6SWIYJCOY/dea6nQzlXVzan9HE88J0KiLGw9uk SpRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ScpGvkgm52vbZVUqDQ7M2HBBCPdGv2bK4ovRlyfnftQ=; b=d5ukcN7QwqPtsZPtk91xKI4gTc4DerDHLo/QldH36RCaHyEziVVHdn4na/DidJZVxt hrY5keqTbwEmQ3WaqTBCGXH5Yr/s9luuqaq6P2ss6k5YNTu67waQSe5a9cGMf/7pJiIS 5K2DQ0lu8xv7NiwNZmdxva9Y/RM+C9efbvWB2RHN5VIHwGcb6RA/5yUMS8UO8G/I6MGI r2XpVVHvjvcHbSrTBua3IleO/n5jFrugE1LLEvu4ESj95hLe8iJ8ON/d0MFkJM7EojgN S7XytIBE33MUeL/IooRBszHkFzkisrWbqbMCRhxft+o8+ZkSSerpR+TdfVC5b+tkVx0/ 8JJg== 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 m3-20020a170902db0300b0019c3ce49a13si948847plx.372.2023.05.04.22.29.29; Thu, 04 May 2023 22:29:43 -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 S230090AbjEEF1q (ORCPT + 60 others); Fri, 5 May 2023 01:27:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbjEEF1p (ORCPT ); Fri, 5 May 2023 01:27:45 -0400 Received: from mail.kevlo.org (mail.kevlo.org [220.134.220.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A54DAA27E for ; Thu, 4 May 2023 22:27:43 -0700 (PDT) Received: from localhost (ns.kevlo.org [local]) by ns.kevlo.org (OpenSMTPD) with ESMTPA id cbebcb91; Fri, 5 May 2023 13:27:39 +0800 (CST) Date: Fri, 5 May 2023 13:27:39 +0800 From: Kevin Lo To: Ping-Ke Shih Cc: Kalle Valo , "linux-wireless@vger.kernel.org" , Bitterblue Smith , Jes Sorensen Subject: Re: [PATCH v2] wifi: rtl8xxxu: 8188f: no need to initialize interrupts Message-ID: References: <87ildgpnsd.fsf@kernel.org> <02a6f536d1a144749d97db5c301ee76c@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <02a6f536d1a144749d97db5c301ee76c@realtek.com> 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 On Tue, May 02, 2023 at 09:10:04AM +0000, Ping-Ke Shih wrote: > > > > > -----Original Message----- > > From: Kevin Lo > > Sent: Friday, April 28, 2023 2:35 PM > > To: Kalle Valo > > Cc: linux-wireless@vger.kernel.org; Bitterblue Smith ; Jes Sorensen > > ; Ping-Ke Shih > > Subject: Re: [PATCH v2] wifi: rtl8xxxu: 8188f: no need to initialize interrupts > > > > On Fri, Apr 28, 2023 at 08:40:34AM +0300, Kalle Valo wrote: > > > > > > Kevin Lo writes: > > > > > > > There's no need to initialize interrupts for RTL8188FTV like the vendor driver. > > > > > > > > Signed-off-by: Kevin Lo > > > > > > Why do this, what's the benefit? Or is this just a theoretical fix. The > > > commit log should explain this. > > > > If I understand correctly, just like rtw88 usb devices, rtl8xxxu has no > > hardware interrupt. > > > > With/without hardware interrupt, it depends on IMR (interrupt mask register) > setting. If it is enabled, driver can receive C2H, PS indicators, and beacon > TBTT events via certain USB endpoint. But, normally vendor driver doesn't > use them neither. > > Why it initializes interrupt in this patch is to reset ISR (interrupt status > register) to avoid unexpected interrupts are received. So, if it doesn't > really enable interrupt by IMR, I suppose it should work well even without > this patch. > > Kevin, could I know the real problem you met? Ping-Ke, many thanks for the clear explanation. I didn't encounter any problems. As you mentioned, while the vendor driver doesn't have IMR settings, there is no harm in initializing interrupts. Please drop this patch, thanks. > Ping-Ke Regards, Kevin