Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1006951rwb; Fri, 28 Jul 2023 03:22:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlGwLMAepr4BggInTdhKM8LGK8R4r4AKIY1Jdlnezyur/eyOAw/BLOTemcKOC1SQKIQVB9Q7 X-Received: by 2002:a05:6e02:def:b0:348:e714:5549 with SMTP id m15-20020a056e020def00b00348e7145549mr1924631ilj.18.1690539760019; Fri, 28 Jul 2023 03:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690539759; cv=none; d=google.com; s=arc-20160816; b=e4tTgq9+lwIyO0HMhMAV6WVHjHzWei+B07ph5QS0fYxWd+mB5OUmqFu2H4gpaMLzos EI3lRIAgWtKzamNgjiFuKKqsU3KN09qETo5eNMG2iC+ybHfapHGNLSClQ584+HbVspbr +ZZNVVCQehOzY2mOfxVD0AjT/DnY5+4UVY8mLHvxN1bKhFqSaYn4EUQoMdcV4ZUKd4C5 q8sB9BfYxI2TTkhD5homnl6CTT2pW9BA0YEHB8FwUIPLmA5GqaqTzVLhnQ+XphTRDisX MK1bLAQ/iE2xHPaUWcD2yM/n7ImDG3Wqn/2iMZpl47xqn01pg/pEOUchPxNPdaOi+yOb RZ5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gmjzd8cBYyXp6z596fB4qhrYHrtRhTDR+wiizUDR41k=; fh=fysfAs0B3EiZf7HAWwB4U18D2zn0LibZif1xJb5++E0=; b=yhCJQK9n7kEZzGRpOHbNnm6urfCT8D5TVkwcbNJO/JL4+GFIT8BTVI+yVIOxV7T3IS UQxA02NxUHdjLLOujINvF4GBjiFCCcpSZdKDs5+OpU0Stk5OzzIny4BUBTyoGkGC7f/9 6BczQFN3kk5K7pSHnuxJOp1zduGAIy7qgw24xAAg+bWW8RiAlk60RBxcMbRfGYS5nWiT j3MmS3DwoTiPyDfdbKfqVUweliqarM84rVrZ5yTkeHb+onCyZnfrtzEK8wcycxQsTyAi iJ2KL5Vox/p7iQhJrA4JyUJ9pX3zxlCDYZyfykYH8nRcZsuwK2YX7Z5tmpD0yzvzD5mJ HPDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=h7fqUqjj; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 91-20020a17090a09e400b00263f4166a0asi2960732pjo.48.2023.07.28.03.22.27; Fri, 28 Jul 2023 03:22:39 -0700 (PDT) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=h7fqUqjj; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234792AbjG1IS1 (ORCPT + 99 others); Fri, 28 Jul 2023 04:18:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234803AbjG1IRx (ORCPT ); Fri, 28 Jul 2023 04:17:53 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 268381BF4; Fri, 28 Jul 2023 01:17:51 -0700 (PDT) Received: from [192.168.1.108] (unknown [103.86.18.216]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A61028DA; Fri, 28 Jul 2023 10:16:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1690532208; bh=K7YpSXytgf5L+qYcFuRlbKHUV6MG1D33noUTvi8jI4M=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=h7fqUqjjzLS2AWYjIqijo2Boti1lF44IA362h2EJ7ARLsawbO9Pzk/EPWKk/E31p9 ZSAy4cWmAUaZ8C4FGeU2wXFFtTxP+Tc3NLfW26DlbCCUYwpInyviuI8L2KxyS9rWBY MEADY5qcwwrcgp1G3ouJFQS2RGDMvljvoOVt7Gbw= Message-ID: <1070170e-830c-4752-bad5-8f653ebd80a4@ideasonboard.com> Date: Fri, 28 Jul 2023 13:47:36 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 2/2] media: i2c: imx519: Support for the Sony IMX519 sensor To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Lee Jackson , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Hans Verkuil , Shawn Tu , Nicholas Roth , Mikhail Rudenko , kieran.bingham@ideasonboard.com, Marco Felsch , jacopo.mondi@ideasonboard.com References: <20230727154108.308320-3-umang.jain@ideasonboard.com> <202307281538.bqZ5kcV9-lkp@intel.com> Content-Language: en-US From: Umang Jain In-Reply-To: <202307281538.bqZ5kcV9-lkp@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 7/28/23 12:56 PM, kernel test robot wrote: > Hi Umang, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on media-tree/master] > [also build test ERROR on soc/for-next linus/master v6.5-rc3 next-20230727] > [cannot apply to sailus-media-tree/streams] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: https://github.com/intel-lab-lkp/linux/commits/Umang-Jain/media-dt-bindings-imx519-Add-IMX519-DT-bindings/20230727-234440 > base: git://linuxtv.org/media_tree.git master > patch link: https://lore.kernel.org/r/20230727154108.308320-3-umang.jain%40ideasonboard.com > patch subject: [PATCH 2/2] media: i2c: imx519: Support for the Sony IMX519 sensor > config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230728/202307281538.bqZ5kcV9-lkp@intel.com/config) > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > reproduce: (https://download.01.org/0day-ci/archive/20230728/202307281538.bqZ5kcV9-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202307281538.bqZ5kcV9-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > drivers/media/i2c/imx519.c: In function 'imx519_open': >>> drivers/media/i2c/imx519.c:1170:30: error: 'MEDIA_BUS_FMT_SENSOR_DATA' undeclared (first use in this function) This comes from the bcm2835-unicam for Rpi's that's being worked upon. And I was testing this driver on top of it. > 1170 | try_fmt_meta->code = MEDIA_BUS_FMT_SENSOR_DATA; > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/media/i2c/imx519.c:1170:30: note: each undeclared identifier is reported only once for each function it appears in > drivers/media/i2c/imx519.c: In function 'imx519_enum_mbus_code': > drivers/media/i2c/imx519.c:1319:30: error: 'MEDIA_BUS_FMT_SENSOR_DATA' undeclared (first use in this function) > 1319 | code->code = MEDIA_BUS_FMT_SENSOR_DATA; > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/media/i2c/imx519.c: In function 'imx519_enum_frame_size': > drivers/media/i2c/imx519.c:1346:34: error: 'MEDIA_BUS_FMT_SENSOR_DATA' undeclared (first use in this function) > 1346 | if (fse->code != MEDIA_BUS_FMT_SENSOR_DATA || fse->index > 0) > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/media/i2c/imx519.c: In function 'imx519_update_metadata_pad_format': > drivers/media/i2c/imx519.c:1382:28: error: 'MEDIA_BUS_FMT_SENSOR_DATA' undeclared (first use in this function) > 1382 | fmt->format.code = MEDIA_BUS_FMT_SENSOR_DATA; > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/media/i2c/imx519.c: In function 'imx519_get_pad_format': > drivers/media/i2c/imx519.c:1404:33: error: 'MEDIA_BUS_FMT_SENSOR_DATA' undeclared (first use in this function) > 1404 | MEDIA_BUS_FMT_SENSOR_DATA; > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > > > vim +/MEDIA_BUS_FMT_SENSOR_DATA +1170 drivers/media/i2c/imx519.c > > 1149 > 1150 static int imx519_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) > 1151 { > 1152 struct imx519 *imx519 = to_imx519(sd); > 1153 struct v4l2_mbus_framefmt *try_fmt_img = > 1154 v4l2_subdev_get_try_format(sd, fh->state, IMAGE_PAD); > 1155 struct v4l2_mbus_framefmt *try_fmt_meta = > 1156 v4l2_subdev_get_try_format(sd, fh->state, METADATA_PAD); > 1157 struct v4l2_rect *try_crop; > 1158 > 1159 mutex_lock(&imx519->mutex); > 1160 > 1161 /* Initialize try_fmt for the image pad */ > 1162 try_fmt_img->width = supported_modes_10bit[0].width; > 1163 try_fmt_img->height = supported_modes_10bit[0].height; > 1164 try_fmt_img->code = imx519_get_format_code(imx519); > 1165 try_fmt_img->field = V4L2_FIELD_NONE; > 1166 > 1167 /* Initialize try_fmt for the embedded metadata pad */ > 1168 try_fmt_meta->width = IMX519_EMBEDDED_LINE_WIDTH; > 1169 try_fmt_meta->height = IMX519_NUM_EMBEDDED_LINES; >> 1170 try_fmt_meta->code = MEDIA_BUS_FMT_SENSOR_DATA; > 1171 try_fmt_meta->field = V4L2_FIELD_NONE; > 1172 > 1173 /* Initialize try_crop */ > 1174 try_crop = v4l2_subdev_get_try_crop(sd, fh->state, IMAGE_PAD); > 1175 try_crop->left = IMX519_PIXEL_ARRAY_LEFT; > 1176 try_crop->top = IMX519_PIXEL_ARRAY_TOP; > 1177 try_crop->width = IMX519_PIXEL_ARRAY_WIDTH; > 1178 try_crop->height = IMX519_PIXEL_ARRAY_HEIGHT; > 1179 > 1180 mutex_unlock(&imx519->mutex); > 1181 > 1182 return 0; > 1183 } > 1184 >