Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2455013imw; Wed, 6 Jul 2022 06:18:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v6M9cSQ6m69ykKWGiBwJ4xlLOH/it5m1f+r0RApGINO59gsLtYYGmvdfBq2m1+SzUxVVbd X-Received: by 2002:a05:6402:3807:b0:435:20fb:318d with SMTP id es7-20020a056402380700b0043520fb318dmr53586237edb.272.1657113513929; Wed, 06 Jul 2022 06:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657113513; cv=none; d=google.com; s=arc-20160816; b=BH2eV2qx6jDCZr5V7xmuBCWxNjoGUjHti3tJw/qFOeHXnRtqvpnjJREQvjEvzWYO+j Fq5WScXKoDXWaDclfpYRt6xlAfIg47O7tKFde8sT0Ag3SWGr7KZoKwOfFSSjb1JUTzgI zIy/4q1ponRKXT9gcrcsg/akNeNDjlW/z6kE1EKjsoJ6IO7zIVlCBoEji84tVxXKCIEb uiCI8n3P+tGw7v+KylRB2+IsG5hs+hvBCwx/BqtzRDW+d5OgBQfX/c5ERY+X1JyApxy8 KZLSN1tNCremTmn+nfikmo8GhSHf68wsuhSA8JLisbMtGKLSY6CNA3mk7m9vVrCvM0nj lCUw== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=3CLJ2i2CSOQFQ0xhenK4dPloxtHC8LAM5LGSegq28mI=; b=utNIyeyFuNB1j7KfLKZmuFZ+GA0VpnFjC4wKR6+8+HiOzo1OFb7oXX90P+nyGXTqrS WDTM2WnHVNBCFYSNjhKduQ4OrR7DIhATvbbd23PhqpZ+97VDBelkRGEquCWbqDrIxyIo c3XV7M/o93Fpn95B8aAbO0P9VxV/kIAmMVyMENROeHQ4xH/ckmjeR7I+A36DBvmOv5cI /fmnfJEeTQzMqTFSss5ycMeD+84m3vfKYe8VdRZpy0TKYfhF/uBJKWjkV1t0Yq15pUCx qmWGG1N1qBct+ci+8BWE9sCQTX81Dg5OeLYIut5rlm7W7riGFfX5WJu4/v6MfEzRXu+x EkMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=E6cdQmWO; 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 d41-20020a056402402900b0043a1d344656si13346030eda.398.2022.07.06.06.18.08; Wed, 06 Jul 2022 06:18:33 -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=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=E6cdQmWO; 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 S232441AbiGFNGz (ORCPT + 99 others); Wed, 6 Jul 2022 09:06:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231689AbiGFNGx (ORCPT ); Wed, 6 Jul 2022 09:06:53 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8595D193FF for ; Wed, 6 Jul 2022 06:06:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=k1; bh=D0hNbSBzGzNXDpHde8BsfsD5hfBQ bb4aorNSvpTgVrU=; b=E6cdQmWOgXODAMsv1qYtftsUDkq8yB2rzDN7nbBj49dC OTU5rWih/KddxbSWUIuqbYyZA1DH1debq9NIp/cByt22mxrn5n/ONLBreV56cIbi Lq0NaxHrB7CM921l7oThMnvySzFR0PaRyaVsm+XjBJmkMxL8giq3frwg2nVAZ1E= Received: (qmail 1712726 invoked from network); 6 Jul 2022 15:06:46 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 6 Jul 2022 15:06:46 +0200 X-UD-Smtp-Session: l3s3148p1@ZX/5oyLjKmlZzIq1 Date: Wed, 6 Jul 2022 15:06:42 +0200 From: Wolfram Sang To: Andy Shevchenko Cc: Michael Walle , Krzysztof Kozlowski , Sam Protsenko , Lucas De Marchi , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Codrin Ciubotariu , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Krzysztof Kozlowski , Alim Akhtar , Till Harbaum Subject: Re: [PATCH v2 2/2] i2c: Introduce i2c_str_read_write() and make use of it Message-ID: Mail-Followup-To: Wolfram Sang , Andy Shevchenko , Michael Walle , Krzysztof Kozlowski , Sam Protsenko , Lucas De Marchi , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Codrin Ciubotariu , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Krzysztof Kozlowski , Alim Akhtar , Till Harbaum References: <20220703154232.55549-1-andriy.shevchenko@linux.intel.com> <20220703154232.55549-2-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CdaVGdeblKJUV2jY" Content-Disposition: inline In-Reply-To: <20220703154232.55549-2-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 --CdaVGdeblKJUV2jY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Andy, On Sun, Jul 03, 2022 at 06:42:32PM +0300, Andy Shevchenko wrote: > str_read_write() returns a string literal "read" or "write" based > on the value. It also allows to unify usage of a such in the kernel. >=20 > For i2c case introduce a wrapper that takes struct i2c_msg as parameter. >=20 > Signed-off-by: Andy Shevchenko To be honest, I don't think this series is very useful. Most of the converted strings here are debug printouts which could rather be removed because we have a tracepoint for i2c_transfer (which is the preferred unification). The warnings printed on timeouts are plain wrong, because timeouts can happen and need to be handled by the client driver. And the change in the I2C core is not worth the hazzle IMHO. Happy hacking, Wolfram --CdaVGdeblKJUV2jY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmLFiN4ACgkQFA3kzBSg KbaOnRAAlv7WrOzngujipBR3pVf3yo6uKVwFX+PykjBTa0wBHwetMP0pYuObpjH9 MPI+xi3IOPO8nnwQgPbg8ke0Yq4akFTTkLG8QOXU1ddT1UWRq1TJXNB9hME3tXGD WkO7L/wslhrvwy48f+0nOJotVJ3q34bifTQ78CTnFyYY6Tfg6BgF/opp70w7XNgW 5blntGsxPCRsh1VBlDilYsgh3TXzmD934y8v1hFpM2BXFgnHKsID9FOeHVDsuB8O RL08dyCz/yt2r4M0f7DDOF56PS/35JsJhZ5v2F9er0fkPgEdS392WEeJrQhiQ920 ugWPpY6MhwTuTFZQqaeiv9moB+j1BBcKoEyG3c4quq35KKIYsaaC0fj40+1u9Gel wlZ5qxgE29BYSWZocpQbdFF8jG/iEhnEy9pIRfGfQagUypOLsqqcsk5Qq9aavWHK Vu4pI5SRlsMcRWzWO4592D8KYF5Tc/0NQ+qfCj6AO+OwBIBR+S7lBsLiNpIETLil EMa1kLVlr/ElAFyqXIa8yX7vvK9xHDcHEPWsW3Q30g5QEGT40iXSGkM21l3KebVz Lw7qzoMkINICUNGP2ULiYOCgafWdlVlev4RmQCDFDljj2ZKH1ph91kJeM7YscDj5 ZGh3HI5USzLFt/C6uFVIwSpz2aM2IMOWcasNvtXlR7RZNu/qwdI= =srXy -----END PGP SIGNATURE----- --CdaVGdeblKJUV2jY--