Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1745208rdb; Wed, 20 Sep 2023 20:01:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFUePkR2vfHNTCdjPBRpha8SKEx1unwLFv040HHH1n8vUNcEOc5yjdCje1/bbNrJtRxVkdo X-Received: by 2002:a05:6a21:4849:b0:154:e887:f581 with SMTP id au9-20020a056a21484900b00154e887f581mr4102808pzc.58.1695265301981; Wed, 20 Sep 2023 20:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695265301; cv=none; d=google.com; s=arc-20160816; b=WgC3yz9LiusxrugwgvX528nUPYFIqxWcE03XCidc4RucgV3Sg8xLNoN+1gzrqElke4 gvs3K0bAhhcdGcIork2/mR3EGk8R9V6f7TwJ8iKyEdrsdfiAM05kBEONFAj8SEw59WMM FBYtqs+xAxum7QY88rovUAFm4D4CJQNh34FlcfmHl+qqD4rabDYQ5rn4fPhXT9htf7Zi oVOd2YinQV+l9O4oCgNKNoXTbpWAAskQQAWcyvmGf8jpngfvyJ9AzJ/HQpP/920V3vQA d/0C3E0WibTaPVb3+ygQ/gZEB46cspdhYmluzH4J4cL87RsKDEaLguxIPG1THbVbmoLn sMQg== 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:dkim-signature; bh=D7JKFpBTbm9XTEjmKLjqAg/TV0MkrJSGCfGc8p5dTYc=; fh=xXsXjEvuhKvtuzwjmXROSmYlJK+2Lcg0UA3uf8C4nBs=; b=yDhf6nUBrf5I0iBW24iXtgHUMAMFf/Sk6Sa+veePtOAGsh7byVKmqVepUrcVLe1Lrz vu1Y1WN4tidfdkioBhoovpvgyxxOJZoONAJiNIHuQKsuB//6wMqnlnYbJEOyMt5kSqfv xcKrBuAadc5oO6zPQQjedAqfjRNMOZrulIAwdRoKhp1u+sinwETu+IwUBxssSi9Z8W26 8lOCjoWZ3qSpgv+oOs7qK28dqZZRDFNhf5PZTBs9CbD6HUqITX8R+qFI/apS6GH/YQTb +R9Du57Kht8yQURqvRUORRqHBF/LErgAj34isPn2ogWK9Y151sXVtQnNWvE9E+RBMMzz EWbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="XLM/7WHl"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id x5-20020a17090a9dc500b00263e423753dsi583668pjv.42.2023.09.20.20.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 20:01:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="XLM/7WHl"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E5F0581410E8; Wed, 20 Sep 2023 16:36:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229547AbjITXgR (ORCPT + 56 others); Wed, 20 Sep 2023 19:36:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjITXgQ (ORCPT ); Wed, 20 Sep 2023 19:36:16 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2614BCF for ; Wed, 20 Sep 2023 16:36:11 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1c364fb8a4cso3047745ad.1 for ; Wed, 20 Sep 2023 16:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1695252970; x=1695857770; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=D7JKFpBTbm9XTEjmKLjqAg/TV0MkrJSGCfGc8p5dTYc=; b=XLM/7WHlmG9tzXtO0V93RbCWBrfBh+W1tzAT2HA2AN+E+lFS77bDoR+/gQz+p0ivpR BG70UY04sH6vW0Wwyr2ZUorlDdy0lWUJo5buyu4SZzYaFHo/CLVfyQgKAz2DyphGviQR zGLBt4hzh3o4VXti583rKfmM+ZOZ6GPS7Q/d4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695252970; x=1695857770; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=D7JKFpBTbm9XTEjmKLjqAg/TV0MkrJSGCfGc8p5dTYc=; b=oPpy1U/ZNqZO8NHC/DpYQQJXnmMW5Uk9MJChuyItNpBGc2FWhIlrMDOYcbK4LvEPGG tYe/ifbT+zQtrzZ4NFyu5AiCQrWa7bjAO2i6gwps43AZ4c0D0oA7ouKnalxmS/tpLAu1 mbfpf2jl4At6V3kSJzmhE7tdeZARQX8sSScyZGetJO0ZF9ahrw+oxV9W7HWjQLl6WuTS POQUH/riD0R0+WFWbsSAgOZtvXtHb2j50h/0w5M4/5h8qRUEG3p5YqezhyHlMbVgDVqd cixStqk/Ze5G4hDDuVO30WUxcBvhrtOeUD5I/ipXnRxJ9OKNSn4ixgVUfxWUcnk534Ia R+Iw== X-Gm-Message-State: AOJu0YwyLmV2Gxjrv/KNh6iw+GkVUIsQp2kHc3H/drYeWoKOwdQIMORP tBNDixxiMcfOo3/9tjtyPj34DA== X-Received: by 2002:a17:902:6806:b0:1b9:ea60:cd82 with SMTP id h6-20020a170902680600b001b9ea60cd82mr3490309plk.5.1695252970631; Wed, 20 Sep 2023 16:36:10 -0700 (PDT) Received: from localhost ([2620:15c:9d:2:23d5:c394:2c98:ffcf]) by smtp.gmail.com with UTF8SMTPSA id 6-20020a170902e9c600b001bdcafcf8d3sm65472plk.69.2023.09.20.16.36.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Sep 2023 16:36:10 -0700 (PDT) Date: Wed, 20 Sep 2023 16:36:09 -0700 From: Brian Norris To: Dmitry Antipov Cc: Kalle Valo , linux-wireless@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH 2/2] wifi: mwifiex: followup PCIE and related cleanups Message-ID: References: <20230919132804.73340-1-dmantipov@yandex.ru> <20230919132804.73340-2-dmantipov@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230919132804.73340-2-dmantipov@yandex.ru> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 20 Sep 2023 16:36:14 -0700 (PDT) On Tue, Sep 19, 2023 at 04:28:00PM +0300, Dmitry Antipov wrote: > Introduce a few more (PCIE and generic interface related) > cleanups which becomes reasonable after the previous patch. > > Signed-off-by: Dmitry Antipov > --- > drivers/net/wireless/marvell/mwifiex/main.h | 4 +-- > drivers/net/wireless/marvell/mwifiex/pcie.c | 28 +++++---------------- > 2 files changed, 8 insertions(+), 24 deletions(-) ... > --- a/drivers/net/wireless/marvell/mwifiex/pcie.c > +++ b/drivers/net/wireless/marvell/mwifiex/pcie.c > @@ -710,18 +710,12 @@ static int mwifiex_pm_wakeup_card_complete(struct mwifiex_adapter *adapter) > * The host interrupt mask is read, the disable bit is reset and > * written back to the card host interrupt mask register. > */ > -static int mwifiex_pcie_disable_host_int(struct mwifiex_adapter *adapter) > +static void mwifiex_pcie_disable_host_int(struct mwifiex_adapter *adapter) > { > if (mwifiex_pcie_ok_to_access_hw(adapter)) > mwifiex_write_reg(adapter, PCIE_HOST_INT_MASK, 0x00000000); > > atomic_set(&adapter->tx_hw_pending, 0); > - return 0; > } I have a nagging feeling that some of this is hitting partially-implemented features (esp. around error handling for the sleep cookie / mwifiex_pcie_ok_to_access_hw() stuff), but I also bet that the only chip using that feature (8766) is in bad enough shape that no one is getting reliable usage out of it anyway. (I know I'm not; ChromeOS never picked up PCIe support until 8997, where we worked out most of the driver/firmware bugs.) So maybe no one cares, and simplifying the dead logic is a net win. Acked-by: Brian Norris