From patchwork Fri Sep 18 14:48:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 313200 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp1400211ilg; Fri, 18 Sep 2020 07:48:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+0OQKJdoHIjNen8CedFHwEP40F8d9XwlLP3ZCskNH/KPIbtHb9KGml+2JA8Ihw7X9Sty5 X-Received: by 2002:a50:cc9a:: with SMTP id q26mr40326792edi.64.1600440537726; Fri, 18 Sep 2020 07:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600440537; cv=none; d=google.com; s=arc-20160816; b=lSowaw4Xb75W8IKBqfLJXZbLvgnW5N5d6OmnVYwTt/0y/aEmg1RBXFDuDtTLFMrd8j Tu9O2LJhK5c/t+KrODqTH4LFsv9mmtkfsfsutk6HhvatWNuggKWTQ1ZvgnjbRZrjiL5J BloDYO9er04CYR7yiH6QWmG31jZWfgMnUdjfXTGxisQutzDHUM0lQhAbe/5vUcv037O0 +t01H0XagvvBOFwCj0cIb2jj5gtDfISp41WH9bXMR2UY6DQaJAeovpsjLtBj/W8Yy49K aVhJQgbvqf7MMllitm4l/QyLzE91xhFbKh7jzSRaLkg3LIfTJCDcMRgeWIw+p80VbOCh DfHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=IiawuiQon3bMj9SyrhlKvNiI0k+pbXtLPi/hSaefohU=; b=Y6KtftXti7wUaQrSPxIL9rDScs/cDLAUuWj04UiYdActM4c61juZGgrba98AKfFTAt e+SLfWE3u0xKEHGE8Z5RQALLGdto6BIP0NvLBdqQEoPdaa4ltFXdD0UUsgdAV+0q06L2 yT4bdWcXFHgPQUCmHqGDhhnd1zITORl2UPLq4EwLMKXE5rxnC28Wxp7I5k3Te4qB3CJm EzDJrTp731reo8FOsbVIbRApKOy+VPlzB4dsOQ4IAhBHiT2Q9n4Xoj/lmOnYZc7Xq87b bLQG0uFLEcR55K3JnUmwrqA+80e5pFqiNUe8x9uvQ/PCnsGGLmEBXRa4fnznozDaZT2X FChQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hATTHYgM; 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 pw5si2411330ejb.513.2020.09.18.07.48.57; Fri, 18 Sep 2020 07:48:57 -0700 (PDT) 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=hATTHYgM; 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 S1726461AbgIROs4 (ORCPT + 4 others); Fri, 18 Sep 2020 10:48:56 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44504 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726273AbgIROs4 (ORCPT ); Fri, 18 Sep 2020 10:48:56 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200918144854euoutp0295d1c921358f063583d415bfb307669a~16C-e7-Dh2946929469euoutp02i for ; Fri, 18 Sep 2020 14:48:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200918144854euoutp0295d1c921358f063583d415bfb307669a~16C-e7-Dh2946929469euoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600440534; bh=IiawuiQon3bMj9SyrhlKvNiI0k+pbXtLPi/hSaefohU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hATTHYgMh3imV+3bwvMMAhduTGCmuogeli26zojVAwtxc7/GL8OhB6aL29CQxiazs gDMqq9tIqPoKB5sIiiSozYFJF2IEUN5753cUQF4/NEJjMA9jV7pGWI6nt6IwTpLfyN iWbfvKDjWZ90qYAAXwsa7YuqWSUgy/Or7qFWK7e0= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200918144854eucas1p1298290dbd811fcf2d45b88241bba6aca~16C_0FF3p1092510925eucas1p1Y; Fri, 18 Sep 2020 14:48:54 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id AF.30.06456.6D8C46F5; Fri, 18 Sep 2020 15:48:54 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200918144853eucas1p262f37bb7353e97bacfd2df2449622bef~16C_Yz5jl3250032500eucas1p2d; Fri, 18 Sep 2020 14:48:53 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200918144853eusmtrp118679cc76acb9f08e145fc11da5fb361~16C_YSjI31892418924eusmtrp1C; Fri, 18 Sep 2020 14:48:53 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-16-5f64c8d6ea73 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 39.2E.06314.5D8C46F5; Fri, 18 Sep 2020 15:48:53 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200918144853eusmtip1568b4f3f1bf310b2acc54f09d1a59d19~16C94MclU1559115591eusmtip1b; Fri, 18 Sep 2020 14:48:53 +0000 (GMT) From: Marek Szyprowski To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Robin Murphy , Bartlomiej Zolnierkiewicz , Mauro Carvalho Chehab , Tomasz Figa Subject: [PATCH v2 3/4] media: platform: s5p-mfc: properly assign device to both vb2 queues Date: Fri, 18 Sep 2020 16:48:32 +0200 Message-Id: <20200918144833.14618-4-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200918144833.14618-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphleLIzCtJLcpLzFFi42LZduzned1rJ1LiDc5vZbfYOGM9q8X58xvY LXo2bGW1mHF+H5PF2iN32S2WbfrDZHHwwxNWi/anL5ktPrf+Y3Pg9Fgzbw2jx+yGiywem1Z1 snn0bVnF6PF5k1wAaxSXTUpqTmZZapG+XQJXxuzLa1kK3nBUzFq2haWBcRd7FyMnh4SAicSx DzeYuhi5OIQEVjBKfJq6jBEkISTwhVFi2+VECPszo0TDFwOYhkmPPkA1LGeU2DPhBAuEA9Qw 8+cTVpAqNgFDia63XWwgtoiAk8TCWX/ZQYqYBTYxSex6A9LOySEsECuxfcZRsHUsAqoSm8+/ B4pzcPAK2ErsuScOsU1eYvWGA8wgYU4BO4mrTZYgYyQE/rNJdD7pZ4OocZGY+ushI4QtLPHq +Bao12QkTk/uYYFoaGaUeHhuLTuE08MocblpBlSHtcSdc7/YQDYwC2hKrN+lDxF2lPh6cjc7 SFhCgE/ixltBkDAzkDlp23RmiDCvREebEES1msSs4+vg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avczNiwOHZJo20WXnbvXj5zfcDXLpV4J/tnjvvmIzk2R9fouGzMfNlWfOQ+ x6NGh1kxLJKsK4X1j02f8De0IXb//Z1Hr9505Vr4+ZJVcvI+t4SwgqthYvuZnjU6WO09w8Z/ xkI5eP66VbqPHlXorL6mxFKckWioxVxUnAgAaLvFgXgCAAA= X-CMS-MailID: 20200918144853eucas1p262f37bb7353e97bacfd2df2449622bef X-Msg-Generator: CA X-RootMTR: 20200918144853eucas1p262f37bb7353e97bacfd2df2449622bef X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200918144853eucas1p262f37bb7353e97bacfd2df2449622bef References: <20200918144833.14618-1-m.szyprowski@samsung.com> 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 --- 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();