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 4EEDD1448EF; Thu, 11 Apr 2024 10:11: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=1712830290; cv=none; b=QA3WYPPNakPq7AnPvW5Qh/MvFjSbZcCN2KJeqQrCRDZFbC6zrrNqQ4J7qsFv7//c/TEumRaenXh0M/0j+uwWJLugCa5XBY/cqHaj2gJo/fAPnNj/qq/Au91DGx/pi7kkBURCjXP4l+OwiK14gCaUoBDc57kTwdD2bTdtdayiwbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712830290; c=relaxed/simple; bh=G/nXTX9L8DmZSzknHOjhpcW8Rc1qfDuCKHPNl9Szyiw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hXiuvcXHAxuf0XQor3XE1y7qSGvlhVRFmDgy9yYP3W4DLhmCcRCEltXnZypYgBL6lYhvCQuGeT+HTuY1Eh2BPIfZHsLHaTtb+DY6GETI/6W4fYaeQ40emlCE1Kx54TjT+oNvhBzdwHhk/isot80lEUKBcGS7MjcI934jbpGQC2c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HDJOK9o6; 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="HDJOK9o6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C641AC433C7; Thu, 11 Apr 2024 10:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712830290; bh=G/nXTX9L8DmZSzknHOjhpcW8Rc1qfDuCKHPNl9Szyiw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HDJOK9o6gCHTUI4ToC5zsJdU5M056Xwi/LgOlz3jUK9uaGY2kSEJyXpcDOL/MX/cx CnSnqf/9Y+SMit4g/eEI1RNRhA53M7CPzxIX0cG/fxUsCZbEs/kf6jw0lagUwCu6u+ QpzZxPUKkWgPOXBjxwfRuhxq8TyMQ61Q/Bp7xTr4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Samuel Dionne-Riel , Linus Walleij , Sasha Levin Subject: [PATCH 6.8 061/143] drm: panel-orientation-quirks: Add quirk for GPD Win Mini Date: Thu, 11 Apr 2024 11:55:29 +0200 Message-ID: <20240411095422.752415919@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240411095420.903937140@linuxfoundation.org> References: <20240411095420.903937140@linuxfoundation.org> User-Agent: quilt/0.67 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.8-stable review patch. If anyone has any objections, please let me know. ------------------ From: Samuel Dionne-Riel [ Upstream commit 2f862fdc0fd802e728b6ca96bc78ec3f01bf161e ] This adds a DMI orientation quirk for the GPD Win Mini panel. Signed-off-by: Samuel Dionne-Riel Signed-off-by: Linus Walleij Link: https://patchwork.freedesktop.org/patch/msgid/20231222030149.3740815-2-samuel@dionne-riel.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index 3d92f66e550c3..aa93129c3397e 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -117,6 +117,12 @@ static const struct drm_dmi_panel_orientation_data lcd1080x1920_leftside_up = { .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP, }; +static const struct drm_dmi_panel_orientation_data lcd1080x1920_rightside_up = { + .width = 1080, + .height = 1920, + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, +}; + static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = { .width = 1200, .height = 1920, @@ -279,6 +285,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "G1618-03") }, .driver_data = (void *)&lcd720x1280_rightside_up, + }, { /* GPD Win Mini */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "G1617-01") + }, + .driver_data = (void *)&lcd1080x1920_rightside_up, }, { /* I.T.Works TW891 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."), -- 2.43.0