From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA7D6415F03; Tue, 21 Jul 2026 17:48:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784656124; cv=none; b=WEdGSp4c8TGwRpBPkZYVO2sU1AVHtzk4bMxieMQUz0hN56la+2aCxlYjHsVXpBcBSeKjo463PLShh/BZcNKEonZ3Tc21kEG1XcX9saE53LuwxgpTZelqIlKVU2V8pOuHE77E81EugAe8yK8eYRw5sxvhyq4gN2ILXH0k3/f+/Ic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784656124; c=relaxed/simple; bh=ic/a4KB3nAOPvc22ntcZObHkrxeAERaqobQHUb3GtvU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=e2OGJ0fY2r+fQV47CbghAyHCom4O+zEsRBbPCwqAO1RQ0jwK9Z/pxJjbVD2NQqDFL1RHNteG84ULEscELZoCvFStYcd27oW4OzCdZX65sXKzrlQL3if+WoueHe3zUhOAUcraKpLtdYbJzZgHuEqwg4uS2fppVVr6DwjerFskTec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ge0dvC1w; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ge0dvC1w" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC6D91F00A3D; Tue, 21 Jul 2026 17:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784656122; bh=elkpLPXdY9f/Gqt6yzRLdm6H9nvrh55gjmKAdxjDULM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ge0dvC1w2qzHqWXnTE5bHKxIPYf9eUoYWWMTq13bBJBrhwt9/kp0tP//HRXgVRvLY JVoL1vKP1FYUu4zeUW+A5DMuJg5UHZ7fsGZXJx+elyS2XxXMGZRunCHzKIBbE8URqI uC2eh4X/EfhMFp3eGMZX+IukQEOhMRGWzGX2LKkY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jessica Zhang , Konrad Dybcio , Dmitry Baryshkov , Sasha Levin , Val Packett , Yongxing Mou Subject: [PATCH 6.18 0267/1611] drm/msm/dp: fix HPD state status bit shift value Date: Tue, 21 Jul 2026 17:06:23 +0200 Message-ID: <20260721152521.054480022@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152514.750365251@linuxfoundation.org> References: <20260721152514.750365251@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jessica Zhang [ Upstream commit 2e6c2e81d81251623c458a60e2a57447dcbc988e ] The HPD state status is the 3 most significant bits, not 4 bits of the HPD_INT_STATUS register. Fix the bit shift macro so that the correct bits are returned in msm_dp_aux_is_link_connected(). Fixes: 19e52bcb27c2 ("drm/msm/dp: return correct connection status after suspend") Signed-off-by: Jessica Zhang Reviewed-by: Konrad Dybcio Tested-by: Val Packett # x1e80100-dell-latitude-7455 Tested-by: Yongxing Mou # Hamoa IOT EVK, QCS8300 Ride Signed-off-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/727611/ Link: https://lore.kernel.org/r/20260524-hpd-refactor-v6-1-cf3ab488dd7b@oss.qualcomm.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/dp/dp_reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_reg.h b/drivers/gpu/drm/msm/dp/dp_reg.h index 7c44d4e2cf1396..3689642b7fc061 100644 --- a/drivers/gpu/drm/msm/dp/dp_reg.h +++ b/drivers/gpu/drm/msm/dp/dp_reg.h @@ -68,8 +68,8 @@ #define DP_DP_IRQ_HPD_INT_ACK (0x00000002) #define DP_DP_HPD_REPLUG_INT_ACK (0x00000004) #define DP_DP_HPD_UNPLUG_INT_ACK (0x00000008) -#define DP_DP_HPD_STATE_STATUS_BITS_MASK (0x0000000F) -#define DP_DP_HPD_STATE_STATUS_BITS_SHIFT (0x1C) +#define DP_DP_HPD_STATE_STATUS_BITS_MASK (0x00000007) +#define DP_DP_HPD_STATE_STATUS_BITS_SHIFT (0x1D) #define REG_DP_DP_HPD_INT_MASK (0x0000000C) #define DP_DP_HPD_PLUG_INT_MASK (0x00000001) -- 2.53.0