Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp473669imm; Fri, 5 Oct 2018 06:53:46 -0700 (PDT) X-Google-Smtp-Source: ACcGV60QBpkpyStAwxfMpvO/405p4Lza0tneAU3xZri0eSbL+i1+G1ofAU7RQ1AX2bc3ZEfGftax X-Received: by 2002:a17:902:82c5:: with SMTP id u5-v6mr11633307plz.227.1538747626810; Fri, 05 Oct 2018 06:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538747626; cv=none; d=google.com; s=arc-20160816; b=zaUFXIH3sONcr0dD7LSe9XMS4+VwZSajS48F03O0dHMWz7tXFDvDVMiTvAohDrfGff ZtE1nNifNhR8WwqmdSkJYrtzEGO4HpAZfZvmy+0tZs9OfVY+qJl2eDPKu3xoQQq5mhB+ IB0F8sGLNVG8zd2crJUwFhFdSjfoFFH2AYBM/SSWt6H8E4TYnESp9Y5z9NcfM+KpVmNY a7o4bgZFwxaa2jyZQRnlUOYf9lG7uWWezSXPt5ebYEgnSELk3HUHKBcWE3ZpJwgiDEcZ tFl4UTYLD9c5zl12qDKSoWrSke1jx03PfrBFInmYUvPo4eCNxI12HeVwy28YPUlJIkMd B4RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=bu8LfgMVvMNA0y7tle1tLAAJmn7e/emTgNx0zeoJQvk=; b=UheKzcBV0aXVeJ12SwU1Mng2MoC3ALmqDay/SSb4nb6ix+D6K0MivIaIZE/8fVrAKO jARmXYW1auVU7MrnzMyvuNI1HJCugui/vgirsFZwHhK+ZFS2//id3DWbneeWjNI7lChb Goszp/llfaK4tVuTCMQzqkvuCLVV82A4NYGR18ewj7/zzaU13AGRcykISqm1xdnZZgw0 5WMcOCEGnRg8T+B1S4AmMHse5wcr3BX1YVGurh3o1h2wmylnNKXNS6xmvQAKjlZDwIMJ Fo+eTsP+Q+LrSqwkQwppUBbq+gVKPNSKhXbot3WLXeD0c7VXWMo2nF948AMnFEiUZPmV 90Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=naU8+CeT; 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=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb2-v6si9764186plb.280.2018.10.05.06.53.31; Fri, 05 Oct 2018 06:53:46 -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=@nvidia.com header.s=n1 header.b=naU8+CeT; 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=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728765AbeJEUu7 (ORCPT + 99 others); Fri, 5 Oct 2018 16:50:59 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:17386 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728278AbeJEUu6 (ORCPT ); Fri, 5 Oct 2018 16:50:58 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 05 Oct 2018 06:51:33 -0700 Received: from HQMAIL101.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 05 Oct 2018 06:52:08 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 05 Oct 2018 06:52:08 -0700 Received: from [10.21.132.143] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 5 Oct 2018 13:52:07 +0000 Subject: Re: [PATCH 08/12] i2c: tegra: use core to detect 'no zero length' quirk To: Wolfram Sang , CC: , Laxman Dewangan , Thierry Reding , , References: <20180723202617.15230-1-wsa+renesas@sang-engineering.com> <20180723202617.15230-9-wsa+renesas@sang-engineering.com> From: Jon Hunter Message-ID: <8eb3d00b-0275-30ec-ef44-5e859dd9242f@nvidia.com> Date: Fri, 5 Oct 2018 14:52:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180723202617.15230-9-wsa+renesas@sang-engineering.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL108.nvidia.com (172.18.146.13) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1538747493; bh=bu8LfgMVvMNA0y7tle1tLAAJmn7e/emTgNx0zeoJQvk=; 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=naU8+CeTso0vLHIqEFp7L9T2Wh/d93pGHlUXVvgHBvsw1LoQCxSf9N/6r1znUkghz qE/OcghJJucLGo4u2l/cH/y2u1Ezy7cMZu0bnbUvGCJ7VFIxGWErPzgOYahor4aWgV LQUQMcrSavcno2UM7+vfFxXKcU1TlUW8cWi01YqD/WouWvfABm2or1JIrajaGVfvvN Y79CGzDQ3NQ2ZKimU2UO3AMPUZPqikRDFNE1J8QUBRNdPBnD2mLyrv8CSivNQKB9WB sBXHy6tMkHN0CYazKzGmvjxOeY1bUlHCsG5QMx1SKIa9dvfExK66vSB8ZTaTxeGadQ Nqjc19fzzbXDg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/07/18 21:26, Wolfram Sang wrote: > And don't reimplement in the driver. > > Signed-off-by: Wolfram Sang > --- > > Only build tested. > > drivers/i2c/busses/i2c-tegra.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c > index 60c8561fbe65..437294ea2f0a 100644 > --- a/drivers/i2c/busses/i2c-tegra.c > +++ b/drivers/i2c/busses/i2c-tegra.c > @@ -684,9 +684,6 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev, > > tegra_i2c_flush_fifos(i2c_dev); > > - if (msg->len == 0) > - return -EINVAL; > - > i2c_dev->msg_buf = msg->buf; > i2c_dev->msg_buf_remaining = msg->len; > i2c_dev->msg_err = I2C_ERR_NONE; > @@ -831,6 +828,7 @@ static const struct i2c_algorithm tegra_i2c_algo = { > > /* payload size is only 12 bit */ > static const struct i2c_adapter_quirks tegra_i2c_quirks = { > + .flags = I2C_AQ_NO_ZERO_LEN, > .max_read_len = 4096, > .max_write_len = 4096, > }; Sorry for missing this, but looks fine to me, so ... Acked-by: Jon Hunter Cheers Jon -- nvpublic