Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2241378ybv; Mon, 24 Feb 2020 01:46:44 -0800 (PST) X-Google-Smtp-Source: APXvYqw9VJzqqk9CAT9qFvsHnq4uuCrrIzNuyyQ5mmo1EUmsBfyKhbhllSiRN4Yn9w8R9LaBX0Zb X-Received: by 2002:a54:4006:: with SMTP id x6mr11802439oie.145.1582537604513; Mon, 24 Feb 2020 01:46:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582537604; cv=none; d=google.com; s=arc-20160816; b=cqYDy3Nu6fe+MABAOtnSJFqLhDOd/kD0t6Jsvovw7ADhv2oA00tJY0Z43/JH58TLKj SFppvd/CoqS9C0T1RNBfeoDfuuSuYlmxO5JOsVLnu5UTTDI89jNvlWB/NzVufoePGSOB BwNNzpF2rHzEjrgql/Wat9VZ17LMtGPST3xty65yW2p+mioFYFthTrfTBpaKFTDtRBf6 5Yms0iQztr/UTH8c+ArW2RzyJAWqNhs7tVZT88VinZyK6lmGB+pbAzzNjqF3atnnf/c4 0fhVBUekYMn6aA3+98f02FmZsNB1ZBLvnPTrRSttw/FzxzeDS04iZq9DwumRLIQlr7jx VlYw== 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=JJObHOiFNWZrMDB8kq3sMti+Ri6V2M0iYaOtSYj8HuU=; b=JRo4lmNU7LU7pugDbbZSs8bVmPMD1OnTx+tPhhqHjvn9H0KrjX1oh5Mt9pN5YfOAeQ ge/+6D+BVCpP2HCSgMTVthYHCFObLPcuD7EQI08QLikreJgJBeywUi9nO3ROtW9kfeQO EfyVb/j+W1pqbrvgel824qs2Dr4TTkkKzeSVXU0FE0/20j3c+bRE1vRHB1VKR+YjPjRn yX6WrJxaGqFcsbO4Flzg1VfYYdUhmHlSlx66VSZt8VIECypNrH2E4sNjpsN6po6SjqAx uGr9EjpXYwr6e7SqlrrJJ2Z96wvwHRgd1GQxbowtOqCDToEUP9nThdgtKgjF6QVH5/kG 7qkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hr23lqTt; 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 x20si4667250oix.155.2020.02.24.01.46.32; Mon, 24 Feb 2020 01:46:44 -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=hr23lqTt; 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 S1727185AbgBXJqW (ORCPT + 99 others); Mon, 24 Feb 2020 04:46:22 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:62083 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726628AbgBXJqW (ORCPT ); Mon, 24 Feb 2020 04:46:22 -0500 X-UUID: 15efe623feed440a82ff83e29f541fd1-20200224 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=JJObHOiFNWZrMDB8kq3sMti+Ri6V2M0iYaOtSYj8HuU=; b=hr23lqTthINWXnyqH4FlJZ93clckrD8c2YBD5KQCbAwl1+cMWaGGMF3XqR8jIgyEIQ4ESiynsunRR/peYZmkPZvdQevHMU7s9jWu3khE9ievaw3b0LSAgAFiNMwlYyn3V3uCt9CB5Zq/z+Frm0e33tQA2eZvSaA7HFGoVNyfd2Y=; X-UUID: 15efe623feed440a82ff83e29f541fd1-20200224 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 81929236; Mon, 24 Feb 2020 17:46:15 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 24 Feb 2020 17:45:26 +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.1395.4 via Frontend Transport; Mon, 24 Feb 2020 17:44:58 +0800 Message-ID: <1582537569.859.14.camel@mhfsdcap03> Subject: Re: [PATCH v6 1/5] media: platform: Fix jpeg dec driver bug and improve code quality From: Xia Jiang To: Tomasz Figa CC: Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , "Matthias Brugger" , Rick Chang , , , , , , Marek Szyprowski , Date: Mon, 24 Feb 2020 17:46:09 +0800 In-Reply-To: <20200214093506.GA193786@chromium.org> References: <20200121095320.32258-1-xia.jiang@mediatek.com> <20200121095320.32258-2-xia.jiang@mediatek.com> <20200214093506.GA193786@chromium.org> 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 T24gRnJpLCAyMDIwLTAyLTE0IGF0IDE4OjM1ICswOTAwLCBUb21hc3ogRmlnYSB3cm90ZToNCj4g SGkgWGlhLA0KPiANCj4gT24gVHVlLCBKY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