From mboxrd@z Thu Jan 1 00:00:00 1970 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 E1C15244686; Tue, 29 Apr 2025 17:13:00 +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=1745946781; cv=none; b=ZTXZr7ocjl7ub5K8qDXdN1Ic68kgoLjgC0SPNHg6xkxMtc4iBGlAJ+SCn+2Q67oV3e6uSBX99gbJ+II+5RPzu38/Q2DHCGYleLcLEdy6t09cN/7t+DQyy1ZYhN0eDzjsQ89nx6Es4ZrrsZdQxboPwRrkJFk0+jwkPotRPp5Cd10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745946781; c=relaxed/simple; bh=eAQ9Zq3LftOxzwuGuk1NVBN2dP62f3Qipn+9sTj8Vfs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=c8Z2HiI30KSOMnIMsz5cJGOdLB7n6S5Qg8LsEqMyvMzwmWUQobgWfarrHGw21ONIUOCPYS7pyKbyE7IioMNufhwDBDLBnOCEOfOBqhRVD8Uer0qYAfZKlbS8I3co2Oj9kcla/zrvXCHbH5OMScHhpx/peJeZo4SbDaSaC1FatWE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mHeKYsJG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mHeKYsJG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69E10C4CEE3; Tue, 29 Apr 2025 17:13:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745946780; bh=eAQ9Zq3LftOxzwuGuk1NVBN2dP62f3Qipn+9sTj8Vfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mHeKYsJGwZtPuJLlTgMkRG1886vlKmgkadK1WF2/bsyAg8x/WuItZRq+QerZnZ4TZ dWIu7v/+tjjqvnlkbp0Ki+16Fw0EPHwYKCUHAhWo4Nk5Fcitkn5ZnsgotFKt7XW8tF 3KfpA6WbRAEtT5x3o2xO6i1tm5JHHq2lcORHZiOI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andrew Wyatt , John Edwards , Paco Avelar , Thomas Zimmermann , Hans de Goede , Sasha Levin Subject: [PATCH 5.10 038/286] drm: panel-orientation-quirks: Add new quirk for GPD Win 2 Date: Tue, 29 Apr 2025 18:39:02 +0200 Message-ID: <20250429161109.425784819@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250429161107.848008295@linuxfoundation.org> References: <20250429161107.848008295@linuxfoundation.org> User-Agent: quilt/0.68 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 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andrew Wyatt [ Upstream commit a860eb9c6ba6cdbf32e3e01a606556e5a90a2931 ] Some GPD Win 2 units shipped with the correct DMI strings. Add a DMI match to correctly rotate the panel on these units. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: Paco Avelar Reviewed-by: Thomas Zimmermann Reviewed-by: Hans de Goede Signed-off-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/20250213222455.93533-5-uejji@uejji.net Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index 6bb8d4502ca8e..6fc9d638ccd23 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -235,6 +235,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"), }, .driver_data = (void *)&gpd_win2, + }, { /* GPD Win 2 (correct DMI strings) */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "WIN2") + }, + .driver_data = (void *)&lcd720x1280_rightside_up, }, { /* GPD Win 3 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), -- 2.39.5