Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2477911rwb; Thu, 27 Jul 2023 07:47:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlFe+ObzvR3QaJt1uXbPN2rdD7loLROxTSz9dJKWpd180BEackGay9BV0SDnilwLu/yYgt9s X-Received: by 2002:a05:6a00:1a44:b0:668:97bf:5ed7 with SMTP id h4-20020a056a001a4400b0066897bf5ed7mr6071115pfv.22.1690469224666; Thu, 27 Jul 2023 07:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690469224; cv=none; d=google.com; s=arc-20160816; b=g7+ayi9oyLOLe3owZOHfzmS+arFVqcNNZ3ocWR2NUjxdQoNJU4EXQtRSvzTbuKzd14 SqoB+Z8wlVkPVA2tVqJi6t7pMdQnxchA3mOk8iZ8jbgQN70bDW6zFbCbsMwbQKh7Fkz4 fc6UX+sLRw8GKYk8NKBWfI1yAtzDoYSxrPu9qjuU7LyOXVfePvNZvnmGmQYbFJNbp5Ud Ynjrf/CJ4EYMOdbJVVRgFjFdT+FiMuWONgASnC1pSdVEGVT9Z/h3/DZNmh8QtpGd7Yig mIXzxVl6jAv3c2d9EMHAIHy7w+qqiQ08S6es0meLTq37yd0fJShT1ChuT83g2Vwy9xJG 4AOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=mC/8dT0tbAgVPKUdoYex0WCuu0voI4R5OMKo5aDOKZM=; fh=KRmuaXPpPmDcdCix+HrNfEUb8nGoidpXGkHeiqKE1Is=; b=smwcowdAgmt7nuAaB2Yqp06r9kgM4KaL5mWU/ogkubB4GEvg1fBYPgk+HIkUw5zUGy HqVfk7aAGEOSbLksH+ndwnajAph8+kfAZ04Oo44H2ZijtV2/DKZGZeRvIck8WmASvlGE XCwQvawgo0iLRoNjHuuVxWuSyTYcNQEDoNujEH60vdnY3/JN3cJ7vRWYwUm7QRn/qBaq XdN2+MDYyBFWU197LANRYGz9Ips+2hf8qrvNd90OCZZV3RDMix1KB8+SpC0EobgPsAkI FFVtTGNf/1OJF9oIBe2DyKeS4b+qLlFdpJYUSh+NhzFFEt7OZIkZbkvGouXfGR8S2YmR xyeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20221208.gappssmtp.com header.s=20221208 header.b=Oele9AnG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m6-20020a632606000000b0053fbb36fc65si1407152pgm.382.2023.07.27.07.46.41; Thu, 27 Jul 2023 07:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ndufresne-ca.20221208.gappssmtp.com header.s=20221208 header.b=Oele9AnG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233101AbjG0OUl (ORCPT + 99 others); Thu, 27 Jul 2023 10:20:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232955AbjG0OUj (ORCPT ); Thu, 27 Jul 2023 10:20:39 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8810110CB for ; Thu, 27 Jul 2023 07:20:38 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3a3efee1d44so835718b6e.3 for ; Thu, 27 Jul 2023 07:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20221208.gappssmtp.com; s=20221208; t=1690467638; x=1691072438; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=mC/8dT0tbAgVPKUdoYex0WCuu0voI4R5OMKo5aDOKZM=; b=Oele9AnG3ahVCgEL7oOMUC6ZgJCO0eufkr86ZMpvFvAuohGbxNOE6LC7Ripx/UoCk5 gv2dkZy06BpAnsyABkfNUizbH3hNqGJgp5tK56pN9unGXH9kg+TM2d4W4+TQZr4bfbWB b5AJk4OTF5H0S+TzViJR2ob0AkxdCo+X2jCc6gp4Js/dRRb1ECRrm2sILEBYcFZNRVfK Y6aTwdWoW2xzc5P5j/mgukYsnRWijhbxe3UrlkIHvqreSyJdVepbthR2ZF1vcN51bjlT aGmnACLfdRUONpRmap0i2ZLgPPk0DcCtUAdtmXJKQNXaqigtG75Hagq4G5bZUR9pAzGz QFAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690467638; x=1691072438; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=mC/8dT0tbAgVPKUdoYex0WCuu0voI4R5OMKo5aDOKZM=; b=mF+lSFxHaAWSInXRrI/MC3+sEweC3CcWN8sVmGScAmEdw/1hUXT+kmvrVwMLBcPh6t 7L5lMusIZY2yhIzsLhDj+9pzjCbt+90hzQR5U0nTYSX1stT48Q/p6dTDof+c0Pa8Mu0d IIRclLGWWBnBZCsG1sKKQ/jDbsj17pfqMC7v4oQVRZjyhYNVicExP4bci2RFaOWNkvLy qc2SbhyZ3rNg0SyGiHvrLS6olQhvLLDzXl+6tW8bZv75EPjMdtDTYNhBi7T6Nl9oi71l 7/uXPn+btEZpx6+WkYG1L1DguMxQ3HkR6qZJLD9y0EoQc8qhSIK/FZZ4GXR3as9DI82H IRLg== X-Gm-Message-State: ABy/qLZn2bP1KwzjVrNo85dvJ4iecVyUM2hw7WUnggnQO28XYcKbLlGY MwO3CqspaMvGLTMTtX11HRzwwg== X-Received: by 2002:a05:6808:2085:b0:3a3:7245:d36c with SMTP id s5-20020a056808208500b003a37245d36cmr3468249oiw.43.1690467637836; Thu, 27 Jul 2023 07:20:37 -0700 (PDT) Received: from nicolas-tpx395.localdomain ([2606:6d00:10:580::7a9]) by smtp.gmail.com with ESMTPSA id t13-20020ac8530d000000b004033992e2dbsm449569qtn.45.2023.07.27.07.19.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 07:20:02 -0700 (PDT) Message-ID: <51e4ece5250c3345dae4956fbb4d4dbb5ffdde38.camel@ndufresne.ca> Subject: Re: [PATCH v2 2/2] media: imagination: Add E5010 JPEG Encoder driver From: Nicolas Dufresne To: Krzysztof Kozlowski , Devarsh Thakkar , mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, eugen.hristev@collabora.com, ezequiel@vanguardiasur.com.ar, u.kleine-koenig@pengutronix.de, sakari.ailus@linux.intel.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: praneeth@ti.com, nm@ti.com, vigneshr@ti.com, a-bhatia1@ti.com, j-luthra@ti.com, b-brnich@ti.com, detheridge@ti.com, p-mantena@ti.com, vijayp@ti.com Date: Thu, 27 Jul 2023 10:19:29 -0400 In-Reply-To: References: <20230727112546.2201995-1-devarsht@ti.com> <20230727112546.2201995-3-devarsht@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Krzysztof, Le jeudi 27 juillet 2023 =C3=A0 14:13 +0200, Krzysztof Kozlowski a =C3=A9cr= it=C2=A0: > On 27/07/2023 13:25, Devarsh Thakkar wrote: > ... >=20 > > + > > +static int e5010_release(struct file *file) > > +{ > > + struct e5010_dev *dev =3D video_drvdata(file); > > + struct e5010_context *ctx =3D file->private_data; > > + > > + dprintk(dev, 1, "Releasing instance: 0x%p, m2m_ctx: 0x%p\n", ctx, ctx= ->fh.m2m_ctx); >=20 > Why do you print pointers? Looks like code is buggy and you still keep > debugging it. Its relatively common practice in linux-media to leave a certain level of t= races to help future debugging if a bug is seen. These uses v4l2 debug helper, an= d are only going to print if users enable them through the associated sysfs configuration. I do hope though there isn't any issue with IRQ triggering a= fter the instance is released, that would be buggy for sure, but I don't think t= his is the case considering the level of documented testing that have been done= . I'd be happy to see what others have to say on the subject, as its been a recurrent subject of confrontation lately. With pretty agressive messages associated with that. regards, Nicolas p.s. does not invalidate the question, since for this driver, there is only= ever going to be one m2m_ctx, so the question "Why do you print pointers?" is entirely valid I believe. . . .