Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp447929ybl; Fri, 6 Dec 2019 00:07:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzkZ/dvED5d7ryD3KmiEko0vRYS1JKVZ//Fd9ntLvMM0p7gUiFTC0HSu9ensvI+iSVlf0ff X-Received: by 2002:aca:b445:: with SMTP id d66mr11565006oif.103.1575619671361; Fri, 06 Dec 2019 00:07:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575619671; cv=none; d=google.com; s=arc-20160816; b=aRTxLGWleRWuxiWUKAPaNX7jr8dCrsV8jDqiWrZySk+RgjVjwtD9r1M0nwXoIGXcsi jQN2sc6l4Zae3sQ4aojOmP7OahNj+cDSPeOsjCpl0hYAu57slQbilA4xNi3/Qj73IPHs Sq/X4btDuSIzbhPvv/2AU3CNN8UxkYOAeYwcZSOrGQoCvzozDMx/M4uN04NX2DPbohU1 l0SLdRrOt7TtXCiRaUlqfMevMTkDjfvO1lI2iktdIJyBhoaDwnuP+UIy35lgo9CGBPlP AzcCyBnwuuiOG21Rqmp2DvSGjyjjfzWnzJUgI2vkaTLK7WlKxWt9ko0CkqALAm21JhZv HUow== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=lVZrCUbqLoiMSbjwNFA0HHxnz+mVQqg4nD2qHvV3jxo=; b=vC5QL0l4bTr747VeNn8x7vfUlivYk7mLM3dOQXmYyGOIRRu50GBCeTW9lNLTniQbXh pq4PCzdZj/YNZrF7zrvM/JN9ORsQ06h8bK9wQNWdclU+GcuSBPbIfwPykM53TfhYCErV 8OYCFmdcrnVphQr+XFNJlRkl8aZyWGivgUEVKLpDQk0ZzXEpSj6FubvVhVcdCvbJmGln Kn35+IufrpT6aEeMIw2ksMF+Ykk8Gjihz6c1qubisN3ayraL70QezFbJhsSj+rj6SVDx nQ3y/JfcOILQqlLavhkenhq9JlEGCnqbklwobBu5I+rZFIys0TjmJaQGJxB6LWq+vH7h 9GLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=JjUwosIi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b133si2501210oif.244.2019.12.06.00.07.38; Fri, 06 Dec 2019 00:07:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=JjUwosIi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726864AbfLFIGv (ORCPT + 99 others); Fri, 6 Dec 2019 03:06:51 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:48767 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725858AbfLFIGv (ORCPT ); Fri, 6 Dec 2019 03:06:51 -0500 X-UUID: b64d99dd417f4897b5fe8611d274e3ad-20191206 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=lVZrCUbqLoiMSbjwNFA0HHxnz+mVQqg4nD2qHvV3jxo=; b=JjUwosIigrqrNMSo7X6lD2hG7u//9qAdGptzrFB1HR5x5i/8Vrtn4N2MtvfZqos0DbRR+sbMH/orYW7Y8JlRJP7yO/eWSJclBQQZJUB0L7t2qvtnMksOR808INHTsraWKnMNMH4j6dUPVqpI5qX5Ry9ZruwNSnz2jHFEaBqcIbE=; X-UUID: b64d99dd417f4897b5fe8611d274e3ad-20191206 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1908250467; Fri, 06 Dec 2019 16:06:47 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 6 Dec 2019 16:06:33 +0800 Received: from [10.17.3.153] (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 6 Dec 2019 16:06:32 +0800 Message-ID: <1575619605.17879.3.camel@mhfsdcap03> Subject: Re: [PATCH v4 5/5] media: platform: Add jpeg dec/enc feature From: Xia Jiang To: Hans Verkuil CC: Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Rick Chang , "linux-media@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , Marek Szyprowski , Tomasz Figa , srv_heupstream Date: Fri, 6 Dec 2019 16:06:45 +0800 In-Reply-To: References: <20191017084033.28299-1-xia.jiang@mediatek.com> <20191017084033.28299-6-xia.jiang@mediatek.com> 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDE5LTEwLTIxIGF0IDE3OjIzICswODAwLCBIYW5zIFZlcmt1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