Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1495465ybj; Tue, 5 May 2020 22:51:57 -0700 (PDT) X-Google-Smtp-Source: APiQypLfeOTO+QwncifmHR9Au/vcYyXlBG63vkKVUthhdV54RvkoAIPJ5zIJmeXviDQjRbNuybU7 X-Received: by 2002:a17:906:1690:: with SMTP id s16mr5437011ejd.339.1588744317652; Tue, 05 May 2020 22:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588744317; cv=none; d=google.com; s=arc-20160816; b=rK1Ps0uz/Lmz1StP5BYoa1SAEg8PntYpZ+Ck3OcX00CR6dlZCpSOigsUbAv+yNdYZ4 rHXi4Jg55EBtUU7QBW8fJCE44J0zrC7dO8EJLl2nibZrJAP+JX42bLg97HZD6DZK+9y1 sRgeGjyg88LUOT8kEHFUE8gu/kU2OBCMSqcC2AJMb0WPNpukBXs8RYfYr7urzLVEa/LZ MaDRqdar+LeGl7oHhsn/PbmKSzNVZY6Ph5DWZLkWpY/XhWYOukp+1uNAW1H3tyXzyWxi 0bv6em3dGATTRdheAg2Uiejfpnvm5UnoO93oyY1D1X2ZUq7IxmyeG5r73g+DeYUOnZpc csJw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=yzL6cUEC8Sb9M0V1vJgMsz/nqVpMVfxLp+rf/lwsZKU=; b=eqQMX7j3j/n86Fn3EdEEi/QPrSvqmMa3Ju6pV2g5x08jhguMVHWZOT+uggE3jlKVny nK5qVxXeV0DdSYY7eo2Pe5BkrhhG3CQ1k/dPoRYL8ZaQOlpVEN+Mo7Ei6f+GsNoOLmxI Dfzzw2/bMVL3gqnfTsmMqBwU5yLc/LioZbaO1HKdYUTuP1daint9BClX6zr6KNiOgUO5 DSQrNltR0RRpM0+OQ5f+kzJVwXupYGS1Bv8k/SPoeWfimBvL3tGHsyC2DOIOJrlPLNaD hmXbIORUJqpAagUVNf2iZyHiD+S0/J1oXhNgn2sqxH/ZR8TmxAdJ6WqkpVttExA2Wsmc EnHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kAUBHaIn; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si459247edq.510.2020.05.05.22.51.33; Tue, 05 May 2020 22:51:57 -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=@chromium.org header.s=google header.b=kAUBHaIn; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727771AbgEFFuC (ORCPT + 99 others); Wed, 6 May 2020 01:50:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725771AbgEFFuC (ORCPT ); Wed, 6 May 2020 01:50:02 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A909DC061A0F for ; Tue, 5 May 2020 22:50:00 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id w65so447626pfc.12 for ; Tue, 05 May 2020 22:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yzL6cUEC8Sb9M0V1vJgMsz/nqVpMVfxLp+rf/lwsZKU=; b=kAUBHaIn2XglY81EN0TH5ycwufqdQH9VevoTUibsMR40E5b2pIhc6cR9QKtdpRt36a Tbc7Iftyur5i+FyD7I2vkmk3ZmM0uWNr41YIGEsZ70mj/JHi7UC1LnPWsJL8DGq9kez4 vswVXvyYNPJBwPManb3stNUHuwpIIufgTSweQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yzL6cUEC8Sb9M0V1vJgMsz/nqVpMVfxLp+rf/lwsZKU=; b=eLkbKg7xmzIhFJsbci4h1y6+09NT62pTBvrL515gQnl1aGzP2A3GK0KgQPYblhqgqp rWc3D52dwLR9Ks2K29vHlDWTUJYzIQH6NesyCBdBGnVxOodg2tWNeFGDnRXrn4SB8Zik gkReFhYvgTTHkRR4Hu0h5yAxuArZ5mjE4+TeNG03g5YZONr9pw1hMHh8ibOunqNWPLaV +6eUnTYZxb7noW4l+3OU1UdCx6B26vOfai97LfPK05v+pYTvGyiCnz/uWr1koBoj9qBE U6eHkdFLaqy9Zbjy2Gpgf2eoKOzJwfYlUHJcc49dpx8Lm1ZeOMGe0HBJCJWT7wwCWTrr GX6Q== X-Gm-Message-State: AGi0Pub2T95NBRY3SbfNzu4vKG+dpab0uvL6FxkO0fJPQXAlMmjwf+Yt YxZ9bu+eEh+u6ilMc2Cya2nRBAExMB4= X-Received: by 2002:aa7:9589:: with SMTP id z9mr6512255pfj.247.1588744199913; Tue, 05 May 2020 22:49:59 -0700 (PDT) Received: from localhost ([2401:fa00:9:14:a92f:c47d:76a8:b09e]) by smtp.gmail.com with ESMTPSA id t5sm729738pgp.80.2020.05.05.22.49.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 May 2020 22:49:59 -0700 (PDT) From: Eizan Miyamoto To: LKML Cc: Eizan Miyamoto , Andrew-CT Chen , Houlong Wei , Matthias Brugger , Mauro Carvalho Chehab , Minghsiu Tsai , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 0/5] MTK MDP driver cleanups to prep for futher work Date: Wed, 6 May 2020 15:49:15 +1000 Message-Id: <20200506054920.109738-1-eizan@chromium.org> X-Mailer: git-send-email 2.26.2.526.g744177e7f7-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It most notably converts an array of MDP components to a list instead, but also removes some unused fields. This series of patches does some cleanup in preparation for futher work so that hardware video decode works on 4.19 and later kernels. We are planning on adding a dummy driver for the relevant MDP components that will be bound together using the component framework, which will enable calls to set up IOMMUs and LARBs, and make calls into pm_runtime. Changes in v2: - remove unnecessary error handling labels in favor of err_m2m_register - rebase onto linux-next/master to pick up 757570f11fa4b0ce5472a6583de6f06e996a8527 Eizan Miyamoto (5): [media] mtk-mdp: remove mtk_mdp_comp.regs from mtk_mdp_comp.h [media] mtk-mdp: handle vb2_dma_contig_set_max_seg_size errors during probe [media] mtk-mdp: handle vpu_wdt_reg_handler() errors during probe [media] mtk-mdp: convert mtk_mdp_dev.comp array to list [media] mtk-mdp: Remove mtk_mdp_comp.id and supporting functionality drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 60 ++-------------- drivers/media/platform/mtk-mdp/mtk_mdp_comp.h | 23 ++---- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 70 ++++++++++++------- drivers/media/platform/mtk-mdp/mtk_mdp_core.h | 10 ++- 4 files changed, 64 insertions(+), 99 deletions(-) -- 2.26.2.526.g744177e7f7-goog