Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5758318pxu; Thu, 22 Oct 2020 10:15:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0pnXDmVoP8a6uhbs7BLKY47tYh9tKF9XOgiRNFw/CC9MELXQm+r+9/VWX/6knU31oWv+H X-Received: by 2002:a17:906:1418:: with SMTP id p24mr3234793ejc.46.1603386903566; Thu, 22 Oct 2020 10:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603386903; cv=none; d=google.com; s=arc-20160816; b=HfUVwxGa8TkG4jfsInLjspff4X9erp/Vxhtif5PtdhBXdGICkizMLYtH7BHQ1OYASp 77J4OfpXFsahfneCTXtlnorzZdML+uuzaXeMdj/mp+hNo1BP5oBLk5p5LHDhXEeDKMnH pGzvnDDSWtgq92mspvft/oeiQ303W1q9SCPP3Fezx3EG/TVLDlcIQn+ItH/OgbYwhHxi deLLgCYM1JTR7m+rQFcLakI4PZnjqUSgTHm9eSn9q7A+mylvqw+F9z5U+K/bTTZnOGb6 GiukwPV7QGuBAI/87LGmHtq9S8vo8X6K6rzsQBfVhg+mf+U1vHNnMdDMHEUyL0drTUcg qNyQ== 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=xh4EuY2RcMtqZ5iWsGVDnw7AsLhcg0mrhQQvuCBZqTk=; b=K+eWbW3wPn3LyLYvvFYQ3oFXqdNrMEq4rSWjzf3YyMyzeLJMx5jpfu9QmX2hmezIXz 9J93cwJLBEQnl+N/aZcqQszFwR5nYbMByP3Hf6G4sd6wzSXKRAts1JE+ayM4ugycIpjo UQi3bsquayyO89+1bFp/fDFuRBbrxRLMYu0ATsa3st+9Z+lfdqcTAEoXSOhOCIJMQFhp VgVHQxzdLeI9DsqGPFhRGQerVo1Qib0un9C+q5sfz0qRoWFfnCqLjtYk+Zauu7wy0h3u h9B5UwZ+YC93+1z+ierG9ENQnu3adf2QrF/3VvRS7n+Z69lmJ5sS/uX+T4zdkCRBgeU/ tskA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="MzV/8vk3"; 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 cb25si1251445ejb.184.2020.10.22.10.14.41; Thu, 22 Oct 2020 10:15:03 -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="MzV/8vk3"; 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 S2899090AbgJVM43 (ORCPT + 99 others); Thu, 22 Oct 2020 08:56:29 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:44034 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2899056AbgJVM4U (ORCPT ); Thu, 22 Oct 2020 08:56:20 -0400 X-UUID: 2f0e1791af684884892d04781f050fdb-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=xh4EuY2RcMtqZ5iWsGVDnw7AsLhcg0mrhQQvuCBZqTk=; b=MzV/8vk3RkhRLsBMggthw+rlWF72y16T/DBtsiF7Uv8BvoWbdnL08+vj7HNxsiJ5zIJ8SxN/AMTtWxa3vZx5ZnIjDbNaoWy1vGE52UUM3RwYP5YcyD7thmSyENSH4dI8Oh4tV4uKQLx6TDZ7r6xFMdX4hoc64/6JQyxTN3nYqMM=; X-UUID: 2f0e1791af684884892d04781f050fdb-20201022 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] 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 513383610; Thu, 22 Oct 2020 20:56:13 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Oct 2020 20:56:08 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 22 Oct 2020 20:56:08 +0800 From: Weiyi Lu To: Matthias Brugger , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH 12/12] clk: mediatek: limit en_mask to a pure div_en_mask Date: Thu, 22 Oct 2020 20:56:05 +0800 Message-ID: <1603371365-30863-13-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1603371365-30863-1-git-send-email-weiyi.lu@mediatek.com> References: <1603371365-30863-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 QmVjYXVzZSBhbGwgcGxsIGRhdGEgaGFzIGJlZW4gdXBkYXRlZC4gV2Ugbm8gbG9uZ2VyIGFsbG93 DQplbl9tYXNrIGlzIGEgY29tYmluYXRpb24gb2YgcGxsX2VuX2JpdCBhbmQgZGl2X2VuX21hc2su DQoNCl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