Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp22538pxa; Mon, 3 Aug 2020 21:22:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9oswIbcQRqydfgaM89P9nRVvmQgAm/GEkzJSjxjc/FEoncApuhEpRZyivccQeTgt6RPT6 X-Received: by 2002:a17:906:aed4:: with SMTP id me20mr20470204ejb.141.1596514932483; Mon, 03 Aug 2020 21:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596514932; cv=none; d=google.com; s=arc-20160816; b=NfFqIPCrRZoqqmfhBZL0H9KTNARSqxfb5ECpW9CaKnHnn7TylUmEMQvDmrliarQy5R N6eaSHZX4LM7qnfTSNAYw857r/4R/xJM2+oIHkQr09io7OLirWD+tRpw6LN76qGl5qz7 h4FlY2CfOJcrcLMXygX2UJdGTEDBtZRFKBIzc5eqHwkoAXWJxuvTi/aDiifJpPhWCap8 OLPVTjfvLgfWgrJr9KlBCqk6biBUASYTXT/RLCULcH9dLRbW+hOjuK6j6tjA7CwHvAHv Wdtd3D2vFtcxC6wgz3u1urEtGT/Wjh1TWbKHYzBZ2oeY+PuEt+b0Zjps7xhHb3m0ygMf DR6Q== 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=Yktds26mQO27rxfVid1topcTCyi1DOqMyji8rDcAx+Q=; b=IcAbDKAtuMra8bkHeIEqUajH4lm1sQXhHYQ0gIzmhS8ASUDksOEc4FNF/D/0ayNAsm 3qyV3iqM4aIsk6AkbGd4yalZShj8bu77/J0DHPXJP+kNxFwxU6Me8Xix9VJ6YF1czhzG iEow6RKMKEktOPp8/dnoc+rNzlUb8cRPACwcSm4xK8HdFNfoWNmHq5O4i9aYgDxcIM3q oRjekArOBrLLSs76yu6fOsKqmLnwfmSQaWofncxODcRR2PifV8onxslIc1EjPxtqBoh/ sA4VDbQiQNpL/4TKO7/W1EuftI1tmttviaUhFeZMnSAGQM4YM5sIVuhl3aeeRFwsROuk fspQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="QnKE1/cY"; 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 l10si12229082edk.142.2020.08.03.21.21.50; Mon, 03 Aug 2020 21:22:12 -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="QnKE1/cY"; 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 S1729004AbgHDEVF (ORCPT + 99 others); Tue, 4 Aug 2020 00:21:05 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:46126 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728622AbgHDEVE (ORCPT ); Tue, 4 Aug 2020 00:21:04 -0400 X-UUID: 39e593388b1e4787a80afa44b08ab321-20200804 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=Yktds26mQO27rxfVid1topcTCyi1DOqMyji8rDcAx+Q=; b=QnKE1/cYdNQA4DxtVCekO5SKeeupV1mNbU70SFh1b+aZHbsQP/aB5HjKo2ep0xmHDtGQlc28C7IVP9hMPiWrFzOo5tPUkTirUzKdtxaBOc1f66RV/AQUDZ2pmiB74nXBUmfM47ZaLYGYR0JFNAf/T3MZrzOu5VPlARZEUPR/qEw=; X-UUID: 39e593388b1e4787a80afa44b08ab321-20200804 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 727586110; Tue, 04 Aug 2020 12:15:48 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 4 Aug 2020 12:15:46 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 4 Aug 2020 12:15:46 +0800 Message-ID: <1596514546.32283.29.camel@mtkswgap22> Subject: Re: [v2,5/6] reset-controller: ti: Introduce force-update method From: Stanley Chu To: Crystal Guo CC: , , , , , , , , , , Date: Tue, 4 Aug 2020 12:15:46 +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.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: F731C297E4C566B4F072E2A72C27549312D9B54D96BA0768F50EF657855B62E32000: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 T24gTW9uLCAyMDIwLTA4LTAzIGF0IDE0OjE1ICswODAwLCBDcnlzdGFsIEd1byB3cm90ZToNCj4g SW50cm9kdWNlIGZvcmNlLXVwZGF0ZSBtZXRob2QgZm9yIGFzc2VydCBhbmQgZGVhc3Nl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