Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2385053yba; Fri, 17 May 2019 16:16:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0zbUBcx5gxZ2NkX+35XQNMQVn295IxCQMv6U50hWcIdeMjrotAUcAE/yVITm1Ys9O6pZL X-Received: by 2002:a63:2c4a:: with SMTP id s71mr42579269pgs.343.1558135003941; Fri, 17 May 2019 16:16:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558135003; cv=none; d=google.com; s=arc-20160816; b=hsc73xU05iafCoJ/Rr9fULOlguzBXPdEHexJD27P/glgPolcV/KddKMeJJadDGgqeJ JoBD3xfRgmFkexoOHFuXTTjmSQ8ghOceICr1gTwmG3phn+or2le+qe/HCmuAXflQvmTS c9IFLKwHYScw/pRdeKmlOFLpn4qH6B/CuJxaO4zUOua65TY7kjAksUOZImCRo9MDR8iB XyY7Qm+tIOonHe1xA7mX+BkYwjhmpgQi4rRqWh3BkMUsnSAcjOHB8Xn8+8gaYv2KSMTJ awnOOExUVmAgUSNfdKoo2tGtXESP1JxAyinij5orJqGxUGB4mvMAYC7HqT7VZRYRnFhr yPKQ== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=Z7a58N0Cmub0pgH1OiKMP2JK38dlbVO3ZsojSABTjbw=; b=F+6RvzcxCGagsRIty6z3M3GRXyqSlsEIVlbVxszIk0BhxDgfKVrbTt9EVOrcUhZ46F /6jEPq7ETj4499/+8cPBKHxTRcmBAdkXv+9mnRV4ApR2DgsTaS1b52kCL7oA0eRbsQYi 9+e5oHuEnMvdFVFFhjVQPs7lSbRVCePsyogP4+KrgQjASVsB37afaNHCKw/MK6hWi2wr wf/tIpLCYFVeieSZR+YRTTBAouEAEqmwIE8qVsd7Ub4II3usD29Zh/kGvvWX/HeyKPa4 zxpU2VxiEQjMVPq+ppNekYeEymL3ga518sW2floS1Hiu+P30X+MKH4/Mwf41VrNoZy8E UuBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=kxpKLA07; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p91si6925682plb.165.2019.05.17.16.16.29; Fri, 17 May 2019 16:16:43 -0700 (PDT) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=kxpKLA07; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729573AbfEQWby (ORCPT + 99 others); Fri, 17 May 2019 18:31:54 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:54412 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729158AbfEQWbx (ORCPT ); Fri, 17 May 2019 18:31:53 -0400 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D061697E; Sat, 18 May 2019 00:31:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1558132310; bh=qWZtuujGnyu74xn/yiK06dv4y3ecqEWxDBkPb5hnYjU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kxpKLA07jN8uB8QeM6j8J4uIkDGfqluDyNnn7Oxq3vaX+FKbpiviT6KmJCSPVUzbw oT82en8/lKMmg+y81MTpjQ2Uc6ZdZ9oUqFa8Jkv9uFUotUpglRtoKrSz/8VOgptm1D ufRjAwLfkJEDc/mGbpCWt1Gt5gib8cA917bQFJ9U= From: Kieran Bingham To: Laurent Pinchart , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Kieran Bingham , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 3/3] media: vsp1: drm: Remove vsp1_du_setup_lif() Date: Fri, 17 May 2019 23:31:43 +0100 Message-Id: <20190517223143.26251-4-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190517223143.26251-1-kieran.bingham+renesas@ideasonboard.com> References: <20190517223143.26251-1-kieran.bingham+renesas@ideasonboard.com> 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 The vsp1_du_setup_lif() function is deprecated, and the users have been removed. Remove the implementation and the associated configuration structure. Signed-off-by: Kieran Bingham --- drivers/media/platform/vsp1/vsp1_drm.c | 47 -------------------------- include/media/vsp1.h | 22 ------------ 2 files changed, 69 deletions(-) diff --git a/drivers/media/platform/vsp1/vsp1_drm.c b/drivers/media/platform/vsp1/vsp1_drm.c index ce5c0780680f..12f76344bdec 100644 --- a/drivers/media/platform/vsp1/vsp1_drm.c +++ b/drivers/media/platform/vsp1/vsp1_drm.c @@ -817,53 +817,6 @@ int vsp1_du_atomic_disable(struct device *dev, unsigned int pipe_index) } EXPORT_SYMBOL_GPL(vsp1_du_atomic_disable); -/** - * vsp1_du_setup_lif - Setup the output part of the VSP pipeline - * @dev: the VSP device - * @pipe_index: the DRM pipeline index - * @cfg: the LIF configuration - * - * Configure the output part of VSP DRM pipeline for the given frame @cfg.width - * and @cfg.height. This sets up formats on the BRx source pad, the WPF sink and - * source pads, and the LIF sink pad. - * - * The @pipe_index argument selects which DRM pipeline to setup. The number of - * available pipelines depend on the VSP instance. - * - * As the media bus code on the blend unit source pad is conditioned by the - * configuration of its sink 0 pad, we also set up the formats on all blend unit - * sinks, even if the configuration will be overwritten later by - * vsp1_du_setup_rpf(). This ensures that the blend unit configuration is set to - * a well defined state. - * - * Return 0 on success or a negative error code on failure. - */ -int vsp1_du_setup_lif(struct device *dev, unsigned int pipe_index, - const struct vsp1_du_lif_config *cfg) -{ - int ret; - - struct vsp1_du_modeset_config modes = { - .width = cfg->width, - .height = cfg->height, - .interlaced = cfg->interlaced, - }; - struct vsp1_du_enable_config enable = { - .callback = cfg->callback, - .callback_data = cfg->callback_data, - }; - - if (!cfg) - return vsp1_du_atomic_disable(dev, pipe_index); - - ret = vsp1_du_atomic_modeset(dev, pipe_index, &modes); - if (ret) - return ret; - - return vsp1_du_atomic_enable(dev, pipe_index, &enable); -} -EXPORT_SYMBOL_GPL(vsp1_du_setup_lif); - /** * vsp1_du_atomic_begin - Prepare for an atomic update * @dev: the VSP device diff --git a/include/media/vsp1.h b/include/media/vsp1.h index 13f5a1c4d45a..bc0a26d33d9a 100644 --- a/include/media/vsp1.h +++ b/include/media/vsp1.h @@ -20,28 +20,6 @@ int vsp1_du_init(struct device *dev); #define VSP1_DU_STATUS_COMPLETE BIT(0) #define VSP1_DU_STATUS_WRITEBACK BIT(1) -/** - * struct vsp1_du_lif_config - VSP LIF configuration - Deprecated - * @width: output frame width - * @height: output frame height - * @interlaced: true for interlaced pipelines - * @callback: frame completion callback function (optional). When a callback - * is provided, the VSP driver guarantees that it will be called once - * and only once for each vsp1_du_atomic_flush() call. - * @callback_data: data to be passed to the frame completion callback - */ -struct vsp1_du_lif_config { - unsigned int width; - unsigned int height; - bool interlaced; - - void (*callback)(void *data, unsigned int status, u32 crc); - void *callback_data; -}; - -int vsp1_du_setup_lif(struct device *dev, unsigned int pipe_index, - const struct vsp1_du_lif_config *cfg); - /** * struct vsp1_du_modeset_config - VSP LIF Mode configuration * @width: output frame width -- 2.20.1