Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5513922yba; Wed, 10 Apr 2019 22:57:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzR8LWYoJw012OExTzZ/FIwZWCIRUDP0mD6Ubq5xlnBVX+RjMgeBjG0CCOa1pzBwWGrDRSg X-Received: by 2002:a17:902:8c97:: with SMTP id t23mr48241070plo.110.1554962222964; Wed, 10 Apr 2019 22:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554962222; cv=none; d=google.com; s=arc-20160816; b=LFIBfDJsOhmjBa0Gg7d0Y9DG6oLIHFDWFqn7jDlZDm608UtCzu8ZmwamkOgbYjwIrD I+Bth49CEn/Ihf0/XgQ/tLT+un1eiKI5GssVWWT+w3FXTY2M67VhwVd5La8UN/+O9OpV j+0x8TgmN0ZcuBAk7nH3fDBUgnTvDiZlrsKXUQebfwmNTfLuh5+Jo+xiu7srpsoHBz9s w/homp6HKoyMxMnpe3mX96z6ePoh0gv+VPNSJV7WHhzKYFhWWVGUGsTBAXgXliGVt0bi 0Nj0AvCgqsNhcAaiBIfMFhtywPHiXbcqsymOMBdo62c3lgCOSOkDjSLyrzs+hoTZWhxk DxvQ== 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=oudfJHGkFBm5nlY+aU8Jwkl6F/1BN+5kVHDvfrixJUY=; b=qz6RsCdf5Wkdas8jvD8zCdzfFKS2Spki3VOBYinuCqxZXUHGGSWk6BvhcqdWfazhaM mLO6+bnUO3OPF3Ynq7TI5oMX8Fivn2yLWGWQlaf0nE+mqWWZ8uxmmX414sBdipCyCzYE 7DGsHYZKeXeNbIczRMq8l+OwdD7OQcRg3Fq5NJFvD0Vq34CHNsn5N2ChQAt9VSEWi2Yq F6U3g/QzZ0jTu3rFXH8LZhXN8k+NCyLApEorRVrxtwc51MfksEEAueHDXNmbGjjCCQlm FvBQkfy1u+7pnRhl6AoZwpzisVZcpNnRw6McieOrYv5lZo18GkVNomyJzoK0d3K7E6BK /TYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vaisala.com header.s=selector1 header.b=jcDamTqn; 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 z11si34063581pfa.153.2019.04.10.22.56.47; Wed, 10 Apr 2019 22:57:02 -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=jcDamTqn; 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 S1726713AbfDKFyQ (ORCPT + 99 others); Thu, 11 Apr 2019 01:54:16 -0400 Received: from mail-eopbgr130083.outbound.protection.outlook.com ([40.107.13.83]:42151 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725782AbfDKFyQ (ORCPT ); Thu, 11 Apr 2019 01:54:16 -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=oudfJHGkFBm5nlY+aU8Jwkl6F/1BN+5kVHDvfrixJUY=; b=jcDamTqna7ygseTsL+KNJgXHsLKd5EsN70K8Xg1VOjG3rbkp+TmMoWRBt9gWnNYEoMDJG6NHUQlG3iqQzwkOKwFs1Gx/d+J5dsnuTih9dUdzDwgOASyeS44w+3QPbmnQQXal0jHB03aq47+UObLm1tobzuOvqiiYShD0pfF/FD0= Received: from AM6PR06MB5557.eurprd06.prod.outlook.com (20.178.94.211) by AM6PR06MB5365.eurprd06.prod.outlook.com (20.178.90.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.15; Thu, 11 Apr 2019 05:54:09 +0000 Received: from AM6PR06MB5557.eurprd06.prod.outlook.com ([fe80::c0b4:b693:fdc7:e476]) by AM6PR06MB5557.eurprd06.prod.outlook.com ([fe80::c0b4:b693:fdc7:e476%4]) with mapi id 15.20.1792.009; Thu, 11 Apr 2019 05:54:09 +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 v2 1/2] power: reset: nvmem-reboot-mode: use NVMEM as reboot mode write interface Thread-Topic: [PATCH v2 1/2] power: reset: nvmem-reboot-mode: use NVMEM as reboot mode write interface Thread-Index: AQHU8Cr6oIbVVSxty0C3UbBNgltg/g== Date: Thu, 11 Apr 2019 05:54:09 +0000 Message-ID: <20190411055341.9263-2-nandor.han@vaisala.com> References: <20190411055341.9263-1-nandor.han@vaisala.com> In-Reply-To: <20190411055341.9263-1-nandor.han@vaisala.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR05CA0160.eurprd05.prod.outlook.com (2603:10a6:7:28::47) To AM6PR06MB5557.eurprd06.prod.outlook.com (2603:10a6:20b:9c::19) 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: 50d81e53-9e47-45a4-2d3b-08d6be421aa6 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020);SRVR:AM6PR06MB5365; x-ms-traffictypediagnostic: AM6PR06MB5365: x-tenant-id: 6d7393e0-41f5-4c2e-9b12-4c2be5da5c57 x-microsoft-antispam-prvs: x-forefront-prvs: 00046D390F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(136003)(39850400004)(346002)(376002)(199004)(189003)(2616005)(186003)(6436002)(105586002)(6512007)(6116002)(7736002)(25786009)(3846002)(81156014)(446003)(305945005)(486006)(11346002)(8936002)(53936002)(5660300002)(81166006)(2906002)(71190400001)(71200400001)(14444005)(50226002)(8676002)(76176011)(66066001)(256004)(99286004)(110136005)(6486002)(107886003)(36756003)(476003)(52116002)(4326008)(106356001)(386003)(97736004)(316002)(102836004)(2201001)(14454004)(6506007)(478600001)(26005)(2501003)(68736007)(1076003)(86362001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR06MB5365;H:AM6PR06MB5557.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: l+T8LfLQFuBjgae1Qc0U4hLLgfVmYYfL6MVhK01cLE/OY4r78I8gRbDWJVAnD/48gI84GiYt35eXnIeYASeSwZ1ipPLFWEKfUhuRRqRRndJvBLQRrBj3qg9lwhSFfP9/FNWrwSp7ZfPcQpXdKoRADHEmlQq12QulVN/ywe3HKASGYVAjRGkoUZa6Wev9DgX4iWIhpG8acECuIdlp36WVRDfBrxiXK7r462QUtaW6uSyjgkZqPSu4Do3100NXgZlHds9zqzbzRLqVyC/kiuODBEMn9KfrxtYormkanj49DE76SRg2vrJqQbAZgCj5ALntJ/xL8J9d5uJDMQ3sf7qEK+T8bF3IZrn7S1XgF/Z5eDXZIzNSWksog2H3f0F9PKdx5zvm7eemmeVExnvGxWkYT3Kki9z6wzrnLuso2hozwyI= 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: 50d81e53-9e47-45a4-2d3b-08d6be421aa6 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2019 05:54:09.3946 (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: AM6PR06MB5365 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 ZXIvcmVzZXQvbnZtZW0tcmVib290LW1vZGUuYw0KDQpkaWZmIC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