Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5867892pxu; Thu, 22 Oct 2020 13:09:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY+rU1uJOJKdbmldBNqd0YK1FsfqRrsnw0q7PMnQ6GZMeGPrEmVy5nPte5Fna0sMl4S0nd X-Received: by 2002:a17:907:2677:: with SMTP id ci23mr3912770ejc.270.1603397359011; Thu, 22 Oct 2020 13:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603397359; cv=none; d=google.com; s=arc-20160816; b=LPa09iI31lA0IUxOJXcz27zlvSaoJGn14TG/jEmfYNqnica19gApqLWtZm7TXzYjwF /e6LpS6vaKvvZu2CSGfPYg7xFbdqDQ06YB59LW7pZrRr1znigPbZ8oXGSEMEPslMGh16 +UFKf89nctoUANZJAfAWJmbVSt1v5unzV/LhQCFczj3DCTU14BdN9m97gIBeqhz3B3c3 a4dreTpW6j0qu1WCoKukt+THY5msUWsTIeb/wnr12sIiuDBOB58DY+yadmkzCxUzNcsA 3+EegjA02oLa9JmflEOBU8ptq43tQNGXp0ikuINwj3e7BsX13Z4Mma2tpET+riwjV4s1 Znwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SobSyCMICvJmmCK/vcOnM/ocufBHhNkzxEUiJKbmfYA=; b=hIAIaMku+ErcjF1JLb5rAdI+53liAbTzbk/qMGjBxc6nWr0AX/sVmrmyQCSg3G5oE8 SnscRCf76W7xsD8d47Iq2gDeTx6ePcmMmY/cwsbh6J1VLRujVRT9+Ww8001J7IP08GvG 7na0eKTrB8jrDuoO1Xyge6iWdtybA+Gx4SOCqZuU5sQ81u+TeWY6qgMiSNJVWpQlVRsY DVw6ZP4JdzSVTEhiiYuO2SNIAJu04mMIT+kUms1wJRLJ2i1QrfQbmx0JZQWglub60JPv ou+2UvORCdIXwareYY7e5UWUIEbwr70SPBKeMeTsrWCx89qFpHmzvD/X2pdcadneagnb o7Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=b3Ml7RvJ; 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 q20si1850482ejb.102.2020.10.22.13.08.55; Thu, 22 Oct 2020 13:09:18 -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=b3Ml7RvJ; 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 S2898727AbgJVMn6 (ORCPT + 99 others); Thu, 22 Oct 2020 08:43:58 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:44187 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2898274AbgJVMnS (ORCPT ); Thu, 22 Oct 2020 08:43:18 -0400 X-UUID: 2728acab323243e088c8faa689d6ada4-20201022 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=SobSyCMICvJmmCK/vcOnM/ocufBHhNkzxEUiJKbmfYA=; b=b3Ml7RvJTEwvXpYQXutIRtweGjNBnkxYkjo6y9JUX3lv3Yi5jd0zRCV7+115EOy40QzGDY6lxifaDp25c8LJcbfbG5np5gbre0TORW7hgwxx4jiNQohRSLps5uq5W4uaQZKwdx8WiO2/IvFgFBhmNnbNbe3+TAfTLjVIR1YnTQA=; X-UUID: 2728acab323243e088c8faa689d6ada4-20201022 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.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 597526833; Thu, 22 Oct 2020 20:37:56 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Oct 2020 20:37:55 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 22 Oct 2020 20:37:55 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 20/34] clk: mediatek: Add MT8192 imp i2c wrapper e clock support Date: Thu, 22 Oct 2020 20:37:13 +0800 Message-ID: <1603370247-30437-21-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1603370247-30437-1-git-send-email-weiyi.lu@mediatek.com> References: <1603370247-30437-1-git-send-email-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWRkIE1UODE5MiBpbXAgaTJjIHdyYXBwZXIgZSBjbG9jayBwcm92aWRlcg0KDQpTaWduZWQtb2Zm LWJ5OiBXZWl5aSBMdSA8d2VpeWkubHVAbWVkaWF0ZWsuY29tPg0KLS0tDQogZHJpdmVycy9jbGsv bWVkaWF0ZWsvS2NvbmZp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