Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5757407pxu; Thu, 22 Oct 2020 10:13:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/j75nPSQUeTOdxuBDKOwnO6rJPr03HfzdQgyKT2L/axJCem3VNkY9W2Lj1ilMXz2Wb0I/ X-Received: by 2002:a17:906:1618:: with SMTP id m24mr3470843ejd.438.1603386826607; Thu, 22 Oct 2020 10:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603386826; cv=none; d=google.com; s=arc-20160816; b=YwNRGEYMhC2Z9nTxBOfxv3QFpzufm16j9kjAw4i9O/nlNHoWOw6xb7Dx8//xU+dYsi o2KeNP2psv+gRsPupTl6Hp/ilPCqKO9Ymr/WKQFrKgeTIst43SLWZW1XCusS7dcR+g/Q LN2CTCBlnluqNiiainIFo63xyr6y/vIyft4yI1pEv0ZVUVyMgaIK8SB/2NzhCo8WobXm IlijTuA5JanzJCrxmP6Y+3gmnK1Lj+c2rOZxBL2NlyAhVpcgtJ2yggnhF1XjZbzttdXj sbKLYlXXzH6MyAF9chdLScRfvu9FOJD3oQaDzCUXDJBcct5kWlfHDhFKH037QIi0ILTC +HqQ== 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=aER/GLpe3/PEFF5UMv7R5fKpYWc9avuUM9COWVPQLn4=; b=ROhc8WJWL41LTxzxGJXvW/NfScN/N7OOkIIcRWc4iuP1IVVcankxv3aT3eInazHler x1BhIM6n+yjz584iiF4cj2WBElAGezVYKrYGGHopjRRrwq+Dzg6FYHj1NyvCKFYvZYix zAPj1Nng93BEeM5gInW8d/ZeMIdIlZO8r8av7DiHdnT0fxb5sWy94PjZR0swgbrZGp63 f+PSHnULGl2iD+JdlHuD7UflroO/w8QhLQ98TI1iZ2laJGd5u8oej437T1sp9nuXQN2d 7MGhmok8A8z12OMt4Nb5gGcerUKYzt3qkRNU+lKgQYTY4L2yCsgL60UQAB/8Tv6Mya+g p23A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=h3jmaUbJ; 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 z11si1326743edl.450.2020.10.22.10.13.24; Thu, 22 Oct 2020 10:13:46 -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=h3jmaUbJ; 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 S2898633AbgJVMrs (ORCPT + 99 others); Thu, 22 Oct 2020 08:47:48 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:46600 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2506690AbgJVMrq (ORCPT ); Thu, 22 Oct 2020 08:47:46 -0400 X-UUID: 182ec6c31f8846ecb1a63f4389a88b1b-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=aER/GLpe3/PEFF5UMv7R5fKpYWc9avuUM9COWVPQLn4=; b=h3jmaUbJ1s83nuy4hzllQmVSpOzY5c9TpN4U0UXjKIPGnHtv4hWYgfh7trK6TARGNTa90+2gHxG+P5OS7OPWnwo7YXrJgn3yrVTkjo0Hr8UY2tL1JRU5ITNrM7Qns2AdBdQ3qWz4YHHrfTt7YfbtRL43+pCF1ZalVSmd7Rb72ek=; X-UUID: 182ec6c31f8846ecb1a63f4389a88b1b-20201022 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.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 883003489; Thu, 22 Oct 2020 20:47:41 +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; Thu, 22 Oct 2020 20:47:39 +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; Thu, 22 Oct 2020 20:47:39 +0800 From: Weiyi Lu To: Enric Balletbo Serra , Matthias Brugger , Nicolas Boichat , Rob Herring CC: , , , , , Weiyi Lu Subject: [PATCH v2 2/4] soc: mediatek: pm-domains: Add default power off flag Date: Thu, 22 Oct 2020 20:47:35 +0800 Message-ID: <1603370857-30646-3-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1603370857-30646-1-git-send-email-weiyi.lu@mediatek.com> References: <1603370857-30646-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 Rm9yIHNvbWUgcG93ZXIgZG9tYWluLCBsaWtlIGNvbm4gb24gTVQ4MTkyLCBpdCBzaG91bGQgYmUg ZGVmYXVsdCBPRkYuDQpCZWNhdXNlIHRoZSBwb3dlciBvbi9vZmYgY29udHJvbCByZWxpZXMgdGhl I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