Content-Type: multipart/mixed; boundary="===============3450755972226975527==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v6 13/15] media: ipu3-cio2: Defer probing until the PMIC is fully setup Date: Fri, 26 Nov 2021 05:31:21 +0800 Message-ID: <202111260530.KpKC5Rrw-lkp@intel.com> In-Reply-To: <20211125165412.535063-14-hdegoede@redhat.com> List-Id: --===============3450755972226975527== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Hans, I love your patch! Perhaps something to improve: [auto build test WARNING on media-tree/master] [also build test WARNING on wsa/i2c/for-next broonie-regulator/for-next lin= us/master v5.16-rc2 next-20211125] [cannot apply to clk/clk-next] [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/Hans-de-Goede/Add-support-= for-X86-ACPI-camera-sensor-PMIC-setup-with-clk-and-regulator-platform-data/= 20211126-005917 base: git://linuxtv.org/media_tree.git master config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20211126= /202111260530.KpKC5Rrw-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/0day-ci/linux/commit/e5cd2c79411cf24a2cabc5c7d= 2a222c1a3557460 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Hans-de-Goede/Add-support-for-X86-= ACPI-camera-sensor-PMIC-setup-with-clk-and-regulator-platform-data/20211126= -005917 git checkout e5cd2c79411cf24a2cabc5c7d2a222c1a3557460 # save the config file to linux build tree make W=3D1 ARCH=3Di386 = If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/media/pci/intel/ipu3/cio2-bridge.c:321:5: warning: no previous p= rototype for 'cio2_bridge_sensors_are_ready' [-Wmissing-prototypes] 321 | int cio2_bridge_sensors_are_ready(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/cio2_bridge_sensors_are_ready +321 drivers/media/pci/intel/ipu3/cio2-= bridge.c 308 = 309 /* 310 * The VCM cannot be probed until the PMIC is completely setup. We c= annot rely 311 * on -EPROBE_DEFER for this, since the consumer<->supplier relation= s between 312 * the VCM and regulators/clks are not described in ACPI, instead th= ey are 313 * passed as board-data to the PMIC drivers. Since -PROBE_DEFER does= not work 314 * for the clks/regulators the VCM i2c-clients must not be instantia= ted until 315 * the PMIC is fully setup. 316 * 317 * The sensor/VCM ACPI device has an ACPI _DEP on the PMIC, check th= is using the 318 * acpi_dev_ready_for_enumeration() helper, like the i2c-core-acpi c= ode does 319 * for the sensors. 320 */ > 321 int cio2_bridge_sensors_are_ready(void) 322 { 323 struct acpi_device *adev; 324 bool ready =3D true; 325 unsigned int i; 326 = 327 for (i =3D 0; i < ARRAY_SIZE(cio2_supported_sensors); i++) { 328 const struct cio2_sensor_config *cfg =3D 329 &cio2_supported_sensors[i]; 330 = 331 for_each_acpi_dev_match(adev, cfg->hid, NULL, -1) { 332 if (!adev->status.enabled) 333 continue; 334 = 335 if (!acpi_dev_ready_for_enumeration(adev)) 336 ready =3D false; 337 } 338 } 339 = 340 return ready; 341 } 342 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3450755972226975527==--