Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4096964pxa; Mon, 10 Aug 2020 00:00:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxScHMszPhjTUPP1ChsntreX5WkPc+rfSwLSkxFtZUkWvw0dVFldxUKKDn3xsOzt47lCv6W X-Received: by 2002:a50:ed84:: with SMTP id h4mr19949668edr.278.1597042836298; Mon, 10 Aug 2020 00:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597042836; cv=none; d=google.com; s=arc-20160816; b=agLOxRMBbPiVIUlPy/qRJArAvbeitBEXKsgOiPw9m7TqTmm+AFKyPNEXGSgcyWfQBK cI9uxQF5KGcX+ahY4tzrolvMIxN4OkCoxb4qdgd74nxVNAYUHJ2D5YBLXGE5PC56LwMS 3Pit3hUQwjlY0gq7UwE+Jv/W2dKVpU4A3Qizsq0eUHu15pkY/fVfMP4PWc4vOsBQLoH1 1wjIIGGQ0qkVWKDSMU6WcR4zpx5Ow3P5o39aIndN2w0Lo3Q4cpsRv0fEAj+0trn3v5TZ TVIiDR8DxrAWuzKGM3NBhkuM/izg4fkH9qPGu/vXdfq2ZOmLICZfWNOOaZx+75TBVFzJ kNUg== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=Xw9BjZ4pnzLPpecBByDNDqBMr0STEN5PIXp+ijmFw1o=; b=DJMOeM1b0JfXwT7lZprSZR0/aVQO8rJZsupic2ZFowB82q1QoLljISQgWedsrlFzK3 QM5X2Mg2uK+ctYVgB76NYZvqAyGQRI1lznXh+XtufszeofrsnP0KjmBd/+y1NdT2rTlv GHL4dsnNkId7ff4j4H+qcvIpvzqbrHk/FE9zu6FkYFfMRFdIULgGLGpANjWlMDEDkzuM 73phvigrrMRFeUcC6RCMiNzWkAX+dQ5o7ev/65tucpPdQBhSf9Mmog6zzGlcXe6xnTGQ y6WohOBzSsi0/XfS0GoNddFti/iWm64UFtvMzckD+WSm6WhccCknHweLu8LNv7psCipn nJ5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CVnQ6MNd; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si11088874ejb.34.2020.08.10.00.00.12; Mon, 10 Aug 2020 00:00:36 -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=@mediatek.com header.s=dk header.b=CVnQ6MNd; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726219AbgHJG6g (ORCPT + 99 others); Mon, 10 Aug 2020 02:58:36 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:11952 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726089AbgHJG6g (ORCPT ); Mon, 10 Aug 2020 02:58:36 -0400 X-UUID: 096ba63b8a454e67b433807ce0f6b6e5-20200810 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=Xw9BjZ4pnzLPpecBByDNDqBMr0STEN5PIXp+ijmFw1o=; b=CVnQ6MNdd+98Yf1QkoGZ1+qh6kLncmNYqDm6rNNlVR/CWrjaUMYFbhixEtjnukXhEsK1mJ60jLjZIuqfMEuSHAZpdmHWsY0WeLzO1LrFoc67e4nkYpq2KPLWrS8MOjuJuk9WrnIMUFezFE79wKvIn8JLEZzaGseggxiwlESZYro=; X-UUID: 096ba63b8a454e67b433807ce0f6b6e5-20200810 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1749163730; Mon, 10 Aug 2020 14:58:27 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Aug 2020 14:58:25 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 10 Aug 2020 14:58:24 +0800 Message-ID: <1597042656.11360.39.camel@mhfsdcap03> Subject: Re: [v2,5/6] reset-controller: ti: Introduce force-update method From: Crystal Guo To: Philipp Zabel , Suman Anna , "Andrew F. Davis" CC: "robh+dt@kernel.org" , "matthias.bgg@gmail.com" , srv_heupstream , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Seiya Wang =?UTF-8?Q?=28=E7=8E=8B=E8=BF=BA=E5=90=9B=29?= , Stanley Chu =?UTF-8?Q?=28=E6=9C=B1=E5=8E=9F=E9=99=9E=29?= , Yingjoe Chen =?UTF-8?Q?=28=E9=99=B3=E8=8B=B1=E6=B4=B2=29?= , Fan Chen =?UTF-8?Q?=28=E9=99=B3=E5=87=A1=29?= , "Yong Liang =?UTF-8?Q?=28=E6=A2=81=E5=8B=87=29?=" , "Suman Anna" , "Andrew F. Davis" Date: Mon, 10 Aug 2020 14:57:36 +0800 In-Reply-To: <3413ca889fcef11c6dafe1d6b135e1887d84a6e4.camel@pengutronix.de> References: <20200803061511.29555-1-crystal.guo@mediatek.com> <20200803061511.29555-6-crystal.guo@mediatek.com> <3413ca889fcef11c6dafe1d6b135e1887d84a6e4.camel@pengutronix.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 51D951749A9B482193787EAABBD8C446E680275178669CECFC7FA62C607318CF2000:8 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 T24gVHVlLCAyMDIwLTA4LTA0IGF0IDE1OjAzICswODAwLCBQaGlsaXBwIFphYmVsIHdyb3RlOg0K PiBIaSBDcnlzdGFsLA0KPiANCj4gT24gTW9uLCAyMDIwLTA4LTAzIGF0IDE0OjE1ICswODAwLCBD cnlzdGFsIEd1byB3cm90ZToNCj4gPiBJbnRyb2R1Y2UgZm9yY2UtdXBkYXRlIG1ldGhvZCBmb3Ig YXNzZXJ0IGFuZCBkZWFzc2VydCBpbnRlcmZhY2UsDQo+ID4gd2hpY2ggZm9yY2UgdGhlIHdyaXRl IG9wZXJhdGlvbiBpbiBjYXNlIHRoZSByZWFkIGFscmVhZHkgaGFwcGVucw0KPiA+IHRvIHJldHVy biB0aGUgY29ycmVjdCB2YWx1ZS4NCj4gPiANCj4gPiBTaWduZWQtb2ZmLWJ5OiBDcnlzdGFsIEd1 byA8Y3J5c3RhbC5ndW9AbWVkaWF0ZWsuY29tPg0KPiANCj4gQWRkZWQgU3VtYW4gYW5kIEFuZHJl dyBmb3IgY29uZmlybWF0aW9uOiBJIHRoaW5rIHdyaXRpbmcgdW5jb25kaXRpb25hbGx5DQo+IGNh bid0IGJyZWFrIGFueSBleGlzdGluZyB1c2VyLiBKdXN0IGNoYW5naW5nIHRvIHJlZ21hcF93cml0 ZV9iaXRzKCkNCj4gaW5zdGVhZCBvZiBhZGRpbmcgdGhlIHVwZGF0ZS1mb3JjZSBwcm9wZ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