Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp392215ybb; Wed, 8 Apr 2020 01:50:10 -0700 (PDT) X-Google-Smtp-Source: APiQypJpdXjyd1Qlj9SaOz/YWpG7y48Iehe7INS/zhr9PeiVHyOl5OZPnE4unl8NFO9Y6uLKS4qu X-Received: by 2002:a9d:a6b:: with SMTP id 98mr4654783otg.21.1586335810461; Wed, 08 Apr 2020 01:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586335810; cv=none; d=google.com; s=arc-20160816; b=BTtOXjYeFfxeJ/d2iSQzTryA8Tjqkoa/qehC1FLDxf/Mo9+TRx0mYWSRCzYA1Zes11 BAPx8//fiBIRFKA87Q2aWiLbQQj4JJfMMOuAm5cPVawZupvNfrvVSF8mqPt9VDofb0Gw XczOcOLoTA/B4u/7RbHLwRg4Kux2g5X6JQya2FkCjXjkbxx9YWhiB46E0Kof7MB4iQNL gycFgQQSj0Jw2/uEx6gjf/vkT5DoyCuymv8AYYP1v4M6rojpOthflwUlCD4i+bfN8swj jWJHVxScHtacP9jYXU1Ewk3t1oatbZeAI1IyTg3ZHscql8RAtEDowsO9usSmxEgPjQRp OYkA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=LCpxPAAAlbCRhNWaPlL/YFI3+ocxOtHpC4ZE4h02Q94=; b=ZDcA/jk18ToCBUA/nXVOd4mbDFt6UGvBmEdOkU6RDu6aqhVen4Ild6zwRsZLPxln7b F0yl7sU5BaH3VMl//czNfcbqxe6X67/QjeUqyOZ2Rp0Re2/LWmqqCZx5U1S14bExetZ+ iHn+pDV4Pw4EtSjJuzAzVwfS8Ohbg7u0Yw7bjpx/sQo5WaQ3wGF5RlUoPWwJJzCXlO+M GvVLS1BkMLfi3Ek954QwmqTfGxqsLoOHiTJqvaWs6jQvRzYEgtYsBZnwIXL3CpY6MmYG YrRi9k68UJvEqJifxtVOnnwE4auCbmsnJ9WIo9x3Wuo3NPh4xZSIsLO03+kOm7gtlNR4 p5Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="qP6e6Bx/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id r7si2260317oth.222.2020.04.08.01.49.51; Wed, 08 Apr 2020 01:50:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="qP6e6Bx/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727307AbgDHINH (ORCPT + 99 others); Wed, 8 Apr 2020 04:13:07 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:9335 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726146AbgDHINC (ORCPT ); Wed, 8 Apr 2020 04:13:02 -0400 X-UUID: 13fc219e180e47d6beac0a362bd9c807-20200408 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=LCpxPAAAlbCRhNWaPlL/YFI3+ocxOtHpC4ZE4h02Q94=; b=qP6e6Bx/1fpCP//jsDK3xQRw0fSg+WeUNJZW7Ui1WcEZ6S9UQsncL7TKrSHd8VdprJrQyGxE5ZX6nlMN37zy5oEIqjSky1F03cGhKE+jBOo/e9OqzFr3UQ2yrae/T5ArZ1RbS2SWQKFVFnThmrSvYsI/oP+CqiXwsfnq7x9/MUk=; X-UUID: 13fc219e180e47d6beac0a362bd9c807-20200408 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1975154832; Wed, 08 Apr 2020 16:12:53 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Apr 2020 16:12:49 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 8 Apr 2020 16:12:49 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Matthias Brugger , Alexandre Belloni CC: Nicolas Boichat , Mark Rutland , Sean Wang , Sebastian Reichel , Eddie Huang , Alessandro Zummo , Kate Stewart , Richard Fontana , Frank Wunderlich , Josef Friedl , Thomas Gleixner , Hsin-Hsiung Wang , Ran Bi , , , , , , , Subject: [PATCH v12 1/6] mfd: mt6397: Modify suspend/resume behavior Date: Wed, 8 Apr 2020 16:12:06 +0800 Message-ID: <1586333531-21641-2-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1586333531-21641-1-git-send-email-hsin-hsiung.wang@mediatek.com> References: <1586333531-21641-1-git-send-email-hsin-hsiung.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 U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