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 4A7EC8462; Thu, 17 Apr 2025 18:44: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=1744915459; cv=none; b=YYY2HXS9qLtK8BSF9UsN9rUeQ5rTvj7sY8uFeZiZso06zaMdijxC5qFFEqPxv+VDhsKr/Jqvgjt8ZmoMl6yYeEtXshHncRy7Y9CvY1wZZ7WAAlcSsqiBFxmLOl/H0Loz9jhq2c7d5nA4e1yGyZOBkG/kt1IkUQ/lrlzhSbQMPG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744915459; c=relaxed/simple; bh=lMbMUjLNIj1L3aHErb5LTUCoKOlVoR5hPLQn35SpG/A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NtTyZw88CoXbVwAuXeZU0Bo3pS4wiI/W32OEvHkPyxShvWp1O6M322acVQAqCEx/ik74+Vq4VpkTkHiP7o8FRpfpdM3Mb03VNAdlndFYQfe/1ahf1721XT9nukS5r+CzivKtAVFukP6+rU8rcZS9q95ux/dXxAIEOvEyqiexviw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sYbcK1Lt; 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="sYbcK1Lt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 723E4C4CEE4; Thu, 17 Apr 2025 18:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744915458; bh=lMbMUjLNIj1L3aHErb5LTUCoKOlVoR5hPLQn35SpG/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sYbcK1LtZhV4C4yM/oYBdTtNu/P9NSjQie/TIbaG2OHbOZuEHb/0Awhcw6xCO3om9 6oqqEKyj6MBhyMwggFFkw4T6nod5l/57MpcPEcKTiqjaL2IclQkKke6NQGvOOSkHCD TylDQmfmTto/9JMpco9GT7isEbYoDcAFnD82F7B4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andrew Wyatt , John Edwards , =?UTF-8?q?Jo=C3=A3o=20Pedro=20Kurtz?= , Thomas Zimmermann , Hans de Goede , Sasha Levin Subject: [PATCH 6.12 135/393] drm: panel-orientation-quirks: Add quirk for OneXPlayer Mini (Intel) Date: Thu, 17 Apr 2025 19:49:04 +0200 Message-ID: <20250417175113.017052730@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175107.546547190@linuxfoundation.org> References: <20250417175107.546547190@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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andrew Wyatt [ Upstream commit b24dcc183583fc360ae0f0899e286a68f46abbd0 ] The Intel model of the OneXPlayer Mini uses a 1200x1920 portrait LCD panel. The DMI strings are the same as the OneXPlayer, which already has a DMI quirk, but the panel is different. Add a DMI match to correctly rotate this panel. Signed-off-by: Andrew Wyatt Co-developed-by: John Edwards Signed-off-by: John Edwards Tested-by: João Pedro Kurtz Reviewed-by: Thomas Zimmermann Reviewed-by: Hans de Goede Signed-off-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/20250213222455.93533-6-uejji@uejji.net 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 384a8dcf454fb..c554ad8f246b6 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -129,6 +129,12 @@ static const struct drm_dmi_panel_orientation_data lcd1080x1920_rightside_up = { .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; +static const struct drm_dmi_panel_orientation_data lcd1200x1920_leftside_up = { + .width = 1200, + .height = 1920, + .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP, +}; + static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = { .width = 1200, .height = 1920, @@ -473,6 +479,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"), }, .driver_data = (void *)&lcd1600x2560_leftside_up, + }, { /* OneXPlayer Mini (Intel) */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., LTD."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"), + }, + .driver_data = (void *)&lcd1200x1920_leftside_up, }, { /* OrangePi Neo */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "OrangePi"), -- 2.39.5