Bug#1085949: Installer regression on ppc64el under PowerKVM

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.powerpc
Message-ID <174297239555.2857396.213566369009396179.reportbug__7493.70159335143$1742972612$gmane$org@z6>
Package: src:linux
Version: 6.1.129-1
Followup-For: Bug #1085949
User: [email protected]
Usertags: powerpc ppc64
X-Debbugs-Cc: [email protected]

Hi Ben,

could we modify the patch to apply the device name change on ppc64el only?

We could either trigger on "#if(_CALL_ELF == 2)" or "#ifdef __LITTLE_ENDIAN__":

diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c
index f85428e13996..3357fef4b705 100644
--- a/drivers/video/fbdev/offb.c
+++ b/drivers/video/fbdev/offb.c
@@ -691,7 +691,11 @@ MODULE_DEVICE_TABLE(of, offb_of_match_display);
 
 static struct platform_driver offb_driver_display = {
        .driver = {
+#ifdef __LITTLE_ENDIAN__
+               .name = "of-display.0",
+#else
                .name = "of-display",
+#endif
                .of_match_table = offb_of_match_display,
        },
        .probe = offb_probe_display,

I'm attaching an updated patch. Could you use this one instead?

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
0001-fbdev-offb-Update-expected-device-name-on-ppc64el.patch (text/plain, 804 B)
>From f3ad5f2f16e8c92378f307c191e867b8e027f7c0 Mon Sep 17 00:00:00 2001
From: John Paul Adrian Glaubitz <[email protected]>
Date: Wed, 26 Mar 2025 07:58:08 +0100
Subject: [PATCH] fbdev/offb: Update expected device name on ppc64el

---
 drivers/video/fbdev/offb.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c
index f85428e13996..3357fef4b705 100644
--- a/drivers/video/fbdev/offb.c
+++ b/drivers/video/fbdev/offb.c
@@ -691,7 +691,11 @@ MODULE_DEVICE_TABLE(of, offb_of_match_display);
 
 static struct platform_driver offb_driver_display = {
 	.driver = {
+#ifdef __LITTLE_ENDIAN__
+		.name = "of-display.0",
+#else
 		.name = "of-display",
+#endif
 		.of_match_table = offb_of_match_display,
 	},
 	.probe = offb_probe_display,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.