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 33568256C7B; Thu, 17 Apr 2025 18:01:30 +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=1744912890; cv=none; b=jhlOMvXDvdpJT/4Inliz+bzLY17NwKJjJnDioUnlX0T7PVBY75gnIi4GJZcEW0CktP0MTLr4vvHFAtSoZ0ghKeCJTSYCsk91sUhV7PNfx0CGWS6+PgToECKHbXvIIKCZCgf9ZICmLza3cz4VWHJVNxRYPmY3px+cMfHVEQKXpSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744912890; c=relaxed/simple; bh=7T2wWhfby9Gli+0S10z8tqvO/LhjN6jU7eVWtrBmGT8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kcMOWtfgGZxmWMHTIMTf6S6YplHb5v8WfscZVaXlSXeZHLw8njWkKXis3w3YRmyKAoXzAvSkaoGr4DviyQ4aCMbyQcc3GDLZxflwamn0ZoFc1TPkiS00W70aqlyyDPlN22UMRpzsI5A88SdhG8wrthdMorlkq1hr6XXKA2zisHs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S5AM/Pro; 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="S5AM/Pro" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBCD7C4CEE4; Thu, 17 Apr 2025 18:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744912890; bh=7T2wWhfby9Gli+0S10z8tqvO/LhjN6jU7eVWtrBmGT8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S5AM/Pro7gDIbmeGOB4PqIJOXbQCMudKKO879MVnDUogwaepfIR08nsc2qh7wLikX xvkReuRjvg1e4/3yjwYVdIuiw8omV+L+7c4zQvDuscZGsWPMiEdkr4mZ1ZPmSSoCso qXBuDwPflKfGr7SVL8kOtgVnxGBfXKENMEs3vZzE= 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.14 158/449] drm: panel-orientation-quirks: Add new quirk for GPD Win 2 Date: Thu, 17 Apr 2025 19:47:26 +0200 Message-ID: <20250417175124.338165394@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175117.964400335@linuxfoundation.org> References: <20250417175117.964400335@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 6.14-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 b57078cfdd80f..384a8dcf454fb 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