Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp189657rdh; Thu, 23 Nov 2023 00:42:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIS35Lu+3IOGJcXzPj9Nia7hIwTAix658ombP7mkXiwtQwxSMFzo1gFK3ulnIlPUwA6C6M X-Received: by 2002:a05:6a00:1c9c:b0:6cb:b87d:8986 with SMTP id y28-20020a056a001c9c00b006cbb87d8986mr5303105pfw.8.1700728932353; Thu, 23 Nov 2023 00:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700728932; cv=none; d=google.com; s=arc-20160816; b=MVoq8wJFFsviidYxd4MG9UafdJHGjqLHSsV9QkLfS06VcWp2bthxd82+yxrjw8M0z8 ciNvfkZeDmdr4ZsvWmODaI0xoP1BPyIgWsT6m2o1BH9NEjdE47wQGs/RqWPk43wLBc/G QUv8z/PMtietEAxKK6A0X7GQDeGmGJaW39KpUSyse4hDdE9EQP4jLScB7yXK6+8NqubI ilKMUzZDtGH3mVJ+4bbTP3FFkQMgPQZYMJEL2+siA+GlKrsQaQHWfPS2Hxm5hmIM+zhg jBFP3ITOPkKAQtGu+ASynAGM7iJZkVYGT46gbUGeBmBdVAJOscUQR7HhzHRI73ZZOAE6 w+oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=FZBPnkoCdpPHxkFXd0safell1Tugs94boDzUjJ4QYAA=; fh=4bfq4JupAy3BlGL5GlAltfFW84hsq+1ayPo2NPz78Tc=; b=D0Li5Pt5zCHs606OS2lvmUHk6bd6g06nP0e8U7YoETOb1SPVMpM4a2SO1gGMVyE6XV 4OrDdA9fxY5YsshPRVgAAUIh6SIJP3YqBeSTOxyUOojUPjzM7uiIFlJHAx1qhyjHo/q4 m+S8vYPUSgtmoR7sHXQwVzdB14z3Qm/8UrCFSaIYHQsCMpLksPVDsEal9eiyoA3BmFIA 2swtFuMllVcgaC6V92u9BsXj2uE9nRLFMKIZlY7Wq3OzfJ/XNJRFp+L3XJFzA7wkg0Bb IxXVVay9SRoddL7WYWY+X8o8yvGRK0WyAQ6SDtlwu6l4+v6BzMeB+Vj4OtE5dOjJxrHe yrJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x15-20020a056a00188f00b006c3463c7299si831867pfh.197.2023.11.23.00.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 00:42:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id BB07D80A91B9; Thu, 23 Nov 2023 00:41:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344961AbjKWIlM (ORCPT + 99 others); Thu, 23 Nov 2023 03:41:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234607AbjKWIlH (ORCPT ); Thu, 23 Nov 2023 03:41:07 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A272D5E for ; Thu, 23 Nov 2023 00:41:12 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2913EC433C8; Thu, 23 Nov 2023 08:41:10 +0000 (UTC) Message-ID: Date: Thu, 23 Nov 2023 09:41:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/5] media: visl: Fix params permissions/defaults mismatch Content-Language: en-US, nl To: Detlev Casanova , linux-kernel@vger.kernel.org Cc: linux-media@vger.kernel.org, Daniel Almeida , Mauro Carvalho Chehab References: <20231024191027.305622-1-detlev.casanova@collabora.com> <20231024191027.305622-2-detlev.casanova@collabora.com> <4879622.31r3eYUQgx@arisu> From: Hans Verkuil Autocrypt: addr=hverkuil@xs4all.nl; keydata= xsFNBFQ84W0BEAC7EF1iL4s3tY8cRTVkJT/297h0Hz0ypA+ByVM4CdU9sN6ua/YoFlr9k0K4 BFUlg7JzJoUuRbKxkYb8mmqOe722j7N3HO8+ofnio5cAP5W0WwDpM0kM84BeHU0aPSTsWiGR yw55SOK2JBSq7hueotWLfJLobMWhQii0Zd83hGT9SIt9uHaHjgwmtTH7MSTIiaY6N14nw2Ud C6Uykc1va0Wqqc2ov5ihgk/2k2SKa02ookQI3e79laOrbZl5BOXNKR9LguuOZdX4XYR3Zi6/ BsJ7pVCK9xkiVf8svlEl94IHb+sa1KrlgGv3fn5xgzDw8Z222TfFceDL/2EzUyTdWc4GaPMC E/c1B4UOle6ZHg02+I8tZicjzj5+yffv1lB5A1btG+AmoZrgf0X2O1B96fqgHx8w9PIpVERN YsmkfxvhfP3MO3oHh8UY1OLKdlKamMneCLk2up1Zlli347KMjHAVjBAiy8qOguKF9k7HOjif JCLYTkggrRiEiE1xg4tblBNj8WGyKH+u/hwwwBqCd/Px2HvhAsJQ7DwuuB3vBAp845BJYUU3 06kRihFqbO0v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aF7Zgfw8xkad KEiQTexRbM1sc/I8ACpla3N26SfQwrfg6V7TIoweP0RwDrcf5PVvwSWsRQp2LxFCkwnCXOra gYmkrmv0duG1FStpY+IIQn1TOkuXrciTVfZY1cZD0aVxwlxXBnUNZZNslldvXFtndxR0SFat sflovhDxKyhFwXOP0Rv8H378/+14TaykknRBIKEc0+lcr+EMOSUR5eg4aURb8Gc3Uc7fgQ6q UssTXzHPyj1hAyDpfu8DzAwlh4kKFTodxSsKAjI45SLjadSc94/5Gy8645Y1KgBzBPTH7Q== In-Reply-To: <4879622.31r3eYUQgx@arisu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 00:41:24 -0800 (PST) On 22/11/2023 17:38, Detlev Casanova wrote: > On Wednesday, November 22, 2023 10:56:20 A.M. EST Hans Verkuil wrote: >> On 24/10/2023 21:09, Detlev Casanova wrote: >>> `false` was used as the keep_bitstream_buffers parameter permissions. >>> This looks more like a default value for the parameter, so change it to >>> 0 to avoid confusion. >>> >>> Reviewed-by: Daniel Almeida >>> Signed-off-by: Detlev Casanova >>> --- >>> >>> drivers/media/test-drivers/visl/visl-core.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/media/test-drivers/visl/visl-core.c >>> b/drivers/media/test-drivers/visl/visl-core.c index >>> 9970dc739ca5..df6515530fbf 100644 >>> --- a/drivers/media/test-drivers/visl/visl-core.c >>> +++ b/drivers/media/test-drivers/visl/visl-core.c >>> @@ -74,7 +74,7 @@ MODULE_PARM_DESC(visl_dprintk_nframes, >>> >>> " the number of frames to trace with dprintk"); >>> >>> bool keep_bitstream_buffers; >>> >>> -module_param(keep_bitstream_buffers, bool, false); >>> +module_param(keep_bitstream_buffers, bool, 0); >> >> ??? >> >> This last parameter is the permission, it makes no sense that this >> is either 0 or false: then nobody can see it in /sys/modules/. > > It makes sense if we want it set when the module is loaded only. This way, we > don't have to manage the parameters values changing while work is being done > and keep it simple. > It could be made readable if that looks better, but there is no real need for > it to be read either. Why not? It makes it easy to read what this module option's value is. I now see that both visl and vidtv uses 0 a lot, so I'm OK with this patch for consistency. But I think especially these test-drivers should use 0444 instead of 0 so you can see how the test driver is configured. That might actually be relevant when writing tests using these drivers. Perhaps separate patches for visl and vidtv that change 0 to 0444 for all the module parameters? Regards, Hans > >> Typically this is 0444 if it is readable only, or 0644 if it can be >> written by root. >> >> Regards, >> >> Hans >> >>> MODULE_PARM_DESC(keep_bitstream_buffers, >>> >>> " keep bitstream buffers in debugfs after streaming is > stopped"); >