mbox series

[0/3] Avoid unwanted lspcon init and probe warnings

Message ID 20240408050558.865396-1-ankit.k.nautiyal@intel.com (mailing list archive)
Headers show
Series Avoid unwanted lspcon init and probe warnings | expand

Message

Nautiyal, Ankit K April 8, 2024, 5:05 a.m. UTC
Currently we probe for lspcon, inside lspcon init.

If there is no lspcon connected, the probe expectedly fails and
results in error message. This inturn gets propogated to
lspcon init and we get again error message for lspcon init
failure.

Reduce the error messages from lspcon init.
Separate out some of the functions and avoid displaying error if the
probe fails.

rev2: Changed the approach from previous revision where lspcon_probe was
separated out from lspcon_init, as this was resulting in
lspcon_wake_native_aux_ch not being called before probe.
Instead, just separate out the part of lspcon_probe that can fail, to a
separate function and display the error message for it.

Ankit Nautiyal (3):
  drm/i915/lspcon: Separate out function to get expected mode
  drm/i915/lspcon: Separate out function to set pcon mode
  drm/915/lspcon: Reduce dmesg errors during lspcon_init failure

 drivers/gpu/drm/i915/display/intel_lspcon.c | 65 ++++++++++++---------
 1 file changed, 38 insertions(+), 27 deletions(-)