Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp466662rwb; Mon, 26 Sep 2022 01:07:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM44uMSPkCZPuADytvMc6IwwiLInOdtCvK+UPkBpymdprUI2XSObSF/AS+yguzTnpMRoUhMO X-Received: by 2002:a05:6402:27c8:b0:451:440a:2f48 with SMTP id c8-20020a05640227c800b00451440a2f48mr21140653ede.1.1664179651658; Mon, 26 Sep 2022 01:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664179651; cv=none; d=google.com; s=arc-20160816; b=KI/sWJTPHEBmTIcBvFNZPfQ3QSbwTLr/4ixIZhENuEkD/oLZIDaqXYCwIE4Nq4tlk6 CICjX+Hz3vHa8wW7o0eNP2Njwu1yNOE00hk4ZBLMVqsdwmTdaYq0kWp1bJPKYR499YJp hcFJ1UR1c0b6IyCeMgBumbJ5uQJ4hHxLAuA+Yq0a79uJAYklcLbHyPHK51xdCKt1JYol PF2axpZc1UwIzr1xjiR8CKU/rGB94Ujc5YR1a/QSTiLSfbCo+gtQIyA8QAOrhSJ7Ushi 3ybRISNdfRZKd+wYJXeF3w56uwG/BYIANDohWb33PiQ0i6AFw5VCYt/js9/f3FxynXmy ToLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=uegWTshNIq8xGOAR68eZUb7RdmjkIQSF+z5aSZyGDl8=; b=uAZx5zMSqXz2vZ7gCHR1ccJg6d5HD0NGczXu/EZSdvyJ2+rcshrF6r7lx/mG3uE2c+ HW4VmW8nZqMteW7ZpUAe8VlqYQP3XAQQq7B51qlCBprE4vSDueziGvo3rrJ01Qaxkj5M nxvpEGTRcHU6ZAfKaRiTthpCms4PLVXPU0fCqTIE2is1ivf5tRH+/1SDj0vJVZEwNO7O aH/XsCzCKDfsE8GkmJQuWN7i8hzFZ9FQ1OWx80UogZCyNRa9aNAxdnj6leueBsqopd/Z FEWunAEuimG8BpLliFyGFBmmPEdONDqbURBtgD8Q3FjWSPrIBzs7To+pgFjAlTy9u+B+ zWIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GCIatT1G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a056402278900b004527d7fffacsi16556174ede.189.2022.09.26.01.07.15; Mon, 26 Sep 2022 01:07:31 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GCIatT1G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234104AbiIZIB6 (ORCPT + 62 others); Mon, 26 Sep 2022 04:01:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233727AbiIZIBa (ORCPT ); Mon, 26 Sep 2022 04:01:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02614C27; Mon, 26 Sep 2022 00:58:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8F8A36179F; Mon, 26 Sep 2022 07:58:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85251C433C1; Mon, 26 Sep 2022 07:58:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664179131; bh=jfuwhFd5PczoIXgvji7jNDdS65hU/TTDtOFWvgEpYkI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=GCIatT1Gc/erxM3rdkI/8g7syX2EzY43d6RY9O+fWQUdcXRuyiUDtbvpnl60m7dE+ 2hHqu72oyFVsX4ntX4wXxY+UDRxa8AzF24r8pQDDmoqhG/pdyMDuzLPD8O4VauEEUl 2XSuoHx8i7aA0x3Uj8Z3QMBfujxRHshTsS1sRVRluCpBkAN3MltLOp8V0a/pNOmEqY vAT7RtTC2bIb0/ClWsmnnclQtV2Im5Dl85mLrfXyuZ0Dbjt+i4BqX/ve4Hd2AbJdJ1 0tfGBkzPGfZm8pNH/aTWBqPL4AJ/rT8cq1qQTCqdVHwvl0uR2DQiL0spjUkMyiThdb ZMl452H4brgTQ== From: Kalle Valo To: Ruan Jinjie Cc: Franky Lin , , , , , , , , , , , , , , , Subject: Re: [PATCH -next] wifi: brcmfmac: pcie: add missing pci_disable_device() in brcmf_pcie_get_resource() References: <20220923093806.3108119-1-ruanjinjie@huawei.com> Date: Mon, 26 Sep 2022 10:58:45 +0300 In-Reply-To: (Ruan Jinjie's message of "Sat, 24 Sep 2022 09:00:12 +0800") Message-ID: <878rm64le2.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Ruan Jinjie writes: > On 2022/9/24 0:50, Franky Lin wrote: >> On Fri, Sep 23, 2022 at 2:42 AM ruanjinjie wrote: >>> >>> Add missing pci_disable_device() if brcmf_pcie_get_resource() fails. >> >> Did you encounter any issue because of the absensent >> pci_disable_device? A bit more context will be very helpful. >> > > We use static analysis via coccinelle to find the above issue. The > command we use is below: > > spatch -I include -timeout 60 -very_quiet -sp_file > pci_disable_device_missing.cocci > drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c Please include this information to the commit log, it helps to understand the background of the fix. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches