Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3348636pxb; Tue, 20 Apr 2021 06:27:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHiUUA7qnNitZ4fK8akxMibPeJO852d92QPHuWUhPCizmgTvIkxQieXOL5NDWMVnOl4o/H X-Received: by 2002:a17:902:c392:b029:ec:b679:bfea with SMTP id g18-20020a170902c392b02900ecb679bfeamr4238669plg.59.1618925266367; Tue, 20 Apr 2021 06:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618925266; cv=none; d=google.com; s=arc-20160816; b=HoUJCNvGVxyHwk8RJTN+UNJB0XBt6ugn0X9xn9lpLEVTQGjdZhUYtSCh5/UMfGg+0q /4v6zUzf9jcxcGCNMw/D/FqYqFuasJneH4MlDZnv2pVjcEZ1RCLdpoU4PDzpkf3eW2Lr J0BV5jSfUxU/WOEIXFjoYmP6VL66Tl19ds9f/EkdTZsM3KU7AKuQ50KrP04t7BP3Q8lT 1nLYISxsKvBe1p2xG9bEa9/yA0OuaGh3V35J4Eq20W6FFvkhFMmu7HIWQdaxtZzQLRQV 6kErODGllSX0lKDpZowz2I/R82h3LtP966cdNlXhDsXR3YaPVW3uDfMmoWDquSkTCwVd 6n7w== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=F/Ns6WIK2Dy0aPedbYy3llJMXtmG+SMNazBAvgRMihY=; b=p0RK347w/uGyujxFT/SDLnpBYqOKjxNrlT6zQi5LI0NToWQACAOImABUQZpN31PA5K LKKVtnHfFCjweXx9DE8HBpGOvYO0N0cObeJPXGanRlkVX1jaecPYWwJVTgGcpomsR1tA tMAzRFXmprv5Vn1Mdew+QLz2C2g9NyBoFOVp+BhgxnHo30r5vvWcu1M339P1NiLUkO7F /IYuvKgP3Rurv6Z/3WwjLUR9FvD6K9ue9Ny6mjZH1PdNr1x8c91Hu0KQqdzZCRrYUVH+ l8ddnuDhO1BxdhOaHtosBigNnDHq3/d+l6Dm2JIzEihPuXh38gpH6r4FWust8E32iG0m VNwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=o0UFIGtF; 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 y18si20935645pfo.71.2021.04.20.06.27.33; Tue, 20 Apr 2021 06:27:46 -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=o0UFIGtF; 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 S232495AbhDTN1I (ORCPT + 99 others); Tue, 20 Apr 2021 09:27:08 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:41349 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232448AbhDTN1G (ORCPT ); Tue, 20 Apr 2021 09:27:06 -0400 X-UUID: 67b4741ee606471bb1f9e905ed906884-20210420 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=F/Ns6WIK2Dy0aPedbYy3llJMXtmG+SMNazBAvgRMihY=; b=o0UFIGtF7B5l+zpZ/eonUMjp4IyVrBz4SJ+o6C1z6gZde/pSxgrVv04K313rlg+ePenX7Dlg1KHOp9jf8PVjKNBIJJJ8KWRe84pjKGf9dWuDqGTJ++lgzPRMwQmg56W91edZA3uBAjqgKD0bLYzKZwpxs8qbs4Zbps07DkEuBCk=; X-UUID: 67b4741ee606471bb1f9e905ed906884-20210420 Received: from mtkcas35.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 369354208; Tue, 20 Apr 2021 21:26:29 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 20 Apr 2021 21:26:21 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (10.16.6.18) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 20 Apr 2021 21:26:20 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , , Jitao Shi Subject: [PATCH 4/4] drm/mediatek: add dsi module reset driver Date: Tue, 20 Apr 2021 21:26:13 +0800 Message-ID: <20210420132614.150242-4-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420132614.150242-1-jitao.shi@mediatek.com> References: <20210420132614.150242-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: CDD0EDBC07D217E939DC5558E2076778B137CA9F9ABA7EDE162356D70FBDF6E02000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UmVzZXQgZHNpIEhXIHRvIGRlZmF1bHQgd2hlbiBwb3dlciBvbi4gUHJldmVudCB0aGUgc2V0dGlu ZyBkaWZmZXJldA0K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