Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4604268pxb; Wed, 20 Apr 2022 06:45:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyb/Ekt7EJOD0+PfwI20MRY17N9xnIXcChm32ULwLJXwx2nKLy8Hxm7Bzzcvi9vm4OPfSwg X-Received: by 2002:a05:6402:1a42:b0:424:20bb:3e37 with SMTP id bf2-20020a0564021a4200b0042420bb3e37mr2806180edb.29.1650462333014; Wed, 20 Apr 2022 06:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650462333; cv=none; d=google.com; s=arc-20160816; b=UP9LxB7pfdYZCoRT8z1TpvGNyytp4XoXw9pxkpGQr7pOXsygZZ7++DHRLac088Krkz dECQvePgGnyqsQMPhOFx93Jk72nf9s0UJzUlovgVspuCGVA+dbl0zG6KO82A44rTU269 4k2AfSSD6FbjYL7HPgjwCoSbIJNQnnKODZnDLhHNY/oEV+RUNBR0pXhPPUcW6/f8SyfN 0mizE0V4GKb27L9RocmIOJe54UphtmJN3HauS0r+JswTI6tSjEdWpj0Kp+WgQIWgLHXj imAiXu4zBtzecX7OgGAIiMt7qUCRcDVNJR6IcTtElmculbExU12MGUwUBNpLqZ6HyWN9 BtOg== 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=HxgM3OVyw+cR/+PH+rHQqEJfPir72M64o1NoTw6vdHs=; b=p+98XsfYChgErcRm9FtQ1MUEjScsSe7bsynx5BYm0r/qJmUkq5dQxsMsaXfuS9NvqB n/VadNBcEt89sOtQAbinO/ronssNr+U9NTEXI7BdtqVG3JUUpXfWHfTHMETqnm3ot4Nk +q2BML5bhlwOlv3hUrtAHZuInDQOQx3Q6GNQ1STSSe2/epm2xzo7GRIcmLI1KzXPx/uN nCZdjk08ZJ/WrkQa8Rsuu/27i56DZohB21SfpoJesWmKn58HbZxmCG15nvwcOS11De+i bj1ONLy3QQltA4CBWghMcbzFx6BkEV/7RZynuvqgOb5n/zaz+94VqV+UOYuSgp8gTZA+ YHgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MWRbUBz9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 rk11-20020a170907214b00b006e891063a00si1879264ejb.268.2022.04.20.06.45.06; Wed, 20 Apr 2022 06:45:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=MWRbUBz9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S1350241AbiDTFQs (ORCPT + 99 others); Wed, 20 Apr 2022 01:16:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232351AbiDTFQm (ORCPT ); Wed, 20 Apr 2022 01:16:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD9533E3A; Tue, 19 Apr 2022 22:13:57 -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 ams.source.kernel.org (Postfix) with ESMTPS id D9659B81244; Wed, 20 Apr 2022 05:13:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC9DFC385A0; Wed, 20 Apr 2022 05:13:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650431634; bh=Xl8xanXzGG/XbMPJDPUaNRxh8BraaLlRbxRew5ksBiw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MWRbUBz9aU0uUj7CU39+2wGmazTXtMvR03ApKZl5oW7EFAVuhS5jKf7sp03Q9r9S/ JPPbgcGQiWfrN8OXQ9DsliVf5S5ZV/BvfTSU1BuKOqln8qdq/EypwAvgz1QwP8Xr4d yX1den7jqPZaRgiuM588z3n/dS4IvviSoB7ZmOWeNdMNQMnouRFfgPuz1lRohNclPl 15SyuSrsu/1OtpHeV7kDRj4sX7XF31fygnHkVtAGWoX2CwcI/yQoRIkIEkC78tNz1Y rhjcIig2B7J0YCIuF8MPsm06kuInhm56U70+8sBEMyv0DdgArF6Ic73iWHs5WSYV3+ 9hSf3BfWl3+Tw== From: Kalle Valo To: Jani Nikula Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Andrew Morton , Lucas De Marchi , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 0/1] add support for enum module parameters References: <20220414123033.654198-1-jani.nikula@intel.com> <87a6cneoco.fsf@intel.com> Date: Wed, 20 Apr 2022 08:13:47 +0300 In-Reply-To: <87a6cneoco.fsf@intel.com> (Jani Nikula's message of "Thu, 14 Apr 2022 17:22:47 +0300") Message-ID: <87sfq8qqus.fsf@tynnyri.adurom.net> 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.7 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,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org + linux-wireless, netdev Jani Nikula writes: > On Thu, 14 Apr 2022, Greg Kroah-Hartman wrote: >> On Thu, Apr 14, 2022 at 03:30:32PM +0300, Jani Nikula wrote: >>> Hey, I've sent this before, ages ago, but haven't really followed >>> through with it. I still think it would be useful for many scenarios >>> where a plain number is a clumsy interface for a module param. >>> >>> Thoughts? >> >> We should not be adding new module parameters anyway (they operate on >> code, not data/devices), so what would this be used for? > > I think it's just easier to use names than random values, and this also > gives you range check on the input. > > I also keep telling people not to add new module parameters, but it's > not like they're going away anytime soon. > > If there's a solution to being able to pass device specific debug > parameters at probe time, I'm all ears. At least i915 has a bunch of > things which can't really be changed after probe, when debugfs for the > device is around. Module parameters aren't ideal, but debugfs doesn't > work for this. Wireless drivers would also desperately need to pass device specific parameters at (or before) probe time. And not only debug parameters but also configuration parameters, for example firmware memory allocations schemes (optimise for features vs number of clients etc) and whatnot. Any ideas how to implement that? Is there any prior work for anything like this? This is pretty hard limiting usability of upstream wireless drivers and I really want to find a proper solution. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches