Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp735033pxx; Wed, 28 Oct 2020 16:00:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEqQRR2HX2RX9onoyfziTDC9T3uSxO6x3ABoKM5dHjf3DLVRM0yTk/bi2jcJwF87V8ShKW X-Received: by 2002:a05:6402:1119:: with SMTP id u25mr1281083edv.37.1603926040336; Wed, 28 Oct 2020 16:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603926040; cv=none; d=google.com; s=arc-20160816; b=Qf0InmN6rG3Sc/Ax7NQx7SaxJCri24cRfkPXHswOW1ZggITGflGOgATHkIQpPoruys hMe6EfApCr30wt6hfF0iBStCvu6KGEHa9IKkv7C+TnzQT9T9RScMFMv+ZsYK7eNwpB5Q VrgVnStg6ls/FupylZNHJV8PWzJZCxsmFLELwUsv8SCshIUO+MbHWW6qIoRZUYpS0afo Bow6Ut33XxMXFgEAqcDV6LSZK/PCW/jTdd5MReUFrsEv4je5eTzhD1s+27LD3JTAGu6H 3fvLLeYKrihX0kGh3dTqBxH267yY2SKplMiMN1s8WZ3SPgj3x97uER9yDfj4ZHzB5kyb VnAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1W1egpqxhCc2vFNc2hQUMgNWODq/0zt9Ds07G4ofZII=; b=lSeBBm7AhfKhzn/ZvzEyY6Fydx1YId77D9tEFV/EaEm9SRnSqh7JKmGNAu0K5w0ve5 lf9GIBpdQ9DDZQLVh1wHBAwnOdrvG4PU+QL1hPv2sMUPKhLjNEoIW7hO+MEig/NjfEWW 2HHmKPKsBUOZrXPp13VlFn5Bs/J9s6x4i0IOeqNd5BtvHUFIrQXyCbF/waldvJb+tFKm wsQkjVfc+Ovyc7VKGAStLyDuW+X97DwieYuGbmxz60iqRCiTMRMPHVNhNbIKu6NVwlTp mrlFBXEcTktQ4ogcyPh6BMc7TcBQR7iq4K8yj26FtU98BneXghNmYjWGhzvu26fiPwaR Dw1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L860scfc; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m13si535994ejg.531.2020.10.28.16.00.11; Wed, 28 Oct 2020 16:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L860scfc; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389886AbgJ1W6I (ORCPT + 99 others); Wed, 28 Oct 2020 18:58:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389674AbgJ1W4g (ORCPT ); Wed, 28 Oct 2020 18:56:36 -0400 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D04DCC0613CF; Wed, 28 Oct 2020 15:56:35 -0700 (PDT) Received: by mail-vs1-xe44.google.com with SMTP id h5so497641vsp.3; Wed, 28 Oct 2020 15:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1W1egpqxhCc2vFNc2hQUMgNWODq/0zt9Ds07G4ofZII=; b=L860scfczkA9wSqGF8yPqs+4WiGw0DM+CJZwafcORwp5SbVMjWFeMq9JVXbLPg2lBV Nid9jh7a/25hDSME6FajktPu2YumoQlg0etsK8T1nAPno57fImnqS1L4uQZFIpa+ugkE 2ff83pu/V2XZ6aEtpzTu/k7VuSkqnJh8WxotME6RYiznbtL8ui5SbhYp1+TMhUk+bgrF LXePUR/BJ4RICmjwsgKuQPaZSGhOyBhHVOqKiwoCCt2UdlydAzUTGVNzMXEWNMknsrXG bzuqU3bUiW9g+uzC8D/AFev1KdPzfFRr1REUicJa80+naRpG7POHETI8mAHvA53V6+Y3 1B6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1W1egpqxhCc2vFNc2hQUMgNWODq/0zt9Ds07G4ofZII=; b=E8kjsypGoE22B4KZ6g4w831gKx8pKHbpS2CzZKQty+49vcviNvdYAPZFBPJNwnTnFH IQp/tXEB/E8mNljTOwZg9gYMIOMEmz8UNmyyF4fL/jaImXlgw/JfTCdLizTkXRhlQJ8k TmXg1g/+06OzOwhhg0GUT4RtCv82WSRZ1eYC7hYNLuLCfs7LggGJsfY/Xw3EJiW8wGO/ PDJ87P6LGZFaP1TY35G/LqLqDeqs3zOxHPr7NSXJSCLhJjuKCZeLCK5gvLNjUOUfaHoc ZnRcm4V5wkl0Zuo3hSo2b7yOORjhoLShH9dQ5/qQ6OkAYqjBjR0/lumB4Zcx34yqLQju SbYA== X-Gm-Message-State: AOAM532xY4v55JYvamy0ikW7ZDwhxNRwp4F5pViB3Wr0UnkIjtIVOoOw F25dKBbJl/nqljVH2WZ9G9bHTVuxBDYjiPeD X-Received: by 2002:aa7:970f:0:b029:161:ee2d:bb9b with SMTP id a15-20020aa7970f0000b0290161ee2dbb9bmr7492181pfg.63.1603895224531; Wed, 28 Oct 2020 07:27:04 -0700 (PDT) Received: from k5-sbwpb.flets-east.jp (i60-35-254-237.s41.a020.ap.plala.or.jp. [60.35.254.237]) by smtp.gmail.com with ESMTPSA id jy19sm5311663pjb.9.2020.10.28.07.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 07:27:04 -0700 (PDT) From: Tsuchiya Yuto To: Amitkumar Karwar , Ganapathi Bhat , Xinming Hu , Kalle Valo , "David S. Miller" , Jakub Kicinski Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Maximilian Luz , Andy Shevchenko , verdre@v0yd.nl, Tsuchiya Yuto Subject: [PATCH] mwifiex: pcie: add enable_device_dump module parameter Date: Wed, 28 Oct 2020 23:26:25 +0900 Message-Id: <20201028142625.18642-1-kitakar@gmail.com> X-Mailer: git-send-email 2.29.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The devicve_dump may take a little bit long time and users may want to disable the dump for daily usage. This commit adds a new module parameter enable_device_dump and disables the device_dump by default. Signed-off-by: Tsuchiya Yuto --- drivers/net/wireless/marvell/mwifiex/pcie.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c index 6a10ff0377a24..8254e06fb22ce 100644 --- a/drivers/net/wireless/marvell/mwifiex/pcie.c +++ b/drivers/net/wireless/marvell/mwifiex/pcie.c @@ -33,6 +33,11 @@ static struct mwifiex_if_ops pcie_ops; +static bool enable_device_dump; +module_param(enable_device_dump, bool, 0644); +MODULE_PARM_DESC(enable_device_dump, + "enable device_dump (default: disabled)"); + static const struct mwifiex_pcie_card_reg mwifiex_reg_8766 = { .cmd_addr_lo = PCIE_SCRATCH_0_REG, .cmd_addr_hi = PCIE_SCRATCH_1_REG, @@ -2938,6 +2943,12 @@ static void mwifiex_pcie_fw_dump(struct mwifiex_adapter *adapter) static void mwifiex_pcie_device_dump_work(struct mwifiex_adapter *adapter) { + if (!enable_device_dump) { + mwifiex_dbg(adapter, MSG, + "device_dump is disabled by module parameter\n"); + return; + } + adapter->devdump_data = vzalloc(MWIFIEX_FW_DUMP_SIZE); if (!adapter->devdump_data) { mwifiex_dbg(adapter, ERROR, -- 2.29.1