[lkml]   [2004]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/5] Sonypi driver model & PM changes

I have been looking at the sysdevs in present in the kernel and noticed that
sonypi was registering itself as a system device. Surely it is possible to
suspend it with interrupyts enabled, so it better be converted to a platform
device. I course of convert I also did some additional changes:

- get rid of extra whitespace and convert to the kernel cosing style:
... However, there is one special case, namely functions: they have
the opening brace at the beginning of the next line...

- convert sonypi from using MODULE_PARM and __setup to module_param.
The parameters are:
sonypi.mask= - exported through sysfs, writeable
sonypi.verbose - exported through sysfs, writeable

- convert sonypi sysdev to platform device, drop old-style PM code
since APM does call device_suspend anyway so the new style handlers
will be called.

- switch sonypi_misc_read to use wake_event_interruptible instead of
a homemade copy, fix small race there, make sure that the device
is fully initialized before turning the interrupts on.

- convert from pci_find_device which is obsolete to pci_get_device.

Warning: I do not have the hardware som while the code is compiles and I am
pretty sure it is correct it has not been tested.

Should apply to 2.6.9

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:07    [W:0.111 / U:2.832 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site