Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1701386rdh; Fri, 24 Nov 2023 23:13:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEY3aW0dyZyMBQ2mX1cAuqf0MlOf7q5gapVYNC+P9HDUUjVu5njvouL7tn22ppim96FGY+B X-Received: by 2002:a05:6a20:258b:b0:18c:4811:cf69 with SMTP id k11-20020a056a20258b00b0018c4811cf69mr1227899pzd.61.1700896400624; Fri, 24 Nov 2023 23:13:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700896400; cv=none; d=google.com; s=arc-20160816; b=zJk1D0P5fndfMTHOTHCGbi7+yVx8BBkVEmPXnI/uUpnxSyecYeCrQKQnYEZ53tFN5S z3hN/qdrvymRfrXplrIz0G779aYnejrmf77TtDYJez72VQQ6nqHWqGiCOlXcjYLPy06D UYPa0Nhih95KjD8ySaULNhDWhaiROLrLT7NE0ene6wJa83m+Nd4tBu1bOIA3GVcmMvAL 28tWdGLlqdozJa7+drQ/7/1RN8nAK8pbL39UzrHeyHszjCV/iimndwQy03FTpwK3cu2v 6eCxk1b7GSsxBXpcnsR5VVn/CIHEQFq/qwmW+5bEsMXAl3MiU3RTuA1uTDNEYAG0YcfA n+Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=XtqF80WLttDzEODiE7Bbxwbs4nxVZwokhMgPSxT4dEQ=; fh=bvOp8JzTAgVLTkj7ueTOfyFCYiTdCEVg6+JAdcmegI4=; b=QdIo1dPQF/HTlDWmH5Uh4IyKRks0vrizyIjFlzuVuUVBAiwl5/ptRuPZAeExV9PM09 J/ugJo/E+XFpUfSCef//NjdTygYepaBgGiG5CesMFk6XjHnJEcMsnqnrdHcya6piBxDq IxCPw7+RSvJPaUH9bKrgMddl8atS5NWW9kRs8Kvr5+bFJEZXlLQCe8MF7A1BqC+34YdW LFRKdWTcMmuhVIJXBFQNvN0XO2r6hCTElqZ2lRrPiyzl6Gbres0NVYhgiqiJBziKLDfE Lf/PFgbAIJTxHQYx4MyczGpalGmjWHV6KlDx4SzbAvFcr6PuRHNrn335Zn2GMmki2LxA Z9Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ar87xtHN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id b17-20020a630c11000000b005b8ef498e2fsi5258610pgl.181.2023.11.24.23.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 23:13:20 -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=@gmail.com header.s=20230601 header.b=Ar87xtHN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5C1B98083B69; Fri, 24 Nov 2023 23:13:14 -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 S229584AbjKYHM7 (ORCPT + 99 others); Sat, 25 Nov 2023 02:12:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjKYHM5 (ORCPT ); Sat, 25 Nov 2023 02:12:57 -0500 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 977F119E; Fri, 24 Nov 2023 23:13:03 -0800 (PST) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-517ab9a4a13so1957245a12.1; Fri, 24 Nov 2023 23:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700896383; x=1701501183; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XtqF80WLttDzEODiE7Bbxwbs4nxVZwokhMgPSxT4dEQ=; b=Ar87xtHNaH5PRnurB85K1IGNMyzXYQ6VT8QUM+0BHDi/8Z5pQCD2qUJkZXQrhl1RsZ 96ZGgKnHVYwRG0V1G8NYWrR0MZRK4Eu7HP3xYX0ulKKSdoU6rvrJ2h0GnEkUIQqwfREr 0zhgh8r/hCiuYSnOjxKAbjuOOuhIzmWmzg4GBZKXu7J/VDppB4IaR2nSPpZ9o5/ecRem MGhlIlP1HNxnT3RUKg9+GwXd8hy7xoGnb4HzprBUa93JVitshy2vg3qVZYeIbU4ht5iN fohqjA58meN4L+t2iP/YXCXcmO7j2WddyC2SOig3/WJqpJ6IM6V3c7qs6UhMC67X0xhY c5qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700896383; x=1701501183; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XtqF80WLttDzEODiE7Bbxwbs4nxVZwokhMgPSxT4dEQ=; b=bwYZqGbmL8pONjWoIt2O7zfNsUVMPDWb9ILZ1jsAyLqc+7ccf6Nm4lNZwvvnLxdm+/ +gZjruAo3N/++AqNw6N86qqStCyGcbnLFV0cs1MnuywnoaP4CzJnTMfhYy7U07/a5iDs qZFTUNF3CVpDx/N0Ak6abeXCGMUySCoxM+rssoy9dzCLyaRtFWiKn6HVe2lGamGhpqQg +fnNAeRlHfv8hQniwoWATUXZ4QwV530Ceax7qAd9OJjkYzLpI48Masa6rjEEU6UJ7fxM N8tFDKuQYPxtNCJCeU5M0fuC24B1JHQGt1sOingZxpI0WnfW4oczw1bkqOv1xogb9wgn +8zQ== X-Gm-Message-State: AOJu0YzCy6nkA94ifcp+dmMVXNPcu59L8OFevaVKdRcfjDtrMexOsIY/ UbJZZqHAGdUdgrABwvY0xnBsdgMGrY8ae+KBH1CUf5alCapQiwZt X-Received: by 2002:a17:90b:1d09:b0:280:c98f:2090 with SMTP id on9-20020a17090b1d0900b00280c98f2090mr6878396pjb.32.1700896382977; Fri, 24 Nov 2023 23:13:02 -0800 (PST) MIME-Version: 1.0 References: <20231122161304.12434-1-ghanshyam1898@gmail.com> In-Reply-To: From: Ghanshyam Agrawal Date: Sat, 25 Nov 2023 12:42:26 +0530 Message-ID: Subject: Re: [PATCH V2] media: stk1160: Fixed high volume of stk1160_dbg messages To: Phillip Potter 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 23:13:14 -0800 (PST) On Sat, Nov 25, 2023 at 4:00=E2=80=AFAM Phillip Potter wrote: > > 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 an= d > > 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 Hi Phillip, Thank you for taking time to review my patch. I will fix the issue with my patch needing previous versions being applied first. I had used dev_warn_ratelimited because the checkpatch script mentioned a sequence of priorities to use various logging functions and dev_warn_ratelimited had higher priority. But now I have found other issues with using this function here, so I will switch back to printk_ratelimited. Let me fix the issues and submit a V3 patch. Thanks again for your time and kind suggestions. Regards, Ghanshyam Agrawal