Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5746038pxu; Thu, 22 Oct 2020 09:59:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkf721GArv7VGmc82IXzv+DfaAI9UbSycSj61e1DmxfrXPizxk1b5Ql90ymPDoCIT4pmIA X-Received: by 2002:a17:906:fb86:: with SMTP id lr6mr3121980ejb.510.1603385993277; Thu, 22 Oct 2020 09:59:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603385993; cv=none; d=google.com; s=arc-20160816; b=splHo7kbFGrC0IhVsrWy5zBPD0NG7UPy2nh6mRFFtVnHkmQ1jjWJd7M0URCbXl+rPU ntoc3wlXnKfiVtPZv3Z/dSDLMnIhADLaASaK/TtxYcfYZryd0tAYL+b2TSjj4xQX7wPP 5+v5nmAY40vc6en5NphDj1OK2Tg2jebzA5sv7MahTHN1VS0n4TD1eI/cmzvYWEh/FfHN 66ON1Rpd6WvNAqXtLOH+kja09ScDHXrBuyIhfRC5lkyFttankTMzN6R8GkArS4AN/G0y Cy6TvSbidCrrwUmKU19b2e+bicy5ZhiL0472mh5ZkHuJqpRysFswHcg9iadm6aqgEOg/ B/OQ== 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=d6l7X0D9mFaPMITY5GjptKADXM4I1L0bpxI3MpyN6Is=; b=ha+fGCk8JbPoIpvKmbolTperFgChHKJIwKXgFFaZhIhKhXjo4KECOTkmoI8KrjbtCP k2k1oL5qbJDOJ/CT/un1AInKt9quZ6ApjFz+KY0EWGD9NqquLeb2xFNuT4ZONw0jZRgv Jc8oYxDnfpYUF4Y8r8fSJcltHyka1NEzNratgqHxAFV5bqEfdEdpH9yuVhJWp3Sk7/YD GLRHN76kXpAR0SxQ7tsU6zwcLAbIkjHOChSsTP0WXwinA/cn8/Zsw96X6gC0Il93SBl8 a2ncvf7RbtSusZVEbR7NkHlswNbqa4mGEAPGrfgTeQXJs+C98jVQBAdaFS8D2EfiXUFa yU+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Cxjaqi9a; 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 f3si1244939ejz.386.2020.10.22.09.59.30; Thu, 22 Oct 2020 09:59:53 -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=Cxjaqi9a; 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 S2898478AbgJVMj0 (ORCPT + 99 others); Thu, 22 Oct 2020 08:39:26 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33670 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2898293AbgJVMiG (ORCPT ); Thu, 22 Oct 2020 08:38:06 -0400 X-UUID: 8eba02b7fcfd4ec3a481b94275f5054c-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=d6l7X0D9mFaPMITY5GjptKADXM4I1L0bpxI3MpyN6Is=; b=Cxjaqi9ayVMD1csXiapOHJgS+EcUBXaOHnnJB4gVTKzyxSMZkiFCwpT7RU3YwMh6kWCnsJyZylC2c5pyEIb8VZfJxHVp43+1YYVT/mPoam9EwT0x8XlzHwr27qk1Jbq2w0wlK6hRPg57qxR38EfY+AxNww3Q/A6bytPVzBPfGXc=; X-UUID: 8eba02b7fcfd4ec3a481b94275f5054c-20201022 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.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 246518044; Thu, 22 Oct 2020 20:37:53 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Oct 2020 20:37:52 +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:52 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 09/34] clk: mediatek: Fix asymmetrical PLL enable and disable control Date: Thu, 22 Oct 2020 20:37:02 +0800 Message-ID: <1603370247-30437-10-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 SW4gZmFjdCwgdGhlIGVuX21hc2sgaXMgYSBjb21iaW5hdGlvbiBvZiBkaXZpZGVyIGVuYWJsZSBt YXNrDQphbmQgcGxsIGVuYWJsZSBiaXQoYml0MCkuDQpCZWZvcmUgdGhpcyBwYXRjaCwgd2UgZW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