Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp106500ybz; Thu, 23 Apr 2020 19:31:04 -0700 (PDT) X-Google-Smtp-Source: APiQypIe3zskCayhcHeDRseSG1yXJwWt6YdqTR1zOm52mUzTjrOmRnU8RUFn1JLy08nessI8Psna X-Received: by 2002:a17:906:4a4e:: with SMTP id a14mr5308066ejv.363.1587695464283; Thu, 23 Apr 2020 19:31:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587695464; cv=pass; d=google.com; s=arc-20160816; b=vdnC+UwE08aiXpT6EqB6kRodtd2QTuEgBmQAmRl51mSwu3wW13vI/N+ILgKP2QMElG TKfre4tUuuu8jzdV2SscNPj+qnZ+5nLvx00h24cswkpVoxmR3zIcjVGcJDjah2NN6CP6 thIx+IEU1ROvUAopVHl7tNc69surDSTKS2jidrbkx0JwfNXT+3dZQL0x8yYy4NbL6B2J mgfTZznJGs3pJuHOY14fXpaBNe+hO5YCVnBP4ulvJukEyxtHGbByeENxV6d8LRSXAge0 JzSJZTf60mp+qSeIzV26khZVRz3D1EssjlyOQ1M6TmqVnz9wsYAKLgTpylg+wky7I8kG hMkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=EHyEBYvH+gKg6lCQ8nJ70p4EWcyd4SPmag2QP66CIjE=; b=TswpqT/PdLaCLUQd12BH4cEmrJF+zG+t1BQpluXGtUTZVG5hPWFYU3wmlxsXn8FZbj hz/q43GQvja76Xy68igAygzWfqWo5xbHs1BHyBswaJRym4ml+vW+e6tOpuL8tDQK+Jpi UInwgtcglblvDZYk/PfFGqJl39PoBkVQhWC7G/9qDXF7sSCvTIMytOJu37mnh94ae/uN KdysQ32GUJlYV5PCdCrwRcmbNn/mQTqUdvabxUwkb6IcKNscSYY34qBaqsWo9N+oqFUG 9ib05AEarSNnFShaPt4UaRuLGr/7/4nzr21drQ3qsyqYAVl4pf7BH/amY9GHLJIqSyZE wfqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=noDwsAoq; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si2296125ejr.155.2020.04.23.19.30.39; Thu, 23 Apr 2020 19:31:04 -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=@nxp.com header.s=selector2 header.b=noDwsAoq; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726130AbgDXC1L (ORCPT + 99 others); Thu, 23 Apr 2020 22:27:11 -0400 Received: from mail-vi1eur05on2081.outbound.protection.outlook.com ([40.107.21.81]:6083 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725922AbgDXC1L (ORCPT ); Thu, 23 Apr 2020 22:27:11 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g4jaj/iCpsZ5Hqz3ZkENkQtKUC8/aDYuxOiChC5S5D0eRfBHaydUhHj6yVDNB70A6qWtnYIlJ2jnPcfJIM0yzTWk5Ah3pca2G+W+v633RQ4MpE4rc1SGvRJ+XyaqdKNFBQabAy/2GNZyw4Rb4PZADTsalW2bJK3qkGgnZZ1RWg48Y14PlUv0LAhyoylP3fLVB/1TOo9UZfTdUjPVwqdUDY0cm3FjoSs9KD0jcd58HVr9dOHB10q7alIeW3qXUxBqGpT/yA5+3RQZ5gC9KMKaYqOq1FqhZI1Dqpid7AdAYMBN2iNT2dGloMVUS1lcNmqqpgfN+tcqEZD3pJzCH4asSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EHyEBYvH+gKg6lCQ8nJ70p4EWcyd4SPmag2QP66CIjE=; b=D3yyzkWIEgTmneKXtTE831SkvNlXG+97DWB3Ddnp95sg5a6+Okmf2bom0z7KxA9aH4/6mA5erJuyklTn4hs6iaZHzTZYAStttOFnOpRLl+rCovhr5XpeJGsbMxhVuuc0BEZoYFg+C8MifQedvZFys+pdAsI2NZnTyYgCnBRFZEOiCqgEAcmWYVG+qgF10Q6B5hUH63DAs66ncFQVMHYt6Z/ij8pEPBQbKE8wgTqpNQRyCNDeNk1ZO0ZchG4wIdva4YoHNS6wC+VPggOn0KeVan2k/MwR9rV8Rv247ZpKQxNCEh7LZDOSJ/PYbsxBTSxMUYH8cjhcibbjhG33tLUcuw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EHyEBYvH+gKg6lCQ8nJ70p4EWcyd4SPmag2QP66CIjE=; b=noDwsAoq8FYOTITglk04YQ2x6eAvWlk6yt7k6cDH3MgGb7qgVPJrXrtmtlDQ8LKVW5eLMfBZdRw4VRS8Hs2DbXjvCDhjvRNE2brouvvLnZxGovma3cukIgx3r9Yq3NgQpK7FbhaGWUMURtn0nNYJDrJuY82wqpnLbfEygy0Mq9U= Received: from AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) by AM6PR04MB6439.eurprd04.prod.outlook.com (2603:10a6:20b:d8::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13; Fri, 24 Apr 2020 02:27:05 +0000 Received: from AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::d9f7:5527:e89d:1ae3]) by AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::d9f7:5527:e89d:1ae3%7]) with mapi id 15.20.2921.032; Fri, 24 Apr 2020 02:27:05 +0000 From: Aisheng Dong To: Anson Huang , "jassisinghbrar@gmail.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" CC: dl-linux-imx Subject: RE: [PATCH] mailbox: imx: Add context save/restore for suspend/resume Thread-Topic: [PATCH] mailbox: imx: Add context save/restore for suspend/resume Thread-Index: AQHWGcRIgrxdUkc8WEWRmowVEyQEl6iHi5TQ Date: Fri, 24 Apr 2020 02:27:05 +0000 Message-ID: References: <1587682871-528-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1587682871-528-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-originating-ip: [92.121.68.129] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2d33d994-4d81-41ac-246a-08d7e7f6fb26 x-ms-traffictypediagnostic: AM6PR04MB6439:|AM6PR04MB6439: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-forefront-prvs: 03838E948C x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4966.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(346002)(376002)(136003)(396003)(39860400002)(7696005)(316002)(15650500001)(26005)(8676002)(8936002)(81156014)(186003)(110136005)(478600001)(44832011)(6506007)(2906002)(64756008)(66556008)(76116006)(9686003)(66446008)(66476007)(4326008)(66946007)(55016002)(33656002)(52536014)(5660300002)(86362001)(71200400001);DIR:OUT;SFP:1101; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pB+KBOBaZvfP7EzdKNemiyIsB9zly9q2egt000MKIreFCJh5Tec1LO0kJRgveu7VNxTxXYJISLQYI4D7irmSxkqRS93VikXsDUDowCExI9m6oBri1fzCwBl8TpEM+eU0lqVNaqPU5ZtorWIFfpsiEW5hNCwTIuaHAwkMwSbhKYyhkc4f3wqp8Kp+RNVczxrjDNMC1Lr7LFnUJxYLWxpLFpvyFbs+Pwu0sb6424+5sRIHUXhENWJ/mrSpy6vyqn7tw2yJcBwv5BKitusdvy4vWRMKHKdBjR23NV/jJu+jlhOL0pT6ymI/CsGuh+H3MMFZaixDTLKlouPapW9MBgAAPCkQnx/LUtWZwW+euU/P3G0waAPJAmb8A/dUBHmvffTe9gI1DUZsukdnY4X+/0YGFgBsBhN68AIFAk66TkoQh0XePt8XIkoVImwrU07eD8WG x-ms-exchange-antispam-messagedata: uxJxI9plfMMIaR86zwFCTlZy7NT3OtEG5FxQmnz1jmO4nxh+r5qT7dWHug1FNHN4sJK+S7gLu/8Ylh34h0bYkij0cSoFS37OrjhnzmbZgc+6w0iglkwaBWDzi6MISYUM9Bo9CQzqv1/9zPt8kXopZw== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d33d994-4d81-41ac-246a-08d7e7f6fb26 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Apr 2020 02:27:05.6294 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: NbvZbKSUv0Hgryw8EOHYFRgrEDMzDydTHys3Xh/LCSAsL3yzJ0mZ/XIZ+Ft4mYW/l2CV/nrPENPb9LBRGT9cnw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6439 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBBbnNvbiBIdWFuZyA8QW5zb24uSHVhbmdAbnhwLmNvbT4NCj4gU2VudDogRnJpZGF5 LCBBcHJpbCAyNCwgMjAyMCA3OjAxIEFNDQo+IA0KPiBGb3IgIm1lbSIgbW9kZSBzdXNwZW5kIG9u IGkuTVg4IFNvQ3MsIE1VIHNldHRpbmdzIGNvdWxkIGJlIGxvc3QgYmVjYXVzZSBpdHMNCj4gcG93 ZXIgaXMgb2ZmLCBzbyBzYXZlL3Jlc3RvcmUgaXMgbmVlZGVkIGZvciBNVSBzZXR0aW5ncyBkdXJp bmcgc3VzcGVuZC9yZXN1bWUuDQo+IEhvd2V2ZXIsIHRoZSByZXN0b3JlIGNhbiBPTkxZIGJlIGRv bmUgd2hlbiBNVSBzZXR0aW5ncyBhcmUgYWN0dWFsbHkgbG9zdCwgZm9yDQo+IHRoZSBzY2VuYXJp byBvZiBzZXR0aW5ncyBOT1QgbG9zdCBpbiAi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