Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6912206rwr; Wed, 10 May 2023 00:47:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fihAE5GFl+RVA3+clkbLNFSoIy0Z7uGhygAhSyrxx22n5IMxJcsz+cD5tqlpdrTRMFElf X-Received: by 2002:a17:903:338e:b0:1a8:ce:afd1 with SMTP id kb14-20020a170903338e00b001a800ceafd1mr15420500plb.20.1683704860314; Wed, 10 May 2023 00:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683704860; cv=none; d=google.com; s=arc-20160816; b=QvN86cLikfUaPI+WAOnwZcAc+kEiAu7CkcGFsvpTuM+kbJrAH0hD6j643hQvISYq2t eTI7k76Zrn7Ogn88N/anllSyaz+2Y7o8sP69IpNmd4dEioellqgLZEpChnfkQ5c5zgQr Iyibo+udCQMixrp69ePSl6OKcF1qt5oAD2Bnmyh2j5Yaj6XQcMG+KRSBm7/HA3sJd0ZZ Fei4JLBUPb6ENHL37ETrXMKHO8huPBbF0RVxi3B2paUAsT5Mi7Axcljp7MNa5EfJuOOi gX5jVE5EF94Iy511zdFsN5KNYMM+766GOfv2Ld/MU9/aCBXKiSv91O/fC7xF0+c5Fjxk YCuA== 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; bh=8KrJM9/dgjmriMxh76xI/vM6URqrPk7A6E3064L8moM=; b=a1yuzM1Hp2Y98fic8y7IdROvqWW54VfZYCjYKA8/k5O/0+8S7ahy1xUXixt2eY9tyT abaTLTJBfnjxzohS0ftaNLF5PWhIfDvRHphREb0FrQCqL2WcdXbF5U9ubkYqZaE3oeSG ol5FfY0rcvWqJd11X7JOyZp2kedJ5rEvp3u0uo7yWPY1T/QZsispw6/7b3JOz+/9gSc4 OxwIC8L7ZVY5pqrPnxogGOEjlO1+aZXObuiZR3I7chC9pqENN/ZChtE4BzDH+Av95T5e ZVY5gAULBlPvW2N+soiDYhRoLS1vXxjtWnS01g/zEo5PyTgpMsfLanbsYFM8kiypL8Ip 9ecA== ARC-Authentication-Results: i=1; mx.google.com; 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 z15-20020a170903018f00b001a922d1f4c7si3741946plg.60.2023.05.10.00.47.28; Wed, 10 May 2023 00:47:40 -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; 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 S236447AbjEJHVu (ORCPT + 99 others); Wed, 10 May 2023 03:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236437AbjEJHVt (ORCPT ); Wed, 10 May 2023 03:21:49 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEAD51BCC for ; Wed, 10 May 2023 00:21:47 -0700 (PDT) Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pwe8X-0005sl-SQ; Wed, 10 May 2023 09:21:21 +0200 Received: from pengutronix.de (unknown [172.20.34.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id F32F11C161B; Wed, 10 May 2023 07:21:16 +0000 (UTC) Date: Wed, 10 May 2023 09:21:16 +0200 From: Marc Kleine-Budde To: Judith Mendez Cc: Chandrasekar Ramakrishnan , Wolfgang Grandegger , Krzysztof Kozlowski , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Schuyler Patton , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Oliver Hartkopp , Simon Horman Subject: Re: [PATCH v4 2/4] can: m_can: Add hrtimer to generate software interrupt Message-ID: <20230510-salad-decaf-009b9da48271-mkl@pengutronix.de> References: <20230501224624.13866-1-jm@ti.com> <20230501224624.13866-3-jm@ti.com> <20230502-twiddling-threaten-d032287d4630-mkl@pengutronix.de> <84e5b09e-f8b9-15ae-4871-e5e4c4f4a470@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tgwyxm4pxdq37yhh" Content-Disposition: inline In-Reply-To: <84e5b09e-f8b9-15ae-4871-e5e4c4f4a470@ti.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:b01:1d::7b X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 --tgwyxm4pxdq37yhh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 09.05.2023 17:18:06, Judith Mendez wrote: [...] > >> + if (!mcan_class->polling && irq < 0) { > >> + ret =3D -ENXIO; > >> + dev_err_probe(mcan_class->dev, ret, "IRQ int0 not found and polling= not activated\n"); > >> + goto probe_fail; > >> + } > >> + > >> + if (mcan_class->polling) { > >> + if (irq > 0) { > >> + mcan_class->polling =3D 0; > >=20 > > false > >=20 > >> + dev_dbg(mcan_class->dev, "Polling enabled and hardware IRQ found, = use hardware IRQ\n"); > >=20 > > "...using hardware IRQ" > >=20 > > Use dev_info(), as there is something not 100% correct with the DT. >=20 > Is it dev_info or dev_dbg? dev_info() - But without an explicit "poll-interval' in the DT, this code path doesn't exist anymore. > I used to have dev_info since it was nice to see when polling was > enabled. Re-read your code, this is not about enabling polling. This message handles the case where an IRQ was given _and_ "poll-interval" was specified. So there is something not 100% correct with the DT (IRQ _and_ polling), but this is obsolete now. > Also, I had seen this print and the next as informative prints, hence the= dev_info(). We don't print messages when IRQs are enabled, so enabling polling should be a dev_dbg(), too. > However, I was told in this review process to change to dev_dbg. Which is= correct? Driver works correct -> dev_dbg() Something is strange -> dev_info() Hope that helps, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | --tgwyxm4pxdq37yhh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEDs2BvajyNKlf9TJQvlAcSiqKBOgFAmRbRekACgkQvlAcSiqK BOjwCAgAmXS2tX60jeg2eu2tekN4V/d3zC53gUFzN/gnfNR1Oz4uTP6sM3ObU3CF ETu1+QlIsia8XdOJUMBypXq46rgD8phoaqYdn2VHLnmMw71eVYzY8h+WjRpBtYHl XkYefEOT38d5hJNwP33EQqYJIaESnqoaQvPFwDSVut1eFHm1VPk49cH53xtz62io 0u+Fd28sRI/kpECKExrE8HG6ZSNbsDPwErbLjO/GLLnAq6rIh+2K7Ko0wF+Jt/in +ss89O+LfuEal4weTPImYXWC3XDoO9H3mmcAbX3WIONVvXGS6qrvzY5fp5whrsCc H+0cmOuFijJuo3iGkzhlYhV8vS5zQw== =++ID -----END PGP SIGNATURE----- --tgwyxm4pxdq37yhh--