Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1257812ybt; Tue, 7 Jul 2020 11:09:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIu14oxX7cl/1JJRzPgzV99RidNwysn7xOnKS2IX9jNeY6MSx1VhD9nGL1Gl6IzLg6bKhg X-Received: by 2002:a50:f149:: with SMTP id z9mr63880346edl.167.1594145391647; Tue, 07 Jul 2020 11:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594145391; cv=none; d=google.com; s=arc-20160816; b=1FNiURFMb/QDzgD7oWDiWrDGkrqSSmdcZDzw6Ztr12HFnRKDsECuMbE3JDIySzSfbM AqIk/CLquO7OxQ4tbkn8HrrHCguO4+dUXXdBkkS6wFDYttCO2lw4u+T6VtHyIF/JLAbn SN6Gyq4S4wqBGxlFzGbSZkXlNt43Hiukj56yv9QsHZrORNJf9IxMQ5BcuBYyf3uAKECd 3szzmPBil3Gam/oTo1VLtqYnWKdmbDfPMkb+aVwWOIaKQ67Ux5+SmHIoh4VbEsK+3r9P L4n+eZkTN5ebPpb8S4NUL3YZNvwiQ87dMEn37HxUTR+iwlhuSTXYyssNVPEmkfqPV3I9 HclA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0m2aoBIP5GJAb10zyANIdy2YC3UULtv1aWEwGmldE04=; b=Q1N2RzWY6gWaCsb8NEPKh9s8CIxMw1khd2EjLuW+dq3xAiF/KH8MzuR5ufWVZDpwSu jSc8cc6lnTK3EX5uGaw7MHX4U5px3oytiJwoM7+4S0gMXK9yeDzS6zjrN+p26RkyGTSl Tv2vJvz1eusmKmoySpef9HlxZD7czGrQYsNGzZR6x6Dp5Qw6goMkPnz06svIoP5Yincn EGotpLws3O/cjwnWgfxF8+Vrk6b6i9GRhOzSxuKUn4le801kCP96NpVIXdnj9iFIbUqd nmxFot4rDrzc1C0UhjVkAODcw2lwo9+DJj0Cu+KyXnRN4Gl+n1F1a71fHl4vdBSLJkH6 yjpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JSXqRKqz; 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 bl24si15092025ejb.602.2020.07.07.11.09.27; Tue, 07 Jul 2020 11:09:51 -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=JSXqRKqz; 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 S1728290AbgGGSJV (ORCPT + 99 others); Tue, 7 Jul 2020 14:09:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728246AbgGGSJU (ORCPT ); Tue, 7 Jul 2020 14:09:20 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DB99C08C5E1 for ; Tue, 7 Jul 2020 11:09:20 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id f2so18229206wrp.7 for ; Tue, 07 Jul 2020 11:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0m2aoBIP5GJAb10zyANIdy2YC3UULtv1aWEwGmldE04=; b=JSXqRKqzNi8wby85ZOPYM8+WlbCbPrGifr8g3X3OVWXFVbASCxiEVbote2kigrv8wv JQD7OBWXUBKKot5/flogEoaBHkhPsvwOwkfD207E+UwGA7Miz0eMQoJ7zQzwhPL61Rre EuI9y+FhVrM1NKYullsJN25lGamvzcwlqp6z4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0m2aoBIP5GJAb10zyANIdy2YC3UULtv1aWEwGmldE04=; b=kW/rG5Xvt8/UdIcYp5fEtQeIYReUD8k+rgkHoe+Dq1n2d7UqXf8VMuyROepdGB0kRb rCR/CfIga3LxsKhArxtwXo6hd6RrUcC3MuhhNFuvL4a254Zlf6JxsW8qX4zMQQxSh1wz uAnyAryZsHhc71gzovJZSak/3ysDcwKvwHj4WUBGWmY2F/pz/u6ofMzF3fR/xMSS2Q8v kUZ1ko6mGCPABWdeiCO7Cl9hCa34fb9z4j46y71pIBBsmjv7Ar8pKQlLKvaXpxcm5d75 zhDJ/L3C8Lb5liENCUOHT7lkuF8LBAo7sdzRn3C161dakRELZK3RFyQAShl/8PsOpYzQ d4xg== X-Gm-Message-State: AOAM532XJLu1VsXWO/X6tdEYyxH59NiiQ2WRg9Y70WRwZLRjFxI6Sbw9 CRPFR7esQkqXZ1RXWvPR2gOY6Q== X-Received: by 2002:a5d:664a:: with SMTP id f10mr54971954wrw.300.1594145359012; Tue, 07 Jul 2020 11:09:19 -0700 (PDT) Received: from chromium.org (205.215.190.35.bc.googleusercontent.com. [35.190.215.205]) by smtp.gmail.com with ESMTPSA id v12sm2026423wrt.31.2020.07.07.11.09.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 11:09:18 -0700 (PDT) Date: Tue, 7 Jul 2020 18:09:17 +0000 From: Tomasz Figa To: Jonathan Bakker Cc: kyungmin.park@samsung.com, s.nawrocki@samsung.com, mchehab@kernel.org, kgene@kernel.org, krzk@kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/11] media: exynos4-is: Correct missing entity function initialization Message-ID: <20200707180917.GD2621465@chromium.org> References: <20200426022650.10355-1-xc-racer2@live.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jonathan, On Sat, Apr 25, 2020 at 07:26:43PM -0700, Jonathan Bakker wrote: > Commit bae4500399c4 ("[media] exynos4-is: Add missing entity function > initialization") tried to suppress the warnings such as > > s5p-fimc-md camera: Entity type for entity FIMC.0 was not initialized! > > However, this didn't work in all cases. Correct this by calling the set > function earlier. > > Fixes: bae4500399c4 ("exynos4-is: Add missing entity function initialization") > Signed-off-by: Jonathan Bakker > --- > drivers/media/platform/exynos4-is/fimc-capture.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thank you for the patch. Please see my comments inline. > diff --git a/drivers/media/platform/exynos4-is/fimc-capture.c b/drivers/media/platform/exynos4-is/fimc-capture.c > index 705f182330ca..86c233e2f2c9 100644 > --- a/drivers/media/platform/exynos4-is/fimc-capture.c > +++ b/drivers/media/platform/exynos4-is/fimc-capture.c > @@ -1799,7 +1799,6 @@ static int fimc_register_capture_device(struct fimc_dev *fimc, > vid_cap->wb_fmt.code = fmt->mbus_code; > > vid_cap->vd_pad.flags = MEDIA_PAD_FL_SINK; > - vfd->entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER; Isn't vfd->entity above a different entity than sd->entity below? If so, this line must stay. > ret = media_entity_pads_init(&vfd->entity, 1, &vid_cap->vd_pad); > if (ret) > goto err_free_ctx; > @@ -1898,6 +1897,7 @@ int fimc_initialize_capture_subdev(struct fimc_dev *fimc) > return ret; > > sd->entity.ops = &fimc_sd_media_ops; > + sd->entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER; My understanding is that this is the capture subdev and not the scaler. Looking at the other drivers, MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER could be the right function to use here. Best regards, Tomasz