All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Utkarsh Patel <utkarsh.h.patel@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v2 4/5] platform/chrome: cros_ec_typec: Add Displayport Alternatemode 2.1 Support
Date: Thu, 31 Aug 2023 18:18:22 +0800	[thread overview]
Message-ID: <202308311857.Wl15vE5W-lkp@intel.com> (raw)
In-Reply-To: <20230830223950.1360865-5-utkarsh.h.patel@intel.com>

Hi Utkarsh,

kernel test robot noticed the following build errors:

[auto build test ERROR on usb/usb-testing]
[also build test ERROR on usb/usb-next usb/usb-linus chrome-platform/for-next chrome-platform/for-firmware-next westeri-thunderbolt/next linus/master v6.5 next-20230830]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Utkarsh-Patel/usb-typec-Add-Displayport-Alternate-Mode-2-1-Support/20230831-064225
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
patch link:    https://lore.kernel.org/r/20230830223950.1360865-5-utkarsh.h.patel%40intel.com
patch subject: [PATCH v2 4/5] platform/chrome: cros_ec_typec: Add Displayport Alternatemode 2.1 Support
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230831/202308311857.Wl15vE5W-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230831/202308311857.Wl15vE5W-lkp@intel.com/reproduce)

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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308311857.Wl15vE5W-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/platform/chrome/cros_ec_typec.c: In function 'cros_typec_enable_dp':
>> drivers/platform/chrome/cros_ec_typec.c:553:34: error: implicit declaration of function 'VDO_CABLE_SPEED'; did you mean 'TBT_CABLE_SPEED'? [-Werror=implicit-function-declaration]
     553 |                 u8 cable_speed = VDO_CABLE_SPEED(port->c_identity.vdo[0]);
         |                                  ^~~~~~~~~~~~~~~
         |                                  TBT_CABLE_SPEED
   cc1: some warnings being treated as errors


vim +553 drivers/platform/chrome/cros_ec_typec.c

   487	
   488	/* Spoof the VDOs that were likely communicated by the partner. */
   489	static int cros_typec_enable_dp(struct cros_typec_data *typec,
   490					int port_num,
   491					struct ec_response_usb_pd_control_v2 *pd_ctrl)
   492	{
   493		struct cros_typec_port *port = typec->ports[port_num];
   494		struct typec_displayport_data dp_data;
   495		u32 cable_tbt_vdo;
   496		u32 cable_dp_vdo;
   497		int ret;
   498	
   499		if (typec->pd_ctrl_ver < 2) {
   500			dev_err(typec->dev,
   501				"PD_CTRL version too old: %d\n", typec->pd_ctrl_ver);
   502			return -ENOTSUPP;
   503		}
   504	
   505		if (!pd_ctrl->dp_mode) {
   506			dev_err(typec->dev, "No valid DP mode provided.\n");
   507			return -EINVAL;
   508		}
   509	
   510		/* Status VDO. */
   511		dp_data.status = DP_STATUS_ENABLED;
   512		if (port->mux_flags & USB_PD_MUX_HPD_IRQ)
   513			dp_data.status |= DP_STATUS_IRQ_HPD;
   514		if (port->mux_flags & USB_PD_MUX_HPD_LVL)
   515			dp_data.status |= DP_STATUS_HPD_STATE;
   516	
   517		/* Configuration VDO. */
   518		dp_data.conf = DP_CONF_SET_PIN_ASSIGN(pd_ctrl->dp_mode);
   519		if (!port->state.alt) {
   520			port->state.alt = port->port_altmode[CROS_EC_ALTMODE_DP];
   521			ret = cros_typec_usb_safe_state(port);
   522			if (ret)
   523				return ret;
   524		}
   525	
   526		port->state.data = &dp_data;
   527		port->state.mode = TYPEC_MODAL_STATE(ffs(pd_ctrl->dp_mode));
   528	
   529		/* Get cable VDO for cables with DPSID to check DPAM2.1 is supported */
   530		cable_dp_vdo = cros_typec_get_cable_vdo(port, USB_TYPEC_DP_SID);
   531	
   532		/**
   533		 * Get cable VDO for thunderbolt cables and cables with DPSID but does not
   534		 * support DPAM2.1.
   535		 */
   536		cable_tbt_vdo = cros_typec_get_cable_vdo(port, USB_TYPEC_TBT_SID);
   537	
   538		if (cable_dp_vdo & DP_CAP_DPAM_VERSION) {
   539			dp_data.conf |= cable_dp_vdo;
   540		} else if (cable_tbt_vdo) {
   541			u8 cable_speed = TBT_CABLE_SPEED(cable_tbt_vdo);
   542	
   543			dp_data.conf |= cable_speed << DP_CONF_SIGNALLING_SHIFT;
   544	
   545			/* Cable Type */
   546			if (cable_tbt_vdo & TBT_CABLE_OPTICAL)
   547				dp_data.conf |= DP_CONF_CABLE_TYPE_OPTICAL << DP_CONF_CABLE_TYPE_SHIFT;
   548			else if (cable_tbt_vdo & TBT_CABLE_RETIMER)
   549				dp_data.conf |= DP_CONF_CABLE_TYPE_RE_TIMER << DP_CONF_CABLE_TYPE_SHIFT;
   550			else if (cable_tbt_vdo & TBT_CABLE_ACTIVE_PASSIVE)
   551				dp_data.conf |= DP_CONF_CABLE_TYPE_RE_DRIVER << DP_CONF_CABLE_TYPE_SHIFT;
   552		} else if (PD_IDH_PTYPE(port->c_identity.id_header) == IDH_PTYPE_PCABLE) {
 > 553			u8 cable_speed = VDO_CABLE_SPEED(port->c_identity.vdo[0]);
   554	
   555			dp_data.conf |= cable_speed << DP_CONF_SIGNALLING_SHIFT;
   556		}
   557	
   558		ret = cros_typec_retimer_set(port->retimer, port->state);
   559		if (!ret)
   560			ret = typec_mux_set(port->mux, &port->state);
   561	
   562		return ret;
   563	}
   564	

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

  reply	other threads:[~2023-08-31 10:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-30 22:39 [PATCH v2 0/5] Displayport Alternate Mode 2.1 Support Utkarsh Patel
2023-08-30 22:39 ` [PATCH v2 1/5] usb: typec: Add " Utkarsh Patel
2023-08-30 22:39 ` [PATCH v2 2/5] usb: typec: Add Active or Passive cable defination to cable discover mode VDO Utkarsh Patel
2023-09-04  7:07   ` Heikki Krogerus
2023-08-30 22:39 ` [PATCH v2 3/5] usb: pd: Add helper macro to get Type C cable speed Utkarsh Patel
2023-09-04  7:08   ` Heikki Krogerus
2023-09-04  7:11     ` Heikki Krogerus
2023-09-05 23:47       ` Patel, Utkarsh H
2023-08-30 22:39 ` [PATCH v2 4/5] platform/chrome: cros_ec_typec: Add Displayport Alternatemode 2.1 Support Utkarsh Patel
2023-08-31 10:18   ` kernel test robot [this message]
2023-08-31 15:24   ` Patel, Utkarsh H
2023-09-08 17:03     ` Prashant Malani
2023-09-08 20:11       ` Patel, Utkarsh H
2023-08-30 22:39 ` [PATCH v2 5/5] usb: typec: intel_pmc_mux: Configure Displayport Alternate mode 2.1 Utkarsh Patel

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=202308311857.Wl15vE5W-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=utkarsh.h.patel@intel.com \
    /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.