Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp278496rwn; Wed, 7 Sep 2022 16:39:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR64vmiuESQvK9qxdA8DzFgzaLyIQePJwRGTiRMxIiczWH4UNaUYsxLWvlVt7MeVEvr+oLr+ X-Received: by 2002:a17:902:8349:b0:176:a034:ec76 with SMTP id z9-20020a170902834900b00176a034ec76mr6409900pln.73.1662593963998; Wed, 07 Sep 2022 16:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662593963; cv=none; d=google.com; s=arc-20160816; b=Wpbe3agkvbBJfUOHiHgeQPr0qxNaxYvxVS/4F2C8yjjGACUPsfBAnIjZ5vUSAPSiUI 1W34fAYl0PPCU21fArVJclo/KxGU+ROw4kQpRGbRHYoz/cV/BKsUNwpUK1xwq7Izvsma Yn+rf/keZeFpOyoV7be5khPr0uq+3puox2brCqcLtHmT/sjiko+kcDcmQpQhqg6IN0aR cmqWPEWUSJdb/lv7x1jBwa+dwi6lzuNAskEyUeF7CMVY3FqXVM8mDIIwkAugp0leB86F k/1axVxXFuvcDImNHpKWvLQFnfUqN13fhDiipRV4fY2tc26viv8W1mP3yus55BHwHLjM n7TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=w3RdqVd1gkkXkZVjFlpJYrbMBbFDmrTcM7nhqoe7Ckc=; b=PQsJLblnk1qZ96i9icb71dgZjJkR8XIpmKE0tvZQRqhHoGNlFnzsNxUUZEeiiLEUsf cp4bo0Pq4l9wkDeTM+i92W004T3gndafgQI8aQQCL1kOIk7oAugxdWNGzZgIL3YCtzpv JB6BWStjoLH+GMBLVz1EBDP8KxNZUy7pBMfCY7+3Zt4mG27Zm21PNVdaByqUa7cxe27L uO6fQZkAqC6/vpq7YgaynJ8Rgfk4dC2ODVOseusbCK1neo2dm/DB9vw56ODLCVyrW2Ky qH+QeZJzF368iX/qzofwdIDK6rmvHkTA/sII2OgsBUux0hMDYyHd2UNgwyJpvFGCgRqL 1osw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Fq5PPwrl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a17090acc0300b002007f331feesi504089pju.18.2022.09.07.16.38.49; Wed, 07 Sep 2022 16:39:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Fq5PPwrl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229787AbiIGXEw (ORCPT + 99 others); Wed, 7 Sep 2022 19:04:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiIGXEv (ORCPT ); Wed, 7 Sep 2022 19:04:51 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C062647BB0; Wed, 7 Sep 2022 16:04:49 -0700 (PDT) X-UUID: e35e2d48047f4bb4a56b98aa1c728807-20220908 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=w3RdqVd1gkkXkZVjFlpJYrbMBbFDmrTcM7nhqoe7Ckc=; b=Fq5PPwrlPdf04Mc7k6Z0nz4g43WDqVRMof6okhajJyWIY9Qj5XhVoJhWKcZjha3I60pY9H7unFKU5G7u/aP/AvSaxLAO0TaoTh3RxnAMxVFucNX/kE+7v7+sOMenjLZKMx0ymfgOdkX6UsDg0HuftB1eQSfLYsH80FiwZ/mRqEg=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.10,REQID:0a230f38-1199-415c-ace6-9f5ca2e10dc7,OB:0,L OB:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_ Ham,ACTION:release,TS:0 X-CID-META: VersionHash:84eae18,CLOUDID:fb0f8d21-1c20-48a5-82a0-25f9c331906d,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:-5,EDM:-3,IP:nil,URL:0,File:ni l,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: e35e2d48047f4bb4a56b98aa1c728807-20220908 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1440695343; Thu, 08 Sep 2022 07:04:44 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 8 Sep 2022 07:04:42 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 8 Sep 2022 07:04:42 +0800 From: Miles Chen To: CC: , , , , , , , , , , , , , , , , , Subject: Re: [PATCH 04/10] clk: mediatek: mt8183: Add clk mux notifier for MFG mux Date: Thu, 8 Sep 2022 07:04:42 +0800 Message-ID: <20220907230442.10633-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220905100416.42421-5-angelogioacchino.delregno@collabora.com> References: <20220905100416.42421-5-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_CSS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > When the MFG PLL clock, which is upstream of the MFG clock, is changed, > the downstream clock and consumers need to be switched away from the PLL > over to a stable clock to avoid glitches. > > This is done through the use of the newly added clk mux notifier. The > notifier is set on the mux itself instead of the upstream PLL, but in > practice this works, as the rate change notifitcations are propogated > throughout the sub-tree hanging off the PLL. Just before rate changes, > the MFG mux is temporarily and transparently switched to the 26 MHz > main crystal. After the rate change, the mux is switched back. > > Signed-off-by: Chen-Yu Tsai > [Angelo: Rebased to assign clk_ops in mtk_mux_nb] > Reviewed-by: AngeloGioacchino Del Regno > Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Miles Chen