Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1166518pxa; Thu, 13 Aug 2020 02:10:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxji/4kTq9gcoAitqKkBizm3dScAq3XwW3jLBPGa5lN/5glWiex5wTVqfQr+EsLhZAVHRFp X-Received: by 2002:a17:906:4c97:: with SMTP id q23mr3937227eju.11.1597309855481; Thu, 13 Aug 2020 02:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597309855; cv=none; d=google.com; s=arc-20160816; b=N1eLNgCZV4Uhan/+xnWLhmtA2Sm1fs91urhuyMBw3OZZGYy4Y+PbCY5lnSaQpRLeYC JGkpPqmsBXXjM6WECyBQmhz0WzOjNIIfoxtDiaOc0zCJ536sc26bJWQ9gcLrI9ydGpBK OxY0D3JBZOpLiKZPKXVEIgyL8OYpXVjHvuA0ytEwPgGUB6cx3P3dv4pzz6hZRTeFe0BQ J1d2GQ1lTwxSW2cRM6aF1ruX04KLH7MH1lQQYcyWbsHTr4i76TG0zr8muFlJutalvJtZ YZzgrRafTsO3fJiRdv9iEgbX50EIwM9fEJlT9xyMCegXjOP94c+0yQUJ7pCg8JtX7pMX 6Ezg== 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=9httdLSXqot72Vjp5bmV2MlVnnvkCGEnLIRNKAXrnXo=; b=jQj0YZDEA4qQ3cG7kgEkZC4kqIu1M+A1O9uSS5++m1kCK66teW5I6RoJlkoqVH5WbE PzJ1sZ7sQQuU0oWMP3hcG5zBDJbYkbopEz3FxWer5JEn4Nt4WIO4pGiQ5+5u53Pk7zJ0 E8fVxR7wou+/9zYgPOsO5e3ATdfpiPpPgoQ0h1I4KXYKvLtaDrOWbBgRtHCKKM8tG6pJ Q4joApUS1A1AptFXt8TkR1CDisG0zMuD3bK7URpqau6OBt1KPHa7SfX5hZlT8fqUy7qm DNFZNSO1ANETqFnA35zb5dd/BDEXrLdysLk0Yx56yA26AZGvjdv8aTtMLVaWEQHfE7+f Z5xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=abcXzxmU; 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 c11si3021719edy.260.2020.08.13.02.10.32; Thu, 13 Aug 2020 02:10:55 -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=abcXzxmU; 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 S1726636AbgHMJHb (ORCPT + 99 others); Thu, 13 Aug 2020 05:07:31 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:12242 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726048AbgHMJHa (ORCPT ); Thu, 13 Aug 2020 05:07:30 -0400 X-UUID: 29103f08110e4229a3206b0d697f9d91-20200813 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=9httdLSXqot72Vjp5bmV2MlVnnvkCGEnLIRNKAXrnXo=; b=abcXzxmU9r8/9YyvInQGYa08sP7Kc+QsxcCc9XSZRug9MylwB5JoqvwLqfIso+odrDMoNs8FXg2vpBSUrqA/qGFEAKL7UkdFUqAobrslitVTB9x8H433Dk8evHYoPDrxp2NJzThSVEzxbgRpFBCEpapvUSdwZNNNCSqAiL6vxPc=; X-UUID: 29103f08110e4229a3206b0d697f9d91-20200813 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 886169983; Thu, 13 Aug 2020 17:07:22 +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; Thu, 13 Aug 2020 17:07:19 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 13 Aug 2020 17:07:19 +0800 From: Wenbin Mei To: Ulf Hansson , Rob Herring CC: Chaotian Jing , Matthias Brugger , Philipp Zabel , , , , , , , Wenbin Mei , Subject: [v4,3/3] mmc: mediatek: add optional module reset property Date: Thu, 13 Aug 2020 17:06:18 +0800 Message-ID: <20200813090618.28009-4-wenbin.mei@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200813090618.28009-1-wenbin.mei@mediatek.com> References: <20200813090618.28009-1-wenbin.mei@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 VGhpcyBwYXRjaCBmaXhzIGVNTUMtQWNjZXNzIG9uIG10NzYyMi9CcGktNjQuDQpCZWZvcmUgd2Ug Z290IHRoZXNlIEVycm9ycyBvbiBtb3VudGluZyBlTU1DIGlvbiBSNjQ6DQpbICAgNDguNjY0OTI1 XSBibGtfdXBkYXRlX3JlcXVlc3Q6IEk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