Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp337707pxp; Wed, 9 Mar 2022 04:06:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCA60aFb2FqSEDins6tPNfp0Q58C1S/J3mwmhdL9C7IIuonpCeJ4S9H+fpy4dLeeffOEkW X-Received: by 2002:a05:6402:4252:b0:416:6cd8:e273 with SMTP id g18-20020a056402425200b004166cd8e273mr7842451edb.328.1646827619564; Wed, 09 Mar 2022 04:06:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646827619; cv=pass; d=google.com; s=arc-20160816; b=grQ7sQCZAx68+CBGc2UukIO/9RUl0+QVbSDkuSwWIqozky+ef4xtBm3a2njR+AO2zf s2OsbXRHZYGoLVvzwTVW/l8fqMAHuRz6vr4VW4+183N5HX2uQLHz7bvnrO+2Q5vqLeXM Lr3Rf8LnUQCS1oCGVv4c7kqY+WJ1fHAdLV4ALUZV3FRXOwdZyMbG6v6tIcbUQLmfiFNW Z7h5kWL4JW0qOQbDaXwdZZ2SMahi54FGO0awuHhnZOSu2Mq1bNoDJ4XtKcDVAWykoKYe UbKSMXiCJkQBtPtbqfjx+gBQcbdn0dfB7SSodrpXSfswdpWolYIKuolcKXgwggFeAEqa 8nUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=LL7lQVxPlbfbqMey7JFczo8/deyZ7JtYUShjct9bHw8=; b=nNGHsvfIraHLSer9m90DeUDKxigSrw3Vo5HK9mECo53gowltryWQNvOrZVQpgDgpYd kLl9/TdFvPDossQVtw2pcIxw4Cq+3CZWlf+ZSkmp328SZtkj5lhoUhH9/4O/5ztiXPZQ n11jF1Aq/+/rvZ8XXgCHPgdhQCjTqqK6bWqb9Bii/fKZvoADm+MwkA186rIWhvr1nvOI U1KQa8mgdxX6dia4Jq7h/Ano0spm2qzfBu7d701XfZMTi4oQoDc6Mgwi6qs3EstEMutU AYMidcdQhbGXvMc2948CgAhr3yXy/1yv5AmuaLO6e0vGUVU4hksD5Y4L730rEFiwFf/B bZaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=PCgFTaau; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020aa7cc18000000b00410b96067e0si1062527edt.446.2022.03.09.04.06.34; Wed, 09 Mar 2022 04:06:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=PCgFTaau; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232514AbiCIL4b (ORCPT + 99 others); Wed, 9 Mar 2022 06:56:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231710AbiCIL41 (ORCPT ); Wed, 9 Mar 2022 06:56:27 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2054.outbound.protection.outlook.com [40.107.20.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0005763BCC; Wed, 9 Mar 2022 03:55:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZAfWE9u8t6OavVZ6LDbRt8tA46+dflD8wsyMGUimUG8M5lC7u0Zgi9FYbgnN8xWpjIp7V7BuLWH1lWdjGLscNCeeX8pSaNTA3PTPu7YM2Bat4nF191UH6yM/PEgt77iND51NQp61Wa11gvxjRFBN7924iZ5/SASymFiwizRGskO/0DMy8WD+ZO6EfreBhSSlIfJhh+nh8YNU11g1Rgz3pC2uzMC8lQvFHunL66f8tGPhyXDzq68s82FytqI+IP+32KKltIaeKJ9wg09JgJnZnOc0TTa0sBHkBhzCf+NZgNvkjlArOtejnesP/QpLIMPfscejnrEgPyXa7f2fDKBblg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LL7lQVxPlbfbqMey7JFczo8/deyZ7JtYUShjct9bHw8=; b=PMnaKkN3XVz64Iqil9uSn3afZkuTBRP4VxHzan+cN2UYbnMW5L1Q/u+xmP5Ld8YyMTldufOi1tgv1XQnAakjV4iG1upLKX+LkBbFLfM8OpX9J+jref0osYSClVcXbKgTbf4pTPyPL/3riLil0cawbUh6+tQ9l5nlX6UJhbQwLFh4xbi3gEabBLNyYSYx6p4iaYUQOxm5FbhshGQL24U8vej/eckkAVYufMvN3D16jD6JPa6AoDiZFVfGeLrMGTU049sAu6O2RTNa8I1n6ARVs6zkfmHptzIMKN0BEG4uikANb4/OvngZx2iMA4QAFznnEHK1W+YcSI0YCHckJLDwqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LL7lQVxPlbfbqMey7JFczo8/deyZ7JtYUShjct9bHw8=; b=PCgFTaauB3DZNMdET9v+IlJPU0MIoBShr32JK9ugcweBku6BvJ0lzFSi3GbrMTqj4fMnGO5kpUQaZJ8XaSEEKx1F+QeC66bLRquSmyntnmn8g8iRPAsgY+VPAqYL+Q/Ow6YRf8d9z6P4soGjtEwkwuDrmtymOjU1vpnCVRGXzTA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR0402MB3902.eurprd04.prod.outlook.com (2603:10a6:803:22::27) by AM6PR04MB4613.eurprd04.prod.outlook.com (2603:10a6:20b:21::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.16; Wed, 9 Mar 2022 11:55:26 +0000 Received: from VI1PR0402MB3902.eurprd04.prod.outlook.com ([fe80::7075:9a92:d8b1:61cf]) by VI1PR0402MB3902.eurprd04.prod.outlook.com ([fe80::7075:9a92:d8b1:61cf%3]) with mapi id 15.20.5038.027; Wed, 9 Mar 2022 11:55:25 +0000 From: Laurentiu Palcu To: Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Mauro Carvalho Chehab , Rob Herring , Sakari Ailus Cc: Laurentiu Palcu , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] media: i2c: rdacm2x: properly set subdev entity function Date: Wed, 9 Mar 2022 13:55:06 +0200 Message-Id: <20220309115507.30019-1-laurentiu.palcu@oss.nxp.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain; charset="us-ascii" X-ClientProxiedBy: AM0PR08CA0030.eurprd08.prod.outlook.com (2603:10a6:208:d2::43) To VI1PR0402MB3902.eurprd04.prod.outlook.com (2603:10a6:803:22::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6bd87c81-553d-4e13-e662-08da01c3b2cc X-MS-TrafficTypeDiagnostic: AM6PR04MB4613:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4v3DGXiWpAwnbTRR+e/1ZtJ+lFRch1eV6AwU4Niigt72hg4o1RO/sOlMkpwFztwcHGyVzfFE57A+ZcEI9m9bTQ8UJ1+RPj41gCWJbW8oEIaEluOMdfOI31JDhuE+oXUCof2AK6of2kt2EDBf8/riE9GavJjLayAYN8yDWkQLFsvbLLHsq9U7aOX/nUuwixWQ0WC5I7DsIVs5f/LfFo1SoiH8TbGZbP3XYIeLS+v2VyF0rJljR7odT5pV1+7Kf1OCT4XAn4xkc5viIkr0rFchlnn8BK1RCBdKdwgUGRRqoeLj7OKgL72rSnPwhdwYrZLAue8+009WH0DE12CMV1Readxk7YuHUyD1YYd5XOcZeJEnqMzbRwrFQ6jPjJHRq1/GTOR5IVXBhTNW92MJGEqUV4eSY8NGxUgZrGDQb6/amkXZI5aS6NNTyKtnKlDXrKyn/F33X5Sg5GhBcIdKGg66dNUyRE5tDnCtjSj/rRsMLcKAB0NH6y2c9ND93FWxFANXGTDaWUmkA/UWYxxliqgUmTW/BBfNxzZFTDWtZwUNQ1mMXHt/CgAkuUtBKnoT9BYPT3IHKuIvdN7f9WlqGwe+O43CN6Q4ZSE+x1RXvjimWjfKAuIgK7LEdLL5nCln4xGW6FscQHKKkk471qxVlQkW70uu3rKOqHe0JGDX6tEr+ogWmHDEmayc73PxqZ9iQ05R911GU6peNHd4IvkwWVZ7hg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR0402MB3902.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(8676002)(110136005)(54906003)(4326008)(86362001)(186003)(2616005)(1076003)(5660300002)(52116002)(6666004)(7416002)(83380400001)(6506007)(38350700002)(6486002)(26005)(38100700002)(6512007)(66946007)(8936002)(66476007)(66556008)(498600001)(2906002)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?9GlZDZga8aYYfbxB0i7N1Q8d/1vFUHccKBiRvy1hxTQxS/j37mqfNeFCj44q?= =?us-ascii?Q?OTu9wRdZUZ4nrXlFoQOiASqZa5HvIil4xZ4zghBszE4TXMbIls+3QwQRCciO?= =?us-ascii?Q?X44ZR5CQkfWo88isB38N9YAlIvzAKkvqBF+nsUhzCEPgYEnFs78XgdCxoIlH?= =?us-ascii?Q?E5WQlhdiONMpADoSJ/aamn6oaB9GeFc56x63fy0jnxKDQUKfoRlKjCSp9Qes?= =?us-ascii?Q?mbRtGsS8qf2qKUu5MEupFov18pHaSVt7whdfpjjoBhiae0GMGxSsmV6R61Cg?= =?us-ascii?Q?zpzsh62N5gCm1cmMFxs1oJsk5kHK9WvszzUQW0GYAhGVUS3GzyOycAJtzEvl?= =?us-ascii?Q?Gl5+OM07Jk4CeS7mHdpDz9Rw8u3pkPCFTSrSJANaqg6Iq6yFDYq77vHmmIB3?= =?us-ascii?Q?DKPYfRBsy78M2whaFnMHoiMczN1zv9C9cSEKltiDYkYbV3tEZcnKvhvLcn9I?= =?us-ascii?Q?w/hIP/urP8Y5l79C8KnOYBgr7pSU/TNU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ascii?Q?PoIX4AR/EPYXsB3JmpF6B1W3xbcfCK7ZNO9OXDSTQDw16VLqTuItfzPd2h8H?= =?us-ascii?Q?x6JD/M3NTAtOxoT1YS94zomhMu8lE+/7JfhVgPnYMBUuhIOsmRyT5gg3S/ai?= =?us-ascii?Q?blucVohhIezs3nHEmaU7a7c0lWqPqugoDVj/kFkh23LU5DpN6+QZV+mEMO3v?= =?us-ascii?Q?gFcCpdC6Jqv+CXHBOD/nU1ihOhg6gxWnipve2zGg3wu+xJpeI1v0KV8HQkJM?= =?us-ascii?Q?aAr/RmIG3KKv6vxqeXGIIGI=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6bd87c81-553d-4e13-e662-08da01c3b2cc X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3902.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2022 11:55:25.8088 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uf2TS3sphp3u4HjruJ709hD/lY1KnkWbHePro8bppFNSfiY7JyVRlLO+9dyNWIc8uXoSVHSsyPdRKxYiG8C0pQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4613 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The subdevice entity function was left unset, which produces a warning when probing the device: mxc-md bus@58000000:camera: Entity type for entity rdacm20 19-0051 was not initialized! This patch will set entity function to MEDIA_ENT_F_CAM_SENSOR and leave flags unset. Fixes: 34009bffc1c6 ("media: i2c: Add RDACM20 driver") Fixes: a59f853b3b4b ("media: i2c: Add driver for RDACM21 camera module") Signed-off-by: Laurentiu Palcu --- Changes in v2: * leave entity flags unset; Cheers, Laurentiu drivers/media/i2c/rdacm20.c | 2 +- drivers/media/i2c/rdacm21.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/rdacm20.c b/drivers/media/i2c/rdacm20.c index 025a610de893..9c6f66cab564 100644 --- a/drivers/media/i2c/rdacm20.c +++ b/drivers/media/i2c/rdacm20.c @@ -611,7 +611,7 @@ static int rdacm20_probe(struct i2c_client *client) goto error_free_ctrls; dev->pad.flags = MEDIA_PAD_FL_SOURCE; - dev->sd.entity.flags |= MEDIA_ENT_F_CAM_SENSOR; + dev->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; ret = media_entity_pads_init(&dev->sd.entity, 1, &dev->pad); if (ret < 0) goto error_free_ctrls; diff --git a/drivers/media/i2c/rdacm21.c b/drivers/media/i2c/rdacm21.c index 12ec5467ed1e..ef31cf5f23ca 100644 --- a/drivers/media/i2c/rdacm21.c +++ b/drivers/media/i2c/rdacm21.c @@ -583,7 +583,7 @@ static int rdacm21_probe(struct i2c_client *client) goto error_free_ctrls; dev->pad.flags = MEDIA_PAD_FL_SOURCE; - dev->sd.entity.flags |= MEDIA_ENT_F_CAM_SENSOR; + dev->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; ret = media_entity_pads_init(&dev->sd.entity, 1, &dev->pad); if (ret < 0) goto error_free_ctrls; -- 2.17.1