Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp811903ybx; Thu, 31 Oct 2019 01:02:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzk/bSKs/EUqwcaswLkXuVPPMYcdanJnWDcY6PPq7AtafkhvLseHM5phqLoATkRPaIVJHZD X-Received: by 2002:aa7:c757:: with SMTP id c23mr4311832eds.209.1572508964114; Thu, 31 Oct 2019 01:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572508964; cv=none; d=google.com; s=arc-20160816; b=f86Ymx7yDZuqoFUuugpY6INbH0revkT9SdK/p0RK3k2U2BfjH+XZn+7/UsuIgP8rk0 YdbyQCJ89OngXJyG/hm2ljOY558JyVFZB+AheFEAf5vNMfak6jeYPL2yA+IxZ3JMhEkI mmjCnwdpBD9P/dziG+VkwRIGGSei3hhaWg2ZVS82fVF5tUyQKafC0KN1SEO9OTE12/Gl l9vceKoU2u7xyZz/QGFxIOgjsq4fzt7RBXF51m52U5uSLhoyEGdgKpZzlxojbLGooa5g AakD9WBXsiaXN4q1Caoe1GYTIXh0JgO22WqmRWsnZZvs7eLoHDbnJL8AL9U5cJPiAVOL 0poA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature:dkim-signature; bh=JWEW4cn1hEpknpzKd/kX2ywfNSzrQYFAj1v9uFg/q7c=; b=N9KIo6XxZvH0ra6qnf7I5Snt/VKuY9Yk82E3HD8FAH4d25D0Icn4koOoJIrjUXsT4f 8u57R+nnNfWb/6sEBaGLd+NGnrEFgfJymf9McERybaHEaXqtypLDuHCqA4fn2LVKrSF0 PniH0lLzu9DgT+u2DtfrWKqriMzSmmWOjjAgLYvjIMaCV+hfDFMoPFDwZhlERaomLMV4 IRJKIBb7fz09vru5eJAD7b/WZNOZs7pz7WkD4FfTl/SqpXStdRGC30v8qsNEMLpU20a8 LpotE12KltC8fkb8V2YzcRr/LUAbKSnINcFm2HqznhIO7gwzKJtcX42hyU/tzvqXtC8y 400Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=a5Rfh3m8; dkim=pass header.i=@codeaurora.org header.s=default header.b=l1DRo5ol; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 y17si2785741ejr.51.2019.10.31.01.02.05; Thu, 31 Oct 2019 01:02:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=a5Rfh3m8; dkim=pass header.i=@codeaurora.org header.s=default header.b=l1DRo5ol; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726776AbfJaH7L (ORCPT + 99 others); Thu, 31 Oct 2019 03:59:11 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:40290 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbfJaH7L (ORCPT ); Thu, 31 Oct 2019 03:59:11 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 24E1D60930; Thu, 31 Oct 2019 07:59:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1572508751; bh=K+P0WmOZtIxLVIqj6uP9thlwD4zxqpwuHAS3xWz18y8=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=a5Rfh3m8PdXSfaBIB0v0btKpQlnh0WqLGm6UjAnsdPfMMUCpnpchGl1WoC4KPBWwM eX1+BuJO7gAYQfv/7Mus53RPJ3QcFHDxE/x2AdV8Hs5z0UQZ5VB/HXThHXqm+jPpUN n1ssyA/yKYkch2/GAftAB4fJbDRXKeJ0WGu72Qo8= 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=-0.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MISSING_DATE,MISSING_MID,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 511CA6034E; Thu, 31 Oct 2019 07:59:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1572508750; bh=K+P0WmOZtIxLVIqj6uP9thlwD4zxqpwuHAS3xWz18y8=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=l1DRo5olWy6bY7/MZWlCNnmC97O484gG5Y4v142jpfD5QGCiis/6vOj+zeBfLW/k8 N7GarJ5yN4Su3QF4bpRw02iChYe840sgUG1F4By2CmoEHjDj5TEpHF/Qedls2CR41q hydeaEZXDPAstY78tZ+WRDg+Xa6UC5b1pq+CDOUA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 511CA6034E 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 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 3/6] rtw88: use a module parameter to control LPS enter From: Kalle Valo In-Reply-To: <20191025093345.22643-4-yhchuang@realtek.com> References: <20191025093345.22643-4-yhchuang@realtek.com> To: Cc: , , User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20191031075911.24E1D60930@smtp.codeaurora.org> Date: Thu, 31 Oct 2019 07:59:11 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org wrote: > From: Yan-Hsuan Chuang > > If the number of packets is less than the LPS threshold, driver > can then enter LPS mode. > And driver used to take RTW_LPS_THRESHOLD as the threshold. As > the macro can not be changed after compiled, use a parameter > instead. > > The larger of the threshold, the more traffic required to leave > power save mode, responsive time could be longer, but also the > power consumption could be lower. > > Signed-off-by: Yan-Hsuan Chuang > Reviewed-by: Chris Chiu I don't think a module parameter should be used to control power save level, instead there should be a generic interface for that. Also the commit log does not give any explanation why this needs to be a module parameter. Tony, there's a high barrier for adding new module parameters. It's a common phrase for me to say "module parameters are not windows .ini files". And to make it easier for everyone always submit controversial patches separately, do not hide within a bigger patchset. -- https://patchwork.kernel.org/patch/11211881/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches