Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp186813pxa; Mon, 10 Aug 2020 23:36:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0bIpk0bJ9JqRRo0+iEf/q0lN2zuzy2R+ZRUsCuBkfrKke6RmolWKRDRqoTPR8aRibVI9d X-Received: by 2002:a17:906:2717:: with SMTP id z23mr6639133ejc.19.1597127760161; Mon, 10 Aug 2020 23:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597127760; cv=none; d=google.com; s=arc-20160816; b=B/rKb+gjpc2mGhAvgXaPT5FMGdBEI41UjTFYwVxC48itJpT81wnlMOGTHCDMD9kSWw 2GodQdzGgyxvzAQHDXY1WRkbK6vaOd1yEK8jULZPNBwDJJ2nVeF/xROL8fP5vOI1IG1I ye6uhTTfAK5MviKH+L2xTf6yTBz3wjPgxIkRk4RTOflCwZaD2rUkF9YIXsGUByxyUK5A dCFbnJ8hQ18gsOUQBrWi6ngtXUa3UeQHoyrtg4ksIhj+kVIIOaPd4XxBrmfyitSvi0IX KBWIcDPfpIMs6MhK/TggJLV27OE8e3p7pzIGik/lXD64lIUMmd/5ehE4s6mxgWPbw55v VikA== 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=HjTrZJUnmsbyXMddz+pAd0d3gGDoO/AnUi9tsFN7vvI=; b=A6w+RMWyepFGNbAG2mdpZpa3T8x1jkpD7Wc0gkc9N8Yk+/Ac1V866RGtIqoOiqgvMG NRhHNCuWxkx6+2OMRDbuly/XXu4e4YFniuG/MgZkV7LRdbUOcmwN8978r9NnOXpSLwwn jEGo7xSqOkiMGZ9VA18Ydi5qvJO//GjPQnFUgykZ54WCesa3fTwwKk1uf9V4DMi2lFxP vadwEOIeOqPZWNSCFTqYDYe5Bpj/tpQnzj6GDTxDMUk94Zhv4foNoNTQj6wD+wjmtfAF 9Qk9rEnCVx2MVmkzdsM+rlwbYCq6a9YavUI162R334NnaxIClaG0BYHuLiGKhDQ6XuWa c1CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hkhy2iK7; 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 d23si11836605edv.224.2020.08.10.23.35.36; Mon, 10 Aug 2020 23:36:00 -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=hkhy2iK7; 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 S1727984AbgHKGe7 (ORCPT + 99 others); Tue, 11 Aug 2020 02:34:59 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:1280 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726520AbgHKGe7 (ORCPT ); Tue, 11 Aug 2020 02:34:59 -0400 X-UUID: 4e83e217174340f4adcb4ff16e082455-20200811 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=HjTrZJUnmsbyXMddz+pAd0d3gGDoO/AnUi9tsFN7vvI=; b=hkhy2iK7bxzjN/8wI2tM41ng+0J7E90mEj3QvoZJ8bOy3RTHYqZ8BJODlt9MZP0sBg95hd3FbyNHmMVCXYRTapbv4jcDRo4iMZ3ymn3bgwQbp0EG2FS4d2SDCYP2TIhWjgMigKHt+7M3KNMZL6Qnvc16hNWa035iLOlHzuyfHjk=; X-UUID: 4e83e217174340f4adcb4ff16e082455-20200811 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2044285616; Tue, 11 Aug 2020 14:34:54 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 11 Aug 2020 14:34:51 +0800 Received: from [172.21.77.4] (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 11 Aug 2020 14:34:45 +0800 Message-ID: <1597127686.20627.8.camel@mtksdaap41> Subject: Re: [PATCH v2 3/5] clk: mediatek: Fix asymmetrical PLL enable and disable control From: Weiyi Lu To: Nicolas Boichat CC: Matthias Brugger , Rob Herring , Stephen Boyd , James Liao , linux-arm Mailing List , lkml , "moderated list:ARM/Mediatek SoC support" , , srv_heupstream , Wendell Lin Date: Tue, 11 Aug 2020 14:34:46 +0800 In-Reply-To: References: <1596012277-8448-1-git-send-email-weiyi.lu@mediatek.com> <1596012277-8448-4-git-send-email-weiyi.lu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 2B190417C65371784B5F8095A8677560A8027995044ABD80DB753E33129969022000: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 T24gV2VkLCAyMDIwLTA3LTI5IGF0IDE5OjAyICswODAwLCB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