From patchwork Wed Jul 1 13:16:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 11636323 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC0DB14B7 for ; Wed, 1 Jul 2020 13:16:28 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 725CD20780 for ; Wed, 1 Jul 2020 13:16:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="StFRHaXD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 725CD20780 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=RCxjRR/PlwxzD7c96KQRLwBK0SQoe7WbgO18ILoPWrs=; b=StFRHaXDs8CZf8L/8QpV4nykNS dVdQZAOCLs+ynoCVR5DkclcfVDE7ehM1uzSpF8TAs00+aFsbae6MWyIaQJ5uo8yD8yxNdBrY3wcjv 6yJicQHm9ETYdd29vzjhSyhQm8f42SLhfsG37yrtYkNP2ZU5WJ+PVAWuK1TDPOBNvpMKWrlK0UBPO fgJlypMEqLK6mSTdN2P2gkDAX4/nEOIl/3IUrOqMdQZWXICZ8SMY2zq0IQ1GlCgBIVrynn/VzXlZB 4Yj7nTnRvseImv2nqsUfBRWiYSCW5ussvFV3Akt5f7WS9xuLXOxaEdtAQsrhVQH7TuJpAYlcB0E6H kVkzFFEQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqcb9-0005vY-2b; Wed, 01 Jul 2020 13:16:23 +0000 Received: from bhuna.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e3e3]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqcb7-0005ui-5p for linux-rockchip@lists.infradead.org; Wed, 01 Jul 2020 13:16:21 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 58DE42A56A6 From: Ezequiel Garcia To: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/6] Hantro low-hanging cleanups Date: Wed, 1 Jul 2020 10:16:01 -0300 Message-Id: <20200701131607.121988-1-ezequiel@collabora.com> X-Mailer: git-send-email 2.26.0.rc2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200701_091621_314953_20BE8BF9 X-CRM114-Status: UNSURE ( 5.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hans Verkuil , kernel@collabora.com, Ezequiel Garcia , Philipp Zabel Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Second iteration, just addressing Philipp's and Robin's feedback on patch 3. Thanks, Ezequiel Ezequiel Garcia (6): hantro: h264: Remove unused macro definition hantro: h264: Rename scaling list handling function hantro: Rework how encoder and decoder are identified hantro: Move hantro_enc_buf_finish to JPEG codec_ops.done hantro: Remove unused bytesused argument hantro: Make sure we don't use post-processor on an encoder drivers/staging/media/hantro/hantro.h | 13 +--- drivers/staging/media/hantro/hantro_drv.c | 65 +++++-------------- .../staging/media/hantro/hantro_h1_jpeg_enc.c | 17 +++++ drivers/staging/media/hantro/hantro_h264.c | 6 +- drivers/staging/media/hantro/hantro_hw.h | 5 +- drivers/staging/media/hantro/hantro_v4l2.c | 28 ++++---- drivers/staging/media/hantro/imx8m_vpu_hw.c | 2 +- drivers/staging/media/hantro/rk3288_vpu_hw.c | 8 +-- drivers/staging/media/hantro/rk3399_vpu_hw.c | 7 +- 9 files changed, 64 insertions(+), 87 deletions(-) Reviewed-by: Philipp Zabel