Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2339466rwb; Sat, 8 Oct 2022 06:17:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6vPjsj4x2MpXkRGoH6PTktk6p/0MHmFxJlsdrfc523/Pw1LVOSGsdxi05LgeE7hVS21DxN X-Received: by 2002:a17:902:7408:b0:17b:546a:17 with SMTP id g8-20020a170902740800b0017b546a0017mr9935972pll.134.1665235061878; Sat, 08 Oct 2022 06:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665235061; cv=none; d=google.com; s=arc-20160816; b=WAWNfhBnn2g2awSQN2wAvJ0T7clrTjf5oJgkAsdXJ5DoaVHieDMXCG1jp5bUbOpAbn 55EZbdGcROLU3hntKqPKh1E5J9Hh7tyaI+rK/mFt8pLc3kYDqshh+YJlB3vF0160fKzN DwgvnU9Jq8rNPk4dK0JpNs6ry9CthqVnFhyjtUpVVah4E+6VJ6PIII/iTYWztX+9lrhB smvPYkbF018kp2JjdlRQnON1A9n6HorLW4CAC36/SExg3sXBHYCKREuU9bCtC+Fhv+Vs hI7DsxC/NUSEPWQXim7Q/bBUjFTV8xWXN4V5k0qH7UoXQWX8NKSxFo1SETRCWXeudcmn vlNg== 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=57Bkpz5AgCKzpRcWr8QdK6CNuNalbg5vBP4Ov4iZ0Zc=; b=G92GntiLP3GgrSq2w63KsygZKFL0IfFfEm3S2/aUe3Xlj5MBynW5DtNutrNM8d6DcS 71p2wOZ0WOvsiu5Zt9thUu1QbQSut0rVJCm9/gFsM7EzWgQFXOgRtG7ETe46oa3SCvyv YdnQYLHaUIAYDKe9nCqiZmfPd8LQ66oA3pAdEKoZUb/fziJTwPumOpMfYQRZ8P6uznlq g0bqy4vjQmvJiodedIxBLTzO64ZPaHjxnbvjztfOnq5ZTGGWvuZS9Oby0Ml4wbq4sOsX lydGjc/jawpoeJXElunIFYsxMSx+7SB3CKY9kPFukt+q7Za/pM5SLP0E81MAbC/aANIj U8Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=emSc0gqC; 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 r11-20020a170902e3cb00b0017f77d25b16si4474051ple.467.2022.10.08.06.17.30; Sat, 08 Oct 2022 06:17:41 -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=emSc0gqC; 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 S229663AbiJHNN2 (ORCPT + 99 others); Sat, 8 Oct 2022 09:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbiJHNNZ (ORCPT ); Sat, 8 Oct 2022 09:13:25 -0400 Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0E5B52084; Sat, 8 Oct 2022 06:13:21 -0700 (PDT) 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 4Ml5G90XjVz9scH; Sat, 8 Oct 2022 13:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1665234801; bh=gnBsNEwM/S9PWvUObRoQlFNCY33roZKRpy1dn0jtxok=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=emSc0gqCUKQW42V6JYa3M/wKOYykH90vytIU0O3jf0NuqriCVPiUJB7P2fvoxPhU+ 1kZuoO2aQcREFCEy5uroiBkeTdD0OmBYp0Dd/lcXuxX3n3ms5eFBGDnoq3eALFe4bW j1faTVK7JfMFkLb75ZtNm0NTIKc5QXoxuLa7snd4= X-Riseup-User-ID: 3783ACED89D999CB73A1EC90BE730AA5623AFE1B022D29E56059CF3EC65D5E90 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4Ml5G623Bvz5vNH; Sat, 8 Oct 2022 13:13:18 +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 v3 2/2] drivers: gpu: drm: remove support for sofef00 driver on s6e3fc2x01 panel Date: Sat, 8 Oct 2022 15:12:03 +0200 Message-Id: <20221008131201.540185-3-a5b6@riseup.net> In-Reply-To: <20221008131201.540185-1-a5b6@riseup.net> References: <20221008131201.540185-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,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 0dd5e1ec5644..1addbd7e4790 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