All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: Re: [PATCH 3/3] drm/panel: add Fitipower EK79007AD3 panel driver
Date: Fri, 25 Oct 2024 22:25:17 +0800	[thread overview]
Message-ID: <202410252201.QglvauIC-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20241023124411.1153552-3-r.czerwinski@pengutronix.de>
References: <20241023124411.1153552-3-r.czerwinski@pengutronix.de>
TO: Rouven Czerwinski <r.czerwinski@pengutronix.de>
TO: Jessica Zhang <quic_jesszhan@quicinc.com>
TO: Sam Ravnborg <sam@ravnborg.org>
TO: linux-kernel@vger.kernel.org
TO: dri-devel@lists.freedesktop.org
CC: kernel@pengutronix.de
CC: Rouven Czerwinski <r.czerwinski@pengutronix.de>
CC: Neil Armstrong <neil.armstrong@linaro.org>
CC: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
CC: Maxime Ripard <mripard@kernel.org>
CC: Thomas Zimmermann <tzimmermann@suse.de>
CC: David Airlie <airlied@gmail.com>
CC: Daniel Vetter <daniel@ffwll.ch>

Hi Rouven,

kernel test robot noticed the following build warnings:

[auto build test WARNING on c2ee9f594da826bea183ed14f2cc029c719bf4da]

url:    https://github.com/intel-lab-lkp/linux/commits/Rouven-Czerwinski/dt-bindings-display-panel-add-YAML-schema-for-LXD-M9189A/20241023-204826
base:   c2ee9f594da826bea183ed14f2cc029c719bf4da
patch link:    https://lore.kernel.org/r/20241023124411.1153552-3-r.czerwinski%40pengutronix.de
patch subject: [PATCH 3/3] drm/panel: add Fitipower EK79007AD3 panel driver
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: nios2-randconfig-r072-20241025 (https://download.01.org/0day-ci/archive/20241025/202410252201.QglvauIC-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 14.1.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@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202410252201.QglvauIC-lkp@intel.com/

smatch warnings:
drivers/gpu/drm/panel/panel-lxd-m9189a.c:193 ek79007ad3_probe() error: uninitialized symbol 'ret'.

vim +/ret +193 drivers/gpu/drm/panel/panel-lxd-m9189a.c

a69b961abc36b3 Rouven Czerwinski 2024-10-23  180  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  181  static int ek79007ad3_probe(struct mipi_dsi_device *dsi)
a69b961abc36b3 Rouven Czerwinski 2024-10-23  182  {
a69b961abc36b3 Rouven Czerwinski 2024-10-23  183  	struct device *dev = &dsi->dev;
a69b961abc36b3 Rouven Czerwinski 2024-10-23  184  	struct ek79007ad3_panel *ctx;
a69b961abc36b3 Rouven Czerwinski 2024-10-23  185  	int ret;
a69b961abc36b3 Rouven Czerwinski 2024-10-23  186  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  187  	ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
a69b961abc36b3 Rouven Czerwinski 2024-10-23  188  	if (!ctx)
a69b961abc36b3 Rouven Czerwinski 2024-10-23  189  		return -ENOMEM;
a69b961abc36b3 Rouven Czerwinski 2024-10-23  190  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  191  	ctx->supply = devm_regulator_get(dev, "vdd");
a69b961abc36b3 Rouven Czerwinski 2024-10-23  192  	if (IS_ERR(ctx->supply))
a69b961abc36b3 Rouven Czerwinski 2024-10-23 @193  		return dev_err_probe(dev, ret, "Failed to get regulator\n");
a69b961abc36b3 Rouven Czerwinski 2024-10-23  194  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  195  	ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
a69b961abc36b3 Rouven Czerwinski 2024-10-23  196  	if (IS_ERR(ctx->reset_gpio))
a69b961abc36b3 Rouven Czerwinski 2024-10-23  197  		return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio),
a69b961abc36b3 Rouven Czerwinski 2024-10-23  198  				     "Failed to get reset-gpios\n");
a69b961abc36b3 Rouven Czerwinski 2024-10-23  199  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  200  	ctx->standby_gpio = devm_gpiod_get(dev, "standby", GPIOD_OUT_LOW);
a69b961abc36b3 Rouven Czerwinski 2024-10-23  201  	if (IS_ERR(ctx->standby_gpio))
a69b961abc36b3 Rouven Czerwinski 2024-10-23  202  		return dev_err_probe(dev, PTR_ERR(ctx->standby_gpio),
a69b961abc36b3 Rouven Czerwinski 2024-10-23  203  				     "Failed to get standby-gpios\n");
a69b961abc36b3 Rouven Czerwinski 2024-10-23  204  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  205  	ctx->dsi = dsi;
a69b961abc36b3 Rouven Czerwinski 2024-10-23  206  	mipi_dsi_set_drvdata(dsi, ctx);
a69b961abc36b3 Rouven Czerwinski 2024-10-23  207  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  208  	dsi->lanes = 4;
a69b961abc36b3 Rouven Czerwinski 2024-10-23  209  	dsi->format = MIPI_DSI_FMT_RGB888;
a69b961abc36b3 Rouven Czerwinski 2024-10-23  210  	dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST;
a69b961abc36b3 Rouven Czerwinski 2024-10-23  211  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  212  	drm_panel_init(&ctx->panel, dev, &ek79007ad3_panel_funcs,
a69b961abc36b3 Rouven Czerwinski 2024-10-23  213  		       DRM_MODE_CONNECTOR_DSI);
a69b961abc36b3 Rouven Czerwinski 2024-10-23  214  	ctx->panel.prepare_prev_first = true;
a69b961abc36b3 Rouven Czerwinski 2024-10-23  215  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  216  	ret = drm_panel_of_backlight(&ctx->panel);
a69b961abc36b3 Rouven Czerwinski 2024-10-23  217  	if (ret)
a69b961abc36b3 Rouven Czerwinski 2024-10-23  218  		return dev_err_probe(dev, ret, "Failed to get backlight\n");
a69b961abc36b3 Rouven Czerwinski 2024-10-23  219  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  220  	drm_panel_add(&ctx->panel);
a69b961abc36b3 Rouven Czerwinski 2024-10-23  221  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  222  	ret = mipi_dsi_attach(dsi);
a69b961abc36b3 Rouven Czerwinski 2024-10-23  223  	if (ret < 0) {
a69b961abc36b3 Rouven Czerwinski 2024-10-23  224  		dev_err_probe(dev, ret, "Failed to attach to DSI host\n");
a69b961abc36b3 Rouven Czerwinski 2024-10-23  225  		drm_panel_remove(&ctx->panel);
a69b961abc36b3 Rouven Czerwinski 2024-10-23  226  		return ret;
a69b961abc36b3 Rouven Czerwinski 2024-10-23  227  	}
a69b961abc36b3 Rouven Czerwinski 2024-10-23  228  
a69b961abc36b3 Rouven Czerwinski 2024-10-23  229  	return 0;
a69b961abc36b3 Rouven Czerwinski 2024-10-23  230  }
a69b961abc36b3 Rouven Czerwinski 2024-10-23  231  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2024-10-25 14:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-25 14:25 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-23 12:44 [PATCH 1/3] dt-bindings: vendor-prefixes: Add lxd Rouven Czerwinski
2024-10-23 12:44 ` [PATCH 3/3] drm/panel: add Fitipower EK79007AD3 panel driver Rouven Czerwinski
2024-10-25  0:35   ` Dmitry Baryshkov
2024-10-25 14:34   ` Dan Carpenter

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=202410252201.QglvauIC-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.