Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp606245ybj; Thu, 7 May 2020 03:25:58 -0700 (PDT) X-Google-Smtp-Source: APiQypLbtqBGvwbu2JEQLLaD3H1D9nh80zlmvcXIeJiKCf/3imxmSD7Il+J6JkToOFcrDDdlrFNo X-Received: by 2002:a17:907:2719:: with SMTP id w25mr11511964ejk.107.1588847158718; Thu, 07 May 2020 03:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588847158; cv=none; d=google.com; s=arc-20160816; b=myiWRWUhzSclgc7DE+M9Zu38PmGt8fW4zwOkS4/IiLhTj7ey4h+y+eOT8SRg/UaD5k 330lAKyaYPAH3XwjcdSkZWQ9pnz0uiAAtKc/On1wgnBABqT1tLuCYJ54vAqCyRgRI8gV wUPr7fq84YnudNK05uVtQ7riEl88dp6XutGcZ5Tnli1p/5Z1v1Q6/wh1FtEnB3YjB3/W P9orsVaBbnYds/87FAC8I1td9jGrhmgl/fN0JEgUpQmiXA6sbfuPagm/MO4NFxvRq+8F h6EyUTYk7zLzf9wAwnJV92RllYmT79LkS142nRSTC0g4Zr69Q15BrKRqQ6YKK3gA7hSs 7p4Q== 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=U3adop0qZHoN5+fe1H4HdGFUSAzpEKX4OuXet5VsNhk=; b=tpsjcD+8DSNMg8u8QaE5Wjlv/zOqfktpsVAXUY2KLmZxQ4v10jmh0DUX7i6lQc1Dwt jpB+EsqpgDGHa2/Udg0L0+PeUp+uNUvCz/jyPYEGau+CfF0Dd1GSFoZ99AbVDWDRE2KM 4m3D33ddM4L3yWHj92AZPpdnlwmyR1DfiAxJF1DqJcCeRqpjTYKLmtN4SMy2ljIbbjX4 V/e3+ENJq3v0Hpzt9FBgN1/FkOKmrKaVBIgw5QkaBfl7gJ9JKA+6upwOuIjXsy7psIb+ oyLlNbuJTDDwsmIvBUl4li3NnksD7FxzczTUJu1UOl+DQtJdLFoMWa4Z2z2EksgXV47T O08Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=msVYVtXb; 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 v12si2858059edy.201.2020.05.07.03.25.34; Thu, 07 May 2020 03:25:58 -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=msVYVtXb; 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 S1725914AbgEGKYD (ORCPT + 99 others); Thu, 7 May 2020 06:24:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725834AbgEGKYC (ORCPT ); Thu, 7 May 2020 06:24:02 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75D3DC061A10 for ; Thu, 7 May 2020 03:24:02 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id q124so2324163pgq.13 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=az/Vcgk2TKZEn8o8LAcOU1Du+bHv4amR8kdobVYAu9TVi6/zPhIdUipbfvAvclRBFe 9f2ozLNujHrIat0LdcdWorwveIjnx12y1JFspzioQjWKttEPco4LX6z62uupCQlKHlJ7 DYJw5IgYTrAGgcY/nBdugBWrA6S/Ga67xXxeYy1lh1bEPfBzKUnxgZLneH5AuAMHQGbe L7l8xL2J4WinqgN67EBZ4T4VIWZdPTphJdVpseVfH/z2/WS2Q0APm784a5S7/vIa0LjZ vcxQzYeQffFIFzqd0vvGdcNRES+9bu2+GGpRfugX65LszTHmjeTZpuQ3QDtJGRjzl8gU In0w== X-Gm-Message-State: AGi0PuZNl/QhSGH67zYsBP26ESI+cl6w2ldTE3/Pzu5c11eCjmBGWJXN S4bohSDX0MRJxK2tv2kz/TnkgefiznA= 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 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 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 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. 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(-) -- 2.26.2.526.g744177e7f7-goog