From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bitan Biswas Subject: Re: [PATCH V2] drivers: i2c: tegra: fix checkpatch defects Date: Fri, 31 May 2019 02:04:17 -0700 Message-ID: References: <1559196850-7007-1-git-send-email-bbiswas@nvidia.com> <911e52ed-8f3c-583a-7610-e38723219eca@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <911e52ed-8f3c-583a-7610-e38723219eca@gmail.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Dmitry Osipenko , Laxman Dewangan , Thierry Reding , Jonathan Hunter , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Shardar Mohammed , Sowjanya Komatineni , Mantravadi Karthik List-Id: linux-tegra@vger.kernel.org On 5/30/19 4:43 AM, Dmitry Osipenko wrote: > 30.05.2019 14:36, Dmitry Osipenko =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> 30.05.2019 9:14, Bitan Biswas =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>> Fix checkpatch.pl warning(s)/error(s)/check(s) in i2c-tegra.c >>> except for BUG/BUG_ON checks >> >> Please turn the BUG_ON's into WARN_ON's. The machine won't go on fire, >> hence there is absolutely no good reason in making system unusable on a >> software bug. BUG_ON may be more useful for development, but not for a >> casual daily usage. I shall update the patch to remove the BUG/BUG_ON calls. >> >>> Signed-off-by: Bitan Biswas >>> --- >> >>> @@ -1034,7 +1038,7 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_de= v *i2c_dev, >>> u32 *buffer =3D NULL; >>> int err =3D 0; >>> bool dma; >>> - u16 xfer_time =3D 100; >>> + u16 xfer_tm =3D 100; >> >> What's wrong with the "time"? I'm finding the "xfer_tm" as a very >> unintuitive naming. >> >=20 > Also, please don't version patch as v2 if v1 was never sent out. >=20 I marked the patch version as V2 incorrectly. Sorry. I shall be careful=20 about the patch version sequence from now on. -regards, Bitan From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,T_DKIMWL_WL_HIGH autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5D7DC04AB6 for ; Fri, 31 May 2019 09:04:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8F8D026660 for ; Fri, 31 May 2019 09:04:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="VUwuo3eu" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727182AbfEaJEZ (ORCPT ); Fri, 31 May 2019 05:04:25 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:9171 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbfEaJEY (ORCPT ); Fri, 31 May 2019 05:04:24 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 31 May 2019 02:04:13 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Fri, 31 May 2019 02:04:23 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Fri, 31 May 2019 02:04:23 -0700 Received: from [10.19.65.14] (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 31 May 2019 09:04:20 +0000 Subject: Re: [PATCH V2] drivers: i2c: tegra: fix checkpatch defects To: Dmitry Osipenko , Laxman Dewangan , Thierry Reding , Jonathan Hunter , , , CC: Shardar Mohammed , Sowjanya Komatineni , Mantravadi Karthik References: <1559196850-7007-1-git-send-email-bbiswas@nvidia.com> <911e52ed-8f3c-583a-7610-e38723219eca@gmail.com> From: Bitan Biswas Message-ID: Date: Fri, 31 May 2019 02:04:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <911e52ed-8f3c-583a-7610-e38723219eca@gmail.com> X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1559293453; bh=SOqJI+EZ5Db2ZI9zhzesDEizdcdTJUo9u2vKd2K8Ybc=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=VUwuo3eubu7zXKhOddS0+xUHK+pIZqRk1ytHUuVta019Jlps/++VHCOZulHeCNoXR ty6lcK/T6zxbkrPUk2p9thjjgTECf1jrmcw9tSZ7z78+avkfj+LtDUAYQhLf//vYqo Zu1QTNa55JHcvrv2pxj18VHSqe6L3zR/j4bH84EMz7MxlcEv2ZcOyuv9fwak7fx5g1 ukYurq8rqZ+HcVroE5VMO+a1OHXt6Fu2neMPYqqco+7LyxQjSeuAP+xCnIoLKylRiI E5G9w4WTX8AEybdu6ZF0DnbW4BKh9XWjXuUtwkeua5MeU5JoupWFx9YAFHA7GemwTP 2N9WZHWU6cShg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/30/19 4:43 AM, Dmitry Osipenko wrote: > 30.05.2019 14:36, Dmitry Osipenko =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> 30.05.2019 9:14, Bitan Biswas =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>> Fix checkpatch.pl warning(s)/error(s)/check(s) in i2c-tegra.c >>> except for BUG/BUG_ON checks >> >> Please turn the BUG_ON's into WARN_ON's. The machine won't go on fire, >> hence there is absolutely no good reason in making system unusable on a >> software bug. BUG_ON may be more useful for development, but not for a >> casual daily usage. I shall update the patch to remove the BUG/BUG_ON calls. >> >>> Signed-off-by: Bitan Biswas >>> --- >> >>> @@ -1034,7 +1038,7 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_de= v *i2c_dev, >>> u32 *buffer =3D NULL; >>> int err =3D 0; >>> bool dma; >>> - u16 xfer_time =3D 100; >>> + u16 xfer_tm =3D 100; >> >> What's wrong with the "time"? I'm finding the "xfer_tm" as a very >> unintuitive naming. >> >=20 > Also, please don't version patch as v2 if v1 was never sent out. >=20 I marked the patch version as V2 incorrectly. Sorry. I shall be careful=20 about the patch version sequence from now on. -regards, Bitan