Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1496444rdh; Fri, 24 Nov 2023 14:30:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8qu1cyiY43nAzDtKlOj0TlARXQR3k4oyfH174O4HV1+hhSJ7C8RbrSwbI+UNM3FziDtPn X-Received: by 2002:a05:6a00:1512:b0:6cb:e3c5:7cb3 with SMTP id q18-20020a056a00151200b006cbe3c57cb3mr6229709pfu.16.1700865017098; Fri, 24 Nov 2023 14:30:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700865017; cv=none; d=google.com; s=arc-20160816; b=anYzIvC4xzCpKxJP+bQ4W7xfA3L8Vv40gDmfxejwmAgAsv0yNGmNKIRP9KM/RxVaRL GcQyMHaFcc9Wu4dFo0ScNLTVHnAFMPaNWthcX++HdYyYbIwu7jNUEW16RhyKeNYcPprV fJToSFe2rYKTA2ifRvgat5t6e0Fm0dEICKKo7guv9gQ7+cyukdVVP0110U4Zp+lJiUpg OHIic87R0A21odzZuGhYk3/JxdDMLhUvS5+jxPjdiHJsWNi7IBJJ4LHyUDMeFalh+KoR xoWktJnosLFegc4QI5Lhc6bQ/rawiyVGUvEKV5p0prBknKtnp5lmwJKFig4wtH5W6f5b LghQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=N9aMoVAYZDthyr2anGCDJRxJF5mVykGeJEK+2TP+uDA=; fh=sA1bZqY4oWgF7PVSwXy9b6WMJrBFdGPxUBuBodTPdS8=; b=hIPHwit9bGQfJMqT74lWjV9PSYdeKd1B63bA7QRmaey69imqzmhg7AvpO6enAUO/h2 /mxF6HFYKm8f66Rd0tQVbUxfM2wRTcrPiF1dpkFIwQdtNw4igHA2AJPoloDnQQ8vxTgD kOfpITnQamoh/wdILlss/w6LOyro9M82ojBKSXrRW7t16dQ3DxW3isZOwwjr7BODdcjW 7Fhvjjo7B31Xnf6cBOhso0h8y/bPq+OUUD0zIZWwrHAi2XSvZPrZaXTuU/ENCYcxW49d Nk2b01Uo01TuMnh7vdiv3ysFKWmTo67GrUV+/MHABmA0gG5FhbQqP/nPTQuP8Qtb3LcQ ANGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@philpotter-co-uk.20230601.gappssmtp.com header.s=20230601 header.b=mpKF3jkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id a22-20020a631a56000000b005b8de051ac6si4293991pgm.111.2023.11.24.14.30.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 14:30:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@philpotter-co-uk.20230601.gappssmtp.com header.s=20230601 header.b=mpKF3jkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 981CD80C4DAD; Fri, 24 Nov 2023 14:30:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229710AbjKXW36 (ORCPT + 99 others); Fri, 24 Nov 2023 17:29:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbjKXW35 (ORCPT ); Fri, 24 Nov 2023 17:29:57 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD3181701 for ; Fri, 24 Nov 2023 14:30:03 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40b3e7f2fd9so2089485e9.0 for ; Fri, 24 Nov 2023 14:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philpotter-co-uk.20230601.gappssmtp.com; s=20230601; t=1700865001; x=1701469801; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=N9aMoVAYZDthyr2anGCDJRxJF5mVykGeJEK+2TP+uDA=; b=mpKF3jkvLQkZD3AydPUFWQgxTtNJ5BpR+u5CWkZSHj66HKpXkh6NYDf8iI4KTZdHxw b+N/rdZcKumT0oDyCJlgLfzSsoqudC6zoVJv10aL4zkrumjviYZLlLWoLZpjfNLqzcQl yjIbOA4BOOanvOsw9BU7VF7bA3rNIAWsnEg1xqZqIqbMeeNM3ztwwk/bu5odN4Y4i65C ynsbgnk2FD9PDr+80W234Rinv1Ri7c4cKS0HcbF1nd90QuYUDZCVFM7CAOvlElCiMcnT fufl7nbPlLZOXq6t4ZrIbze0/j1QyRQ1ZFnka9IVKiH81A8MJnRqzfYXU1ZfjMSQ0cp5 e/uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700865001; x=1701469801; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=N9aMoVAYZDthyr2anGCDJRxJF5mVykGeJEK+2TP+uDA=; b=DQ4CjCvz1MaTUM3TEpfC9gAs8BswMBy5P7WrZJF2TGzd67bRBKVX2olLPE9u9gkLP3 ZBqWZf+qcg4YBN7UL67wqDh/8sl04dzqqF4JLr1ncrAu8PWzMInQbVAWBcvTKPYKirYd 72XLErsAbs/nnjoMBHn3VHFwA1vqCepEgOWtJEYQwxDPqOZhLKKTIhhkhnAZXRPC+rFJ 5El+wIz6aph2TT3Ha4I5prm4JINERMOrox+ccqIFpVQDUeGiZ5zId5U7HCQWRQYsZW1S fGVNY0S5/27UR0P8ZPy7/Qe9F371NH3InLStPdFkWc6uO5fOR9T+OhTZeaWX4xYm4sZ5 qPgQ== X-Gm-Message-State: AOJu0Yz2QKDD7XC7KzaPdSjFdNpVsKzDqtqIq5OVnVH69VUMPt2JDSTd ZZEPnFY7+CWdmrWJk8YZpqahQg== X-Received: by 2002:a7b:c857:0:b0:40b:35f2:3b42 with SMTP id c23-20020a7bc857000000b0040b35f23b42mr3286516wml.22.1700865000755; Fri, 24 Nov 2023 14:30:00 -0800 (PST) Received: from equinox (2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.a.1.e.e.d.f.d.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:dfde:e1a0::2]) by smtp.gmail.com with ESMTPSA id m5-20020a5d56c5000000b00332cbd59f8bsm5274213wrw.25.2023.11.24.14.30.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 14:30:00 -0800 (PST) Date: Fri, 24 Nov 2023 22:29:58 +0000 From: Phillip Potter To: Ghanshyam Agrawal Cc: ezequiel@vanguardiasur.com.ar, mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH V2] media: stk1160: Fixed high volume of stk1160_dbg messages Message-ID: References: <20231122161304.12434-1-ghanshyam1898@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122161304.12434-1-ghanshyam1898@gmail.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 howler.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 (howler.vger.email [0.0.0.0]); Fri, 24 Nov 2023 14:30:13 -0800 (PST) On Wed, Nov 22, 2023 at 09:43:04PM +0530, Ghanshyam Agrawal wrote: > The function stk1160_dbg gets called too many times, which causes > the output to get flooded with messages. Since stk1160_dbg uses > printk, it is now replaced with dev_warn_ratelimited. > > Suggested-by: Phillip Potter > Signed-off-by: Ghanshyam Agrawal > --- > v2: > Thanks for your suggestions Phillip. I have updated the TODO comment and > used dev_warn_ratelimited for inclusion of kernel warning. > > drivers/media/usb/stk1160/stk1160-video.c | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/usb/stk1160/stk1160-video.c b/drivers/media/usb/stk1160/stk1160-video.c Hi Ghanshyam, Thank you for the patch, but it is sadly incorrect. You have created this V2 against a tree including the V1 version of your patch. A V2 patch should apply cleanly against the source tree, with no previous version first needing to be applied. On another note, why are you using dev_warn_ratelimited here, and if there's a good reason, why not use it for the other callsites in this function? (Genuine question here, I've not studied the difference). Please create a V3, many thanks. Nacked-by: Phillip Potter Regards, Phil