Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1831676pxa; Sun, 2 Aug 2020 23:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU6xksjDpS9jj9+ZDeROeytWBe+PxWgE1K/6bEpmMcgSSb24OhdPlSDgzQq3VUREeFs09u X-Received: by 2002:aa7:c697:: with SMTP id n23mr13879239edq.50.1596435814822; Sun, 02 Aug 2020 23:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596435814; cv=none; d=google.com; s=arc-20160816; b=X6ILBXkC8HiScuHPorzahFa7hFo6y5nFOL0VpBGpJ37bIM3SuiQ//IdGsOuNc39Q+Q dtjgpxIhWFJr08Sg+7OcnpveHx6tKc18GVrYxKky007Qib0CeyMppsGBFR4rPhhWHUTT sCZP5J5MBS+1IV70iVW0waXn8QHnDiQl/NN5uUSucvwMcCFpPeI0/oBPCLiT+33tXUjH /LwXPO1GjhiWUlgcjOe9EgjPZ68Ur+cXEgDeMWeJTL0oryPqdMtUd9DWU2kWFLsjutQ6 /0KlWUrr/J2/WLtpfuwYzMLgv3CayU0DaR55n0ZVCgdwh/ynPH6KauSlPP1zEY6J289X tFlg== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=rjZDdVmKwlvCS5P7LK/+wokqw80LDUbVpUuPU9b4MXE=; b=LbWRa/gmF2LXBcTJErMgV46zLBIsLEBrJliUS37qAHnh+8UgZJC9Oz4KzfyZzzfq+s OoiMVksoZBm4TRKOJvLodf8zKLDZf5/c9hcx8T+wzH3nHBlNKwZCy0vg7IYVX0SYR1EH SDRIBH9TPa9IXCNuZMKTPirK4U/BbD/IdBhd/sdZiN7K15aHFoqvMQf32dt+o0KEX+7Y ShIQBnxZnjiqgHnS7SGd25RIcD02hirmfhYcNVAaICV8nKCcxkVe9RgERCbg66LhBit4 igDmSLicp7BagQR1DzYTNFJm/2jTEhVE4ihjMSfS6IviC0cV43U1eZmZP8kFiWyNfR7X QwTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PBtAdG3O; 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 cb11si7911654edb.344.2020.08.02.23.23.12; Sun, 02 Aug 2020 23:23:34 -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=PBtAdG3O; 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 S1728352AbgHCGR0 (ORCPT + 99 others); Mon, 3 Aug 2020 02:17:26 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:38309 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728296AbgHCGRP (ORCPT ); Mon, 3 Aug 2020 02:17:15 -0400 X-UUID: b44ecaec613942d5912a701aad6be7e6-20200803 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=rjZDdVmKwlvCS5P7LK/+wokqw80LDUbVpUuPU9b4MXE=; b=PBtAdG3OUhO0EKZ7QrfIBhYI1/TLJsb9KssUm7goxz1UVCpaXByX3XFksd41P28Bi205YjopxJfsmf15zIZ4q9eML9GBXZnzAYbzHRjzUXm6H32Qvbonka5fEQOGejOF43afzUgeoBWYZ5TMAJ8Rg/k5Wnq+IO3BV5FptWnaHEM=; X-UUID: b44ecaec613942d5912a701aad6be7e6-20200803 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 763517607; Mon, 03 Aug 2020 14:17:13 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 3 Aug 2020 14:17:10 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 3 Aug 2020 14:17:10 +0800 From: Crystal Guo To: , , CC: , , , , , , , , , Crystal Guo Subject: [v2,4/6] reset-controller: ti: introduce a new reset handler Date: Mon, 3 Aug 2020 14:15:09 +0800 Message-ID: <20200803061511.29555-5-crystal.guo@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200803061511.29555-1-crystal.guo@mediatek.com> References: <20200803061511.29555-1-crystal.guo@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 QWRkIHRpX3N5c2Nvbl9yZXNldCgpIHRvIGludGVncmF0ZSBhc3NlcnQgYW5kIGRlYXNzZXJ0IHRv Z2V0aGVyLg0KSWYgc29tZSBtb2R1bGVzIG5lZWQgZG8gc2VyaWFsaXplZCBhc3NlcnQgYW5kIGRl YXNzZXJ0IG9wZXJhdGlvbnMNCnRvIHJlc2V0IGl0c2VsZiwgcmVzZXRfY29udHJvbF9yZXNldCBj YW4gYmUgY2Fs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