Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2623484pxb; Sun, 17 Oct 2021 20:48:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB4/fltSi57BkRLrYFJ4c0AV0EtVMOJoWBTWCDkGWD3MnEw2JSNkLvk/R5mmu9r2U8llPk X-Received: by 2002:a62:6243:0:b0:44b:e10e:61b0 with SMTP id w64-20020a626243000000b0044be10e61b0mr25895731pfb.53.1634528922770; Sun, 17 Oct 2021 20:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528922; cv=none; d=google.com; s=arc-20160816; b=BF52BJBRpj9guHxZUJ4LkAiEC+G+4rkU6e6iy7rHbuXItJLooLVFNmx/YPsUaiHYjc cbNHm2DRGRBy8TV5AkVd/3OiooOyzq5gN+3t37Xw3N1PpY97E83wa0WpKJ02bGa8c5Qm EmRbPAR/hb9cuiqC9NBMu8Ecf1H9nPfaB7pqJLcBqul+0f67myRwRmra1M+umxBRuSNt TYauJQ3opaAcsh+wB84IRXYPPWWS8a0UJCqrVyu7QCs3r7Z+ToukbO+QPphjjBeN4lfY 6+kSzqpkcbs1ifn4MXM9zAnemHh1Qpxs9F8S4ScKukrWOypXDOubcpIrgo9el9wWtoT4 OcUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=B17ugjfsl4NIFBjvUZANXnVzu0w3U/j7jZVs0/846lc=; b=QlGcNg6eIyxy9Vc3Ooo6XwN5mH6JlnrbXsmbF0DFjpDzbUfbhu3LBY0IxUjIa26cJ2 ANdxf1DHO6QQuzp2mkgEZZFJDd6KT/otnJGDxYZ2KFIeG/IcRLsqu0pWAp/u/k1Ol9D+ DHV271duCzDBNmCQOGWmobn0scre/ZoLmJ9wT30dUL/67sOqvv2531I20tstNv2i8c9k HoFmAx7xOlTTImHco2zB9hL6RyjYFwfp+B52iXXBLjDKvw7psHlXMadkCgamnuYFOgmv /gbzixkvXqdR7ugVNWIa+HfXEH6+IBFPf7LXbuwLdEdnj7marG0smxovE30ABmun1beX +ooA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=DATvT66R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me17si10192644pjb.116.2021.10.17.20.48.30; Sun, 17 Oct 2021 20:48:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=DATvT66R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234367AbhJQUHV (ORCPT + 98 others); Sun, 17 Oct 2021 16:07:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233148AbhJQUHU (ORCPT ); Sun, 17 Oct 2021 16:07:20 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26B22C06161C for ; Sun, 17 Oct 2021 13:05:10 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id j75-20020a1c234e000000b00323023159e1so299127wmj.2 for ; Sun, 17 Oct 2021 13:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=B17ugjfsl4NIFBjvUZANXnVzu0w3U/j7jZVs0/846lc=; b=DATvT66RtKTqRcxQ9DWqOw2LxPNEGsz9rz51ZHhCY7hkVrbU3TM8WgLKtqB+1j4NyL wOUXP5Pc+qYbRIzl7Tmo3hruNmndRq3PUSPs5fER8llI/32hmJv0tuy87Fx0l4yMBSGJ QAcLnAD7mLHM3T/rr5ozBJ6lOdIMuIFy998tMTx1IB6/njjPVVAG3de0W+hPKZy2zyno bZALe76UMxF0bMwyhigeepcN8QLEwXmQqVCLv52NpX8Pf9y6tb0gPapICKaYvo7I6yJd wBSQ2o112Ll/ch3V1LYR7ZpcNLZ9lq6kEIutd5V5Rs7ZmMSuZRHpem2O3Fl9FiffYya7 JXpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=B17ugjfsl4NIFBjvUZANXnVzu0w3U/j7jZVs0/846lc=; b=nqLENijr/a27v1iJFqpUdUxhRkV8S0GmGRHwuLd9/aWDn5NHrTOd0dzH2lGjjNmA5P v8ndsTgSCv54Mnlpo/cdmodnR+0sKg6sD2T/c+EJ9ZbFYjVfthtKq/vNPW/IEWOnexXv xaTVfKZrvhRcNPNAhdvqXxUq95GuMrnfeH4O9FYXhSqqpifflwNu5sfLusvSp0gRRNkp CKRaMH2Cw7SpgRu23hNbEnc8MKfAPkFjgeFELubEULFur8ZWGtRfgLrZ8wgkTREmpQuv zPH7NUeBgfTg8+5VHMRTaNycnHAdODBvYso2gq5fhyoYCAurIp+fOrVg1Z8JA/Gdy1/I +lJQ== X-Gm-Message-State: AOAM531+apnqZMcx2r/qtdly6hqDzb9NdWw4v5cjTjTPjOruL6qgJXiE veNLLtvYR+vLNmg38bWElYkFjA== X-Received: by 2002:a05:600c:1989:: with SMTP id t9mr26088433wmq.48.1634501108682; Sun, 17 Oct 2021 13:05:08 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id z6sm10909246wro.25.2021.10.17.13.05.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 13:05:08 -0700 (PDT) Date: Sun, 17 Oct 2021 22:05:06 +0200 From: LABBE Corentin To: Dan Carpenter Cc: mchehab@kernel.org, hverkuil@xs4all.nl, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, mjpeg-users@lists.sourceforge.net Subject: Re: [PATCH v2 04/10] staging: media: zoran: add debugfs Message-ID: References: <20211013185812.590931-1-clabbe@baylibre.com> <20211013185812.590931-5-clabbe@baylibre.com> <20211014073752.GM8429@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211014073752.GM8429@kadam> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le Thu, Oct 14, 2021 at 10:37:52AM +0300, Dan Carpenter a ?crit : > On Wed, Oct 13, 2021 at 06:58:06PM +0000, Corentin Labbe wrote: > > +config VIDEO_ZORAN_DEBUG > > + bool "Enable zoran debugfs" > > + depends on VIDEO_ZORAN > > + depends on DEBUG_FS > > + help > > + Say y to enable zoran debug file. > > + This will create /sys/kernel/debug/CARD_NAME/debug for displaying > > + stats and debug information. > > Why bother with a CONFIG? Just make it always on? > Hello I love to provides choice to user (and so avoid a dep on DEBUG_FS), even if I think I am the only one remaining user. > > @@ -1286,6 +1321,12 @@ static int zoran_probe(struct pci_dev *pdev, const struct pci_device_id *ent) > > > > zr->map_mode = ZORAN_MAP_MODE_RAW; > > > > +#ifdef CONFIG_VIDEO_ZORAN_DEBUG > > + zr->dbgfs_dir = debugfs_create_dir(ZR_DEVNAME(zr), NULL); > > + debugfs_create_file("debug", 0444, > > + zr->dbgfs_dir, zr, > > + &zoran_debugfs_fops); > > This whitespace is weird. Definitively Yes, fixed! Thanks Regards