Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp422412yba; Wed, 15 May 2019 03:50:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4U5WdPLCo9S4kiMM//t9yGnYc8QpixCTPyPW5OHkZxq149BNoao2rc9NEk1LsDABxKIsr X-Received: by 2002:a63:5511:: with SMTP id j17mr43636270pgb.449.1557917420495; Wed, 15 May 2019 03:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557917420; cv=none; d=google.com; s=arc-20160816; b=QVpUQr6LcU7s9LBLJVHaqG+1uhHbUWl6s84fvQr9jLcVJnZ+3l7UXDzAR2YnPoeJ9q xG+GZobqPs7QnVJQrBXJI9LFaiyeBZeXNU+5nOSq/nwYo/qYwXUpb551gSZifKa3I0pd pmQixV9f1VjcnZtzsvMLxio39PYHQJZ5MPFwEkQlK4qVms9t9dlE3eQVIX3Gshgpu4vR tGsdehAvE94QS2eZ3DHx7obAbQOZMDGiw/AG6O5xB9SwCIS0F9MPUhQLth5CHxbKcfQI 2kamiatWlWWEmOOY8xdELSlbzF3i9YL6XZ/JGyKf2hkZ3w8HFpaJFJb/hqo077YjlYbh V0nw== ARC-Message-Signature: i=1; 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=yzYdVqYYMzd2E5SC/gDOMMJ4+4uTCL+l84JT8yl4O2M=; b=KCUVk/FR3itOK1QjRjrCz7ArfdBORt9SeeSvX+C9XVl+LXHztamhZUBTnpjHRFr53W c628lg/sSOKn6855mnc29jRU6pFYCU5QH+9Ul61tdMVopzEyunCXvrkPNU+7+9XSSnXK ezplp2lZKsp2cNm+ifkd9ZhAsgzW4zXTzJQwruwSNUOjNu046pD1XG6cJMJHhjbyskOC ncT5gExK1XyiMQ+onUDawVKlcJeiQ/i5TmT9JAWqqO6NqYSm2ASi4C93TSvzavPx5oHi CwhXynHKlBAIff6+5hanNN/EEDGxAttuAx4TpIgmpsia/f+q+Wg/XdYUfH1SthxOciFX 38uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vaisala.com header.s=selector1 header.b=OZkwlGBz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 191si1508878pgh.596.2019.05.15.03.50.06; Wed, 15 May 2019 03:50:20 -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=@vaisala.com header.s=selector1 header.b=OZkwlGBz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726618AbfEOKrX (ORCPT + 99 others); Wed, 15 May 2019 06:47:23 -0400 Received: from mail-eopbgr130053.outbound.protection.outlook.com ([40.107.13.53]:61093 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726580AbfEOKrV (ORCPT ); Wed, 15 May 2019 06:47:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vaisala.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yzYdVqYYMzd2E5SC/gDOMMJ4+4uTCL+l84JT8yl4O2M=; b=OZkwlGBzw4/lBSmWo1BaQ8G/C5e4LAolfWHd2o1pZqAzpefrWRy+qC2IwZF0mYfiD5/OiOaZSq3sT/K1n+FLWTWPL1X5xhqvLejKVOqVjkdXSLgHD2qVscIQsQJgocoTBQWEyO3JJbAdhvYHP686SZLJG37E2iANWiD7IjZn/dE= Received: from DB7PR06MB5563.eurprd06.prod.outlook.com (20.178.104.212) by DB7PR06MB4775.eurprd06.prod.outlook.com (20.177.192.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.16; Wed, 15 May 2019 10:47:15 +0000 Received: from DB7PR06MB5563.eurprd06.prod.outlook.com ([fe80::b431:2268:b6f:7fe4]) by DB7PR06MB5563.eurprd06.prod.outlook.com ([fe80::b431:2268:b6f:7fe4%7]) with mapi id 15.20.1900.010; Wed, 15 May 2019 10:47:15 +0000 From: Han Nandor To: "sre@kernel.org" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" CC: Han Nandor Subject: [PATCH v4 1/2] power: reset: nvmem-reboot-mode: use NVMEM as reboot mode write interface Thread-Topic: [PATCH v4 1/2] power: reset: nvmem-reboot-mode: use NVMEM as reboot mode write interface Thread-Index: AQHVCwuPZD9cMLoVakaS8MDITRakpA== Date: Wed, 15 May 2019 10:47:14 +0000 Message-ID: <20190515104658.25535-2-nandor.han@vaisala.com> References: <20190515104658.25535-1-nandor.han@vaisala.com> In-Reply-To: <20190515104658.25535-1-nandor.han@vaisala.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0501CA0041.eurprd05.prod.outlook.com (2603:10a6:3:1a::51) To DB7PR06MB5563.eurprd06.prod.outlook.com (2603:10a6:10:83::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=nandor.han@vaisala.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.2 x-originating-ip: [193.143.230.131] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b25eeb9d-07d7-4d5a-5a7b-08d6d922b15f x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020);SRVR:DB7PR06MB4775; x-ms-traffictypediagnostic: DB7PR06MB4775: x-tenant-id: 6d7393e0-41f5-4c2e-9b12-4c2be5da5c57 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-forefront-prvs: 0038DE95A2 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(366004)(376002)(39860400002)(346002)(396003)(199004)(189003)(1076003)(50226002)(68736007)(2906002)(6506007)(386003)(81166006)(5660300002)(53936002)(36756003)(8936002)(52116002)(6486002)(99286004)(14444005)(76176011)(71200400001)(6116002)(71190400001)(4326008)(6436002)(256004)(3846002)(81156014)(110136005)(316002)(446003)(186003)(26005)(25786009)(8676002)(64756008)(2201001)(66556008)(66446008)(66476007)(478600001)(66946007)(73956011)(102836004)(7736002)(86362001)(66066001)(107886003)(2501003)(6512007)(14454004)(476003)(11346002)(486006)(2616005)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR06MB4775;H:DB7PR06MB5563.eurprd06.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: vaisala.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 7KPt67Dni79B5+ZIxw3rQKm92Iy+1quwp4DiqNcU8q2LdQrsLcWwNVcRVavs+USQbcQLHVoHCQa9cvgB4fhM18LrMJ7EEWqtKYFgmTcApghfOetMAaMW61ZC3bNqMkybqUZkolBKc000D4+/0fWm2vu12JCY4XxBaGteKPPx843oA8OBDOzxEem0vP1pZMuDLowOzQpT02qf/JbN6DJjzdmq8GjDlXYLiy7sP6JJsWNXjKnjAp2jY1+CpPt9KCEXtPRVvjEx8uo/as1kFv5CUusz0O9Em7TzC/cR/4eZqrO9qpk4kXlkyICHC0tflO1b+mxUl3TZC338aBIDMoB1aBZ4cqAlpnLXw3mF/AnvNTFl+uCfe525PTC6XGWGqLhfGKgLXNFtTET5R/Zcaz7ukd3+xvoEp68W1sK0+utPLPE= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vaisala.com X-MS-Exchange-CrossTenant-Network-Message-Id: b25eeb9d-07d7-4d5a-5a7b-08d6d922b15f X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2019 10:47:14.9974 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6d7393e0-41f5-4c2e-9b12-4c2be5da5c57 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR06MB4775 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWRkIGEgbmV3IHJlYm9vdCBtb2RlIHdyaXRlIGludGVyZmFjZSB0aGF0IGlzIHVzaW5nIGFuIE5W TUVNIGNlbGwNCnRvIHN0b3JlIHRoZSByZWJvb3QgbW9kZSBtYWdpYy4NCg0KU2lnbmVkLW9mZi1i eTogTmFuZG9yIEhhbiA8bmFuZG9yLmhhbkB2YWlzYWxhLmNvbT4NCi0tLQ0KIGRyaXZlcnMvcG93 ZXIvcmVzZXQvS2NvbmZpZyAgICAgICAgICAgICB8ICA5ICsrKw0KIGRyaXZlcnMvcG93ZXIvcmVz ZXQvTWFrZWZpbGUgICAgICAgICAgICB8ICAxICsNCiBkcml2ZXJzL3Bvd2VyL3Jlc2V0L252bWVt LXJlYm9vdC1tb2RlLmMgfCA3NiArKysrKysrKysrKysrKysrKysrKysrKysrDQogMyBmaWxlcyBj aGFuZ2VkLCA4NiBpbnNlcnRpb25zKCspDQogY3JlYXRlIG1vZGUgMTAwNjQ0IGRyaXZlcnMvcG93 ZXIvcmVzZXQvbnZtZW0tcmVib290LW1vZGUuYw0KDQpka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