Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp957749ybh; Wed, 22 Jul 2020 18:30:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/UjwrBeNVEdBtncCfxgaFpw+lVrnTWYz3d4Ffr08ssDvz4pnnIdQ9b4KuUOZWJXTbp2bu X-Received: by 2002:a17:906:e089:: with SMTP id gh9mr2154434ejb.482.1595467814343; Wed, 22 Jul 2020 18:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595467814; cv=none; d=google.com; s=arc-20160816; b=UXDwZ5Z4tUlyWc+LVv9/Mp+ebIiv00D36frUMierlROHDXkA7tM7nfFlmU5EVktRIC 7x7QWzV9rjkoKY1DHA0cG45ZEmrQvuOQFkoW2kb73g50B83i4w7alitV1kR6Vn9xTIb6 ATiXYeXI4HMgJNuFC4V0XGxu+N2FBq1tzLQkkKLyghs3/C/8Lpwq3XUCG/Ip50VmAo0b NbLmAaRt7NwVe67P0L05DyE1qWPX5MIkZ8+vYWpqSyumydxh6eqB09oGbWd5KhWKJ9cR xNhyavrFJ6mQEIz8BsrdqKHRrdnNt8mTFZGJ1CedNganiX/NVcr29DII/dqf3Ua0k333 o5pA== 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 :dkim-signature; bh=oycTkft2mwefXZk5AYB5xFnKDtMkFEialikk/qYIZMc=; b=HHN9po3waEksKpNXlVJHsk1GYaL73ioASXkuGYZeLbMkLMibIOB5vnIo+xvufXYcsr kDEgE3dDbFgjyvnsgcrKi4ObeAfxguSJxChFf4mpDgoYoiDKRu6ct6tY82gpxuLgLJaR 1wUFmaKfxDqkhtz8N9I1hpoH2pYDfci3NFc9OpLl04UgNRoxygsEiH3qR3lxQq65ELk+ TSzyj9CVgP8rZXOWDNwstwvNkpCiPqaVexjyOqPAobBgK/+VQCLIn/bqKaCv5tHZj9IE 4sZx3qBMwUv/N0fdb4AcjW+UXoFKGzT22amRrE09Fovhe2ZwpJfBeNUuugZIZgSTJoUj W6JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=OCOu6FnJ; 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 o20si1019054eji.281.2020.07.22.18.29.51; Wed, 22 Jul 2020 18:30:14 -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=OCOu6FnJ; 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 S2387468AbgGWB3X (ORCPT + 99 others); Wed, 22 Jul 2020 21:29:23 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:55566 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728607AbgGWB3X (ORCPT ); Wed, 22 Jul 2020 21:29:23 -0400 X-UUID: 1764c80b3e4d4e459de8dbae5a349029-20200723 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=oycTkft2mwefXZk5AYB5xFnKDtMkFEialikk/qYIZMc=; b=OCOu6FnJuSgfzcOFdFbHVJn8UyTUGpEZq8J1kf2Z+UE16JDIQG4nFkA13eXpNH0LqHoC3IcJmNABZyYfHqBHG+d339MNNF83l4XBzkoSfk/3iCmtaF9lh0YIALrW3KeDgLFmnCNispXdq3tM9nGRf++iOf83phYMACgQpfSP0/I=; X-UUID: 1764c80b3e4d4e459de8dbae5a349029-20200723 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2074606877; Thu, 23 Jul 2020 09:29:17 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 23 Jul 2020 09:29:16 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 23 Jul 2020 09:29:12 +0800 Message-ID: <1595467756.7332.7.camel@mtksdaap41> Subject: Re: [PATCH 1/4] i2c: mediatek: Add apdma sync in i2c driver From: Yingjoe Chen To: Qii Wang CC: , , , , , , , , , Date: Thu, 23 Jul 2020 09:29:16 +0800 In-Reply-To: <1595421106-10017-2-git-send-email-qii.wang@mediatek.com> References: <1595421106-10017-1-git-send-email-qii.wang@mediatek.com> <1595421106-10017-2-git-send-email-qii.wang@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 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 T24gV2VkLCAyMDIwLTA3LTIyIGF0IDIwOjMxICswODAwLCBRaWkgV2FuZyB3cm90ZToNCj4gV2l0 aCB0aGUgYXBkbWEgcmVtb3ZlIGhhbmQtc2hha2Ugc2lnbmFsLCBpdCBuZWVkIHRvIGtlZXAgaTJj IGFuZA0KPiBhcGRtYSBpbiBz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