/* Return: true if he supplied lane count is valid, false otherwise  */
static bool is_lane_count_valid(struct udevice *dev, u8 lane_count)
/* Return: true if he supplied lane count is valid, false otherwise  */
static bool is_lane_count_valid(struct udevice *dev, u8 lane_count)
{
	struct dp_tx *dp_tx = dev_get_priv(dev);
	bool valid = true;
	if (lane_count != LANE_COUNT_SET_1 &&
	    lane_count != LANE_COUNT_SET_2 &&
	    lane_count != LANE_COUNT_SET_4)
		valid = false;
	else if (lane_count > dp_tx->link_config.max_lane_count)
		valid = false;
	return valid;
}