| Message ID | 20240911151555.2915258-8-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBNXIQ23QMGQEMWEVI5Q@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com
[209.85.128.70])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CB3C542E89
for <linux-amarula@patchwork.amarulasolutions.com>;
Wed, 11 Sep 2024 17:16:06 +0200 (CEST)
Received: by mail-wm1-f70.google.com with SMTP id
5b1f17b1804b1-42cb635b108sf16710495e9.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Wed, 11 Sep 2024 08:16:06 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1726067766; cv=pass;
d=google.com; s=arc-20240605;
b=Hm2n3B02P4oIQnUYdqLuB0JWjULOl9HknUBgkYlLDcQlR6D9PZ4tuafOt6Sjoz+Wyu
mw4mBVAl3gSk9oV8dSK8Z8ZCbNgZwGgfgZXm1T8ONuJm9r4Yw9O46yaxdevoHBMn9X7I
Tvo71yjc8sIBgMWpx9dqnAco8MEWDeIHMprvRDhoD88ykgmliIpoLpt7xA1+Z4hTU4Ik
zcYX94RsZG9sinmvv5plhvuCdHjEORFCefeNJosxFhaXtv98DFZwvqUQoepjUDVINXdW
SR7p6l5wCsuhUlbwICyNDiHjC15ZIIGLyaRfW1HWbQPXwD+eMr4plAbnDsDsCVjkWv7e
XgRg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:to:from:dkim-signature;
bh=IuQxCR5ayhX6E17snzHjInxvT/4G/ak1Nl98Imf35Cc=;
fh=yoqnM/WsGCrfVTYvnst1/RyxrQny+ueNR32Pm2PPVaw=;
b=VMabuu1FP0jBcg4rKl/mDVAdqfPexs7qGL4a46p3FX17IYpDnht5Rtt+Fs8PSz6ZLA
3mP+1Mt2EN1jYlpjhg48TsDjCfQRFC/f504imv1Ybnlug8+xFTqJTqlENXQQGm5KQl/J
khjY6IH+EZYQikFY+M7gWKQLX0rsgDIS/Qbfvo8yWW3bJ3VuVqEeFFtmvZprfxygDS9w
SfRMi8L12D70ou06E5gTaAAVeT5dlO13W/wi70yi7xjvmj8T4JOllzDfos9/kCRKoAsO
JPqit831eZGEARx/ThkBrwEsJCncOQLCmLvuqnKW6jQ80LZ4oxnpm7CHFjufN3dzsuDt
/uvQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=KCfbfYJW;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1726067766; x=1726672566;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:references:in-reply-to:message-id
:date:subject:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=IuQxCR5ayhX6E17snzHjInxvT/4G/ak1Nl98Imf35Cc=;
b=H/VY2s4ddegf9N7FFTN50+2JU+68KdxWep+TaZADz++twc1NuLfIdx4MI43TZ9HY9p
lEI+cVE2mbsDkwMC/8QQD4ZFK8QXn00Ycvddn0Hze2hSrZBXy+d5jxsYmqyviMbqR20u
w51DjnvF9t7kLXuQmOP51nJCv1GsLnTTd73Tw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1726067766; x=1726672566;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:to:from:x-beenthere
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=IuQxCR5ayhX6E17snzHjInxvT/4G/ak1Nl98Imf35Cc=;
b=JfDGSM7nTHnI0dLiO7dQZgd37mIxtKwuNQVwJIuWnHBOwgyuYy/0zWQ/BS5vynxE7W
qk7WUW/+MwXeBBqbOkLNDAbSAArcRZbsnuTA4PeAejlJjKGukl0OIy9VgGRGLv3WVpvm
fgJDsdqzSFiZZfDLSuQ2vakqd6Hcztzyq3Gs/TBLml5HMIwI3CMLOWLb1fYM2KY+B4rP
tOFKUAP9gVubf7As5hKXi9MAYdVgLZ9lVIDOKdD8gZ2fssFJtzXdn76QTzmSmxszmxhk
YafIpJxJLfMAyeP4YoyhxzHJSa56wU/5td46+7hkEpXcAvTToEc4xIkr0ukT/VcE0/rC
FznQ==
X-Forwarded-Encrypted: i=2;
AJvYcCXO0k/jWdGvM+duwlJQwKni9i46ikKxFli0ynnCnddVOimMJlxAvrRzhB1EzZ01YcIceX0HpNejrJB3tFLj@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0Yx1fRJKUropygFZpV6OaIhWxN0Rd+k4kAWW9dWhJ14J0qtIu52i
xcefJrKo1SxaqzJ6Dz+u5jmAZoEQ8tigSLPGVATK2FXZ9upodCsQCHQZVqJNlhBzBA==
X-Google-Smtp-Source:
AGHT+IEpzsYflSqVWHGexuzehUX23y5AIS54HWFhZU+Pi34IsONE+QtaZJh7W4c1uhzeFnmbd2chiA==
X-Received: by 2002:a05:600c:310e:b0:42c:bc03:e765 with SMTP id
5b1f17b1804b1-42ccd32e363mr28189045e9.16.1726067766406;
Wed, 11 Sep 2024 08:16:06 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:a05:600c:1c21:b0:42c:af5b:facf with SMTP id
5b1f17b1804b1-42cbdfad180ls11718305e9.1.-pod-prod-03-eu; Wed, 11 Sep 2024
08:16:05 -0700 (PDT)
X-Received: by 2002:a05:600c:5115:b0:42c:ba1f:5475 with SMTP id
5b1f17b1804b1-42ccd35aa7amr28863015e9.26.1726067764859;
Wed, 11 Sep 2024 08:16:04 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1726067764; cv=none;
d=google.com; s=arc-20160816;
b=LyY7vdlTx/WhCB9OYNBDRET3NkT39Gn5zOLdCe9HVBFTdl+3cleJgnUgpxCRtz0Zxx
NCHSCgSLEUmL1LOxObS9sEhpC3ayfVYxHd0QiNmZVGVULXS9evqGSYi+QUfVc/P3Oew3
vcUChM8bgPb6vbSo5Qd7m/FP7x6+dPtNdQMCy1cf68+2pE9R3KK9pPxSu88Ffu2pyqwd
1jxW0Pb+lZ/AKRDtfJJE08OGDqFm8+eNqFO3RoNhYlY6g3pa1H+CMjXYvoMjE6l/66IQ
Ts7i1D3TcC17+f9Dkjx0+cn4cOn/wFHLUx4pCtperkqj65TKgIA9SiT4lAYAKs7GEz7K
Bkrw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:to:from:dkim-signature;
bh=+xcIsd5LwK2xo+sOd2S9f+YFWztMVv44uDr9RWlmB18=;
fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=;
b=ieMRIpaCLElQ9v+b0etwWvl0GF2/cdc7S7Jsm0wiZaOhxk+hKFtIsn6HAK5GUqQXtE
ukJ81rg/qXL9VOh3yUo7aJOfZmfR8qoB18wIm72pES6SVNpxunM2rVTwWV9bMlNejoW7
/oaDS3OXpziwF0SteacXPiE5Q8SQ+i8h+wDjKMJk320s09jF7IxYxkNwLAeOrNBLGHNR
gQGwcviD6f8ldVwrJyVib5/XCplY4jWE9ATyujZgfYv9s/fjuoilkIzVu+f/EVxLl5tN
b7pUAyawu6GLb/ns5i0+1miEvrLD+YszQ4VKyr12PYI2G2X9FVT7qfW7AEtrb/oCWoBP
3mEw==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=KCfbfYJW;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
5b1f17b1804b1-42caf2b1b33sor36610925e9.5.2024.09.11.08.16.04
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Wed, 11 Sep 2024 08:16:04 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a05:600c:1c06:b0:42b:a9d7:93 with SMTP id
5b1f17b1804b1-42ccd35ad4fmr26620095e9.28.1726067764161;
Wed, 11 Sep 2024 08:16:04 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.41.3])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-378956d37a1sm11797177f8f.77.2024.09.11.08.16.03
for <linux-amarula@amarulasolutions.com>
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 11 Sep 2024 08:16:03 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: linux-amarula@amarulasolutions.com
Subject: [PATCH v2 08/10] drm/mxsfb: Remove generic DRM drivers in probe
function
Date: Wed, 11 Sep 2024 17:15:53 +0200
Message-ID: <20240911151555.2915258-8-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20240911151555.2915258-1-dario.binacchi@amarulasolutions.com>
References: <20240911151555.2915258-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=KCfbfYJW;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
|
| Related |
show
|
diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c index cb5ce4e81fc7..a8d6dffcd02c 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c @@ -17,6 +17,7 @@ #include <linux/property.h> #include <linux/pm_runtime.h> +#include <drm/drm_aperture.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> #include <drm/drm_connector.h> @@ -360,6 +361,15 @@ static int mxsfb_probe(struct platform_device *pdev) if (ret) goto err_free; + /* + * Remove early framebuffers (ie. simplefb). The framebuffer can be + * located anywhere in RAM + */ + ret = drm_aperture_remove_framebuffers(&mxsfb_driver); + if (ret) + return dev_err_probe(&pdev->dev, ret, + "can't kick out existing framebuffers\n"); + ret = drm_dev_register(drm, 0); if (ret) goto err_unload;
Use aperture helpers to remove all generic graphics drivers before loading mxsfb. Makes mxsfb compatible with simpledrm. Co-Developed-by: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 10 ++++++++++ 1 file changed, 10 insertions(+)