Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp827901pxb; Tue, 9 Nov 2021 00:27:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxM7+W305Z7J3/7AspdmyFcbc83hj56KA+Slxx9wCpix6uURH8S4rA3KyCdkfgl3kr3GcET X-Received: by 2002:a05:6402:5c2:: with SMTP id n2mr7550959edx.239.1636446471156; Tue, 09 Nov 2021 00:27:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636446471; cv=none; d=google.com; s=arc-20160816; b=Gx4M4qaf59jZqdKD/yuSFKH7eRb0iofqmQrfmjaaibbNIINS70nYxXw76pd93rgFtD ZjDrWjELaGwiDjGAC4btxYJz1l2VW9aIKYfn2Ge95Z+zHRX7Kk6AEBlheni3TTzZV3hI 8RvLMLNW11RDuErZgkzwv+bxLHibVt5POjebsdMSPKNB7q9MAnIIZLFV51MurTiNrHoy yRnLngphbLMJdWtHxsTWNDUba9+O6woLiJdOE42GhaStgJzRsAmhUEsXNnEwY2JVG8W9 PDO9hALJiel8Z8KaxIHiXnszppLMAUeEnTRGCI/nNspR8E9yxo/Q6+MTcphF/IK7/cRq KsZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3fbJWSLOzhjsQZatmHmjjGv0SAtDC/E/gi7+4PPA2dg=; b=LGKIThJmU5CzBRUqI588f+u0/8vXOpcH8omNayhTWJ0aC1BLiSGTTprLcfz7IwmKg4 SW1U5wlxq9y98Xv6IPLI+s7o/ESCBTS6bDiGRKFOJrjiC7+FdcQhYOBnGlRm8v6v7ePp zo7m9L155h0JTlqZKvN6jwJznU8vQHXe4mCORdBZ1dn5UvE9/lM29NIyJwWzGwqRrGNG bo16lWdt6u99IIU3seexSZbvTCgbzb74zJwx8W6ZE9+vpE6NqTQdjIVzyyv/WtrM/X00 McYbmqL8lH5OITQsuMQ/tcl/67HcaDT0s6safF3ZpnQ4lttEh/5C0OWQHZK6ZsK1MQje GYuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="m/ddRosw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si34508863eju.33.2021.11.09.00.27.18; Tue, 09 Nov 2021 00:27:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="m/ddRosw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236798AbhKIBCc (ORCPT + 99 others); Mon, 8 Nov 2021 20:02:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:58246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236525AbhKIBC3 (ORCPT ); Mon, 8 Nov 2021 20:02:29 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8271C611BF; Tue, 9 Nov 2021 00:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636419584; bh=h/Qv0gdg233kt+NKGH31/IuhY5AlguPK5AGf8Iou0SY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m/ddRoswgyZDPus+YU4L3albyTzs0/o3QvLu2uZO85QfDbbdYoCoVqPHzhftwCldL PppIF+Lcbnfqnz8IToHOmCGh4g8Duw8lnAlaXbEjVOVNqcriO3uuzmPoog67boOTVd YrbASLDWq/2CFlaq0DuEi9McRH4jjaAyp8yq0xgjDnwz42qVYgGbLmYzi8wo13WG9H 7C3ANQJSNP3tFHJEZ3ZGeD/db+zj9Yyu6EgoPFFqj+6mATP11V97cm+mjYCm1kzyGz ifJx4GGR4SoEvmscfxNzDloqDeFmsiJNc2Kd07Qwr/FGYQD1wojTfVwNyWxtQtkTfU IrT5BIhjejDEg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Simon Ser , Sasha Levin , maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.15 004/146] drm: panel-orientation-quirks: Add quirk for the Samsung Galaxy Book 10.6 Date: Mon, 8 Nov 2021 12:42:31 -0500 Message-Id: <20211108174453.1187052-4-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211108174453.1187052-1-sashal@kernel.org> References: <20211108174453.1187052-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 88fa1fde918951c175ae5ea0f31efc4bb1736ab9 ] The Samsung Galaxy Book 10.6 uses a panel which has been mounted 90 degrees rotated. Add a quirk for this. Signed-off-by: Hans de Goede Acked-by: Simon Ser Link: https://patchwork.freedesktop.org/patch/msgid/20210530110428.12994-4-hdegoede@redhat.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 cf4db2cdebbbd..926094b83e2f4 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -109,6 +109,12 @@ static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = { .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; +static const struct drm_dmi_panel_orientation_data lcd1280x1920_rightside_up = { + .width = 1280, + .height = 1920, + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, +}; + static const struct dmi_system_id orientation_data[] = { { /* Acer One 10 (S1003) */ .matches = { @@ -249,6 +255,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Default string"), }, .driver_data = (void *)&onegx1_pro, + }, { /* Samsung GalaxyBook 10.6 */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galaxy Book 10.6"), + }, + .driver_data = (void *)&lcd1280x1920_rightside_up, }, { /* VIOS LTH17 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"), -- 2.33.0