Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp232606pxb; Wed, 25 Aug 2021 01:45:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzRgwQI+w4N5IVKOmVYcHDUe+qrBD2xVLZxttKn2ftJXVu1DrkbcPXf+Ks0l2F1P2+Au9Q X-Received: by 2002:a17:906:ece1:: with SMTP id qt1mr45860197ejb.281.1629881158476; Wed, 25 Aug 2021 01:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629881158; cv=none; d=google.com; s=arc-20160816; b=vo2k08p7/LzZEwB9vjd/4erDlykyM4kwmuqxGZZ15CuhPN2MKt3BHZ+uqi4wSRfhUW 8C+MrxPYvbbuSpk/vtJU8jarEJ/ZQdSi5p3HqF/jFLvn1MSl448xGa1PJ4uPF1Sf3nR3 pC8lSySvfzbhgVQR9BjAvMJ+/NHjlxogA48alTWQvosIfiRnta7ZxSRpzyXxjXt+31jJ rqxpDur748Jqa1Qrtj5PEL1EmtdVgYGKCa1cVx962dxK3pAPJ0xrIQAtsiDVimR4BVYV V1/zDh3jiQ2h2uBrG040hj657+x006CADscCpoeyZVmlQl5adnUEFfkLK+4JIlDy5gkE jOmQ== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=sTZz7ZKn8O09yh6tsqaYsnMZlQTmk/rfPalD4e6KLvg=; b=lE2AMG4EmFS0M0YKu5FrZsvbwDk2sDYDHGJhRkc+RTbe4YSYVreUhb2YQ7O+APRDIp UB/RRONV7vmdDdcCWsO55MfkI0hONwhAN/n9ICZfXHbK78FMdb8DeSj8djorvWTpKhhi ogbsUsrvvxr5q7k/ZVaKx5w/DT5DKdaLTsTw7YjuBuBT1CJWFDi3irS6EZrJhTX2AhHf ciegBw+2AFjbKs1/li4zbt1aRTKrXhcAN/i46wCiNEROQxTGc3lEKT6LJqUezg81/uJS oW0BQPQmNVNdfPNxiRz1HdovdLS6y7NqdFOScqmk0aDQ7xAU1Yk3g9q38yHTYunn7Isr bTJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=JhfCZv+d; 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 nc37si1316995ejc.528.2021.08.25.01.45.34; Wed, 25 Aug 2021 01:45:58 -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=JhfCZv+d; 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 S239450AbhHYIoS (ORCPT + 99 others); Wed, 25 Aug 2021 04:44:18 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:52962 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S239359AbhHYIoL (ORCPT ); Wed, 25 Aug 2021 04:44:11 -0400 X-UUID: 91292bd3971c49d79c649f9484d5e5f2-20210825 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=sTZz7ZKn8O09yh6tsqaYsnMZlQTmk/rfPalD4e6KLvg=; b=JhfCZv+ddUWMVak3+44wGH6ianKqOv7r5y+SClp4VQk4PQie+T5orFv223QjvbPpeTC/7r2hznsI1tDgaQG+hNJA8sXUzfTRn/Wkselu7033C9PK1gXZMPvZKklaB+74AUJxhd9etUiGa46pIIj18mOA2eulLPwD74Xky0ypdxY=; X-UUID: 91292bd3971c49d79c649f9484d5e5f2-20210825 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 661326129; Wed, 25 Aug 2021 16:43:23 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 25 Aug 2021 16:43:21 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 25 Aug 2021 16:43:19 +0800 Message-ID: <1629880999.12893.17.camel@mhfsdcap03> Subject: Re: [PATCH v7 7/7] media: mtk-mdp: use mdp-rdma0 alias to point to MDP master From: houlong wei To: Eizan Miyamoto CC: "linux-kernel@vger.kernel.org" , "chunkuang.hu@kernel.org" , Yong Wu =?UTF-8?Q?=28=E5=90=B4=E5=8B=87=29?= , "wenst@chromium.org" , "CK Hu =?UTF-8?Q?=28=E8=83=A1=E4=BF=8A=E5=85=89=29?=" , "enric.balletbo@collabora.com" , "Yongqiang Niu =?UTF-8?Q?=28=E7=89=9B=E6=B0=B8=E5=BC=BA=29?=" , "Andrew-CT Chen =?UTF-8?Q?=28=E9=99=B3=E6=99=BA=E8=BF=AA=29?=" , Matthias Brugger , Mauro Carvalho Chehab , "Minghsiu Tsai =?UTF-8?Q?=28=E8=94=A1=E6=98=8E=E4=BF=AE=29?=" , "linux-arm-kernel@lists.infradead.org" , "linux-media@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , Date: Wed, 25 Aug 2021 16:43:19 +0800 In-Reply-To: <20210825163247.v7.7.I2049e180dca12e0d1b3178bfc7292dcf9e05ac28@changeid> References: <20210825063323.3607738-1-eizan@chromium.org> <20210825163247.v7.7.I2049e180dca12e0d1b3178bfc7292dcf9e05ac28@changeid> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgRWl6YW4sDQoNClRoYW5rcyBmb3IgeW91IHBhdGNoLiBJIGhhdmUgaW5saW5lIGNvbW1lbnQg YmVsb3cuDQoNClJlZ2FyZHMsDQpIb3Vsb25nDQoNCk9uIFdlZCwgMjAyMS0wOC0yNSBhdCAxNDoz MyArMDgwMCwgRWl6YW4gTWl5YW1vdG8gd3JvdGU6DQo+IC4uLiBJbnN0ZWFkIG9mIGRlcGVuZGlu ZyBvbiB0aGUgcHJlc2VuY2Ugb2YgYSBtZWRpYXRlayx2cHUgcHJvcGVydHkgaW4NCj4gdGhlIGRl dmljZSBub2RlLg0KPiANCj4gVGhhdCBwcm9wZXJ0eSB3YXMgb3JpZ2luYWxseSBhZGRlZCB0byBs aW5rIHRvIHRoZSB2cHUgbm9kZSBzbyB0aGF0IHRoZQ0KPiBtdGtfbWRwX2NvcmUgZHJpdmVyIGNv dWxkIHBhc3MgdGhlIHJpZ2h0IGRldmljZSB0bw0KPiB2cHVfd2R0X3JlZ19oYW5kbGVyKCkuIEhv d2V2ZXIgaW4gYSBwcmV2aW91cyBwYXRjaCBpbiB0aGlzIHNlcmllcywNCj4gdGhlIGRyaXZlciBo YXMgYmVlbiBtb2RpZmllZCB0byBzZWFyY2ggdGhlIGRldmljZSB0cmVlIGZvciB0aGF0IG5vZGUN Cj4gaW5zdGVhZC4NCj4gDQo+IFRoYXQgcHJvcGVydHkgd2FzIGFsc28gdXNlZCB0byBpbmRpY2F0 ZSB0aGUgcHJpbWFyeSBNRFAgZGV2aWNlLCBzbyB0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