Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp375862ybk; Wed, 20 May 2020 01:47:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws82PFFUEGHs54vmm6+7RoavqYlwX13gzeUobsQQ3DesqZ7lJOP6qboT8C08BWQYftkwNt X-Received: by 2002:a50:e04c:: with SMTP id g12mr2483250edl.74.1589964472248; Wed, 20 May 2020 01:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589964472; cv=none; d=google.com; s=arc-20160816; b=fNwB9GHR6lHppv6ID8NZbpB14qoG1wWSrCMy9UOc95EQTTpmKMJ20GB3LbvmX7Uc+/ tsl01kjQuV/5YPfE+gN2xf6R1CU1I0IjtzjAkqZtksXXxGuZsT5Nv+OlmOuPtDT3AL3L BIPQKcOm7olilgPapaea4Gs9Bo8eY/ShWrG2ZaCEzrMcR463LvJPQM12SaG4TPMvPXqL i+RJgQOwQYwHQWrGP2/OMxaPKQBsZ6X3ywYnB01ENthMuq5O0ZREzi68rkSOb74vkvX0 0bHh90o9rdPmDgvmW7gQ0vRZa4NpThAhAcVuXV+QZkvubGWBQ9A4X0cJXs/QdcQE1cq6 2tRQ== 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=u0K9CvT5HV61VJXYYwxkYfqIusTCbFNVtZQAS+tl34Q=; b=WOyxBzUp5C70Ho0QVsb9mLd24kFcy6eoG+VXYtSt0V3RjoDsYrPaIA75u/K69VR1oy YNyxgzQjs8WhAnk62AOtNsChkuoiu3jmQW/wYMjLBQH8o7wz5LAVmUcMp9ZDTyNEzFuj x1s/DHdpdFGmMoISJVsHNoBoq2Kwy30ikofeebfyDGLX67j+FZlSfgGjRT+sZSCsFuk2 oFSVGv4DCnsAt/L3fmYX8yXiiTnxcwHNpuTs3dqGUr/Hn5yplR/mwoeRMDmqWaVs2GT4 cFgBjfYtRp39e5SDGf/5wGnBflDwypKx4W2bpjvrP6vAn5v/h43VEXOQPhm1umnBpwHB 807w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=luKthv+e; 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 a20si1048868edm.473.2020.05.20.01.47.29; Wed, 20 May 2020 01:47: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; dkim=pass header.i=@mediatek.com header.s=dk header.b=luKthv+e; 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 S1726570AbgETIoE (ORCPT + 99 others); Wed, 20 May 2020 04:44:04 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:63521 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726224AbgETIoE (ORCPT ); Wed, 20 May 2020 04:44:04 -0400 X-UUID: d7b8e253527c43878f8fa023f1f7b048-20200520 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=u0K9CvT5HV61VJXYYwxkYfqIusTCbFNVtZQAS+tl34Q=; b=luKthv+eR0xrTVxdbHlaDd4k9oQjtvxMr/QNDzQKGBVUKw9IbG4QylxeWXGAnoUEIq/uuYTOjxDKqm+S7hmCBRf1LP5w90XZzJ/qxaky9IISaUKd/S1BYII6L8HUemO/mjkt0y2GYvQKFekhcMC1h6UiyTaAxcoNwHWFRhpoCf4=; X-UUID: d7b8e253527c43878f8fa023f1f7b048-20200520 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1078213673; Wed, 20 May 2020 16:43:55 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 20 May 2020 16:42:35 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 20 May 2020 16:42:34 +0800 Message-ID: <1589964062.25512.67.camel@mhfsdcap03> Subject: Re: [PATCH v2 2/2] i2c: mediatek: Add i2c ac-timing adjust support From: Qii Wang To: Geert Uytterhoeven CC: Joe Perches , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , , Wolfram Sang , , Linux Kernel Mailing List , , "Linux I2C" , Linux ARM Date: Wed, 20 May 2020 16:41:02 +0800 In-Reply-To: References: <1589461844-15614-1-git-send-email-qii.wang@mediatek.com> <1589461844-15614-3-git-send-email-qii.wang@mediatek.com> <1589857073.25512.34.camel@mhfsdcap03> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 419D878692A456EACB25265C39EB5C4831837D6DCD95B04EF9B86113CAB6032B2000:8 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 SGkgR2VlcnQsDQoNCk9uIFR1ZSwgMjAyMC0wNS0xOSBhdCAwOToxNCArMDIwMCw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