usb: typec: ucsi: Remove incorrect warning

Sink only devices do not have any source capabilities, so
the driver should not warn about that. Also DRP (Dual Role
Power) capable devices, such as USB Type-C docking stations,
do not return any source capabilities unless they are
plugged to a power supply themselves.

Fixes: 1f4642b72be7 ("usb: typec: ucsi: Retrieve all the PDOs instead of just the first 4")
Reported-by: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220922145924.80667-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by Heikki Krogerus and committed by Greg Kroah-Hartman 415ba26c f208ce4d

Changed files
-2
drivers
usb
typec
ucsi
-2
drivers/usb/typec/ucsi/ucsi.c
··· 588 588 num_pdos * sizeof(u32)); 589 589 if (ret < 0 && ret != -ETIMEDOUT) 590 590 dev_err(ucsi->dev, "UCSI_GET_PDOS failed (%d)\n", ret); 591 - if (ret == 0 && offset == 0) 592 - dev_warn(ucsi->dev, "UCSI_GET_PDOS returned 0 bytes\n"); 593 591 594 592 return ret; 595 593 }