Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2716700pxa; Fri, 7 Aug 2020 19:56:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsJmKIqcoHlOt6nzT6BsHY0SNkOBWod1fdDKyQb0sSfQ/ZEgJ0s+QzudE7eeUOuZFjQZ8s X-Received: by 2002:a17:906:c34e:: with SMTP id ci14mr12871186ejb.335.1596855405579; Fri, 07 Aug 2020 19:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596855405; cv=none; d=google.com; s=arc-20160816; b=oy+6SPN0yXqmC3HL5a5yF+7wptimJjSFp1AKdVVzdnMp4XjEWCgiWI81+1kjiMbH36 7knwqKQtTcu18KsZzqydWA5JyZzym+ZxH4bL6/7BvKRs3v7cZzbE9hF+xEWb63yWzG7I H5AkcYxamNXATfAP+2Bku7x8+3CwuUEXMVJM2T7X39JguR3lCk7acmeRcjqdJBxvOCeB 6a9hv1mx0yE3b/jDH5MHlBn2klOKFYP8QgtOxPmjqLTLWEQI7MJhX36xSrhy9bzoeXXt wgufBrMrFqKf68wE71DJoCONXKFTc11DnkmTdIIArg9hnP5/EvnnHGLQLncq/Cy08/Bg 8CVg== 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=NKfEP+pHnq4ukyQ2+Gla9A+p3PAZsWxQIAUcZTxAsXU=; b=vhO0llbE7GRW4S+wKKuy4oJV8LzZUojvZiuZaNVY5S8PrDInzMqqRMWTEB37IqhtrM 3HJl5vYwUR5kCytRxb4I0ILgAi+mOmPxri279QZTjrT2k2z3X4kGB6YGLMO7OX78sECL o51mW6aw0WSF4ZsmJQuukFok8XG6FTQuhdRuhU2rkhA2xi2GiLh698JJax6GBN5etg1N o0GiSiL0fpDhQKr1Uox4+VDh5+7GD4xjUN1Kp9mVnjJe3tnL1TfI3E3NIyAj632xg1v4 3eUZzCGf0m0fsDBR2oyz5Lsm7wSuTYIl/14/KJhOlxIC+SMKkpNLjB11GB6m39vw2PZz ZkFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=gcBCE+gj; 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 bi9si3342561edb.366.2020.08.07.19.56.22; Fri, 07 Aug 2020 19:56:45 -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=gcBCE+gj; 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 S1726935AbgHHCzJ (ORCPT + 99 others); Fri, 7 Aug 2020 22:55:09 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:5016 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726426AbgHHCzC (ORCPT ); Fri, 7 Aug 2020 22:55:02 -0400 X-UUID: 7822fd91d68c4457afe66bd2e05c4bac-20200808 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=NKfEP+pHnq4ukyQ2+Gla9A+p3PAZsWxQIAUcZTxAsXU=; b=gcBCE+gjrUA0I6V8V5rnjybZjP0xTlmt6NmH9+XWK5wpk1BXv08C5QDIyhI3R+eh3MAYzw8X4Y7NvYeT4k7kI32vivB6Q46tyRMaCbciIqPknsUV7lah4q8ZuvVWB+cmV5yt2AP8vVqY7gAPu+gCnCQeuqHDceUJFuwvhzCUOR8=; X-UUID: 7822fd91d68c4457afe66bd2e05c4bac-20200808 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 1394124182; Sat, 08 Aug 2020 10:54:43 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 8 Aug 2020 10:54:41 +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; Sat, 8 Aug 2020 10:54:41 +0800 From: Yongqiang Niu To: CK Hu , Philipp Zabel , Rob Herring , Matthias Brugger CC: David Airlie , Daniel Vetter , Mark Rutland , , , , , , Yongqiang Niu Subject: [RESEND v7, PATCH 3/7] mtk-mmsys: add mmsys private data Date: Sat, 8 Aug 2020 10:53:47 +0800 Message-ID: <1596855231-5782-4-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1596855231-5782-1-git-send-email-yongqiang.niu@mediatek.com> References: <1596855231-5782-1-git-send-email-yongqiang.niu@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 dGhlIHJlYXNvbiB3aHkgc3BsaXQgb3V0IGRpc3BsYXkgY29ubmVjdGlvbiBmdW5jdGlvbjoNCjEu IHRoZXJlIHdpbGwgbW9yZSBhbmQgbW9yZSBNZWRpYXRlayBTb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