[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dceac1a6-25bf-4d04-a049-4c67846027f2@moroto.mountain>
Date: Fri, 21 Jun 2024 09:45:24 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: oe-kbuild@...ts.linux.dev, Hironori KIKUCHI <kikuchan98@...il.com>,
linux-kernel@...r.kernel.org
Cc: lkp@...el.com, oe-kbuild-all@...ts.linux.dev,
Hironori KIKUCHI <kikuchan98@...il.com>,
Jagan Teki <jagan@...rulasolutions.com>,
Neil Armstrong <neil.armstrong@...aro.org>,
Jessica Zhang <quic_jesszhan@...cinc.com>,
Sam Ravnborg <sam@...nborg.org>, David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, dri-devel@...ts.freedesktop.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH v1 2/3] drm/panel: st7701: Add support for SPI for
configuration
Hi Hironori,
kernel test robot noticed the following build warnings:
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Hironori-KIKUCHI/dt-bindings-display-st7701-Add-Anbernic-RG28XX-panel/20240618-161849
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20240618081515.1215552-3-kikuchan98%40gmail.com
patch subject: [PATCH v1 2/3] drm/panel: st7701: Add support for SPI for configuration
config: i386-randconfig-141-20240621 (https://download.01.org/0day-ci/archive/20240621/202406210841.Q17G5ISz-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Reported-by: Dan Carpenter <dan.carpenter@...aro.org>
| Closes: https://lore.kernel.org/r/202406210841.Q17G5ISz-lkp@intel.com/
smatch warnings:
drivers/gpu/drm/panel/panel-sitronix-st7701.c:1076 st7701_dsi_probe() warn: passing zero to 'dev_err_probe'
vim +/dev_err_probe +1076 drivers/gpu/drm/panel/panel-sitronix-st7701.c
433b7d46874577 Hironori KIKUCHI 2024-06-18 1062 static int st7701_dsi_probe(struct mipi_dsi_device *dsi)
433b7d46874577 Hironori KIKUCHI 2024-06-18 1063 {
433b7d46874577 Hironori KIKUCHI 2024-06-18 1064 struct st7701 *st7701;
433b7d46874577 Hironori KIKUCHI 2024-06-18 1065 int err;
433b7d46874577 Hironori KIKUCHI 2024-06-18 1066
433b7d46874577 Hironori KIKUCHI 2024-06-18 1067 err = st7701_probe(&dsi->dev, DRM_MODE_CONNECTOR_DSI);
433b7d46874577 Hironori KIKUCHI 2024-06-18 1068 if (err)
433b7d46874577 Hironori KIKUCHI 2024-06-18 1069 return err;
433b7d46874577 Hironori KIKUCHI 2024-06-18 1070
433b7d46874577 Hironori KIKUCHI 2024-06-18 1071 st7701 = dev_get_drvdata(&dsi->dev);
849b2e3ff96982 Jagan Teki 2019-01-25 1072 st7701->dsi = dsi;
433b7d46874577 Hironori KIKUCHI 2024-06-18 1073 st7701->write_command = st7701_dsi_write;
849b2e3ff96982 Jagan Teki 2019-01-25 1074
433b7d46874577 Hironori KIKUCHI 2024-06-18 1075 if (!st7701->desc->lanes)
433b7d46874577 Hironori KIKUCHI 2024-06-18 @1076 return dev_err_probe(&dsi->dev, err, "This panel is not for MIPI DSI\n");
^^^
-EINVAL?
433b7d46874577 Hironori KIKUCHI 2024-06-18 1077
433b7d46874577 Hironori KIKUCHI 2024-06-18 1078 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
433b7d46874577 Hironori KIKUCHI 2024-06-18 1079 MIPI_DSI_MODE_LPM | MIPI_DSI_CLOCK_NON_CONTINUOUS;
433b7d46874577 Hironori KIKUCHI 2024-06-18 1080 dsi->format = st7701->desc->format;
433b7d46874577 Hironori KIKUCHI 2024-06-18 1081 dsi->lanes = st7701->desc->lanes;
433b7d46874577 Hironori KIKUCHI 2024-06-18 1082
433b7d46874577 Hironori KIKUCHI 2024-06-18 1083 mipi_dsi_set_drvdata(dsi, st7701);
433b7d46874577 Hironori KIKUCHI 2024-06-18 1084
433b7d46874577 Hironori KIKUCHI 2024-06-18 1085 err = mipi_dsi_attach(dsi);
433b7d46874577 Hironori KIKUCHI 2024-06-18 1086 if (err)
433b7d46874577 Hironori KIKUCHI 2024-06-18 1087 return dev_err_probe(&dsi->dev, err, "Failed to init MIPI DSI\n");
c62102165dd792 Marek Vasut 2022-10-15 1088
c62102165dd792 Marek Vasut 2022-10-15 1089 return 0;
433b7d46874577 Hironori KIKUCHI 2024-06-18 1090 }
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists