Hi Kuogee,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20211207]
[cannot apply to drm/drm-next v5.16-rc4 v5.16-rc3 v5.16-rc2 v5.16-rc4]
[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/Kuogee-Hsieh/drm-msm-dp-do-not-i...
base: 04fe99a8d936d46a310ca61b8b63dc270962bf01
config: nios2-allyesconfig
(
https://download.01.org/0day-ci/archive/20211208/202112080809.Oa6u8ZGP-lk...)
compiler: nios2-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/0day-ci/linux/commit/3ff2f485db11cec5017de869d3c78c37f...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Kuogee-Hsieh/drm-msm-dp-do-not-initialize-phy-until-plugin-interrupt-received/20211208-024106
git checkout 3ff2f485db11cec5017de869d3c78c37f25215a4
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=nios2 SHELL=/bin/bash drivers/gpu/drm/msm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/msm/dp/dp_display.c: In function 'dp_display_host_init':
> drivers/gpu/drm/msm/dp/dp_display.c:403:14: warning: variable
'flip' set but not used [-Wunused-but-set-variable]
403 | bool
flip = false;
| ^~~~
vim +/flip +403 drivers/gpu/drm/msm/dp/dp_display.c
3ff2f485db11ce Kuogee Hsieh 2021-12-07 400
3ff2f485db11ce Kuogee Hsieh 2021-12-07 401 static void dp_display_host_init(struct
dp_display_private *dp)
c943b4948b5848 Chandan Uddaraju 2020-08-27 402 {
c943b4948b5848 Chandan Uddaraju 2020-08-27 @403 bool flip = false;
c943b4948b5848 Chandan Uddaraju 2020-08-27 404
601f0479c58360 Maitreyee Rao 2021-07-26 405
DRM_DEBUG_DP("core_initialized=%d\n", dp->core_initialized);
c943b4948b5848 Chandan Uddaraju 2020-08-27 406 if (dp->core_initialized) {
c943b4948b5848 Chandan Uddaraju 2020-08-27 407 DRM_DEBUG_DP("DP core already
initialized\n");
c943b4948b5848 Chandan Uddaraju 2020-08-27 408 return;
c943b4948b5848 Chandan Uddaraju 2020-08-27 409 }
c943b4948b5848 Chandan Uddaraju 2020-08-27 410
c943b4948b5848 Chandan Uddaraju 2020-08-27 411 if (dp->usbpd->orientation ==
ORIENTATION_CC2)
c943b4948b5848 Chandan Uddaraju 2020-08-27 412 flip = true;
c943b4948b5848 Chandan Uddaraju 2020-08-27 413
3ff2f485db11ce Kuogee Hsieh 2021-12-07 414 dp_power_init(dp->power, false);
3ff2f485db11ce Kuogee Hsieh 2021-12-07 415 dp_ctrl_irq_enable(dp->ctrl);
3ff2f485db11ce Kuogee Hsieh 2021-12-07 416
3ff2f485db11ce Kuogee Hsieh 2021-12-07 417 /*
3ff2f485db11ce Kuogee Hsieh 2021-12-07 418 * eDP is the embedded primary display
and has its own phy
3ff2f485db11ce Kuogee Hsieh 2021-12-07 419 * initialize phy immediately
3ff2f485db11ce Kuogee Hsieh 2021-12-07 420 */
3ff2f485db11ce Kuogee Hsieh 2021-12-07 421 if (dp->dp_display.connector_type ==
DRM_MODE_CONNECTOR_eDP)
3ff2f485db11ce Kuogee Hsieh 2021-12-07 422 dp_display_host_phy_init(dp);
3ff2f485db11ce Kuogee Hsieh 2021-12-07 423
c943b4948b5848 Chandan Uddaraju 2020-08-27 424 dp_aux_init(dp->aux);
c943b4948b5848 Chandan Uddaraju 2020-08-27 425 dp->core_initialized = true;
c943b4948b5848 Chandan Uddaraju 2020-08-27 426 }
c943b4948b5848 Chandan Uddaraju 2020-08-27 427
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org