1. The caps detect sequence for edp is different from dp.
Added separate function for edp.
2. Removed max_link_setting and replaced it with verified
to avoid confusion.
3. Reverted sink count guard for edp powerdown as unnecessary
with the changes above.
Signed-off-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
}
case SIGNAL_TYPE_EDP: {
- detect_dp_sink_caps(link);
+ detect_edp_sink_caps(link);
sink_caps.transaction_type =
DDC_TRANSACTION_TYPE_I2C_OVER_AUX;
sink_caps.signal = SIGNAL_TYPE_EDP;
LINK_SPREAD_DISABLED;
}
- link->max_link_setting = link->verified_link_cap;
return success;
}
* 2. could support the b/w requested by the timing
*/
while (current_link_setting.link_rate <=
- link->max_link_setting.link_rate) {
+ link->verified_link_cap.link_rate) {
link_bw = bandwidth_in_kbps_from_link_settings(
¤t_link_setting);
if (req_bw <= link_bw) {
}
if (current_link_setting.lane_count <
- link->max_link_setting.lane_count) {
+ link->verified_link_cap.lane_count) {
current_link_setting.lane_count =
increase_lane_count(
current_link_setting.lane_count);
/* TODO save sink caps in link->sink */
}
+void detect_edp_sink_caps(struct dc_link *link)
+{
+ retrieve_link_cap(link);
+ link->verified_link_cap = link->reported_link_cap;
+}
+
void dc_link_dp_enable_hpd(const struct dc_link *link)
{
struct link_encoder *encoder = link->link_enc;
if (signal == SIGNAL_TYPE_EDP) {
link->link_enc->funcs->backlight_control(link->link_enc, false);
- if (link->dpcd_sink_count)
- link->link_enc->funcs->power_control(link->link_enc,
- false);
+ link->link_enc->funcs->power_control(link->link_enc, false);
}
link->link_enc->funcs->disable_output(link->link_enc, signal);
*/
struct dc_link_settings reported_link_cap;
struct dc_link_settings verified_link_cap;
- struct dc_link_settings max_link_setting;
struct dc_link_settings cur_link_settings;
struct dc_lane_settings cur_lane_setting;
struct dc_link_settings preferred_link_setting;
void detect_dp_sink_caps(struct dc_link *link);
+void detect_edp_sink_caps(struct dc_link *link);
+
bool is_dp_active_dongle(const struct dc_link *link);
void dp_enable_mst_on_sink(struct dc_link *link, bool enable);