Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2418694imm; Mon, 24 Sep 2018 04:08:46 -0700 (PDT) X-Google-Smtp-Source: ACcGV61KKg2GG5kFzhLDTyg1mwmsu2pTYdrp41MeD1UuFRDbPe03zJquQ38+aJIsNu09aIX2jkX5 X-Received: by 2002:a63:9a42:: with SMTP id e2-v6mr9264038pgo.263.1537787326370; Mon, 24 Sep 2018 04:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537787326; cv=none; d=google.com; s=arc-20160816; b=dSHR3ppqmCy+MIPjV2MSoqpSz06lufU+9yu3Tyft/3Yvqxv3gWyf38wCRSLmYpuzYJ vdjK4tDRC8In36CvM7Q49cCk5k1D/XrDDyocM9TL3hk/YHDMZOFS7DXGUMrJY9DrkoUz Ap6e7Qa5NWGs+pD5MnmUHFqnwb5WRV0FM0aCFNC0ujGaZTR93DSIc37FtcDjUecs6dR5 mqvJXd2ZnqHrOu4aob4AlkeA1bcTRUeT2lKihGmnQXtbq5aUJubqhocokuIinuwI4zzV hedlsz+rvWBUFR0MEcU63qW2ql9oFPzwa+QzaZW18Yccw7KLikMU4nKzT5LgcPMOEQ0V QF7Q== 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-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=QfSXuDLBsHqZKPJzlHNUw4lM3cxFXBgmKquqaSRa608=; b=H12XLuPXUb+YmPVpntkCoNjKP3o7q6qBX/YPN3eGfKOuwdokKirabJo0ENIhGJx5iI ahxyyYlt6/1TYcnu/2I0ECQYyIvKS/g1hId3LbyFZVEPSX6eh82sW2aN/HpXjUR3H5ug JP6jKXmPy4he7XNi2jKUn5I8Y/ZLotdj04VrAQTVcBKADSYM3iKoePq33XC0gzkpOqwK sIfWKkwrwwz/x0dz5XUOkzGOST0O1skJl5THLolqy/m0/BVFCsSMtz1v6ERed/f6yExx pvge79Ih/bfR9kzPrHxhDJv3/wXwXy5YZIWvNFH97ybudF7Xsy8oEJDP2aN4ug4gj+VF 2xSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=YrI3dkES; 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=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8-v6si33648545pgh.675.2018.09.24.04.08.31; Mon, 24 Sep 2018 04:08:46 -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=@synopsys.com header.s=mail header.b=YrI3dkES; 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728784AbeIXRJv (ORCPT + 99 others); Mon, 24 Sep 2018 13:09:51 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:50668 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725982AbeIXRJu (ORCPT ); Mon, 24 Sep 2018 13:09:50 -0400 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id D103B24E26E3; Mon, 24 Sep 2018 04:08:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1537787298; bh=QfSXuDLBsHqZKPJzlHNUw4lM3cxFXBgmKquqaSRa608=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=YrI3dkES4Rl31e6f2++rkJUrFSiTZhe9bPhAgqYmYd6AvicgqqKd9Q7waHNro5bZi HPJ+Lnipl3W0n86ydWpP1j5SZwN9X3jO574GVeBZmAxe1unseQ3MlB7XhoOW2YTGy5 XHwPBBRCpT7uzflosTGmexhyopi/h8x5HG10WBW+x2ed3ICqxAuwJiNPMFa3mDST+v GyKQfGswdNDn+zxuevbhac8v/B8UKh0HZ9/7m7uM8+6J1scarUoh+CeyhiXwGsIyUO fS7iFrvbhmk8S15IESoZxcclGTKEDT3UiuGpnoKx9gqL9yjUozCyzy0Ftfm1VPytZS vJStyBOdWuXbQ== Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id BB96836DB; Mon, 24 Sep 2018 04:08:16 -0700 (PDT) Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by us01wehtc1.internal.synopsys.com (10.12.239.235) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 24 Sep 2018 04:08:16 -0700 Received: from DE02WEMBXB.internal.synopsys.com ([fe80::95ce:118a:8321:a099]) by DE02WEHTCB.internal.synopsys.com ([::1]) with mapi id 14.03.0361.001; Mon, 24 Sep 2018 13:08:14 +0200 From: Eugeniy Paltsev To: "p.zabel@pengutronix.de" , "Eugeniy.Paltsev@synopsys.com" CC: "linux-kernel@vger.kernel.org" , "Alexey.Brodkin@synopsys.com" , "linux-snps-arc@lists.infradead.org" Subject: Re: [PATCH] ARC: HSDK: improve reset driver Thread-Topic: [PATCH] ARC: HSDK: improve reset driver Thread-Index: AQHUPhOUaZSCotcop0yU3vqnzO0KH6TvkGWAgA+/soA= Date: Mon, 24 Sep 2018 11:08:14 +0000 Message-ID: <1537787293.4902.22.camel@synopsys.com> References: <20180827143803.28178-1-Eugeniy.Paltsev@synopsys.com> <1536921493.4112.6.camel@pengutronix.de> In-Reply-To: <1536921493.4112.6.camel@pengutronix.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.121.3.38] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgUGhpbGlwLA0KDQpPbiBGcmksIDIwMTgtMDktMTQgYXQgMTI6MzggKzAyMDAsIFBoaWxpcHAg WmFiZWwgd3JvdGU6DQo+IEhpIEV1Z2VuaXksDQo+IA0KPiBPbiBNb24sIDIwMTgtMDgtMjcgYXQg MTc6MzggKzAzMDAsIEV1Z2VuaXkgUGFsdHNldiB3cm90ZToNCj4gPiBBcyBmb3IgdG9kYXkgSFNE SyByZXNldCBkcml2ZXIgaW1wbGVtZW50cyBvbmx5DQo+ID4gLnJlc2V0KCkgY2FsbGJhY2suDQo+ ID4gDQo+ID4gSW4gY2FzZSBvZiBkcml2ZXIgd2hpY2ggaW1wbGVtZW50cyBvbmUgb2Ygc3RhbmRh cmQNCj4gPiByZXNldCBjb250cm9sbGVyIHVzYWdlIHBhdHRlcm4NCj4gPiAoY2FsbCAqX2RlYXNz ZXJ0KCkgaW4gcHJvYmUoKSwgY2FsbCAqX2Fzc2VydCgpIGluIHJlbW92ZSgpKQ0KPiA+IHRoYXQg bGVhZHMgdG8gaW5vcGVyYWJpbGl0eSBvZiB0aGlzIHJlc2V0IGRyaXZlci4NCj4gPiANCj4gPiBJ bXByb3ZlIEhTREsgcmVzZXQgZHJpdmVyIGJ5IGNhbGxpbmcgLnJlc2V0KCkgY2FsbGJhY2sgaW5z aWRlIG9mDQo+ID4gLmFzc2VydCgpLy5kZWFzc2VydCgpIGNhbGxiYWNrcyB0byBhdm9pZCBlYWNo IHJlc2V0IGNvbnRyb2xsZXINCj4gPiB1c2VyIGFkYXB0YXRpb24gZm9yIHdvcmsgd2l0aCBib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