Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp810336rwb; Fri, 7 Oct 2022 04:36:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4K1gpWlp6qv0pP4WUsKdBi72LGIKEY66pEsD0SlvlZBwsqr6lGOuJVK2hzA9Ky7E4nKoWV X-Received: by 2002:a63:6cc6:0:b0:457:5f5f:9dff with SMTP id h189-20020a636cc6000000b004575f5f9dffmr4182507pgc.493.1665142596722; Fri, 07 Oct 2022 04:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665142596; cv=none; d=google.com; s=arc-20160816; b=04+Pj3bW4iwBD0/PE+6AoEX8VYZMbE4dKc6RwxdjNQzULCDdW77PmGwYlsIVNYlpYg 9+u8IeQLvSp+3r7wf/nlDGLcnCradyU8jtLGDFyJBUlDCxzLTRUrZb4ShHI4wgpXgvi8 Rhv9IwoUfbxNoNF+OawwtVvlA0C/9Ddu2rJ0L1nQl/vf8dGk69+s/2YjHEYvZSnJlJEz Ukn9wEnKeLkKg9rTvvPM3SR4GEoOTIoRP+o0mtIF2b0CvnAg4vFRzxTuS5Q8etCByVAp KFoPpZ9mOZc9ZmvsGhrXAe1N+wIv6xNTFudSoYez1EXOJx2FjBTVvE0cffkOK/yd1To6 MVeQ== 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=0rLVpMmdue3fYKwYXyZ0RL0muAl703O0JGXGmGHJNzE=; b=tqyoNtd+LadYj17LZ2Pl9uCFMgbHVePJH7WNnBBlTW4//y5/nQY+b3KWgJm8pzGV4r lvT7rW1Oa2ClQodTImcWEj+Om5Bo+zODloChnMu/ASivZjGMM7DUQoP3KJtdep39UOGj YEYu7K9sS+RPN3iQaMwFc5J3U2+AJQc5cN8Si/W4pp+qydyhKuKfpLzUdH5LQEI5uaiH iMPPmSrNrVd5PekDo6S4EQeE3hxP5dATj5l9s7/ONSYPy8RJEDM97nGQdkTmJVlBQtn0 VLEXtDCRYo903I0Zziw60fDJusH8hH9GCCSwyujy/TULEnijQvSsdpWb/w/J3XCyLyTn 9PZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=VpZuoE13; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c13-20020a056a000acd00b0056285c5a37asi2059584pfl.55.2022.10.07.04.36.23; Fri, 07 Oct 2022 04:36:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=VpZuoE13; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229641AbiJGLQL (ORCPT + 99 others); Fri, 7 Oct 2022 07:16:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbiJGLQH (ORCPT ); Fri, 7 Oct 2022 07:16:07 -0400 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CCCFB2DB2; Fri, 7 Oct 2022 04:16:06 -0700 (PDT) Received: from mx0.riseup.net (mx0-pn.riseup.net [10.0.1.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx0.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4MkQjK3FklzDrwr; Fri, 7 Oct 2022 11:16:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1665141365; bh=zIWt3ZBSc+bV3Dn+srHiqJcjJphD9net3cqhSzXY4aI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VpZuoE13d+HL+1+qNe2yjjoaqdYWPXCkan4fAyrimIu41h4Sm+dg2tFWhYoRS9GL9 eGguEtDtMj5lExD1XoXnaP7T8/tODJ6ED8r4gIzwiQLg6KIrNRkXMonIxcPo3HpgK0 xvpHliqIb0LvDtIaWjUBIFiU9BA223ZZEz543Hwo= Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4MkQjG6nkKz9sBk; Fri, 7 Oct 2022 11:16:02 +0000 (UTC) X-Riseup-User-ID: BB06A70AB150F67769D058BB21ED960A0426733427FF28DEBC2691D78F1D0B25 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4MkQjD6G5wz5vRK; Fri, 7 Oct 2022 11:16:00 +0000 (UTC) From: Nia Espera To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Nia Espera , Caleb Connolly Subject: [PATCH v2 2/2] drivers: gpu: drm: remove support for sofef00 driver on s6e3fc2x01 panel Date: Fri, 7 Oct 2022 13:14:45 +0200 Message-Id: <20221007111442.51481-3-a5b6@riseup.net> In-Reply-To: <20221007111442.51481-1-a5b6@riseup.net> References: <20221007111442.51481-1-a5b6@riseup.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Removes functionality from sofef00 panel driver which allowed it to drive the s6e3fc2x01 panel Signed-off-by: Nia Espera Reviewed-by: Caleb Connolly --- drivers/gpu/drm/panel/Kconfig | 6 +++--- drivers/gpu/drm/panel/panel-samsung-sofef00.c | 18 ------------------ 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index ee62d5d8828a..62b9cb6acd05 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -547,16 +547,16 @@ config DRM_PANEL_SAMSUNG_S6E8AA0 select VIDEOMODE_HELPERS config DRM_PANEL_SAMSUNG_SOFEF00 - tristate "Samsung sofef00/s6e3fc2x01 OnePlus 6/6T DSI cmd mode panels" + tristate "Samsung sofef00 OnePlus 6 DSI cmd mode panel" depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE select VIDEOMODE_HELPERS help Say Y or M here if you want to enable support for the Samsung AMOLED - command mode panels found in the OnePlus 6/6T smartphones. + command mode panel found in the OnePlus 6 smartphone. - The panels are 2280x1080@60Hz and 2340x1080@60Hz respectively + The panel is 2280x1080@60Hz config DRM_PANEL_SAMSUNG_S6E3FC2X01 tristate "Samsung s6e3fc2x01 OnePlus 6T DSI cmd mode panel" diff --git a/drivers/gpu/drm/panel/panel-samsung-sofef00.c b/drivers/gpu/drm/panel/panel-samsung-sofef00.c index bd02af81a4fe..68e58b9b8c5c 100644 --- a/drivers/gpu/drm/panel/panel-samsung-sofef00.c +++ b/drivers/gpu/drm/panel/panel-samsung-sofef00.c @@ -181,20 +181,6 @@ static const struct drm_display_mode enchilada_panel_mode = { .height_mm = 145, }; -static const struct drm_display_mode fajita_panel_mode = { - .clock = (1080 + 72 + 16 + 36) * (2340 + 32 + 4 + 18) * 60 / 1000, - .hdisplay = 1080, - .hsync_start = 1080 + 72, - .hsync_end = 1080 + 72 + 16, - .htotal = 1080 + 72 + 16 + 36, - .vdisplay = 2340, - .vsync_start = 2340 + 32, - .vsync_end = 2340 + 32 + 4, - .vtotal = 2340 + 32 + 4 + 18, - .width_mm = 68, - .height_mm = 145, -}; - static int sofef00_panel_get_modes(struct drm_panel *panel, struct drm_connector *connector) { struct drm_display_mode *mode; @@ -327,10 +313,6 @@ static const struct of_device_id sofef00_panel_of_match[] = { .compatible = "samsung,sofef00", .data = &enchilada_panel_mode, }, - { // OnePlus 6T / fajita - .compatible = "samsung,s6e3fc2x01", - .data = &fajita_panel_mode, - }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, sofef00_panel_of_match); -- 2.38.0