From patchwork Tue Nov 24 08:41:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 331379 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp4188981ejb; Tue, 24 Nov 2020 00:43:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcJV5LtGPStebAbSstpWCerLv6/yOMd+BGT+W32bnG3H20XuPNx8oSG7TkCobAOoWHVfZW X-Received: by 2002:a50:fc85:: with SMTP id f5mr2832828edq.225.1606207389005; Tue, 24 Nov 2020 00:43:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606207389; cv=none; d=google.com; s=arc-20160816; b=YwlB+H0rQ/VIVRallndbCqPVUqPhlPYOwW9YCkjYm1PGgrZpdOOaISXA3Tot5DA2tE yurUtR73durHihToVuPIHgzvOvlXpZA3jzeAvU5Uy6IXAhTIEhDWtcWyYQ3mHLHDfeIq ujLNVrNs0LByQaI+ptCGbNR0JQpXAjoaw8LOyrfZk4dQGXE0chfNbDzBIe+ygfYxwNPU UpzaQw8Cdjs+qXXJEK5Qe/32D94L73WqB+Gk9LUvPEeQOMkycZBNVqpJcWUjDoLulo+Q R4ec8+I9V7jtjqB+9HV1W9KJ8u0yiMrTbAAj+M6gMKMteBPlpUrTgP6tJT9ZGxFBul2s najQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=BRDBz/1PXQEFYqUjnMgE/6S1ClYJEu5jXDZwdIJ0phs=; b=B6osx22vyvBg5vCtlReuMLGFcWSlgJwFtUZvAVI+rBTrNXCz6PEMGv76RsVsg2i5/h 4p8aF2s9ywoHdAPtSFzjX25tvc7zNnk1RjjE5dJYx5PeF+Fo5t5z9rcZe3sQPNCs0kNd LYCsdNJbuuqMw6ZfmaPgKs/Veh3HDMEvy0/JWkRlGYXDFZSNOUMyOQZzHbOpELpuG6bB DCEc7rvBmBAdmeesOQ1p77PtyfZ6T4YH6lsojJsJtJJjghoSZ2qSI7OQ+AjVyFlwyr8V AiIHIQ7DqF6yng8UFUzVPcigDVyDpvzGZL7LGso8Uy+QHUKzcVS0fhrTpz+l7MvGddEU SFtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=SiGJWTBW; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i88si4979444edd.322.2020.11.24.00.43.08; Tue, 24 Nov 2020 00:43:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-samsung-soc-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=@samsung.com header.s=mail20170921 header.b=SiGJWTBW; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730763AbgKXImG (ORCPT + 4 others); Tue, 24 Nov 2020 03:42:06 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54174 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730770AbgKXImC (ORCPT ); Tue, 24 Nov 2020 03:42:02 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20201124084151euoutp0117c603821d525c8e3e42904c02a6e578~KZQo40dwH2590525905euoutp01x for ; Tue, 24 Nov 2020 08:41:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20201124084151euoutp0117c603821d525c8e3e42904c02a6e578~KZQo40dwH2590525905euoutp01x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1606207311; bh=BRDBz/1PXQEFYqUjnMgE/6S1ClYJEu5jXDZwdIJ0phs=; h=From:To:Cc:Subject:Date:References:From; b=SiGJWTBWDag0j6twfemfnPJItDPRhNUhKyPG8m6HUY9IFsBe91AAn8HEWjznK0bly Sm1QX5lp/qy/rb7dpQuJfkQ3PyYXtlbrnZoHjSOga3uhrrEt1Z4UsNHSmG/+uqeEv/ 4GceH6mPpaUM3yHoK7vbpiBpH9ZpWaRoL0PP6gyk= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20201124084151eucas1p18e310da7b81e8d84bf5303fc04860561~KZQoqfchb2223222232eucas1p18; Tue, 24 Nov 2020 08:41:51 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 78.55.45488.F47CCBF5; Tue, 24 Nov 2020 08:41:51 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20201124084151eucas1p1040de475ecccbe9bff2d6bcac17e000d~KZQoZ1RCJ0675406754eucas1p1N; Tue, 24 Nov 2020 08:41:51 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201124084151eusmtrp14f981bf0bc44bfc9f7a00f9dc614bf39~KZQoZNEyJ0767707677eusmtrp1j; Tue, 24 Nov 2020 08:41:51 +0000 (GMT) X-AuditID: cbfec7f5-c5fff7000000b1b0-fc-5fbcc74f8307 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id C7.56.16282.F47CCBF5; Tue, 24 Nov 2020 08:41:51 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201124084150eusmtip262a0ce7d0d58dbc8401cc7a27394253e~KZQn5Mopk2307123071eusmtip2i; Tue, 24 Nov 2020 08:41:50 +0000 (GMT) From: Marek Szyprowski To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Mauro Carvalho Chehab , Hans Verkuil Subject: [PATCH] media: platform: s5p-mfc: properly assign device to both vb2 queues Date: Tue, 24 Nov 2020 09:41:43 +0100 Message-Id: <20201124084143.12545-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIIsWRmVeSWpSXmKPExsWy7djPc7r+x/fEG5z8L26xccZ6VotTk58x WZw/v4HdomfDVlaLGef3MVmsPXKX3WLZpj9MFu1PXzI7cHhsWtXJ5tG3ZRWjx+dNch6nvn5m D2CJ4rJJSc3JLEst0rdL4Mr48n0ie8Fl7orFv1YwNjC+4+xi5OSQEDCRuPH8PCOILSSwglHi xuQICPsLo8TRg/pdjFxA9mdGiZn3HrLANLTfa2WCSCxnlHh2+jsLhAPUsfTIAbAqNgFDia63 XWwgtoiAk8TCWX/ZQYqYBXqYJDbd2QK2T1ggTOL9ys1gRSwCqhJH73UxdzFycPAK2Erc7JaA 2CYvsXrDAWaQXgmBRg6JJbN/M0EkXCQW3j3KBmELS7w6voUdwpaROD25hwWioZlR4uG5tewQ Tg+jxOWmGYwQVdYSd879YgPZxiygKbF+lz5E2FHi8b+l7CBhCQE+iRtvBUHCzEDmpG3TmSHC vBIdbUIQ1WoSs46vg1t78MIlZgjbQ2L21MvMkGCMleg4f5ZpAqPcLIRdCxgZV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oYmZpYGppZmxkrivCZH1sQLCaQnlqRmp6YWpBbB9DFxcEo1 MHUunSa8cy3bu5YS4WWZhsGuV7Xkv+1/HHeJ3Ta+7nHw+pppvDsUNBc3i1zsn79pk7nTdhmD C4a/b7As+TzxUZTQUeO7HJVGtU//qOWY7D3dJ3xZYvvy607JOgxr6//83cJ379zGQwcd65f/ SMtamC/WkyhivZPdW/KKbIfHm62TInLVVQTMPLm/q6jmfzjFemN7URvzi0yVNfP79yfUPT/x YvKenc/Krjg7zWXVPOcuFp1Q+OCPX3jZ3sdh2jMYd7TsXnNonVBodaOhLseZV3V/t28MMzFP So1g8BL5Yum8tzTf9Gf8nbBln9M9LpxPV5Y9aLPhhcILFz7D1C5zMf7fO9hf5dw/Kc+/bP7R NCWW4oxEQy3mouJEAFZtEGnLAgAA X-CMS-MailID: 20201124084151eucas1p1040de475ecccbe9bff2d6bcac17e000d X-Msg-Generator: CA X-RootMTR: 20201124084151eucas1p1040de475ecccbe9bff2d6bcac17e000d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201124084151eucas1p1040de475ecccbe9bff2d6bcac17e000d References: Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Properly set device pointers in videobuf2 queues, so the videobuf2 debugging messages will be prefixed with the respective device name. Signed-off-by: Marek Szyprowski --- This patch was previously sent as part of "[PATCH v2 0/4] Exynos4 media drivers: adapt for the planned ARM IOMMU-DMA changes" patchset: https://lore.kernel.org/linux-samsung-soc/20200918144833.14618-1-m.szyprowski@samsung.com/ The IOMMU related changes are still under review, but this change is unrelated and it makes sense to aplly it separately. --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index eba2b9f040df..4e50c342b322 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c @@ -844,6 +844,7 @@ static int s5p_mfc_open(struct file *file) q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; q->drv_priv = &ctx->fh; q->lock = &dev->mfc_mutex; + q->dev = &dev->plat_dev->dev; if (vdev == dev->vfd_dec) { q->io_modes = VB2_MMAP; q->ops = get_dec_queue_ops(); @@ -871,6 +872,7 @@ static int s5p_mfc_open(struct file *file) q->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; q->drv_priv = &ctx->fh; q->lock = &dev->mfc_mutex; + q->dev = &dev->plat_dev->dev; if (vdev == dev->vfd_dec) { q->io_modes = VB2_MMAP; q->ops = get_dec_queue_ops();