Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2326873imm; Wed, 3 Oct 2018 01:59:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV60WLXoN1g3pI1g031fwbrxM1WNbfmcbNRxYBEofrfXMh/yg13ehRI/ol0gj7UUCvjGwQccX X-Received: by 2002:a17:902:aa83:: with SMTP id d3-v6mr567211plr.242.1538557194560; Wed, 03 Oct 2018 01:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538557194; cv=none; d=google.com; s=arc-20160816; b=ACGYX+LhoEVN0tyD5vfNKTfAN/N4PQ2/8Q0aoqgS5cWfXC0RH6wYb4xJbt3GDVHcDn tckE60zM7aK3kKIt91nirVKnD0CP3VxkJu7VLhUe/r7tG04wEWTTOpt/eyG4eNeFbwUX ntJbnClxxdX+/Sx+yQr4Wy8/6LssUpEu5ydjHOLkfXDdBQbJNac/q9ScBAvy1SqA7HRp DeWoAbjq2nvMjwSHLDQdA/vDHIcxALQmOWx0DY+QW8fzmHJeOGzpZ+ZYpkE4aZfA5TA6 sdobbCRCTE532IQgeXHgr1Dlcoy5zWuDGlepRzkiShgXR7pXl+W/2NXg95HT1xkl0qgx UVJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature; bh=JZdOa8q+meDTOK9nfKqMlzt/TBM6N06xogBW4wwZFS8=; b=TyWe/tVUOW0UFG4M6QgHsGk5KKHjg0M39EQNzF+W/ugsRSkRTwWC8R1fcRK0zc0O5B lFEZ9zy0Vpd6axCUH9zCgSXN4jEO2lLD+pbw8uljG4f/HzbNTelvnIQm8rI6eOROqDkZ 94BSY+Fuc7roNNIV+KSbW+J3OiNS2392nAYrbYnPP3HgmH+juaSkH7OcLNHR5nzfW6+U CzqxvNBwQRxSXAH2FJ2F5MVncRumLkrHwLRDuybjW0ERDRs4o2sM/gy2Fqsz2qUhNN/E VPro2p2McnmNAyhejU9mNUYFyvdLTYRVykUSsWS62v5jr2sQEPDNCpu3nhQgY/11gEwZ E+cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="AW/azU4X"; dkim=pass header.i=@codeaurora.org header.s=default header.b="AW/azU4X"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38-v6si853516pgo.7.2018.10.03.01.59.39; Wed, 03 Oct 2018 01:59:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="AW/azU4X"; dkim=pass header.i=@codeaurora.org header.s=default header.b="AW/azU4X"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727584AbeJCPpp (ORCPT + 99 others); Wed, 3 Oct 2018 11:45:45 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:47470 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727356AbeJCPpo (ORCPT ); Wed, 3 Oct 2018 11:45:44 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D7D3560B26; Wed, 3 Oct 2018 08:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538557097; bh=9sLkJeVZxASo88LzjXeNPiYhrRSeXdIYCGwbFaDyeSU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=AW/azU4XWyHQ767er9lWK8S/pbRzYP+2d5tF3QB7ItmXaBFL3Tbu80sJUDQSZ/FCb kIwoSlNhZfqMyhUoGKMmfW386l+iGWFbMRNpElOmDQ5IqoyjPFxNsIEgPunucSuQfT MytVvf3tuLL28zWEmhCGQzsun6+Um6SgbJ0XAukA= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-52.elisa-laajakaista.fi [88.114.240.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5619460B26; Wed, 3 Oct 2018 08:58:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538557097; bh=9sLkJeVZxASo88LzjXeNPiYhrRSeXdIYCGwbFaDyeSU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=AW/azU4XWyHQ767er9lWK8S/pbRzYP+2d5tF3QB7ItmXaBFL3Tbu80sJUDQSZ/FCb kIwoSlNhZfqMyhUoGKMmfW386l+iGWFbMRNpElOmDQ5IqoyjPFxNsIEgPunucSuQfT MytVvf3tuLL28zWEmhCGQzsun6+Um6SgbJ0XAukA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5619460B26 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Luciano Coelho Cc: Kai-Heng Feng , linux-kernel@vger.kernel.org, Johannes Berg , Emmanuel Grumbach , Intel Linux Wireless , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 3/3] iwlwifi: Load firmware exclusively for Intel WiFi References: <20181003071513.13004-3-kai.heng.feng@canonical.com> <2787bccf20b6f647de9f4cafae5fd223e771b167.camel@intel.com> Date: Wed, 03 Oct 2018 11:58:12 +0300 In-Reply-To: <2787bccf20b6f647de9f4cafae5fd223e771b167.camel@intel.com> (Luciano Coelho's message of "Wed, 03 Oct 2018 10:24:44 +0300") Message-ID: <87bm8bjtjv.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Luciano Coelho writes: >> +#if IS_ENABLED(CONFIG_BT_INTEL) >> + if (firmware_unlock_func) { >> + firmware_unlock_func(); >> + symbol_put(btintel_firmware_lock); >> + firmware_lock_func = NULL; >> + symbol_put(btintel_firmware_unlock); >> + firmware_unlock_func = NULL; >> + } >> +#endif >> + } >> else >> ret = iwl_pcie_load_given_ucode(trans, fw); >> > > I'm not sure I like adding this BT-specific stuff here, especially not > without a detailed explanation. This looks like an ugly hack and the commit log tells nothing. This really needs strong justifications to even consider doing something like this. -- Kalle Valo