/* Return: 0 if the determination succeeded, -ve on error  */
static int cfg_main_link_max(struct udevice *dev)
/* Return: 0 if the determination succeeded, -ve on error  */
static int cfg_main_link_max(struct udevice *dev)
{
	struct dp_tx *dp_tx = dev_get_priv(dev);
	int status;
	if (!is_connected(dev))
		return -ENODEV;
	status = set_link_rate(dev, dp_tx->link_config.max_link_rate);
	if (status)
		return status;
	status = set_lane_count(dev, dp_tx->link_config.max_lane_count);
	if (status)
		return status;
	return 0;
}