Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp898843pxb; Fri, 16 Apr 2021 23:49:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZQSFsT7VYF8yAl+89nAH7ke83wuEHmIHehrm8zi6XbGrjAM/Gjg/AS57vgcdiRptLReVJ X-Received: by 2002:a05:6402:4405:: with SMTP id y5mr14550709eda.32.1618642192819; Fri, 16 Apr 2021 23:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618642192; cv=none; d=google.com; s=arc-20160816; b=mrXytGxDbSt2flLKuYMmoWj7PhM7LhjjJnXnsW1daH8NeQtqSL7i0DlZN3xwCN158x z1bHEmwQFB+y+Mk3yZDmF2+5Gwy+hol5bzUGZsuUVqzEwHyE5SsTcGfq12zEvEnfd+Q4 2NZnbl7B04Hx1nj4Y6EPuHXKD230fjvzCBTZPFGiF1u+//LcBF2Y1WU0TF/wUWoWth/Q f8406M8tHUS40DVW86OZK6SfujIu0Y1BmF9s3YUx12YXjDqjGuOmJqAFxNkFSXxoWe+l qvmVKtjdXHt/hKRQEJkJ2bHBsq6RIVT9ps7GgpYONOXNw1GoEXgBvr/47ffQm/tS8zxo YUkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=sl+akAChMQ1gNKGlUYjNdUsbuA6PsTGE7s3N1ah9A1k=; b=0VpboBXtRL+KtED/DkkdpqVNCkKyXX3NHDDXH4atxOpSYkgQk4V0k6XWStDUqAOCYq fWMNq4bvk7CgYeIWOWyTrxLi6ddWnUUthRtu43rB+SLni8AHegcnZ4Kwbid3MPV0QUhy U0X3aPhkABBxTxxj+hJO/kLu7cIagWPgY3o3Yje9WiF6q3Qe3nGPzH7uKByWuPDlf4Tv 0wZCr6UY+KKS5LMGY1MPetUMp1Jyloh6JHDNPt4tEkAtrSIJWVuK9wUwA+ngEOBn9hhd ZsOsVtuZo2iCSVFBjnwLflCMLLE9nzDqkfUVjCr6deFnW4wfoAfWoccbDCcyCmfjInXW XdiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id w10si6159928edr.292.2021.04.16.23.49.30; Fri, 16 Apr 2021 23:49:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232190AbhDQGrp (ORCPT + 99 others); Sat, 17 Apr 2021 02:47:45 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:36112 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230393AbhDQGrm (ORCPT ); Sat, 17 Apr 2021 02:47:42 -0400 X-UUID: e677ee4519b94d69a324b883dddec74f-20210417 X-UUID: e677ee4519b94d69a324b883dddec74f-20210417 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 556087318; Sat, 17 Apr 2021 14:47:11 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 17 Apr 2021 14:47:10 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 17 Apr 2021 14:47:09 +0800 From: Qii Wang To: CC: , , , , , , , Subject: [PATCH 2/3] i2c: mediatek: Fix wrong dma sync flag Date: Sat, 17 Apr 2021 14:46:51 +0800 Message-ID: <1618642012-10444-3-git-send-email-qii.wang@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1618642012-10444-1-git-send-email-qii.wang@mediatek.com> References: <1618642012-10444-1-git-send-email-qii.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The right flag is apdma_sync when apdma remove hand-shake signel. Signed-off-by: Qii Wang --- drivers/i2c/busses/i2c-mt65xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c index 3e34261..bf25acb 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -479,7 +479,7 @@ static void mtk_i2c_init_hw(struct mtk_i2c *i2c) { u16 control_reg; - if (i2c->dev_comp->dma_sync) { + if (i2c->dev_comp->apdma_sync) { writel(I2C_DMA_WARM_RST, i2c->pdmabase + OFFSET_RST); udelay(10); writel(I2C_DMA_CLR_FLAG, i2c->pdmabase + OFFSET_RST); -- 1.9.1