Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2352929pxb; Mon, 20 Sep 2021 19:50:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfjnAL/PmtPAlFLxhsC+XVFs50U/0Z+4owuCaN0+nJYdxu+MG/XPZboYo1V1PcPwCY7riQ X-Received: by 2002:a05:6602:4a:: with SMTP id z10mr10906265ioz.16.1632192635450; Mon, 20 Sep 2021 19:50:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192635; cv=none; d=google.com; s=arc-20160816; b=HgyaR2OlxqVsjjhw1d5NKFTui5N1T/CUjUWDR+vNfx+tuEKPRQUsZPjkYO5COxvNcH a3lO4g3O6a5B3SHjRVjTLktxUnW+j1vci5Zi2tcCvyxE2Nk+yes2GJk6V2v6b8fHTJmy ovK1Tj3MuoEKmgfZ9FNscPeAb6/Hj0MUSn8z9Rr3M/ybpJJmki7w+o67iXPfsP/ineHZ oJrHGHX3/hiyeg6ScKb3CoaOju1X55I+ODjjc04jFCGLxVjOvgzs/U7Y6q9bmzbOy9Ss AsATpe5OLSxG4E4utC01cCr85Ck00qnsqBG2Co2t6SM2FmvVBcGP7sGxcUkikcpNsN9Y BReA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wadQIaDSEcu5AgBG0S1+ID34W90TufHwOo9aQ3ykTV0=; b=nHRol3l8AmzUbPDYw4d0RWTLgUQNAKdNPIbC+pkLKSSGZroAXaABc/W+pD3Moc9zq+ wEBsGPWCpVSt5sm1ipvY3UGH4Q+pFCBFY8IXgh9vXpGew8ELkCjVpt/0CCx4xrHWxiFz yaVzf0FZs5HL+VdSiiJ4gPrtBViAzsQIIB/1abca5P5vCO+Yhck3xtxkGdW8mXmfb8Oc 39dYSw+7f4Tx5IT2b9dszWv4iD2OqL6KJ9XTk0ZWkWXxjRx7Q1z8NSkLeuJgnCnCRfcX Ov1b7JIPyPXovFwK6XhH2b96PL8VenVgLOxYk9SBd0+Zv4NDJ2tXU0JuF9JEWF/AwvqC jR0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sQ5ic9cA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k26si7972996ioh.55.2021.09.20.19.50.24; Mon, 20 Sep 2021 19:50:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sQ5ic9cA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349237AbhITSmu (ORCPT + 99 others); Mon, 20 Sep 2021 14:42:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:53122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381955AbhITSjj (ORCPT ); Mon, 20 Sep 2021 14:39:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D254363335; Mon, 20 Sep 2021 17:30:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159042; bh=cUnrVoZkYFdeVv9AZG38BzbZO66hQK6kHGVOAECMSRU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sQ5ic9cALE0aCCpu67srXXzGHbl1w6ukVfktpxIELN6VVCPu6/nMwUmil5dn5UT0E XVUOgCam9wAMI0Ao/Ef4GhnlwrEGqAS1rE3BcsI+O9dBCB0GXfIe2IfoKQW2CLZQzP 5z/lPm/oyj8SecI4/Bv090hJeUH35CnchfXFt3ls= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ville Syrjala , Imre Deak , Jani Nikula , Cooper Chiou , William Tseng , Lee Shawn C , Jani Nikula Subject: [PATCH 5.14 049/168] drm/i915/dp: return proper DPRX link training result Date: Mon, 20 Sep 2021 18:43:07 +0200 Message-Id: <20210920163923.250441951@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lee Shawn C commit 9af4bf2171c1a9e3f2ebb21140c0e34e60b2a22a upstream. After DPRX link training, intel_dp_link_train_phy() did not return the training result properly. If link training failed, i915 driver would not run into link train fallback function. And no hotplug uevent would be received by user space application. Fixes: b30edfd8d0b4 ("drm/i915: Switch to LTTPR non-transparent mode link training") Cc: Ville Syrjala Cc: Imre Deak Cc: Jani Nikula Cc: Cooper Chiou Cc: William Tseng Signed-off-by: Lee Shawn C Reviewed-by: Imre Deak Signed-off-by: Imre Deak Link: https://patchwork.freedesktop.org/patch/msgid/20210706152541.25021-1-shawn.c.lee@intel.com (cherry picked from commit dab1b47e57e053b2a02c22ead8e7449f79961335) Signed-off-by: Jani Nikula Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/display/intel_dp_link_training.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c +++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c @@ -848,7 +848,7 @@ intel_dp_link_train_all_phys(struct inte } if (ret) - intel_dp_link_train_phy(intel_dp, crtc_state, DP_PHY_DPRX); + ret = intel_dp_link_train_phy(intel_dp, crtc_state, DP_PHY_DPRX); if (intel_dp->set_idle_link_train) intel_dp->set_idle_link_train(intel_dp, crtc_state);