Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3368254ybt; Tue, 30 Jun 2020 00:35:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKsPIL87C/T66v2SyAQGScbaSXQtPh4IS29k6JQtCtAk+c7Whc9/1zQggKAW9LtVDS8cwJ X-Received: by 2002:a17:906:945:: with SMTP id j5mr17394779ejd.52.1593502521431; Tue, 30 Jun 2020 00:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593502521; cv=none; d=google.com; s=arc-20160816; b=odNB8rr/Q5Mz5Uj15LX/OtukQ9tYoZtEuado1zfvgMSY2N3pRggsyMmgGzM3CCzaCg +w/EI1bOy72n6wj/nzCQGUY0Y4vpToAyD9in9VXWmNzZtbFDQO2XpMIwmvNIlc48MWI/ jtVMITAhDLww5Q2ZO+JnPg6EPgTiPXJTkDwTuwEzPY2zTUK+eoLDXzBwTgoKHlgwZnvy ibYGQVeTIIz5JT0cV/ZKHmhmO2BDXdTTqtlkKFwAbftWCfGLe4gBB9iDAh4A+7Mayodm LorlksrMEskfGDsdEiQZUAdFmovRwCZHEwnbdmHZGp0HlBwnnY1iDYVpuIyigWpseelG 4KbQ== 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=g16KvrnbD399itfp7Gu6dbRkAnFVoPytjIcdXi66ePg=; b=z53q8FHy8B4p/c/k2/Dqdyb9cNMl+MXSG+Qgvg0RPUoZAwAUZdNdodeAkcQTHk89CT wg6U0GrqWzKCoMRqOEzSiO/reAOllvBKiVV3tCu35J3WABE2baCsHsAD0yr8sNh/8TXu /5CSUjtJ2V99mhDMMVQKGvUWGevQxHbIbQLvDqzKT+TdOaSzWnkDet0zCnUFxDNvFQO2 l0hOJGS4uHRJ0NyYbKbj7x/V0wtQ1+dAzN84ykw2LfRtfwzx0fToBWG1isWYOh43Ikt9 UG5yX5bSDwhXKCrFfNi5zNLo1l/lu9rPaK22LdOhvilgx+Lli1q1h+n3ElVCrlyjuwlX NOxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GCeFcF1V; 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 v19si1201032ejj.608.2020.06.30.00.34.58; Tue, 30 Jun 2020 00:35:21 -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=GCeFcF1V; 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 S1731023AbgF3Hdo (ORCPT + 99 others); Tue, 30 Jun 2020 03:33:44 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:29565 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730089AbgF3Hdn (ORCPT ); Tue, 30 Jun 2020 03:33:43 -0400 X-UUID: 12e72ae3049e47b9a3438158c2d6c3d8-20200630 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=g16KvrnbD399itfp7Gu6dbRkAnFVoPytjIcdXi66ePg=; b=GCeFcF1VM+46UVRBsznlnmz9AIn6xS0y/8ME5GK6bAmFktvB7BAWUBGgJjuXT3w20HWeUUsAiAzBUFemSGm9fv7jOlM9oIaQh7Byqt+zgGEYFn4P8s818+USqWByVDOy+XyFWlsxBRFEFXdSXqxqHp8oiQqng6bWHwi06EUMqDM=; X-UUID: 12e72ae3049e47b9a3438158c2d6c3d8-20200630 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 397273363; Tue, 30 Jun 2020 15:33:40 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 30 Jun 2020 15:33:37 +0800 Received: from [172.21.77.4] (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 30 Jun 2020 15:33:39 +0800 Message-ID: <1593502419.29073.7.camel@mtksdaap41> Subject: Re: [PATCH] i2c: mediatek: Add to support continuous mode From: Yingjoe Chen To: Qiangming Xia CC: , Wolfram Sang , "Qii Wang" , , , , , , Date: Tue, 30 Jun 2020 15:33:39 +0800 In-Reply-To: <20200623074245.24513-1-qiangming.xia@mediatek.com> References: <20200623074245.24513-1-qiangming.xia@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 SGkgUWlhbmdtaW5nLA0KDQpXaGVuIHlvdSBzZW5kIG5ldyB2ZXJzaW9uLCB5b3Ugc2hvdWxkDQoN Ci0gQWRkIHZlcnNpb24gbnVtYmVyIGluIHN1YmplY3QsIHNvIHdlIGtub3cgdGhpcyBpcyBhIG5l dyBvbmUuDQotIExpc3Qgd2hhdCdzIGNoYW5n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