All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v5 04/14] media: cadence: csi2rx: Add external DPHY support
Date: Sat, 01 Jan 2022 11:07:53 +0800	[thread overview]
Message-ID: <202201011112.jOhq9ZhX-lkp@intel.com> (raw)
In-Reply-To: <20211223191615.17803-5-p.yadav@ti.com>

[-- Attachment #1: Type: text/plain, Size: 3273 bytes --]

Hi Pratyush,

I love your patch! Yet something to improve:

[auto build test ERROR on media-tree/master]
[also build test ERROR on robh/for-next linus/master v5.16-rc7 next-20211224]
[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]

url:    https://github.com/0day-ci/linux/commits/Pratyush-Yadav/CSI2RX-support-on-J721E/20211224-031826
base:   git://linuxtv.org/media_tree.git master
config: i386-randconfig-a001-20220101 (https://download.01.org/0day-ci/archive/20220101/202201011112.jOhq9ZhX-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/c4496ba026bf59690831a4ece96bce5c10bde0bf
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Pratyush-Yadav/CSI2RX-support-on-J721E/20211224-031826
        git checkout c4496ba026bf59690831a4ece96bce5c10bde0bf
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   ld: drivers/media/platform/cadence/cdns-csi2rx.o: in function `csi2rx_configure_external_dphy':
>> drivers/media/platform/cadence/cdns-csi2rx.c:168: undefined reference to `phy_mipi_dphy_get_default_config'


vim +168 drivers/media/platform/cadence/cdns-csi2rx.c

   145	
   146	static int csi2rx_configure_external_dphy(struct csi2rx_priv *csi2rx)
   147	{
   148		union phy_configure_opts opts = { };
   149		struct phy_configure_opts_mipi_dphy *cfg = &opts.mipi_dphy;
   150		const struct csi2rx_fmt *fmt;
   151		s64 pixel_clock;
   152		int ret;
   153		u8 bpp;
   154		bool got_pm = true;
   155	
   156		fmt = csi2rx_get_fmt_by_code(csi2rx->fmt.code);
   157		bpp = fmt->bpp;
   158	
   159		/*
   160		 * Do not divide by the number of lanes here. That will be done by
   161		 * phy_mipi_dphy_get_default_config().
   162		 */
   163		pixel_clock = v4l2_get_link_freq(csi2rx->source_subdev->ctrl_handler,
   164						 1, 2);
   165		if (pixel_clock < 0)
   166			return pixel_clock;
   167	
 > 168		ret = phy_mipi_dphy_get_default_config(pixel_clock, bpp,
   169						       csi2rx->num_lanes, cfg);
   170		if (ret)
   171			return ret;
   172	
   173		ret = phy_pm_runtime_get_sync(csi2rx->dphy);
   174		if (ret == -ENOTSUPP)
   175			got_pm = false;
   176		else if (ret < 0)
   177			return ret;
   178	
   179		ret = phy_power_on(csi2rx->dphy);
   180		if (ret)
   181			goto out;
   182	
   183		ret = phy_configure(csi2rx->dphy, &opts);
   184		if (ret) {
   185			/* Can't do anything if it fails. Ignore the return value. */
   186			phy_power_off(csi2rx->dphy);
   187			goto out;
   188		}
   189	
   190	out:
   191		if (got_pm)
   192			phy_pm_runtime_put(csi2rx->dphy);
   193	
   194		return ret;
   195	}
   196	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

  parent reply	other threads:[~2022-01-01  3:07 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-23 19:16 [PATCH v5 00/14] CSI2RX support on J721E Pratyush Yadav
2021-12-23 19:16 ` [PATCH v5 01/14] media: cadence: csi2rx: Unregister v4l2 async notifier Pratyush Yadav
2021-12-23 19:16 ` [PATCH v5 02/14] media: cadence: csi2rx: Cleanup media entity properly Pratyush Yadav
2021-12-30  4:23   ` Laurent Pinchart
2021-12-23 19:16 ` [PATCH v5 03/14] media: cadence: csi2rx: Add get_fmt and set_fmt pad ops Pratyush Yadav
2021-12-30  4:32   ` Laurent Pinchart
2022-01-04  6:21     ` Pratyush Yadav
2021-12-23 19:16 ` [PATCH v5 04/14] media: cadence: csi2rx: Add external DPHY support Pratyush Yadav
2021-12-30  4:43   ` Laurent Pinchart
2022-01-01  3:07   ` kernel test robot [this message]
2021-12-23 19:16 ` [PATCH v5 05/14] media: cadence: csi2rx: Soft reset the streams before starting capture Pratyush Yadav
2021-12-23 19:16 ` [PATCH v5 06/14] media: cadence: csi2rx: Set the STOP bit when stopping a stream Pratyush Yadav
2021-12-23 19:16 ` [PATCH v5 07/14] media: cadence: csi2rx: Fix stream data configuration Pratyush Yadav
2021-12-23 19:16 ` [PATCH v5 08/14] media: cadence: csi2rx: Populate subdev devnode Pratyush Yadav
2021-12-23 19:16 ` [PATCH v5 09/14] media: cadence: csi2rx: Add link validation Pratyush Yadav
2021-12-30  4:47   ` Laurent Pinchart
2021-12-23 19:16 ` [PATCH v5 10/14] media: Re-structure TI platform drivers Pratyush Yadav
2021-12-23 19:16 ` [PATCH v5 11/14] media: ti: Add CSI2RX support for J721E Pratyush Yadav
2021-12-23 19:16 ` [PATCH v5 12/14] media: dt-bindings: Make sure items in data-lanes are unique Pratyush Yadav
2021-12-23 19:16 ` [PATCH v5 13/14] media: dt-bindings: Add DT bindings for TI J721E CSI2RX driver Pratyush Yadav
2021-12-23 19:16 ` [PATCH v5 14/14] media: dt-bindings: Convert Cadence CSI2RX binding to YAML Pratyush Yadav

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=202201011112.jOhq9ZhX-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.