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 3844128A40A; Wed, 23 Apr 2025 15:04:18 +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=1745420661; cv=none; b=TIcZpdvKAfdSZ8c1wajxduxhN2hU46BWi1J+fXJBL2b+zM3QiUwkBkNCb3n0Olo5oNSvZh1g6GiK3rd92Cu1bYObeL3At/sizPr2PGRVbUcjE39o4VqWCdN+xepPBKndQkGo64/twue+Zh/8YINqUS8D5+G8WsKAbOSdn2JEDY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745420661; c=relaxed/simple; bh=duLuet54mAtiQQHvWbhfEi+EOTmMZ+x4TvzroN21p5E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H95Xtosh1WQeMUqcJeaHamtijx2CN5pHBgaVmtYdo6QMwLw6WxgtXll8dP6FdRSZBLjfO9KaN1z+TqYUFEt6zU1fwa+ZjZDpG/yGOfVGmT+i8e4bGbIG3GxB056TxjWbTnqUf+NdgJVNnwRA10WBFh29DdVE3EtI9y8hCyM34wI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lbM2dLTw; 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="lbM2dLTw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 497B7C4CEE2; Wed, 23 Apr 2025 15:04:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745420658; bh=duLuet54mAtiQQHvWbhfEi+EOTmMZ+x4TvzroN21p5E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lbM2dLTwwrD/JBSVTiiLFmjqwq6dQ2ewmwAmccPXYT0r1mvTNbhnMlmwFytmv9b73 CS8Yq18h7dtu+2BfLS3G/vhc543CgqG6Wn9lZUZ2FrmoIkE7+GOamM3gpuPd6Zlf1/ RApYGA6BFn5bTuOYTfq+rz4Btg4CYPqNEYHwXypU= 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 6.6 097/393] drm: panel-orientation-quirks: Add new quirk for GPD Win 2 Date: Wed, 23 Apr 2025 16:39:53 +0200 Message-ID: <20250423142647.294000283@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250423142643.246005366@linuxfoundation.org> References: <20250423142643.246005366@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-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 702246ee7ced2..12d547f093bd2 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -339,6 +339,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