Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2391055lqp; Sun, 24 Mar 2024 17:21:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUux+ENlmrDSN2gdpshSme1AjZAsS2EJr1do+1ge5jj1YIu3LHFjeiRy/MWTqeSUEEv23Zs0/kouKNb2hC7nj1bxwKfLsuSUSX/BhXzaw== X-Google-Smtp-Source: AGHT+IHOxK1SseeLJiOvSgg2WjKMSuSoygDm4KhIlA7h/QorCvV3RsNy9hQ0FNIiG9BcEdLRs3wP X-Received: by 2002:a05:6a00:c90:b0:6ea:74d4:a01c with SMTP id a16-20020a056a000c9000b006ea74d4a01cmr7270556pfv.14.1711326112910; Sun, 24 Mar 2024 17:21:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711326112; cv=pass; d=google.com; s=arc-20160816; b=0uEz3GutRZXGKXPFdDJ3JCAm2/MacoCH7MZia1khkQJpeCrQBqM9ogpw64FqzgD01S wkWKmj2Iv8LiUPbyJYCv0Ij7qY2IspJdbrl48q9LNGEwexCnsJHCARSeU2M2I9EUsRXO glNXOkNzBPRfg4ayyZWcV42cuw7+g/6MLKJ3HWDIKEToTaHafNr54hr08ZW0pliHr10x bTSlrg5LL6GmCnSCPVlhPpi5f+txWcCqfTFtjTV3gcjLiS/iTi00Dx3oIwYlkEx3i0Zk QlMccTK8me1TkcYwNdWYWZCUTlj7jhYG6wValyjsy861YdXJ1YuXnzpb3kAphmFG57zH rXAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=AsJVaHqf1wd3QQSSZ+pQQ4mpdNFWBxoOkFf33YeeC/M=; fh=TdgFr+E4K5W1ImXBLbK4+yZwf8t+wTxRFlr8d/Ll6gE=; b=BGfppI5/je6ZBntP1wdYev9rjrxV7ARwOMSn/nU6J9fQ2fT86+jvq+oQvsH7HAhROW zie2DOn2qHSa8yBZsjIzvFHTlaxcw8QmxLgySVJpqPbFfV4Fe8DjoZ6AY8gGqA1sSMSF /vYbCyj63OjUHHS+u4ZVndihwFG98gPv6mXzVD61mzUSQ9qtgiU8mmFw97Xyhgi92E3I kUoa8tZ0Zfm5ud6vaRniz0J51jNzsJbPcUg90pNe7W7zbZCvJRnxv6BXQEnKMPp+kR42 FWHmCk7ODl45gw7f3fnOlvjL22FufwLrBCK4qJw0fm8nNXyMlOJTaqMRlLTa2ZbD6mxv ob5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QjCNH6SI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113377-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113377-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t68-20020a625f47000000b006e8d8bff71asi4063958pfb.289.2024.03.24.17.21.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:21:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113377-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QjCNH6SI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113377-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113377-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9582928331C for ; Mon, 25 Mar 2024 00:21:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C91519F53C; Sun, 24 Mar 2024 22:42:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QjCNH6SI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 902C919F51B; Sun, 24 Mar 2024 22:42:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320178; cv=none; b=IPl1PO1tXMlg2j624TWRVS9jUVKJTPH6JYlbo1/LudEBdovswDhsSHUy1G/DoK4zL66l3m7m7PJQ0Te7MfEknBLxl1tTdYtwW+9Gwl+bNriBhcjlh5nu6EUjzwg5sGC+ycD0su3lgmtJB4K6tCHZ/8FMTKHDaFJoKnmwknbdjPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320178; c=relaxed/simple; bh=kHv9No8I6LDPw0P6eGHj7N9MFtUF53asyk1Zu9Yl0Hk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Hr+EqlUKZGlPlxIV0+vHsm6etvTPHWsbL+z4E7evnbb4/hZH92iYEwgXX0529MdWrcCXthz/jfEeCwNX8Tw0yVmBhv+dcZkBATKcmnOoNt4fuVdlXiNKgI5H6ys9lZe1m4JJ1hZF+HjEcCGzDx2QLwxcIlN8r667v0N6VE0/cX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QjCNH6SI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B768EC43399; Sun, 24 Mar 2024 22:42:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320178; bh=kHv9No8I6LDPw0P6eGHj7N9MFtUF53asyk1Zu9Yl0Hk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QjCNH6SISW9b5md3TQdH+LutSio1QKEny/bv+DHOB02a5qbrgV1gl3RU7AdpJ3Qoa J/M0TdLEkPnc8AaX2SHvA0+qtinlZlkJLketNy9OQASrCjt5sorwDfNcpxz/OH3gQY 3909aYt7FmZ1xSFh8YUj6O5ptr9w4okqBnIH52qEQ00uAjKny99uNBbB+Pr1V0fnNC yF4Yldu7zJkQ6pCpkFIWpzE4hjMAWlGe4iMszWhCVGrlY3+9A/tLpDWkYVC3LQ/7U3 hqP+5s30BFBkGn2BQmOHnx/pOgZi3DKJOaREWe1Qwi0Jg3fgZ2s4MdbxVAHhx0H54V hWpXnpcnAGu0Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Basavaraj Natikar , Akshata MukundShetty , Jiri Kosina , Sasha Levin Subject: [PATCH 6.8 486/715] HID: amd_sfh: Update HPD sensor structure elements Date: Sun, 24 Mar 2024 18:31:05 -0400 Message-ID: <20240324223455.1342824-487-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Basavaraj Natikar [ Upstream commit bbf0dec30696638b8bdc28cb2f5bf23f8d760b52 ] HPD sensor data is not populating properly because of wrong order of HPD sensor structure elements. So update the order of structure elements to match the HPD sensor data received from the firmware. Fixes: 24a31ea94922 ("HID: amd_sfh: Add initial support for HPD sensor") Co-developed-by: Akshata MukundShetty Signed-off-by: Akshata MukundShetty Signed-off-by: Basavaraj Natikar Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/amd-sfh-hid/amd_sfh_pcie.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.h b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.h index 70add75fc5066..05e400a4a83e4 100644 --- a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.h +++ b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.h @@ -90,10 +90,10 @@ enum mem_use_type { struct hpd_status { union { struct { - u32 human_presence_report : 4; - u32 human_presence_actual : 4; - u32 probablity : 8; u32 object_distance : 16; + u32 probablity : 8; + u32 human_presence_actual : 4; + u32 human_presence_report : 4; } shpd; u32 val; }; -- 2.43.0