From nobody Mon Oct 6 11:51:59 2025 Received: from srv01.abscue.de (abscue.de [89.58.28.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEF362ED149; Tue, 22 Jul 2025 14:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.58.28.240 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753195318; cv=none; b=cf5YFXWMCaJ1FVmVLQc4ip/ru+dIFBn8u/hATNxZKqKcxhtH1cxnWsJTuywtJNvXii3R4tTEkRrqDxTFRGLPzoXBo2pfEsJz2yXcBl2hUaHyEzGX6IMiLde+6i+9a8A4pC2eX5c7fTGx63w0x7S6bNYCVRs9mi/PLbA2EzcdNyc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753195318; c=relaxed/simple; bh=KE2Qre5vhvSQZvizKoXFSBgmGwTIQRLA2fyIdbp60f8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cUOF29HcLWWGbbewTOz7afLwIxMG07b8bzun06qUy3tyYUFexSGEgndIYNYEbyEngojd+zIsuzQ2wk3Eisrvxjbm7916QT6UlzAMqLYRcT1Ym9HYS3J7mb8vTzFnRxgiyju1JYcaTgM/p/fSrPYsklO9TRXPwC0nRdw/1HvzpGo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de; spf=pass smtp.mailfrom=abscue.de; arc=none smtp.client-ip=89.58.28.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=abscue.de Received: from srv01.abscue.de (localhost [127.0.0.1]) by spamfilter.srv.local (Postfix) with ESMTP id 7F48B1C07C3; Tue, 22 Jul 2025 16:41:46 +0200 (CEST) X-Spam-Level: Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cdcb:3c00:ce39:8bff:5db4:1ef8]) by srv01.abscue.de (Postfix) with ESMTPSA id E615F1C07FA; Tue, 22 Jul 2025 16:41:45 +0200 (CEST) From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Tue, 22 Jul 2025 16:41:17 +0200 Subject: [PATCH v2 15/15] drm: sprd: add fbdev support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250722-ums9230-drm-v2-15-054276ec213d@abscue.de> References: <20250722-ums9230-drm-v2-0-054276ec213d@abscue.de> In-Reply-To: <20250722-ums9230-drm-v2-0-054276ec213d@abscue.de> To: David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Kevin Tang Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Otto_Pfl=C3=BCger?= X-Mailer: b4 0.14.2 Set up the internal fbdev client in the Unisoc DRM driver. This is needed to make the framebuffer console work. Signed-off-by: Otto Pfl=C3=BCger --- drivers/gpu/drm/sprd/sprd_drm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/sprd/sprd_drm.c b/drivers/gpu/drm/sprd/sprd_dr= m.c index 4abc0b0b14f46ced91ea4478d861931db83dc87c..6153c06573a355457f897c66c91= ece409aba62bf 100644 --- a/drivers/gpu/drm/sprd/sprd_drm.c +++ b/drivers/gpu/drm/sprd/sprd_drm.c @@ -12,8 +12,10 @@ #include #include =20 +#include #include #include +#include #include #include #include @@ -59,6 +61,8 @@ static struct drm_driver sprd_drm_drv =3D { .dumb_create =3D sprd_gem_dumb_create, .gem_prime_import_sg_table =3D sprd_gem_prime_import_sg_table, =20 + DRM_FBDEV_DMA_DRIVER_OPS, + .name =3D DRIVER_NAME, .desc =3D DRIVER_DESC, .major =3D DRIVER_MAJOR, @@ -152,6 +156,8 @@ static int sprd_drm_bind(struct device *dev) if (ret < 0) goto err_kms_helper_poll_fini; =20 + drm_client_setup(drm, NULL); + return 0; =20 err_kms_helper_poll_fini: --=20 2.50.0