Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5867863pxu; Thu, 22 Oct 2020 13:09:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQoonFLyPPgOlPQmrSslDeNVLkL+sgxWuXc1Sx9uL7U3NY5fF8pHQAHgrwk7FNGmsXibA1 X-Received: by 2002:a05:6402:384:: with SMTP id o4mr3861630edv.387.1603397356472; Thu, 22 Oct 2020 13:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603397356; cv=none; d=google.com; s=arc-20160816; b=hcox5vzDEvCLYhgMHk3WbrDCf2XvzaySFYtOv5kauAWawGN5/m9nlV/qz8JJbr03ER uEZDf75PFfWaMKBlWyjyrf3rW8SHWPTDZInT+FdHKQP0lAh/5EdRQFxwhkoqdkoVCWcX 4GP2N55vxnbHvQ0qeIXF2UI4ZGbZcJAjTB12M3zoMyJPn61MOj/LKG4TUmswtn9sXGHg nQq+sokeIgF7Nnua66o3UkrWMEPxVoDofZM8FydWzHatZp48gTFIoWiQNJUQeen2sxUp s7KmecncXcg2ACrNrXS2jq+hCCuZ8cRpmLxVBeED2ESfAQxzJh/lsSz4BY1oYTTkygNh 92CQ== 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=KpqLEbOh0Tymb8zkWFePD865cc6H0dKcRFiJ30+uyz0=; b=db88Us0FICb/VTLs0NY99OUBP/vTTzjIp7p8cbJsEdJrK7r7qGC+jiCeFFvPb5Skuq 3Ucg9gGUrtnSy9FaB0Jh1WGkjZFkXDlPb3p7ZcvQ8T8F1GCNTlb8O0oHJYkFbkt6bKe1 /+cqbk/crbsrsbbQHALTSE8JCJ1f3a+hNQRcZ5E5Rw9ojkexZC1XxO7EGSOmzaH8zZ41 Ni6PEUrc/zBQEbE5WRJsZc020aD+KhiZikFmgiFfOS1bqfqoLwk8CXNOwlkZ+weYMMHO LYV7QcnPHNcPoSue4uHqBlstGOh2nZBVTNGJWDnkBt4XCU5RvGZS4d+PL4Wf5bIbaCW/ bz4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IDQZhOAO; 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 ch19si1583636ejb.738.2020.10.22.13.08.54; Thu, 22 Oct 2020 13:09:16 -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=IDQZhOAO; 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 S2898689AbgJVMni (ORCPT + 99 others); Thu, 22 Oct 2020 08:43:38 -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 S2898646AbgJVMnZ (ORCPT ); Thu, 22 Oct 2020 08:43:25 -0400 X-UUID: 4281ecf2774d47b59904fc6e0470ea2a-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=KpqLEbOh0Tymb8zkWFePD865cc6H0dKcRFiJ30+uyz0=; b=IDQZhOAOpYqPpm4p7AOe5KlKwyvKr2vMR62c58AHorO8P1zx4hK2BUiX/QlGbjY7VbzCqs8koru6ALZFxrVdmFmUUIblnfDd2SFFfEvu/4CL4vxcxW77aJwRCQXDo9JuFBNB2d5QZZMKPUbZ017S+9d6If1cZGXH7rgAvfCjuqE=; X-UUID: 4281ecf2774d47b59904fc6e0470ea2a-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 889231469; 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 24/34] clk: mediatek: Add MT8192 imp i2c wrapper ws clock support Date: Thu, 22 Oct 2020 20:37:17 +0800 Message-ID: <1603370247-30437-25-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 QWRkIE1UODE5MiBpbXAgaTJjIHdyYXBwZXIgd3MgY2xvY2sgcHJvdmlkZXINCg0KU2lnbmVkLW9m Zi1ieTogV2VpeWkgTHUgPHdlaXlpLmx1QG1lZGlhdGVrLmNvbT4NCi0tLQ0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