Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1084249ybl; Fri, 23 Aug 2019 12:57:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxB5LJjTcZ7RTdDz1tJypmWD0do5YH6g9Dc2fmkZLm8vL/p808SlOYaJ/r/70NDP21RdscH X-Received: by 2002:a62:35c6:: with SMTP id c189mr7242442pfa.96.1566590274084; Fri, 23 Aug 2019 12:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566590274; cv=none; d=google.com; s=arc-20160816; b=Sy8VAOhlaUX/GTRfbxyRKr4HhikskpGsd4Q7RklxeM/MDVeZhAKgJU9bepUEFnxzL5 GPI29W9h1gMJTmhh88MKK/inA+RErtuWwMGcYV60k1NrduCfdSta1s9HydOUItObiS/S iiBT+1anXiJB6lILOJ+MNLL07y7DJQ4XsC8KPigwOF4tBDsOeuOkxFGrgxsvJSb1ir0R wuqT33pypVqEeDAtUMn+5/A4YPo2hkpIZjrxgDtC0w98BT7qJSZ4CLd4/cJhVz0WC8Q+ a+qBT2o6QuTIFLlsDJN6hHrEHirSIHYG7BDK66swUe+ANpTXG/PQXJxpopExStpTxi/E kU8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+iEZzmAuZ9VlWo1rY1HoUVRqOc3pQbx/jL7+3U6XUrE=; b=Z4YGh/wTLUBzOBMl4Qths+E8hBiEw9dY55qlsQiqymUWSTB8/j5JkUWvB4hnKSJYMD oejyRGKNKWD/hWiSgLsklU0fBZJzj8QgVJm9EPnzdzLCscxQC3RDK+sdBZ6kc5GOXtEi wshcAxpv4YUk+5MDKc36jNDkMx7zvaBBuSPWlN/jpZuKvxq/RytwU6bOmJiKOYLcLFxS lPXyEH0fdagtEPcwreAX326xP+ByQ2mOKfOS/wkbCDxi3olmK3lDNXVy53CqreD4w9wj KAd8asGRraQqtAj83pAdhYSHUyAqob5mwtRUztvK46a4nb7Ay11RPjn3IBHKqUg5XTRV ysVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KQoYmM1k; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o191si3538523pfg.155.2019.08.23.12.57.38; Fri, 23 Aug 2019 12:57:54 -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=@chromium.org header.s=google header.b=KQoYmM1k; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404164AbfHWIN5 (ORCPT + 99 others); Fri, 23 Aug 2019 04:13:57 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:41252 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731606AbfHWIN4 (ORCPT ); Fri, 23 Aug 2019 04:13:56 -0400 Received: by mail-qt1-f194.google.com with SMTP id i4so10401678qtj.8 for ; Fri, 23 Aug 2019 01:13:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+iEZzmAuZ9VlWo1rY1HoUVRqOc3pQbx/jL7+3U6XUrE=; b=KQoYmM1kiPcUeWePSRh/MATRSKtGHbDYwmscEnDEJex+ScfK8GC0Pn565Cm8BTQ7fS TN0P76B44uAatP3B3BZ61Hp3/1ZaAhV2sP1r/Qzr+VQI42UarAvsX6fIFMwnvDohlRBM i/SnM/kjB9KyiVRKnmaBnb4WhhIpto3GuckqI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+iEZzmAuZ9VlWo1rY1HoUVRqOc3pQbx/jL7+3U6XUrE=; b=Nxab5CVWFJEHb8Wmo/UQ1PmwkVBtsrLn3T79Dk/8wvEU/t9ImajK2n92nyD8GnyjNt 36X5oqvzeQaTaTKiOw49VAEY9hqiWtlDW4F69u/5FaK86p239shz6++pGaj24QRJN/9M s8BXlZ/dLF+DDuiPxb9uXm67LjF0AjgScyF8nWR+h98BnT8TDmZHjqKaF1pAIsnIwxka BtSivMljP5yWscYpEHUz3ispk+EBZkxIv9QdtayLmDlXvMyjB6n9nBCK0hgOPwOMwUZB p/3uGGdCzgyraEjx0pS/2YQq9gjUsyupGMXn8py8fMv7iyzW0GVH3dTs/WYJ0GctM8di X6Zw== X-Gm-Message-State: APjAAAVPC5zIxPrRxBLJpZhpKhbIlliWlRm/oBdaguuMtYyu07/ptczb SQNrtzeLbZRljtqUwcEuurzMJQFWeys+1aAXWKsfLQ== X-Received: by 2002:ac8:1e1c:: with SMTP id n28mr3591243qtl.78.1566548035657; Fri, 23 Aug 2019 01:13:55 -0700 (PDT) MIME-Version: 1.0 References: <20190822094516.55130-1-hsinyi@chromium.org> <1566547772.19935.2.camel@mhfsdcap03> In-Reply-To: <1566547772.19935.2.camel@mhfsdcap03> From: Hsin-Yi Wang Date: Fri, 23 Aug 2019 16:13:29 +0800 Message-ID: Subject: Re: [PATCH v2] i2c: mediatek: disable zero-length transfers for mt8183 To: Qii Wang Cc: Wolfram Sang , Yingjoe Chen , Matthias Brugger , Nicolas Boichat , Jun Gao , Thomas Gleixner , linux-i2c@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-mediatek@lists.infradead.org, lkml , Alexandru M Stan Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.