Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp166955pxa; Tue, 4 Aug 2020 20:14:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAGlZ8mYHnT39Lfnl8MdpI8DtkQm14DGI7DxNp6UdXXgCEFdH5lpHe+RRrxBwYOlLUQd8n X-Received: by 2002:a17:906:938f:: with SMTP id l15mr1200821ejx.539.1596597299423; Tue, 04 Aug 2020 20:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596597299; cv=none; d=google.com; s=arc-20160816; b=GlBi1p81c5tOZtafOxm+OfW0Lsra/H25bSh+IY85itueK2eqb6bKbgqd0f1cXEv8c9 xf4YLK0xIbe9KpzNuSkvs43I1jZA59xyTKt+XPV1dcNBDIsaDioQfXm6TNZxmOHIKIsf ZcxrHWn0xHZ5bVn8CF1Iqhs5F5a+k8+9eCvLyrkbCwTkWkyQti0ROrO8fOnET2tiGjw0 B35+/af3iGlvKPoRihROVKnyIoosbiKzyee93N1GvlMcQdOZavg9DTrmwqAJgPnCfP1Y oXJjTY4qZ2DFrd6TaYfmTAhKwuY+n/o2luPKA8u5ddvFvsj24qeFvWg6E5Z70KvGJoyL nB5g== 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=et9EAKGQ+wvN9/4s+WLRmGJE+vHZKpAba9xuq5FFsmI=; b=mG+dnPc0w3aKRN+sTLa67kxKZc35JAnH3qQoTj88Ep3T0aMMhSABWtyBEjJ06Qr9NI MjYllJa326mUOFGjqQ7mzjetREQxpXUPrceyIkCfgaEXkASWLdxnndIvGKQb7kBcOXbc LuJECZT92fp1RHCgj4wh495+i5vMyVU20EfRTbLKvx8kFUStJyXbW7bUSZ8sMYKks93z DAMSFNVcVon+McCpf+TZ5exFl/auoSOkm4SW0k42OZksWwxWzIgWIRXES6OIBcqcQ1ze Qo/kHpoThHj2CgmCsZiNKwHkaJgV+TGot7fileYehR4tXVU8eYPl2xBTM5Frsquk++X3 9p4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="Bx3/hFA/"; 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 v20si488320ejc.227.2020.08.04.20.14.36; Tue, 04 Aug 2020 20:14:59 -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="Bx3/hFA/"; 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 S1726130AbgHEDOV (ORCPT + 99 others); Tue, 4 Aug 2020 23:14:21 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:6703 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725904AbgHEDOV (ORCPT ); Tue, 4 Aug 2020 23:14:21 -0400 X-UUID: 2a24126d4b0440638222c85524322c78-20200805 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=et9EAKGQ+wvN9/4s+WLRmGJE+vHZKpAba9xuq5FFsmI=; b=Bx3/hFA/zXC1jrzapxoBLyQ/XMsneLCT+n0z+Nqxo/O0SAaC46FPBonzlAuZ7DKMtRqeXKDKE0ylYwLNXGkadU0dnRrP8XB/AMo7mutB3JRYtHcCQMIjQjTQQWKicN7ueYh9rGIGpXXQ6sABK2novuiLmkkpIDMMHiRnlY5sUXI=; X-UUID: 2a24126d4b0440638222c85524322c78-20200805 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1194545868; Wed, 05 Aug 2020 11:14:15 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 5 Aug 2020 11:14:12 +0800 Received: from [172.21.77.4] (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 5 Aug 2020 11:14:12 +0800 Message-ID: <1596597253.31794.7.camel@mtksdaap41> Subject: Re: [v2,5/6] reset-controller: ti: Introduce force-update method From: Yingjoe Chen To: Crystal Guo CC: , , , , , , , , , , Date: Wed, 5 Aug 2020 11:14:13 +0800 In-Reply-To: <20200803061511.29555-6-crystal.guo@mediatek.com> References: <20200803061511.29555-1-crystal.guo@mediatek.com> <20200803061511.29555-6-crystal.guo@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 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 T24gTW9uLCAyMDIwLTA4LTAzIGF0IDE0OjE1ICswODAwLCBDcnlzdGFsIEd1byB3cm90ZToNCj4g SW50cm9kdWNlIGZvcmNlLXVwZGF0ZSBtZXRob2QgZm9yIGFzc2VydCBhbmQgZGVhc3NlcnQgaW50 ZXJmYWNlLA0KPiB3aGljaCBmb3JjZSB0aGUgd3Jp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