Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp807584pxa; Wed, 5 Aug 2020 13:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/NPbXTsCDjE7cB8n2oX6pbc9NqD++E7nVOxF9ei6NYP1Oj33aSFYCc5DWP3uyA05kYfTg X-Received: by 2002:aa7:d1cb:: with SMTP id g11mr1024492edp.26.1596658587718; Wed, 05 Aug 2020 13:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596658587; cv=none; d=google.com; s=arc-20160816; b=w+w5VhEujfCW+BGn5dom4j5BuCOCBU6te0UU3al7ZcDesxLKHnSYvoQI3pZxEcVXXE Yq7qsd4gYduCimFVheySQ48T3uMoeB0lOvvxamLoSMFhIE/NCiIJ9wmFnEXvn51n51G6 yxlcjsrPypYgp+fT/MGQRvNusZobFXjE4CG4wHTEXtmZZvsZbMw0BgAgmazj34Tin6c7 3nD8w1Db7vvMv1UYBi14y+B4N4CnGBgWPebwuRrJJLv4mU0Bfg4urA12JVmquKSWB4I+ mf+XnkYUZnMwEI5iNvukI9CCoxtgFy+qUEfAoABOJTu1xaJoeukXJYLX3yPXG0nWOl/L 6T6A== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=JXjGlkK/YIWf9M/m8rQeaHnLeFDyiE8gIxUc5tlncsU=; b=ZqG1Fz4ejz5dMLOji+75Dx6+si8snjrBl3S17KwGRX+kUrZKS9N01Ln/XimDUSe7Sv Sh0N4eLBp7GqDyLQRYOBjAJqKs8RBS2PeAazrUo4MQDQaFLDEiBVKSQl9dx/B0+lH6g7 er/Tk0gpACtQJGB4cOdWwkGX6Scn+5lOLw2B9nxnEX4DJLI1HwuIEp32vy2IkCEo0jTo 3j3KvavlwPGBGiIMy9PuC810ZNLTle0nhgZToUmEEVQpwNoZjtMwRf439VywKPvznVpx j9fyLh/bGP+Ei1VdkCoo0N1/IgsgTF4+HBAvPVoOd01JKwXrjYhiLds6vsSULs+YJxaO tutg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="YXy8/EmR"; 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=pass (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 u1si2024536edp.392.2020.08.05.13.16.05; Wed, 05 Aug 2020 13:16:27 -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; dkim=pass header.i=@mediatek.com header.s=dk header.b="YXy8/EmR"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729811AbgHEUNs (ORCPT + 99 others); Wed, 5 Aug 2020 16:13:48 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:4853 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726778AbgHEQX0 (ORCPT ); Wed, 5 Aug 2020 12:23:26 -0400 X-UUID: 6c99506808a94693880c95551ac8f399-20200805 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=JXjGlkK/YIWf9M/m8rQeaHnLeFDyiE8gIxUc5tlncsU=; b=YXy8/EmRpseEQohslA8ZYPUMskFBa/FlYEWQ4fVzp2cpgJMVKCWfLvBLVVjn6C6vE2PmUyerT7NbvCWH8dEkM/xj2og+Ru1jqPhOfEVB5dOzCFOgRgnbyoT3ZYM6l8/TekRcl3ZjRvkxSG+5eUEiytm5AcFdnDmYFMG4l+JpjRc=; X-UUID: 6c99506808a94693880c95551ac8f399-20200805 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1347454479; Wed, 05 Aug 2020 18:53:21 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 5 Aug 2020 18:53:17 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 5 Aug 2020 18:53:17 +0800 From: Qii Wang To: CC: , , , , , , , Subject: [PATCH v3 1/4] i2c: mediatek: Add apdma sync in i2c driver Date: Wed, 5 Aug 2020 18:52:19 +0800 Message-ID: <1596624742-14727-2-git-send-email-qii.wang@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1596624742-14727-1-git-send-email-qii.wang@mediatek.com> References: <1596624742-14727-1-git-send-email-qii.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org V2l0aCB0aGUgYXBkbWEgcmVtb3ZlIGhhbmQtc2hha2Ugc2lnbmFsLCBpdCBuZWVkIHRvIGtlZXAg aTJjIGFuZA0KYXBkbWEgaW4gc3luYyBtYW51YWxseS4NCg0KUmV2aWV3ZWQtYnk6IFlpbmdqb2Ug Q2hlbiA8eWluZ2pvZS5jaGVuQG1lZGlhdGVrLmNvbT4NClJldmlld2VkLWJ5O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