Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp156040lfo; Wed, 25 May 2022 18:31:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqjlKSIkO5DoYjYNhcfn+fxB75tEcT/jhidEXhAryaOFAQR+zMn5ynjC1fzxfM/As7/0E/ X-Received: by 2002:a17:906:730b:b0:6fe:b3a0:1af2 with SMTP id di11-20020a170906730b00b006feb3a01af2mr23956333ejc.509.1653528663961; Wed, 25 May 2022 18:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653528663; cv=none; d=google.com; s=arc-20160816; b=ve1shLs5jS5DPWBKuxBUxx7x+KWsx0IT76S2oEVQoFxKGMK0humxA+CbxfWJ0DjgvI mNLT/qOXwUsiGcwvt3KLPtXlSneejRDQCoEE4MnfBY1f8Z/MPyty4i7ojVpGXCgneuA3 zqemMM8jkBtQTq59/E5Ztp48EyY99V8Z+43cUSa8Xlrkce9dTURDGzIPhSL9JKX0emS4 jafyaKDOrIrDbJax4a/Ey/R4vVryUsBT7owGOvQWtGZ9cowjdJgMbYPPWzjRZy6uw61X LRxpUpFnFfb7h+HZmdsaIyPhEqRV51sBgtM0tMG892CqueZM/9HdH1OmOzJeP84do25h vhuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ud1GnTW6uur6uOh3a4z6oYMM/iut6NQEmUoo2K41+8w=; b=OhqOK7J+UZr8A8jpc304o2vO++KLEU+LZfOVCo5BO3y2WKPe2CZJz9vtmRpmtKIjHU 2SBO6QG/f7bQzly1ChmKrkfMWjyeMBHypQmCnHdnTlf9jGW1uuDPCzsrWHnWRPHfS+y5 BScohTyTSapGnQyWTQkyeidKikNcrsxgjMuZ3FcqimCGTxxeAMKSkMr5jj6rUHtlykAg AoJe/djCDoeTbXMXRqRmlEXXKaaiJL/8DmDhLThsMtDwDKBIGeqzDZ/6tD9fUPKy3LYh uS+H9Tb/NiujPbMg5xIQcOrJ4GsM7g0KU9VLKE6T5yFZO015XZl+t/k+VLjsGAkx5kF4 kvqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TKqLUyTW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a170906850200b006fec719f47esi212120ejx.565.2022.05.25.18.30.37; Wed, 25 May 2022 18:31:03 -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 header.i=@intel.com header.s=Intel header.b=TKqLUyTW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbiEYOdE (ORCPT + 99 others); Wed, 25 May 2022 10:33:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231465AbiEYOdB (ORCPT ); Wed, 25 May 2022 10:33:01 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2F4DA76E9; Wed, 25 May 2022 07:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653489179; x=1685025179; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bCGZ5ZNajctbooEYiyVVpK96NPvsv5UbHP7Lrx6diLE=; b=TKqLUyTW1IM+va4DsYaRg0rC8M57RQD3ZI/ssodu+BC2KiasB/U1BDw7 b+2iNSj45i7YyW5VwVHvoOXjOBaU50/SqNolKonrmvSgCoc8lhInbQVsx 0/Vx51pVCSZu2wMulm6BpiCExAqHX6PVSU8ilxgVb2fGDWQxbxVhX1hHG QK1Q2VScz24OcY6XKdRudTqldVT0UdHP//bV3x1J5qe+Y+YFg8eD69p7b HZcOZJrPH6PFm+d9kBD6BKo9JyvHce2KBeZgnFXgZGGbvIA8sgyMUwbZy 88jIkf9SlINnCrifSaQtidGYhEwIkHNB5uZ3kt+XdIGsb7pq2blnb1aG6 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10358"; a="255891764" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="255891764" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 07:32:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="549045443" Received: from lkp-server01.sh.intel.com (HELO db63a1be7222) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 25 May 2022 07:32:56 -0700 Received: from kbuild by db63a1be7222 with local (Exim 4.95) (envelope-from ) id 1nts4F-00034G-U0; Wed, 25 May 2022 14:32:55 +0000 Date: Wed, 25 May 2022 22:32:12 +0800 From: kernel test robot To: Quentin Schulz 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 Subject: Re: [PATCH v4 2/4] media: ov5675: add device-tree support and support runtime PM Message-ID: <202205252218.mhWZtfwJ-lkp@intel.com> References: <20220525121240.1094792-2-foss+kernel@0leil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220525121240.1094792-2-foss+kernel@0leil.net> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE,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 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 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