devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Quentin Schulz <foss+kernel@0leil.net>
Cc: kbuild-all@lists.01.org, shawnx.tu@intel.com, mchehab@kernel.org,
	robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, foss+kernel@0leil.net,
	Quentin Schulz <quentin.schulz@theobroma-systems.com>
Subject: Re: [PATCH v4 2/4] media: ov5675: add device-tree support and support runtime PM
Date: Wed, 25 May 2022 22:32:12 +0800	[thread overview]
Message-ID: <202205252218.mhWZtfwJ-lkp@intel.com> (raw)
In-Reply-To: <20220525121240.1094792-2-foss+kernel@0leil.net>

Hi Quentin,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on media-tree/master]
[also build test WARNING on robh/for-next v5.18 next-20220525]
[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/intel-lab-lkp/linux/commits/Quentin-Schulz/media-dt-bindings-ov5675-document-YAML-binding/20220525-201607
base:   git://linuxtv.org/media_tree.git master
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220525/202205252218.mhWZtfwJ-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel-lab-lkp/linux/commit/66ceb2ca2f2882f78a14838931faace1ac74d812
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Quentin-Schulz/media-dt-bindings-ov5675-document-YAML-binding/20220525-201607
        git checkout 66ceb2ca2f2882f78a14838931faace1ac74d812
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 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>

All warnings (new ones prefixed by >>):

   drivers/media/i2c/ov5675.c: In function 'ov5675_power_on':
>> drivers/media/i2c/ov5675.c:1007:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
    1007 |         u32 delay_us = DIV_ROUND_UP(8192, OV5675_XVCLK_19_2 / 1000 / 1000);
         |         ^~~


vim +1007 drivers/media/i2c/ov5675.c

   978	
   979	static int ov5675_power_on(struct device *dev)
   980	{
   981		struct v4l2_subdev *sd = dev_get_drvdata(dev);
   982		struct ov5675 *ov5675 = to_ov5675(sd);
   983		int ret;
   984	
   985		ret = clk_prepare_enable(ov5675->xvclk);
   986		if (ret < 0) {
   987			dev_err(dev, "failed to enable xvclk: %d\n", ret);
   988			return ret;
   989		}
   990	
   991		gpiod_set_value_cansleep(ov5675->reset_gpio, 1);
   992	
   993		ret = regulator_bulk_enable(OV5675_NUM_SUPPLIES, ov5675->supplies);
   994		if (ret) {
   995			clk_disable_unprepare(ov5675->xvclk);
   996			return ret;
   997		}
   998	
   999		/* Reset pulse should be at least 2ms and reset gpio released only once
  1000		 * regulators are stable.
  1001		 */
  1002		usleep_range(2000, 2200);
  1003	
  1004		gpiod_set_value_cansleep(ov5675->reset_gpio, 0);
  1005	
  1006		/* 8192 xvclk cycles prior to the first SCCB transation */
> 1007		u32 delay_us = DIV_ROUND_UP(8192, OV5675_XVCLK_19_2 / 1000 / 1000);
  1008	
  1009		usleep_range(delay_us, delay_us * 2);
  1010	
  1011		return 0;
  1012	}
  1013	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

  reply	other threads:[~2022-05-25 14:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-25 12:12 [PATCH v4 1/4] media: dt-bindings: ov5675: document YAML binding Quentin Schulz
2022-05-25 12:12 ` [PATCH v4 2/4] media: ov5675: add device-tree support and support runtime PM Quentin Schulz
2022-05-25 14:32   ` kernel test robot [this message]
2022-05-25 12:12 ` [PATCH v4 3/4] media: i2c: ov5675: parse and register V4L2 device tree properties Quentin Schulz
2022-05-25 12:12 ` [PATCH v4 4/4] media: i2c: ov5675: add .get_selection support Quentin Schulz

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=202205252218.mhWZtfwJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devicetree@vger.kernel.org \
    --cc=foss+kernel@0leil.net \
    --cc=kbuild-all@lists.01.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=quentin.schulz@theobroma-systems.com \
    --cc=robh+dt@kernel.org \
    --cc=shawnx.tu@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).