Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp777999pxu; Wed, 2 Dec 2020 03:12:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVOiZp+dsKgwfNUCsbn83xO7YwEsPrN1JJMcVHhhNhFa526nk7teWqMqEnnZo+DEJWAdgE X-Received: by 2002:a17:906:c45:: with SMTP id t5mr1739650ejf.370.1606907543136; Wed, 02 Dec 2020 03:12:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606907543; cv=none; d=google.com; s=arc-20160816; b=EdVf0dm44vI+IlCZPvJl/t3RYQXLd60YLBOWLEkMvoNKViUXej8ykfQou7jU97926W xBwhAk/495jClc+duurkWNNCGhADLlSS4wHHccOG31JZ6PGbB/jJAkzDEdDTWpsgFt34 OtdHlXomlpGGK2oWdLUCZRFlZS5JWg+nQqijy0AB2eAmH0fyI6IYKmqNU2G19/TD66RT Xd3PfR7k2vYcjOTkqBGjkLXog96oiwgVjisodxM++ljrfvOctzDIvULEZxLnDgGVkTiW GQ+kdETePn6TVNg3yfq2asqm5ITxuMYb1YUAEabI53zdzKfJwx217prqhsqWiGtkNQEL sqPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=760UWcQjn2gcgFpRL7UilO2rZNCmADv37JpOgMvIh4Y=; b=mOpQQ8Xx5+BtaZhVc0JPeAyGBKG1ZuxWLDnIigJvdgTabUhVfFcGvhnnGB2NBx8bTE NNF31V8LOp9uFt7Mi8y7d9rKEyEQbTow9Vs5/S8n1zez7jML87RRKgBqaBvrU7FDNe3K tyEZKGNDl/lRjNVNteFNJusAtiW1sVyMp/2Ub11JjS7cJVfWXXDb3i2tBGcpQlpozsj0 zsfZpjeMHcJZee8TmfEV7WkYRstEh9fAhYlVwwH4lSfuAQhYkZ339UFY2V4k0Nrbyd55 qN5Ftuvmay06ayPHOYzpfo6o3dWuvB0F5uYvrwJdlaUWZo4Rc/bgg9YJZcO1CvwfZiJ4 9vUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="rh/upvV2"; 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 n11si698206ejg.660.2020.12.02.03.12.00; Wed, 02 Dec 2020 03:12:23 -0800 (PST) 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="rh/upvV2"; 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 S1726877AbgLBLIA (ORCPT + 99 others); Wed, 2 Dec 2020 06:08:00 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:45282 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725885AbgLBLIA (ORCPT ); Wed, 2 Dec 2020 06:08:00 -0500 X-UUID: ea2c6cffd1b341a0951db0824db34afc-20201202 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=760UWcQjn2gcgFpRL7UilO2rZNCmADv37JpOgMvIh4Y=; b=rh/upvV2O4pXoF3EAQfOfa23iCqIJa/hWBP+Mf5WIF22nVXhd0ftJaoVGpPlSLdNjlGJNeF2fYGN6ddXIXKrJ46VZ1IFJMJke9taw0MIT9bnOBAqKKaL9byIXnoz3J8AD2SIeryMabdmvIAJa7w3ZjSw3yTIJ9rpHrD4915VECo=; X-UUID: ea2c6cffd1b341a0951db0824db34afc-20201202 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1074444903; Wed, 02 Dec 2020 19:07:14 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 2 Dec 2020 19:06:41 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 2 Dec 2020 19:06:40 +0800 Message-ID: <1606907202.14806.65.camel@mhfsdcap03> Subject: Re: [v6, 3/3] reset-controller: ti: force the write operation when assert or deassert From: Crystal Guo To: Ikjoon Jang CC: "p.zabel@pengutronix.de" , "robh+dt@kernel.org" , "matthias.bgg@gmail.com" , "devicetree@vger.kernel.org" , Yong Liang =?UTF-8?Q?=28=E6=A2=81=E5=8B=87=29?= , Stanley Chu =?UTF-8?Q?=28=E6=9C=B1=E5=8E=9F=E9=99=9E=29?= , srv_heupstream , Seiya Wang =?UTF-8?Q?=28=E7=8E=8B=E8=BF=BA=E5=90=9B=29?= , "linux-kernel@vger.kernel.org" , Fan Chen =?UTF-8?Q?=28=E9=99=B3=E5=87=A1=29?= , "linux-mediatek@lists.infradead.org" , Yingjoe Chen =?UTF-8?Q?=28=E9=99=B3=E8=8B=B1=E6=B4=B2=29?= , "s-anna@ti.com" , "linux-arm-kernel@lists.infradead.org" Date: Wed, 2 Dec 2020 19:06:42 +0800 In-Reply-To: <20201130111340.GA3042402@chromium.org> References: <20200930022159.5559-1-crystal.guo@mediatek.com> <20200930022159.5559-4-crystal.guo@mediatek.com> <20201130111340.GA3042402@chromium.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 30A9654AF1CD9EA4FBA4BE9BFA52EA70554F9FC4BBB7FB01E220F307C0ED74462000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIwLTExLTMwIGF0IDE5OjEzICswODAwLCBJa2pvb24gSmFuZyB3cm90ZToNCj4g T24gV2VkLCBTZXAgMzAsIDIwMjAgYXQgMTA6MjE6NTlBTSArMDgwMCwgQ3J5c3RhbCBHdW8gd3Jv dGU6DQo+ID4gRm9yY2UgdGhlIHdyaXRlIG9wZXJhdGlvbiBpbiBjYXNlIHRoZSByZWFkIGFscmVh ZHkgaGFwcGVucw0KPiA+IHRvIHJldHVybiB0aGUgY29ycmVjdCB2YWx1ZS4NCj4gPiANCj4gPiBT aWduZWQtb2ZmLWJ5OiBDcnlzdGFsIEd1byA8Y3J5c3RhbC5ndW9AbWVkaWF0ZWsuY29tPg0KPiA+ IC0tLQ0KPiA+ICBkcml2ZXJzL3Jlc2V0L3Jlc2V0LXRpLXN5c2Nvbi5jIHwgNCArKy0tDQo+ID4g IDEgZmlsZSBjaGFuZ2VkLCAyIGluc2VydGlvbnMoKyksIDIgZGVsZXRpb25zKC0pDQo+ID4gDQo+ ID4gZGlmZiAtLWdpdCBhL2RyaXZlcnMvcmVzZXQvcmVzZXQtdGktc3lzY29uLmMgYi9kcml2ZXJz L3Jlc2V0L3Jlc2V0LXRpLXN5c2Nvbi5jDQo+ID4gaW5kZXggNWQxZjgzMDZjZDRmLi5jMzQzOTRm MWU5ZTIgMTAwNjQ0DQo+ID4gLS0tIGEvZHJpdmVycy9yZXNldC9yZXNldC10aS1zeXNjb24uYw0K PiA+ICsrKyBiL2RyaXZlcnMvcmVz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