]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
UBUNTU: SAUCE: powerpc/vio: drop bus_type from parent device
authorThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 27 Sep 2019 14:41:53 +0000 (11:41 -0300)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Feb 2021 07:25:46 +0000 (08:25 +0100)
BugLink: https://bugs.launchpad.net/bugs/1845572
Commit df44b479654f62b478c18ee4d8bc4e9f897a9844 ("kobject: return error code if
writing /sys/.../uevent fails") started returning failure when writing to
/sys/devices/vio/uevent.

This causes an early udevadm trigger to fail. On some installer versions of
Ubuntu, this will cause init to exit, thus panicing the system very early
during boot.

Removing the bus_type from the parent device will remove some of the extra
empty files from /sys/devices/vio/, but will keep the rest of the layout for
vio devices, keeping them under /sys/devices/vio/.

It has been tested that uevents for vio devices don't change after this fix,
they still contain MODALIAS.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/powerpc/platforms/pseries/vio.c

index b2797cfe4e2b087535a23c13b2132f4e08324419..3e16808ad4fc3a89a9c13aa9579b2ec70c4ee920 100644 (file)
@@ -37,7 +37,6 @@ static struct vio_dev vio_bus_device  = { /* fake "parent" device */
        .name = "vio",
        .type = "",
        .dev.init_name = "vio",
-       .dev.bus = &vio_bus_type,
 };
 
 #ifdef CONFIG_PPC_SMLPAR