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 19A5813FD94; Thu, 11 Apr 2024 10:26:59 +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=1712831220; cv=none; b=dL0GBsTxYv7gL1ou+Zpu7Jt9DmhaOcdCWmv8MPtf1gKNxo/3u0UhqalCIHOl3IYZzI0j3gP995rIpemz1trktuunpBYeu1ymplzJrFCDZzXS/hKYKHj7q8A+Zm8/gifctUPdaQfg1Hus1WBBKwtJK/EoGFACMzNJS2H2cUBg6Yc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712831220; c=relaxed/simple; bh=IYyTwvr+p5ZJQMUHfOdfmJAplLOqyE7QIkdom9BX1V8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Pz3v98uNlad3LPcCigPTTTSfhdYqI2APOsaL88l9qFPVqqRxVN0qFwg6gNzZIRoocEXLjqo4iFtBL8+xoREwzdhDP5kwxmSASVI1hc5c8yVoNYUlsg2gY4Gd9AdNtQOEvV0f1sMo8wwsXv0CK8EoeKa6rWUVSFdazDUwlvu2Z7w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y9Xx5AKE; 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="y9Xx5AKE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A651C43390; Thu, 11 Apr 2024 10:26:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712831219; bh=IYyTwvr+p5ZJQMUHfOdfmJAplLOqyE7QIkdom9BX1V8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y9Xx5AKEHYat9tQv6k+cu06sgOiOVHUWcbJfsEeGhVsbdZ+t05YjREZlLD6nrFaSw cga2TMMiFYU9EeOvQG2qGG0Zhnq/8zEiebmg+iBQF46f+qE+2nIgy708OluA4gg/ZL Ss4VHg7ozj1i91pF7VWkKsbEwEkNuNF6LAPjDUhc= 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.6 048/114] drm: panel-orientation-quirks: Add quirk for GPD Win Mini Date: Thu, 11 Apr 2024 11:56:15 +0200 Message-ID: <20240411095418.333279263@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240411095416.853744210@linuxfoundation.org> References: <20240411095416.853744210@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.6-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 d5c15292ae937..3fe5e6439c401 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