Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp653849ybi; Thu, 30 May 2019 04:44:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqytPZmACrRm0DR/uRpgzvPLjhPO7xmwX4IJ9R2dylQVnNvt8oF7mSP7rH7sEApw0jDDA2pO X-Received: by 2002:a63:1b0e:: with SMTP id b14mr3385185pgb.365.1559216667016; Thu, 30 May 2019 04:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559216667; cv=none; d=google.com; s=arc-20160816; b=mHKG0nD4ZyfDOFL3tSKvp2YloxW3OosIL0WcVxnNXlLZ4wvdmOAu+4jUeHPxn1ihJh icwhinftj8WoEd1b6XfmQgvKRVjX3fKY7YM+T9nrUgSlWf4ZY7dZvbfTe93g7Bvag+dL pg+7lN3aOkGOBN2on0GNpPHaCEbnIOICkSww2D7AnN0S/9kOKl7dxlVG09kqvA7w2Der tZsz0mJ/iQNjrWVh7p+e+UOxHV9YNJDrRyJFvjT2EEhqCxR91yjszNd/wZr+GrQStk+w cDlCoqSGEvSwWCjegeATS6wJ9pHFKMaD2S684e/iWVl0pGC+XxiHQO7YDHi8N9Www9o/ vCwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=AfIJUQIJtYB15GKYwWwSC4aOpQ5iN7AaoTDt0q758OI=; b=KCjNA7o6uKGBnAKcuiYnp1SnPkT1sPWMxbR/8BDEUioElXzsHgQlZaTdqh+vP4cYZd uTYS89/dJqH3zfQn8UoDm1FZ+eSE5EakJW5NbbUkz3eQa/p2g+EByQZHBam+zBSrwiMH 8PNg+qIH9noG70vWYytHoPREwKL9cZrDZdOmLDZUTz0lmcI6B2OXwlgzihPK3S08FP/b 0cwmPTFhPzKCnder0q6bCKmfqCFP/xgvRI0iWr7oBIy1e+nzoA7BkRTKO0qOON3ADSuP 3y4XyW2iFHnziPmQviXGtbrATyIP8WoQZsak9RnLMEjXhQptrzFo+gJ5usj4NGIv14qb K9Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C6caECW1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m98si2727308pjb.2.2019.05.30.04.44.11; Thu, 30 May 2019 04:44:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C6caECW1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbfE3LnJ (ORCPT + 99 others); Thu, 30 May 2019 07:43:09 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:33958 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbfE3LnI (ORCPT ); Thu, 30 May 2019 07:43:08 -0400 Received: by mail-lf1-f67.google.com with SMTP id v18so4781950lfi.1; Thu, 30 May 2019 04:43:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AfIJUQIJtYB15GKYwWwSC4aOpQ5iN7AaoTDt0q758OI=; b=C6caECW1ACTDGTB5k3qKTLFFXCM5giPH2RO3+zrU2HieJt9TAFjtfq9XDFweICrekd lBUgQeooHd736yMnaBX/Rlk7gOrJZUc+fcylhk8cOi2+NX77wn7tTK7jOLU5AGhcUy7f J0eCA0a0p6JwIOAg33kSjPA3dmf/AkXbWIeh7vBMNCRxoxPO/XM4crzxOoBLlGes9g5I 7hKf+LeuBpuByUjp2OVRv8//h9pxhwDQ+27qoF92KlTiBBOOEf2156ySmOKZ3l5oVKfo vJH9y5vaP6Bi5QnpAnXEy946zFWg7+buOA/1vOjkh+7yjVtCHsjxPfO5iCwWe/LFSh77 V5SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AfIJUQIJtYB15GKYwWwSC4aOpQ5iN7AaoTDt0q758OI=; b=kRX9vYnNjIRjti5IJTo8/mtIR890NcQOT712f8nLKxF+n6amGZ9NuQEa+p3nUD1z7X Nx9GvwsJCbn3ylAuYVnLKt7H/J9F5uaTGxdRY2jc/SGueMkLXf0S999jcG61bsjlvtMH RTZKzQR2Al8Pci/OFWi/+cSc/bqDmfMYuLjAHpS1iyEfiOQNHWBDHZaB7ePUW7++oQ62 a/avE0WdnemqZ0KzrhZiAGmqOrgLlJBggmXfg1WoJy4PG7DM5HHJM79hz8IDX+Ol6UBL 3M+fzn0IYWbePWgXUjBzklVw9Z4D6fZSRQxWmWo8EIfYzUjsYQ/ZxlvlEB/OI4hydEhC e5bA== X-Gm-Message-State: APjAAAX6Y1yOeNmQktLSB0ejxfLYLpVCQM5BuO6j4ie7XA8tlAXMzGfE e3niSg6c8YTN/I19ZyfXF2kw139m X-Received: by 2002:a19:4017:: with SMTP id n23mr2066509lfa.112.1559216586593; Thu, 30 May 2019 04:43:06 -0700 (PDT) Received: from [192.168.2.145] ([94.29.35.141]) by smtp.googlemail.com with ESMTPSA id d2sm446964lfh.1.2019.05.30.04.43.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2019 04:43:06 -0700 (PDT) Subject: Re: [PATCH V2] drivers: i2c: tegra: fix checkpatch defects From: Dmitry Osipenko To: Bitan Biswas , 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 References: <1559196850-7007-1-git-send-email-bbiswas@nvidia.com> Message-ID: <911e52ed-8f3c-583a-7610-e38723219eca@gmail.com> Date: Thu, 30 May 2019 14:43:05 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 30.05.2019 14:36, Dmitry Osipenko пишет: > 30.05.2019 9:14, Bitan Biswas пишет: >> 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. > >> Signed-off-by: Bitan Biswas >> --- > >> @@ -1034,7 +1038,7 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev, >> u32 *buffer = NULL; >> int err = 0; >> bool dma; >> - u16 xfer_time = 100; >> + u16 xfer_tm = 100; > > What's wrong with the "time"? I'm finding the "xfer_tm" as a very > unintuitive naming. > Also, please don't version patch as v2 if v1 was never sent out.