Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1436908ybl; Fri, 23 Aug 2019 20:25:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwK4qoZvp6xgWylnYGKuEBc5ptO94YdrVWEnfXCZ0Wnwxhp5nA/E585n1YdVVljJXFD/OyM X-Received: by 2002:a63:60d1:: with SMTP id u200mr6640548pgb.439.1566617146948; Fri, 23 Aug 2019 20:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566617146; cv=none; d=google.com; s=arc-20160816; b=IwieeXB5URKMcbAzxYYqRJ636JpYAsh88JbcAaFua+36v4lMFZSu6HJA6bkc8+JSKo /HTCZw8OkS8xTpp0KbMpYpJJgsDuiFoNdI8OeSESmfqSNpLlWaGExkEwTW78ZpVJU5yL cc6L0DB1AaIKeCFd7l+Z6m1Ux8E3J0ui9jo0YyYyUzQseaX7qVCGEb6S58sUhexuggnJ nXzB/sVl3LX0t22dhqSZmA/Bve6Plulrl2mlZAWqRFHCAIO/rR42us2VJurte0qxIPeL crNreURL6qGfW3LDel9K44gDYwO63HpZ8md119AjFQz139EryLQaqF1AkXs6rIrz8JWI XBjg== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=pPJ3pYKHfDXx/7GxHVx0LdIHAzPNIgBDwlggfeV2X6I=; b=tA7ojitA6qisL4/XMdbCgVkzlN5eJ6C4aBYow6lakIZOBkQORvAq1EAEzV3TM0a7bN SYpFj9zVDsXq/tfN7MJl8gu9gA9Bkq23AyqvP3bX/Dw1lp4t+jg0Vl9NozIodQqi2zlm 8i/TmZMZZQGVztyziXq8Rnmyov5kXkQs5WpmXf7ElsG/ierwm/lNAWZjY/X2zfTyl8nU yYnM4Yc2iu+YjHRKwR2/fimD7tgTK0nzSYLjQZlB+x0/hv2SK1dKyiMAiTdAr7VETHoz kDQG7r5js2J1F/4L64D7vAFjgDzKsGuwSRinS8AHxZUNZPwcmuA58bdVj6QoFIka3ZS7 pSeg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24si4434338pfi.80.2019.08.23.20.25.31; Fri, 23 Aug 2019 20:25: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726520AbfHXDYp (ORCPT + 99 others); Fri, 23 Aug 2019 23:24:45 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:14951 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725924AbfHXDYp (ORCPT ); Fri, 23 Aug 2019 23:24:45 -0400 X-UUID: a0e4b519b90c46ff98dd02db7f03917e-20190824 X-UUID: a0e4b519b90c46ff98dd02db7f03917e-20190824 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 1800538856; Sat, 24 Aug 2019 11:23:23 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 24 Aug 2019 11:23:15 +0800 Received: from [10.17.3.153] (172.27.4.253) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sat, 24 Aug 2019 11:23:14 +0800 Message-ID: <1566617000.19935.7.camel@mhfsdcap03> Subject: Re: [PATCH v2] i2c: mediatek: disable zero-length transfers for mt8183 From: Qii Wang To: Hsin-Yi Wang CC: Wolfram Sang , Yingjoe Chen , Matthias Brugger , Nicolas Boichat , Jun Gao , Thomas Gleixner , , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , , lkml , Alexandru M Stan Date: Sat, 24 Aug 2019 11:23:20 +0800 In-Reply-To: References: <20190822094516.55130-1-hsinyi@chromium.org> <1566547772.19935.2.camel@mhfsdcap03> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-08-23 at 16:13 +0800, Hsin-Yi Wang wrote: > On Fri, Aug 23, 2019 at 4:09 PM Qii Wang wrote: > > > > > > > static u32 mtk_i2c_functionality(struct i2c_adapter *adap) > > > { > > > - return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL; > > > + if (adap->quirks->flags & I2C_AQ_NO_ZERO_LEN) > > > + return I2C_FUNC_I2C | > > > + (I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK); > > > + else > > > + return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL; > > > > It can be removed? > See previous discussion: https://patchwork.kernel.org/patch/10814391/#22484435 > but not all SoC's quirks has I2C_AQ_NO_ZERO_LEN. ok, it looks good for me, thanks. Reviewed-by: Qii Wang