Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp651714pxv; Thu, 15 Jul 2021 12:30:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUpOwBi7lqs686BBsqMiuMD31sTFPBIUg/YcseZ4ze6BScPgsvmwFn5SccqmtLE2raGWXD X-Received: by 2002:a17:906:c107:: with SMTP id do7mr7167884ejc.469.1626377444850; Thu, 15 Jul 2021 12:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626377444; cv=none; d=google.com; s=arc-20160816; b=xC3v8YDSyDJeMCcAG0Y/5hP/ME+qOj0DO/VdutiRHYuQxebVmdGCpioL4JjNB9vuxG cWwQ6nv6KXujUI+t/PkP6/BIzlLd1wuHxOa/7CQMtjqeXlfOnoF/KMCHmweYsrBkTygy lJIcgGhDbc6OUUAFVgqTSzMKeDr3/fFJgsmHx8fmMaDGd+DuZeyailNWU01msD20b09t MjAUIXnaP7BgT08UJPRJ0bTdoQWxPcPwCAghGGMSNd2dlMOQ3LdHmNHrAI8aP4S8wnhD XDUiwrkDx6eP6LUqT/jNYcXLYD6KAdhblqoSg4w3kK++bjPmWUKcDXCImoiFhxcUW66V ESKQ== 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=8hou0BmPSUekv+/GER7PpLu7QFanxe9EH2KWBfL9ysg=; b=NywGise/YEzGMb6Tmw6MgvmG6NPZMLU9jNbHgpFlpUhW4GbLebbD3nklpHvCTZwtpV dksVmXkLEW6c/l6t52Xzl3uNCSUsL8pVpeMkkh6gkqnlJ7L2L4ya4mHwrHsTJEc3HcXx ElpNdTQYLoUu0jpySHMpjaONsqAlsBJSAIlPyy7Q1h/mpVZbVgrRE3SY3mCumyjVIdi3 9PrUbLXpmioxToSM6CsRx2Ry4mWxs4PWi7Je55iMcNx2PdRqCkUeAfPgfo8YeNZBDIn+ aesv6u5wV5UeyTWQKNOoJF+cVMsBPAOYweeId+1CTLVRQxg5acFe3JV0gba0N92D6JVb Mu8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=h9UrtYH9; 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 g10si8519529ejt.549.2021.07.15.12.30.20; Thu, 15 Jul 2021 12:30:44 -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=h9UrtYH9; 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 S1344153AbhGOTZI (ORCPT + 99 others); Thu, 15 Jul 2021 15:25:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:46340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242464AbhGOTIl (ORCPT ); Thu, 15 Jul 2021 15:08:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5DEC7613F8; Thu, 15 Jul 2021 19:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375864; bh=h50X7yqGEaTpjIyoJe/7TnUg0U13htKsKuz+qBmIFpA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h9UrtYH9tKe1IjjcrIlY5BeCg2MIFVVVwbtD2fcPwIpUjOGVAciflfZW5HFAtWUww HjnMYDeBvfztA1URPHcy8n303Pza2m6Es3cd7POJAq6w1snmc9WsrvZw+Hc0X2V/wx ssE1Ue3vja05zFPiJWwHKc+bMugQUvAePDZneDig= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brandon Syu , Wenjing Liu , Wayne Lin , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.13 004/266] drm/amd/display: fix HDCP reset sequence on reinitialize Date: Thu, 15 Jul 2021 20:35:59 +0200 Message-Id: <20210715182614.688433527@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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: Brandon Syu [ Upstream commit 99c248c41c2199bd34232ce8e729d18c4b343b64 ] [why] When setup is called after hdcp has already setup, it would cause to disable HDCP flow won’t execute. [how] Don't clean up hdcp content to be 0. Signed-off-by: Brandon Syu Reviewed-by: Wenjing Liu Acked-by: Wayne Lin Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/modules/hdcp/hdcp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/modules/hdcp/hdcp.c b/drivers/gpu/drm/amd/display/modules/hdcp/hdcp.c index 68a6481d7f8f..b963226e8af4 100644 --- a/drivers/gpu/drm/amd/display/modules/hdcp/hdcp.c +++ b/drivers/gpu/drm/amd/display/modules/hdcp/hdcp.c @@ -260,7 +260,6 @@ enum mod_hdcp_status mod_hdcp_setup(struct mod_hdcp *hdcp, struct mod_hdcp_output output; enum mod_hdcp_status status = MOD_HDCP_STATUS_SUCCESS; - memset(hdcp, 0, sizeof(struct mod_hdcp)); memset(&output, 0, sizeof(output)); hdcp->config = *config; HDCP_TOP_INTERFACE_TRACE(hdcp); -- 2.30.2