Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp35169rdd; Wed, 22 Nov 2023 08:46:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHY9gnCJDHVC5R+aAy+wiFdb+ZjrscFu8lZcR99j1ku+KK/ld4eqzIvt0Db+IsjNIOoRio X-Received: by 2002:a05:6a20:9188:b0:140:6979:295d with SMTP id v8-20020a056a20918800b001406979295dmr3103355pzd.2.1700671574227; Wed, 22 Nov 2023 08:46:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700671574; cv=none; d=google.com; s=arc-20160816; b=1I6DB1RIDozaSUw0eTBxj33y9WLabKxm6OsxdgbkQBhDNvvrxdAmsQdSTz51+42HmU Vg/zZpTPLK4bPPAE9m1nvSt8H8wNb0/U9T6lv+3rqaiWw20uRpfL5kFr7XxHOEuXuDyn kEs6JEaNi0YXgh9ybk2JpYc1U7u24LjyXFgddLPInBvA1dLImtJEcCgWzJiwc7iYGLIk iX3FoDFxE4yNCNKREexsRuEg7G44btIwSpwycG07gJs3o4XGMX2QNTCp7yWNGQJIKJiF IypCM/YqZRrmJhik2DhNNO06zDJf8PVhJOp1IP9Ulvc54JubYsbb09u+IPkJSw5EPdQ5 SsCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=HyWcgELpb6UdJnm+ja/wiF+AhKQWDsGUNZgLIUnx45M=; fh=BN9hG8o2iTaLn64plggRjVLJ3069N1hFfvJo8i4jluc=; b=lNE3o/WZkBw5JQfdkhNCro0XaRQHNIKU8zS6E34QfdO+l29Pm8D8UR8ovIADllqMPZ YkGZzwe2ZcXwYGGssZyy0qT5zdtlXsqavd6nW6SHDXrVTo2+Vcey6bUf5u7vbGpAVScf Xn0gFr1dJS2j5SUyQODvUseF9Ru9dF7MUIMe2Je4856vjTWWNUXFLl4T8+mXWaizrdF1 kjol7ZP5AZP9+BUbK8NpFmdXlVFipAM5gf5mSuE8dDUpjjIdPS8XOfA87LFU0Co6A9vB 4stvZ5mHqNrCCA1C0CSnq1hLEVK1aKIfzFO3nNsWoBSj3Ls/LLxRFKGtQEiAclKeN62A rddA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gCwN4KyK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c32-20020a630d20000000b005c289c5cb5fsi170576pgl.445.2023.11.22.08.46.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 08:46:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gCwN4KyK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E7481803BE98; Wed, 22 Nov 2023 08:45:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235334AbjKVQkK (ORCPT + 99 others); Wed, 22 Nov 2023 11:40:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343819AbjKVQjv (ORCPT ); Wed, 22 Nov 2023 11:39:51 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15636A2; Wed, 22 Nov 2023 08:38:38 -0800 (PST) Received: from arisu.localnet (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: detlev) by madras.collabora.co.uk (Postfix) with ESMTPSA id 9FA6B6602F31; Wed, 22 Nov 2023 16:38:35 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1700671116; bh=si3WK0FrjG81C4HO0aJN41hihbd3NqNMO1F3f6cyEv8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gCwN4KyKM/tEM426vB1Xc0yr8+YkjWgLrNLmljXWUYcKjbLbhtBysUOdtv6UubyCC B6gmlU/X960b+bpIyb4ffX6UwZjWlHH5LCdvayTlvZ0gMxEeW1Y0h2F2wMrStA6q4I ypURIPj0F/vETt4dDKKiAFgJ5kdOnpJvZzUA3dbw0M+vZtEEaKDgukFQutLcpU95hd Daea+zPOG6JJL5khDBFlFjIkadD0L2c9Ag8z4URw2H5OSeP9UYSIvmPBys0kmJEuXn xTW0DmDlslmviNG4UT5Jbyf13zUXaEw5Fjdov71ra7QRNWXHJYqaQaoeq53QTxFdJY HwrmBnMJlGjqw== From: Detlev Casanova To: linux-kernel@vger.kernel.org, Hans Verkuil Cc: linux-media@vger.kernel.org, Daniel Almeida , Mauro Carvalho Chehab Subject: Re: [PATCH v2 1/5] media: visl: Fix params permissions/defaults mismatch Date: Wed, 22 Nov 2023 11:38:46 -0500 Message-ID: <4879622.31r3eYUQgx@arisu> In-Reply-To: References: <20231024191027.305622-1-detlev.casanova@collabora.com> <20231024191027.305622-2-detlev.casanova@collabora.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4529700.LvFx2qVVIh"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 08:45:18 -0800 (PST) --nextPart4529700.LvFx2qVVIh Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Detlev Casanova To: linux-kernel@vger.kernel.org, Hans Verkuil Date: Wed, 22 Nov 2023 11:38:46 -0500 Message-ID: <4879622.31r3eYUQgx@arisu> In-Reply-To: MIME-Version: 1.0 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. > 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"); --nextPart4529700.LvFx2qVVIh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEonF9IvGrXNkDg+CX5EFKUk4x7bYFAmVeLpYACgkQ5EFKUk4x 7bZE+wf+MCK8uJhfh4YaMqQHC74WNCozrTSQtFgK/+EywNzwEhcHIKUSmLHntpzq ECO/A1CYJ03YtO5VJ0CR/3S+kGppVspGA2XBPUvaqao3SiiGzRuvca5ix71Q8W30 cUxFzknce1gJB4W/ZENeYnrBlPyFWvKi34fB33iOvT8/LonOqgJJergpsccNUvp4 NY+zmGYJ/S1Liqh5QG0Qa3hDuKQdLPIYdUkjiESmCGgw9D51vNJYhcSi3MwyHxbK 9eniFJmTWrt1vdiUgeUaNpYfo1JzW0PtDT0Wp+3MoKn0fniLyfDC4UT7uAr2B1Y1 e6/AmZNuyz/uS+/JKjogIMBTF+KzjA== =09tU -----END PGP SIGNATURE----- --nextPart4529700.LvFx2qVVIh--