From: kernel test robot <lkp@intel.com>
To: Dave Stevenson <dave.stevenson@raspberrypi.com>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
linux-media@vger.kernel.org, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev,
Dave Stevenson <dave.stevenson@raspberrypi.com>
Subject: Re: [PATCH 09/21] media: i2c: imx258: Add support for running on 2 CSI data lanes
Date: Wed, 31 May 2023 16:07:02 +0800 [thread overview]
Message-ID: <202305311525.0POx1Mzk-lkp@intel.com> (raw)
In-Reply-To: <20230530173000.3060865-10-dave.stevenson@raspberrypi.com>
Hi Dave,
kernel test robot noticed the following build errors:
[auto build test ERROR on media-tree/master]
[also build test ERROR on linus/master v6.4-rc4 next-20230531]
[cannot apply to robh/for-next 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/Dave-Stevenson/media-i2c-imx258-Remove-unused-defines/20230531-013342
base: git://linuxtv.org/media_tree.git master
patch link: https://lore.kernel.org/r/20230530173000.3060865-10-dave.stevenson%40raspberrypi.com
patch subject: [PATCH 09/21] media: i2c: imx258: Add support for running on 2 CSI data lanes
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20230531/202305311525.0POx1Mzk-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/e3fbe7eaf1c1b9f3b031308dbd3433a982bd3fe6
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Dave-Stevenson/media-i2c-imx258-Remove-unused-defines/20230531-013342
git checkout e3fbe7eaf1c1b9f3b031308dbd3433a982bd3fe6
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=m68k olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/media/i2c/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305311525.0POx1Mzk-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/media/i2c/imx258.c: In function 'imx258_probe':
>> drivers/media/i2c/imx258.c:1417:35: error: passing argument 1 of 'v4l2_fwnode_endpoint_free' from incompatible pointer type [-Werror=incompatible-pointer-types]
1417 | v4l2_fwnode_endpoint_free(&endpoint);
| ^~~~~~~~~
| |
| struct fwnode_handle **
In file included from drivers/media/i2c/imx258.c:13:
include/media/v4l2-fwnode.h:239:61: note: expected 'struct v4l2_fwnode_endpoint *' but argument is of type 'struct fwnode_handle **'
239 | void v4l2_fwnode_endpoint_free(struct v4l2_fwnode_endpoint *vep);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
vim +/v4l2_fwnode_endpoint_free +1417 drivers/media/i2c/imx258.c
1303
1304 static int imx258_probe(struct i2c_client *client)
1305 {
1306 struct imx258 *imx258;
1307 struct fwnode_handle *endpoint;
1308 struct v4l2_fwnode_endpoint ep = {
1309 .bus_type = V4L2_MBUS_CSI2_DPHY
1310 };
1311 int ret;
1312 u32 val = 0;
1313
1314 imx258 = devm_kzalloc(&client->dev, sizeof(*imx258), GFP_KERNEL);
1315 if (!imx258)
1316 return -ENOMEM;
1317
1318 ret = imx258_get_regulators(imx258, client);
1319 if (ret)
1320 return ret;
1321
1322 imx258->clk = devm_clk_get_optional(&client->dev, NULL);
1323 if (IS_ERR(imx258->clk))
1324 return dev_err_probe(&client->dev, PTR_ERR(imx258->clk),
1325 "error getting clock\n");
1326 if (!imx258->clk) {
1327 dev_dbg(&client->dev,
1328 "no clock provided, using clock-frequency property\n");
1329
1330 device_property_read_u32(&client->dev, "clock-frequency", &val);
1331 } else if (IS_ERR(imx258->clk)) {
1332 return dev_err_probe(&client->dev, PTR_ERR(imx258->clk),
1333 "error getting clock\n");
1334 } else {
1335 val = clk_get_rate(imx258->clk);
1336 }
1337
1338 switch (val) {
1339 case 19200000:
1340 imx258->link_freq_configs = link_freq_configs_19_2;
1341 imx258->link_freq_menu_items = link_freq_menu_items_19_2;
1342 break;
1343 case 24000000:
1344 imx258->link_freq_configs = link_freq_configs_24;
1345 imx258->link_freq_menu_items = link_freq_menu_items_24;
1346 break;
1347 default:
1348 dev_err(&client->dev, "input clock frequency of %u not supported\n",
1349 val);
1350 return -EINVAL;
1351 }
1352
1353 endpoint = fwnode_graph_get_next_endpoint(dev_fwnode(&client->dev), NULL);
1354 if (!endpoint) {
1355 dev_err(&client->dev, "Endpoint node not found\n");
1356 return -EINVAL;
1357 }
1358
1359 ret = v4l2_fwnode_endpoint_alloc_parse(endpoint, &ep);
1360 fwnode_handle_put(endpoint);
1361 if (ret == -ENXIO) {
1362 dev_err(&client->dev, "Unsupported bus type, should be CSI2\n");
1363 goto error_endpoint_poweron;
1364 } else if (ret) {
1365 dev_err(&client->dev, "Parsing endpoint node failed\n");
1366 goto error_endpoint_poweron;
1367 }
1368
1369 /* Get number of data lanes */
1370 imx258->nlanes = ep.bus.mipi_csi2.num_data_lanes;
1371 if (imx258->nlanes != 2 && imx258->nlanes != 4) {
1372 dev_err(&client->dev, "Invalid data lanes: %u\n",
1373 imx258->nlanes);
1374 ret = -EINVAL;
1375 goto error_endpoint_poweron;
1376 }
1377
1378 /* Initialize subdev */
1379 v4l2_i2c_subdev_init(&imx258->sd, client, &imx258_subdev_ops);
1380
1381 /* Will be powered off via pm_runtime_idle */
1382 ret = imx258_power_on(&client->dev);
1383 if (ret)
1384 goto error_endpoint_poweron;
1385
1386 /* Check module identity */
1387 ret = imx258_identify_module(imx258);
1388 if (ret)
1389 goto error_identify;
1390
1391 /* Set default mode to max resolution */
1392 imx258->cur_mode = &supported_modes[0];
1393
1394 ret = imx258_init_controls(imx258);
1395 if (ret)
1396 goto error_identify;
1397
1398 /* Initialize subdev */
1399 imx258->sd.internal_ops = &imx258_internal_ops;
1400 imx258->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
1401 imx258->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
1402
1403 /* Initialize source pad */
1404 imx258->pad.flags = MEDIA_PAD_FL_SOURCE;
1405
1406 ret = media_entity_pads_init(&imx258->sd.entity, 1, &imx258->pad);
1407 if (ret)
1408 goto error_handler_free;
1409
1410 ret = v4l2_async_register_subdev_sensor(&imx258->sd);
1411 if (ret < 0)
1412 goto error_media_entity;
1413
1414 pm_runtime_set_active(&client->dev);
1415 pm_runtime_enable(&client->dev);
1416 pm_runtime_idle(&client->dev);
> 1417 v4l2_fwnode_endpoint_free(&endpoint);
1418
1419 return 0;
1420
1421 error_media_entity:
1422 media_entity_cleanup(&imx258->sd.entity);
1423
1424 error_handler_free:
1425 imx258_free_controls(imx258);
1426
1427 error_identify:
1428 imx258_power_off(&client->dev);
1429
1430 error_endpoint_poweron:
1431 v4l2_fwnode_endpoint_free(&ep);
1432
1433 return ret;
1434 }
1435
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-05-31 8:07 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-30 17:29 [PATCH 00/21] imx258 improvements series Dave Stevenson
2023-05-30 17:29 ` [PATCH 01/21] media: i2c: imx258: Remove unused defines Dave Stevenson
2023-05-31 15:08 ` Jacopo Mondi
2023-05-30 17:29 ` [PATCH 02/21] media: i2c: imx258: Make image geometry meet sensor requirements Dave Stevenson
2023-05-31 15:09 ` Jacopo Mondi
2023-05-30 17:29 ` [PATCH 03/21] media: i2c: imx258: Disable digital cropping on binned modes Dave Stevenson
2023-05-31 15:02 ` Jacopo Mondi
2023-05-30 17:29 ` [PATCH 04/21] media: i2c: imx258: Remove redundant I2C writes Dave Stevenson
2023-05-31 15:10 ` Jacopo Mondi
2023-05-30 17:29 ` [PATCH 05/21] media: i2c: imx258: Add regulator control Dave Stevenson
2023-05-31 15:11 ` Jacopo Mondi
2023-05-31 15:26 ` Dave Stevenson
2023-05-30 17:29 ` [PATCH 06/21] media: i2c: imx258: Make V4L2_CID_VBLANK configurable Dave Stevenson
2023-05-31 15:16 ` Jacopo Mondi
2023-05-31 15:33 ` Dave Stevenson
2023-05-30 17:29 ` [PATCH 07/21] media: i2c: imx258: Split out common registers from the mode based ones Dave Stevenson
2023-05-31 15:26 ` Jacopo Mondi
2023-05-30 17:29 ` [PATCH 08/21] media: i2c: imx258: Add support for 24MHz clock Dave Stevenson
2023-06-02 12:59 ` Jacopo Mondi
2023-05-30 17:29 ` [PATCH 09/21] media: i2c: imx258: Add support for running on 2 CSI data lanes Dave Stevenson
2023-05-30 17:37 ` Dave Stevenson
2023-05-31 8:07 ` kernel test robot [this message]
2023-06-02 13:23 ` Jacopo Mondi
2023-06-02 17:46 ` Dave Stevenson
2023-05-30 17:29 ` [PATCH 10/21] media: i2c: imx258: Follow normal V4L2 behaviours for clipping exposure Dave Stevenson
2023-05-31 15:27 ` Jacopo Mondi
2023-05-30 17:29 ` [PATCH 11/21] media: i2c: imx258: Add get_selection for pixel array information Dave Stevenson
2023-06-02 13:24 ` Jacopo Mondi
2023-05-30 17:29 ` [PATCH 12/21] media: i2c: imx258: Allow configuration of clock lane behaviour Dave Stevenson
2023-06-02 13:26 ` Jacopo Mondi
2023-06-02 15:18 ` Dave Stevenson
2023-05-30 17:29 ` [PATCH 13/21] media: i2c: imx258: Correct max FRM_LENGTH_LINES value Dave Stevenson
2023-06-02 13:33 ` Jacopo Mondi
2023-05-30 17:29 ` [PATCH 14/21] media: i2c: imx258: Add support for long exposure modes Dave Stevenson
2023-06-02 13:38 ` Jacopo Mondi
2023-06-02 17:12 ` Dave Stevenson
2023-05-30 17:29 ` [PATCH 15/21] media: i2c: imx258: Issue reset before starting streaming Dave Stevenson
2023-06-02 13:42 ` Jacopo Mondi
2023-05-30 17:29 ` [PATCH 16/21] media: i2c: imx258: Set pixel_rate range to the same as the value Dave Stevenson
2023-06-02 13:44 ` Jacopo Mondi
2023-05-30 17:29 ` [PATCH 17/21] media: i2c: imx258: Support faster pixel rate on binned modes Dave Stevenson
2023-05-30 17:29 ` [PATCH 18/21] dt-bindings: media: imx258: Rename to include vendor prefix Dave Stevenson
2023-05-30 17:35 ` Conor Dooley
2023-05-30 17:29 ` [PATCH 19/21] dt-bindings: media: imx258: Add alternate compatible strings Dave Stevenson
2023-05-30 17:38 ` Conor Dooley
2023-05-30 17:48 ` Dave Stevenson
2023-05-30 19:36 ` Conor Dooley
2023-05-30 17:29 ` [PATCH 20/21] media: i2c: imx258: Change register settings for variants of the sensor Dave Stevenson
2023-06-02 13:48 ` Jacopo Mondi
2023-06-02 14:30 ` Dave Stevenson
2023-05-30 17:30 ` [PATCH 21/21] media: i2c: imx258: Make HFLIP and VFLIP controls writable Dave Stevenson
2023-06-02 13:58 ` Jacopo Mondi
2023-06-02 14:42 ` Dave Stevenson
2023-07-18 12:08 ` [PATCH 00/21] imx258 improvements series Arnaud Ferraris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202305311525.0POx1Mzk-lkp@intel.com \
--to=lkp@intel.com \
--cc=conor+dt@kernel.org \
--cc=dave.stevenson@raspberrypi.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh+dt@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).