login
Header Space

 
 

Re: 2.6.22: pcspkr driver no longer loads automatically

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bill Nottingham <notting@...>
Cc: Kay Sievers <kay.sievers@...>, Chuck Ebbert <cebbert@...>, Jeff Garzik <jeff@...>, linux-kernel <linux-kernel@...>
Date: Sunday, November 4, 2007 - 1:20 am

Hi,

On Wednesday 08 August 2007 15:32, Bill Nottingham wrote:

The patch below should restore generation of uevents for pcspkr devices.
Since devices are not created in pcspkr module but rather in arch setup
code it is right (and safe) thing to do.

-- 
Dmitry


pcspkr: restore uevent generation

Make sure that we generate uevents when creating pcspkr devices
so that userspace will load pcspkr driver.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---
 arch/alpha/kernel/setup.c          |    2 ++
 arch/mips/kernel/pcspeaker.c       |    2 ++
 arch/powerpc/kernel/setup-common.c |    2 ++
 arch/x86/kernel/pcspeaker.c        |    2 ++
 4 files changed, 8 insertions(+)

Index: work/arch/alpha/kernel/setup.c
===================================================================
--- work.orig/arch/alpha/kernel/setup.c
+++ work/arch/alpha/kernel/setup.c
@@ -1501,6 +1501,8 @@ static __init int add_pcspkr(void)
 	if (!pd)
 		return -ENOMEM;
 
+	pd->dev.uevent_suppress = 0;
+
 	ret = platform_device_add(pd);
 	if (ret)
 		platform_device_put(pd);
Index: work/arch/mips/kernel/pcspeaker.c
===================================================================
--- work.orig/arch/mips/kernel/pcspeaker.c
+++ work/arch/mips/kernel/pcspeaker.c
@@ -19,6 +19,8 @@ static __init int add_pcspkr(void)
 	if (!pd)
 		return -ENOMEM;
 
+	pd->dev.uevent_suppress = 0;
+
 	ret = platform_device_add(pd);
 	if (ret)
 		platform_device_put(pd);
Index: work/arch/powerpc/kernel/setup-common.c
===================================================================
--- work.orig/arch/powerpc/kernel/setup-common.c
+++ work/arch/powerpc/kernel/setup-common.c
@@ -454,6 +454,8 @@ static __init int add_pcspkr(void)
 	if (!pd)
 		return -ENOMEM;
 
+	pd->dev.uevent_suppress = 0;
+
 	ret = platform_device_add(pd);
 	if (ret)
 		platform_device_put(pd);
Index: work/arch/x86/kernel/pcspeaker.c
===================================================================
--- work.orig/arch/x86/kernel/pcspeaker.c
+++ work/arch/x86/kernel/pcspeaker.c
@@ -11,6 +11,8 @@ static __init int add_pcspkr(void)
 	if (!pd)
 		return -ENOMEM;
 
+	pd->dev.uevent_suppress = 0;
+
 	ret = platform_device_add(pd);
 	if (ret)
 		platform_device_put(pd);
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.22: pcspkr driver no longer loads automatically, Chuck Ebbert, (Tue Aug 7, 3:33 pm)
Re: 2.6.22: pcspkr driver no longer loads automatically, Bill Nottingham, (Wed Aug 8, 3:32 pm)
Re: 2.6.22: pcspkr driver no longer loads automatically, Dmitry Torokhov, (Sun Nov 4, 1:20 am)
Re: 2.6.22: pcspkr driver no longer loads automatically, Bill Nottingham, (Wed Aug 8, 6:22 pm)
speck-geostationary