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 160CE21A455; Tue, 29 Apr 2025 17:42:35 +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=1745948555; cv=none; b=ACa62cVE0tfNSHCB9H23WBinBtaGsfhrp7mJyTx8VsIt/fW+mhTMSuimghVd8uNKyPfYxzeba8HYD1FtROEy0Lg0xVoU4nBvZ9PqOmSmE5kD+7D700XYRbAx+SCAWfMS1CNwfMA45vvJVoZ5B411h+CbWBTCYdAL/xKv3TTpxT8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745948555; c=relaxed/simple; bh=zy4iX7CfiyC7RuF3q6q1m+9b+65x1ty45toBdroRpsY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iMCUHShtAAdRl5YFZNZX41e1MEcv9ep3LSl25mHs65xIqZqL98mH485+jVaHzt0Hy0snWRehILhnTStY9lwPEjbjqb72UmWEo3RIUGvqN02sbv0437cjqTwy9yV85dK+U9kycRMDk8vgqcLmPo0qr9f76EWuWFEIE34icjkKsCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n8q28Iko; 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="n8q28Iko" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3F2CC4CEE3; Tue, 29 Apr 2025 17:42:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745948555; bh=zy4iX7CfiyC7RuF3q6q1m+9b+65x1ty45toBdroRpsY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n8q28IkoCLQSAupn79aW6rCIpNeLQa1n+NP00rpvwSH0W6BE9z6e0Atx3E77H997j m6ymlpkMUo2Ic+l0HswZur2TVgw9irG1uKvHKurtbX0ZdbH6JymV0jVc8MYGn+0MlO QLUzvQh9CYtuTIMqHoTsHd6KVLecMvORyIkMF58Y= 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.15 042/373] drm: panel-orientation-quirks: Add new quirk for GPD Win 2 Date: Tue, 29 Apr 2025 18:38:39 +0200 Message-ID: <20250429161124.859792931@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250429161123.119104857@linuxfoundation.org> References: <20250429161123.119104857@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.15-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