Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3714632ybl; Mon, 3 Feb 2020 05:16:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzMmiS8VrZyatugAZHwZWPOvqO7/T9Qo5UDre34ECj7OGRNzUuntV1R/5ZvfDUxyu/Q/bUY X-Received: by 2002:a9d:222f:: with SMTP id o44mr17745094ota.51.1580735814433; Mon, 03 Feb 2020 05:16:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580735814; cv=none; d=google.com; s=arc-20160816; b=M6xiBuh5QndBVii7iLDf2lJaHvCvshgOlQyZc4jV5szVKsCXpV8qc2wnWK7LShBFgN zuYU3s6oNRjXFODqwK6jYh6Amd1rzDnJYwuwuEYDok2jeqBfNEYPZH5Luddpiq9EUHHf obtMmmjyQOvBSXZ9IAbLeIzUwcceynx3GxijUUnD7apGj0ZJiEjX345DIK3RteuVF1F8 Gsg91iBT8dec9JQQXkSzDKT4tghXyuEKg1gk+aXhV0o1PbtmIy9+eQc5LdG/wCM26a40 jqnOW3m8pHGSMBaWqL74j3uPgvZNvQrjyquIx0vx3hsAhHGJR/+UzWEXgNOM3fdk2iRm UlAw== 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=c4U+R76pck3CjZ+Vh6/dtofCsHfcB5LI8mXWeo6/RFk=; b=eV4jOX8uKALJTJp2mJOwcV0yQm15F/ezFCE4bjUMuHaA4bxWUuBHgNOsiCGPNhpdWV Jl8MNUZ53PLUR6wLKjioaFhFBo11KE1el46XN4qJNrKhocNH4STnnJDlHGMBo5WvV6Gn k96XzSOs6oZLOHElitwtEgykRb1qFwbclqKnpRvrxInkeZDrAodXzj6w/SgG4/4z6kJv ri7zkSatXfir2wVi56OYvMXFmIkkbqT+jJKCR2Wbm2FkNnIWm7UDtmwfMGZWokzVdCnO mwXDF+1sPqCGnf5padgVs9QFmudUEqRBE6u5dvSNDmffNjl6FeORoL+1m99AB8ksB65B moTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Y+l8UPEc; 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 i13si9011329otc.228.2020.02.03.05.16.41; Mon, 03 Feb 2020 05:16:54 -0800 (PST) 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=Y+l8UPEc; 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 S1728107AbgBCLlA (ORCPT + 99 others); Mon, 3 Feb 2020 06:41:00 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:62616 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728076AbgBCLky (ORCPT ); Mon, 3 Feb 2020 06:40:54 -0500 X-UUID: 5656f5f91fa448669fcbeaf589200dac-20200203 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=c4U+R76pck3CjZ+Vh6/dtofCsHfcB5LI8mXWeo6/RFk=; b=Y+l8UPEcrAtsxiiEr33YVTWzjQpvgpal5HN6OIZvWZQJhHEEOaGg5HYNBFocAafPLXi/jNV+TzFpjPAIGCO177QXZw5wGBuy5dLHO09CrmbUFDYZEIuvCjhMDkpBQq53TTgnHI9Tsy0cC+jWDWXOQx0Kfw+QW2i4k2Yta89yAwA=; X-UUID: 5656f5f91fa448669fcbeaf589200dac-20200203 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 601699526; Mon, 03 Feb 2020 19:40:47 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 3 Feb 2020 19:40:00 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 3 Feb 2020 19:40:30 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Alexandre Belloni , Matthias Brugger CC: Mark Rutland , Eddie Huang , Sean Wang , Alessandro Zummo , Hsin-Hsiung Wang , Richard Fontana , Greg Kroah-Hartman , Josef Friedl , Thomas Gleixner , Ran Bi , Frank Wunderlich , , , , , , Subject: [PATCH v8 1/5] mfd: mt6397: modify suspend/resume behavior Date: Mon, 3 Feb 2020 19:40:40 +0800 Message-ID: <1580730044-30501-2-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1580730044-30501-1-git-send-email-hsin-hsiung.wang@mediatek.com> References: <1580730044-30501-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 U29tZSBwbWljcyBkb24ndCBuZWVkIGJhY2t1cCBpbnRlcnJ1cHQgc2V0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