Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2897341pxb; Sun, 8 Nov 2020 18:12:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxq4UXkv7eWyp2GUrzYcD8g2dELha2/IKlbyrT2pUgd9wb1BQy0sw42zyxNcWQ71tgC4KF4 X-Received: by 2002:a05:6402:1765:: with SMTP id da5mr12801063edb.155.1604887920403; Sun, 08 Nov 2020 18:12:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604887920; cv=none; d=google.com; s=arc-20160816; b=wdBWdms0w9THnQSS1l0Whdkg9keR196q7haILyYyG2pxYg2qAFD4ARlEPF0JYD6tH+ 3pDDVcn9qoKDANpugSj6onFxe9laLKJrzQKzdSCNAxAJTsQAqWcJnWNXP2OzW9cQVfLj 1GW+EpTs4yCeOL7Nx9OVqfMOUKYO/lxzer8mfA0rzGUlhCpVFNsxeBirwbTnnzRk49Va maZoXK+HCQr2qFVYOd9O1yYrICi5lx/d0lS1M+45LsZzM7GV0RcLD6vyreOzhGik5030 GeN0YRxTeK+VsU59PMAM5tXCtxURr6u9sNA4TKDUHfNO229kyXsoQardkqeUVXGMAxp1 sjKg== 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=j2tvC/kX1jTSmtdwLaCRJ9X1OwvCvLWmu2dhJBz+qSB7MHKmdc2WnHvismGBI6Jfxo bfR9D3dWGzhTfSrbVvHAiBz5cmkqdUBtyRPBCyez13jW9RnYuDPMwVSR/LpgGh963SMu LZxYvrEp57hBIsqtDSpbwcBrI1z64m19isBgDJvgWZF3nNolZSr7C7VxzeKKsuuBvURs X5i6zaDPKJB71Y2tqS34QVWux5CbAb4tV9Up0SjStZLZiN4wm1J5W6HGmkA9XfA9QO5L lnXf9MuMGktn1mxcTyZSOzmTkXQ3cAXkks2/EI6DyMO3GP68khWWkOhgKelRX7cz9ORv wN2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=HaH2Y7Bz; 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 g7si6275710ejd.530.2020.11.08.18.11.38; Sun, 08 Nov 2020 18:12:00 -0800 (PST) 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=HaH2Y7Bz; 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 S1729226AbgKICJs (ORCPT + 99 others); Sun, 8 Nov 2020 21:09:48 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:58255 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729124AbgKICJX (ORCPT ); Sun, 8 Nov 2020 21:09:23 -0500 X-UUID: 188336fb9ad940e6a95966cac9edb1fc-20201109 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=HaH2Y7BzjBnE2f1/wY21MMk5Lw3aj+tH+ut7hKUl4w3XohVyVlDvYk2EgCk/8wNWqrmhVDwrHy3hsXJ+hu1EW/ps7augp/59DBSH8JZG/XQVozObbfY2M3Q4ln1cohPzEivwtgfhd0E1BM/0UHEeVgW15mFt3TU5E4Un8jOJk/Y=; X-UUID: 188336fb9ad940e6a95966cac9edb1fc-20201109 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] 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 676088100; Mon, 09 Nov 2020 10:03:52 +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; Mon, 9 Nov 2020 10:03:53 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 9 Nov 2020 10:03:52 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu , Yingjoe Chen Subject: [PATCH v5 07/24] clk: mediatek: Fix asymmetrical PLL enable and disable control Date: Mon, 9 Nov 2020 10:03:32 +0800 Message-ID: <1604887429-29445-8-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1604887429-29445-1-git-send-email-weiyi.lu@mediatek.com> References: <1604887429-29445-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 YXNrDQphbmQgcGxsIGVuYWJsZSBiaXQoYml0MCkuDQpCZWZvcmUgdGhpcyBwYXRjaCwgd2Ug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