From patchwork Thu May 7 10:23:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eizan Miyamoto X-Patchwork-Id: 11532987 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 1A76B139A for ; Thu, 7 May 2020 10:24:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 ECD202075E for ; Thu, 7 May 2020 10:24:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="i0qJOfzP"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="msVYVtXb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ECD202075E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=Jx7z9Xb1RBmsNtfbqdbDAO3bQVO+BpPtZSsAZeN5XWM=; b=i0qJOfzPUABcrg W5Axyf+vvkjQR7bxORR0yu2hwB5yE5hlduYgIK066YH4Ssj66wMPWsjt9gmejEuhWVYVfnCYwMb+U 6nk574bTuFzmdw/8OvZm1x57L3SRakhOWdVz5mrjkt7wNs/2Vroimgc4Oo5l24xlcwSJimO6KxzeJ wjddX39XMF5A6K+ee5050zn044p7wstW1fUGwRoHiuIfgEvD82ogAHT5RCjpGSks9TQ4DzJqc6tNo gETbDIwR8hdaQKczF/U+ZWjQQtiYPBmunL0xM6oesuBQ5HENZK8DRj6hbQuUrl3jeiW/CmPKLqs5z V7ZaCNuitpH3fqyI2OWA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWdhF-0007QT-Ru; Thu, 07 May 2020 10:24:05 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWdhC-0007Pm-Tw for linux-arm-kernel@lists.infradead.org; Thu, 07 May 2020 10:24:04 +0000 Received: by mail-pg1-x542.google.com with SMTP id a4so2659807pgc.0 for ; Thu, 07 May 2020 03:24:02 -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=U3adop0qZHoN5+fe1H4HdGFUSAzpEKX4OuXet5VsNhk=; b=msVYVtXbC1rDLmlHB0A5OMuw6LsY6yof/OQbghdzmC8mQ+pR4tv1wSmxhZk/KvRE6d c2GPXGyyr1qqebFYtA8Q9gy95GufDlZuB0bUHy13z9lIMGTV1RCYE9kvrFNSLQZP99E9 z190vOnTwXc6wcneboX0FzxIOCQ6KX/9YAl6U= 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=U3adop0qZHoN5+fe1H4HdGFUSAzpEKX4OuXet5VsNhk=; b=IJ8Wp3rmJJvb/yGdaHW2hPo54fT2fmUWXK8n6C4aF+E2MwxNzCUGj7B7HJaXyVnktk 9bP57xgd+FzJkRKNq43ZqFMv+W6z2PTTUUM2z4VECb9cNNgHbng9VRMJywwL/YYRmgqU YsAYiGJcs/3Gxhxg7btrdqCXs9d/pzJq9Fm8MiUfHcBy+hfTFF6+ieUjVEwEyzOAOUou knKU4ETq/zQ7X57wUWVit6gfQJkehvP/RXDAY0O3ZC2Aihw8MH7sKJ2zmLsa5/eY/A4a KVJHoWu5yfq+iAWYo0MKKOAoH+GgkWEjwSWHEPSenU2joMJHMvSPxIEXj+vPejwRJPdH tWPw== X-Gm-Message-State: AGi0PuZsOdVoJ7/+8qw5CvqFW5W2oZ54TKVX/imRtqhq2XsFHkU+zVQl 7g+XMIUFvnn0jz2wQ2uJ4mxsaQ== X-Google-Smtp-Source: APiQypIJANgSss8r4jrDFwpt2FRxJF0v5BBqD8mhWuxiK45XDvceGeJ0E8SQWciZ2KIF8EhjAyoH+Q== X-Received: by 2002:a63:f54d:: with SMTP id e13mr11526261pgk.325.1588847041657; Thu, 07 May 2020 03:24:01 -0700 (PDT) Received: from localhost ([2401:fa00:9:14:a92f:c47d:76a8:b09e]) by smtp.gmail.com with ESMTPSA id m7sm4639156pfb.48.2020.05.07.03.23.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 May 2020 03:24:01 -0700 (PDT) From: Eizan Miyamoto To: LKML Subject: [PATCH v3 0/5] MTK MDP driver cleanups to prep for futher work Date: Thu, 7 May 2020 20:23:40 +1000 Message-Id: <20200507102345.81849-1-eizan@chromium.org> X-Mailer: git-send-email 2.26.2.526.g744177e7f7-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200507_032402_991835_D93B82DC X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:542 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew-CT Chen , Minghsiu Tsai , Houlong Wei , Eizan Miyamoto , linux-mediatek@lists.infradead.org, Matthias Brugger , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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. Note: these changes depend on 757570f11fa4b0ce5472a6583de6f06e996a8527 to apply cleanly. Changes in v3: - Removed extra Signed-off-by: tag from commit messages. - Removed extra line break in mtk_mdp_core.c - Update cover letter with dependent commit Changes in v2: - remove unnecessary error handling labels in favor of err_m2m_register - 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 | 69 ++++++++++++------- drivers/media/platform/mtk-mdp/mtk_mdp_core.h | 10 ++- 4 files changed, 63 insertions(+), 99 deletions(-)