Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1709944ybg; Thu, 30 Jul 2020 00:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKR4Ht/65r318h1v6FCIQ800lFNm1mYWt/RR+wTCHRJmjvFJi4M9hMqwVr/XhGlbIaeVf/ X-Received: by 2002:a05:6402:1358:: with SMTP id y24mr1347194edw.318.1596092592716; Thu, 30 Jul 2020 00:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596092592; cv=none; d=google.com; s=arc-20160816; b=SFG5VX3WqV9rXkOkb4aCy1PixL7/3WeQPwibJln5R3Bn9feaTAb68kVJd9i+zvH/nR LMIgSd19uxX45cS207pnFQ9DMyNlZr36nadr23nl+TtozXc2gceDCQuRRIj/XXy7UOXL KARF3SJ4FykSl4heIB04U7qDE7YI1nhexqNTsopf+/VcN5fJqy23IDgUDXxOfzr/FoCT KoVNplwStaZ8h45fsuZlj41dxhFiYp1xszTI1xVIZqD9leqaAZLN8kqpR5B0P1bBULQt qGVP293kbnNcMCdMuk/hWox7hxYHB3NUxvrxLDw530nBv1LM5Q3HeGLnWhrmT9Eiv6GR 3oVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=brZspEMTECbQM/w/aX+jFwJ59mqCzR3NudxWGy/b0hw=; b=auO1g/oE2kWnLpBgcMeaFQ+l/oqMF5MShQVJqLrMxkz6p6m8TqJvaiVPqI3V2NU9nU ed+i0lRLULGTcqY93hW5Ey0vT05TGmukxXir3ty/xSqXTHSeh08dQuJScD4Uox+UqfMT TRY2Vy+Inc3zDA/2Q0dvZm1xiV0Ov6RwC5668L64/7WTPkWDJecdK5r5iW2UTe5t3/8z 0T+TmMp5V4kv301j0kmNr5VkXol84Wjq59rQLQDZ/rGDt4dYSvadFwo1kiW2JT5/lh+f 8XjXlRDxHj+9aB+Za6mfccU8AdUCKwwDqy4hkYRAu5YnACjBqRnNdmO4W+R18SFvj+dO U1tA== ARC-Authentication-Results: i=1; mx.google.com; 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 bg17si2619190ejb.16.2020.07.30.00.02.50; Thu, 30 Jul 2020 00:03:12 -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; 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 S1728843AbgG3HAd (ORCPT + 99 others); Thu, 30 Jul 2020 03:00:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbgG3HAc (ORCPT ); Thu, 30 Jul 2020 03:00:32 -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 6DF80C061794 for ; Thu, 30 Jul 2020 00:00:32 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k12YD-0006w4-F8; Thu, 30 Jul 2020 09:00:25 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1k12Y9-0007TC-HZ; Thu, 30 Jul 2020 09:00:21 +0200 Date: Thu, 30 Jul 2020 09:00:21 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Dmitry Torokhov Cc: Roy Im , Bartosz Golaszewski , Brian Masney , Greg KH , Lee Jones , Luca Weiss , Maximilian Luz , Pascal PAILLET-LME , Rob Herring , Samuel Ortiz , Thierry Reding , Thomas Gleixner , Support Opensource , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes Subject: Re: [PATCH v18 3/3] Input: new da7280 haptic driver Message-ID: <20200730070021.l2yuomsc3uwua5bx@pengutronix.de> References: <23b3470401ec5cf525add8e1227cb67586b9f294.1595991580.git.Roy.Im@diasemi.com> <20200729063638.GY1665100@dtor-ws> <20200729072145.ifzoe656sjpxdior@pengutronix.de> <20200730050653.GA1665100@dtor-ws> <20200730061631.y4r4s6v3xepktj54@pengutronix.de> <20200730063404.GH1665100@dtor-ws> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6mvmazbtlauombxa" Content-Disposition: inline In-Reply-To: <20200730063404.GH1665100@dtor-ws> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6mvmazbtlauombxa Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Wed, Jul 29, 2020 at 11:34:04PM -0700, Dmitry Torokhov wrote: > On Thu, Jul 30, 2020 at 08:16:31AM +0200, Uwe Kleine-K=F6nig wrote: > > I suggested that some time ago with limited success, see > > https://lore.kernel.org/lkml/20200129115516.zsvxu56e6h7gheiw@pathway.su= se.cz/ > > . > >=20 > > > In the meantime I would prefer using %d when we have integer > > > error. We should not see these error messages anyway ;) > >=20 > > I don't agree. Error messages are supposed to be helpful and I prefer > > some casting between error pointer and error int over emitting bare > > numbers to the kernel log. (And additionally the uglyness might help to > > convince the vsprintf guys that %de might be a good idea after all :-) >=20 > Sorry, but I do not think that I want to introduce this pointless > casting just to sway printk folks. Either we have proper way of > formatting error codes, or we do not and we stick with what was working > since forever. You got me wrong. Getting an argument to rediscuss %de is just a minor side reason for me. Getting an expressive error message is the relevant reason. There is also an inconsitence in what you suggest that I don't like. If in a probe function devm_clk_get fails it should say "-ENODEV" but if it's clk_enable that fails it should say "-5"? Also "we stick with what was working since forever" is a poor argument. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --6mvmazbtlauombxa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAl8icAIACgkQwfwUeK3K 7AnIkAf/d0H21gepKuzCj8TF4i7RhVdQmovVhCkjECV45VfUaPWJVa5DPDT51HVp ddTSzc4cQybR+P11UlUZxDh19YETlA7weL1KOPOqVQsdolbW7jg55nisi0UP5PEN rPfPU6HBQCr4G1pFsoljrxtLUe/oXfz52LMF1MQtRaOoOebAxuDZJ66D45I2fAm1 ZXFmjlpv8x0ynqwD2JjmZGc8YQG2+qa5ncHlZg2Ip6dNL99PMMuQ6vFK7+tDah0f 10opv9MtabIWYebuDxP5Pn3LeAG5Vw11oMjZKsf9ndwDCSqg1F4uLYYX7iDsR1lb sGIy10masMtW9D+19sXnR2cqwFDzWQ== =DuS1 -----END PGP SIGNATURE----- --6mvmazbtlauombxa--