From: Neil Armstrong <neil.armstrong@linaro.org>
To: david@ixit.cz, Jessica Zhang <quic_jesszhan@quicinc.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Sam Ravnborg <sam@ravnborg.org>,
Casey Connolly <casey@connolly.tech>
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
Casey Connolly <casey.connolly@linaro.org>
Subject: Re: [PATCH] drm/panel: samsung-sofef00: Drop s6e3fc2x01 support
Date: Tue, 22 Apr 2025 09:36:26 +0200 [thread overview]
Message-ID: <890eda99-89e6-400b-8a0f-345ea0e171fe@linaro.org> (raw)
In-Reply-To: <20250419-drop-s6e3fc2x01-support-v1-1-05edfe0d27aa@ixit.cz>
On 19/04/2025 18:31, David Heidelberg via B4 Relay wrote:
> From: Casey Connolly <casey.connolly@linaro.org>
>
> We never properly supported this panel and always used the wrong init
> sequence. Drop support so we can move it to it's own proper driver.
>
> Fixes: 5933baa36e26 ("drm/panel/samsung-sofef00: Add panel for OnePlus 6/T devices")
> Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
> drivers/gpu/drm/panel/panel-samsung-sofef00.c | 34 ++-------------------------
> 1 file changed, 2 insertions(+), 32 deletions(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-samsung-sofef00.c b/drivers/gpu/drm/panel/panel-samsung-sofef00.c
> index 04ce925b3d9dbd91841f4b4e4a12320eac8e03af..49cfa84b34f0ca75394b74b5765a0931d9fefba0 100644
> --- a/drivers/gpu/drm/panel/panel-samsung-sofef00.c
> +++ b/drivers/gpu/drm/panel/panel-samsung-sofef00.c
> @@ -22,7 +22,6 @@ struct sofef00_panel {
> struct mipi_dsi_device *dsi;
> struct regulator *supply;
> struct gpio_desc *reset_gpio;
> - const struct drm_display_mode *mode;
> };
>
> static inline
> @@ -159,26 +158,11 @@ 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;
> - struct sofef00_panel *ctx = to_sofef00_panel(panel);
>
> - mode = drm_mode_duplicate(connector->dev, ctx->mode);
> + mode = drm_mode_duplicate(connector->dev, &enchilada_panel_mode);
> if (!mode)
> return -ENOMEM;
>
> @@ -239,13 +223,6 @@ static int sofef00_panel_probe(struct mipi_dsi_device *dsi)
> if (!ctx)
> return -ENOMEM;
>
> - ctx->mode = of_device_get_match_data(dev);
> -
> - if (!ctx->mode) {
> - dev_err(dev, "Missing device mode\n");
> - return -ENODEV;
> - }
> -
> ctx->supply = devm_regulator_get(dev, "vddio");
> if (IS_ERR(ctx->supply))
> return dev_err_probe(dev, PTR_ERR(ctx->supply),
> @@ -295,14 +272,7 @@ static void sofef00_panel_remove(struct mipi_dsi_device *dsi)
> }
>
> static const struct of_device_id sofef00_panel_of_match[] = {
> - { // OnePlus 6 / enchilada
> - .compatible = "samsung,sofef00",
> - .data = &enchilada_panel_mode,
> - },
> - { // OnePlus 6T / fajita
> - .compatible = "samsung,s6e3fc2x01",
> - .data = &fajita_panel_mode,
> - },
> + { .compatible = "samsung,sofef00" },
> { /* sentinel */ }
> };
> MODULE_DEVICE_TABLE(of, sofef00_panel_of_match);
>
> ---
> base-commit: bc8aa6cdadcc00862f2b5720e5de2e17f696a081
> change-id: 20250419-drop-s6e3fc2x01-support-d060a14a4791
>
> Best regards,
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
next prev parent reply other threads:[~2025-04-22 7:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-19 16:31 David Heidelberg via B4 Relay
2025-04-22 7:36 ` Neil Armstrong [this message]
2025-04-24 8:22 ` Neil Armstrong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=890eda99-89e6-400b-8a0f-345ea0e171fe@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=airlied@gmail.com \
--cc=casey.connolly@linaro.org \
--cc=casey@connolly.tech \
--cc=david@ixit.cz \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=quic_jesszhan@quicinc.com \
--cc=sam@ravnborg.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®