Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2494657pxj; Mon, 31 May 2021 03:44:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/PXGSvGQN4z5IWD9EhCdFgj6hyxA5g/q3oaWse5imf61+opoIndRbDoSPTmoud9XM7Il/ X-Received: by 2002:a02:c98a:: with SMTP id b10mr20090016jap.103.1622457849143; Mon, 31 May 2021 03:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622457849; cv=none; d=google.com; s=arc-20160816; b=0/GZ2/4/0olENQk+wxVteeEkCQCyKIFxsDr4IJmY/OtS/5Ljy9OVBBfqL3FZ5OsuRm TF5KPkjc81MkD8XnDm4skm4h6rqnogZ+dEuEW7qzyIiiUZ1VzD9BpmN8MxdFyrVMrSmJ YacodL79AZjjsapZ9iJ4RUiMkUQUsJLK+UtCaPhDCxYJOvjadnYyUYudCRXQaZ0SPbcJ uzhJGnvkIeMyFoKgrjdHLa2ZQuVwP982fjfh0qiQ8gZ159AOTWIsc7F+WDEfneUZQXaf qysN0rdxFoHZUkROtGubwRcQKyR7mcNFQ8xFlNQDcRgtC+D6MunzYsKYfG2ibVTuI8GZ TNnA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=q6CDHgMb9mKPjp4x1SNulaupT/UhuvJHScgAw4+1iTQ=; b=zXeoeFOqz7XBx4md9AYbILUwvzdyuQbdZGAeJ00Von4El+EqwA1tju2Dv+H/86THL9 l9DeO+mlETk9HB91VxRiaWGvjm4AtNZjf7lgooRHX7SKkx1/LaCL1s+LFPBp84Vt9abA jRLmqa1+f2brTIiEYmX7NfOVT5eJGFFPOhrSF07+HgKrRmF7mPOnNI2KZS9q12GvMkUO 4qJWEtza+s5SRgwSU9Zf3rBLpS96qPjKAudhCrcomqM9PKxGLQZetV2tZev2LwQwlGXX WAzkAzJXXuKrL0oKYW5tDbcQJCmRWLHCvFxm4oT0D+1ZYQaInsiZnSpVW64Tq7RNT/S5 PuZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ko6mlvE4; 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 e11si14283755jaj.14.2021.05.31.03.43.55; Mon, 31 May 2021 03:44:09 -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=ko6mlvE4; 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 S231289AbhEaKo4 (ORCPT + 99 others); Mon, 31 May 2021 06:44:56 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:22266 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231238AbhEaKoz (ORCPT ); Mon, 31 May 2021 06:44:55 -0400 X-UUID: b2dde1b47816432a8df854e6f5d9e2f2-20210531 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=q6CDHgMb9mKPjp4x1SNulaupT/UhuvJHScgAw4+1iTQ=; b=ko6mlvE4fPSKbOHJf3EOa9rD1aJvdjO8XfICi/mlJYtxSwEl4oT0bqdaclb1kpELf/8GJv5NwPXQQav7kkNcuiFoa+RcbN/U4gdUruiI60INGoH9W0E+GsUmnVO5vs8Lt5kU5z/oTneaBANcMzTPxWdPnhkRkNHqoPsuKfmEPdg=; X-UUID: b2dde1b47816432a8df854e6f5d9e2f2-20210531 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1416377279; Mon, 31 May 2021 18:43:08 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 31 May 2021 18:42:58 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 31 May 2021 18:42:57 +0800 Message-ID: <45480f3e65a58141132b2e8f17815fb21157b32c.camel@mediatek.com> Subject: Re: [PATCH 1/3] soc: mtk-pm-domains: Fix the clock prepared issue From: Chun-Jie Chen To: Hsin-Yi Wang , Matthias Brugger CC: , , , "Rob Herring" , Enric Balletbo i Serra , , Yong Wu Date: Mon, 31 May 2021 18:42:57 +0800 In-Reply-To: <20210531043502.2702645-1-hsinyi@chromium.org> References: <20210531043502.2702645-1-hsinyi@chromium.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-TM-SNTS-SMTP: C6DBC4AF376BB256ECC1E5347F85EB167520B767E3D2E466CDFB52E29ED2C8192000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIxLTA1LTMxIGF0IDEyOjM1ICswODAwLCBIc2luLVlpIFdhbmcgd3JvdGU6DQo+ IEZyb206IFdlaXlpIEx1IDx3ZWl5aS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