linux-kernel mailing list

FromSubjectsort iconDate
monitordelcd Apr 28, 7:36 pm 2008
gregkh
patch sysfs-add-sys-dev-char-block-to-lookup-sysfs-path-by-m...
This is a note to let you know that I've just added the patch titled Subject: sysfs: add /sys/dev/{char,block} to lookup sysfs path by major:minor to my gregkh-2.6 tree. Its filename is sysfs-add-sys-dev-char-block-to-lookup-sysfs-path-by-major-minor.patch This tree can be found at http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/ From dan.j.williams@intel.com Mon Apr 21 10:51:11 2008 From: Dan Williams <dan.j.williams@intel.com> Date: Mon, ...
Apr 28, 7:51 pm 2008
Harvey Harrison
[PATCH 3/3] drivers: fix integer as NULL pointer warnings
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> --- drivers/char/cs5535_gpio.c | 2 +- drivers/char/n_hdlc.c | 2 +- drivers/char/rio/rioroute.c | 2 +- drivers/firmware/iscsi_ibft_find.c | 2 +- drivers/mtd/maps/plat-ram.c | 2 +- drivers/pci/pcie/aer/aerdrv_acpi.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/char/cs5535_gpio.c b/drivers/char/cs5535_gpio.c index c2d23ca..c0a4a0b 100644 --- a...
Apr 28, 7:50 pm 2008
Harvey Harrison
[PATCH 2/3] media: fix integer as NULL pointer warnings
drivers/media/video/v4l2-common.c:719:16: warning: Using plain integer as NULL pointer drivers/media/video/au0828/au0828-dvb.c:122:19: warning: Using plain integer as NULL pointer drivers/media/video/ivtv/ivtv-yuv.c:1101:22: warning: Using plain integer as NULL pointer drivers/media/video/ivtv/ivtv-yuv.c:1102:23: warning: Using plain integer as NULL pointer drivers/media/video/pvrusb2/pvrusb2-audio.c:78:39: warning: Using plain integer as NULL pointer drivers/media/video/pvrusb2/pvrusb2-video-v4l.c:84:...
Apr 28, 7:50 pm 2008
Harvey Harrison
[PATCH 1/3] scsi: fix integer as NULL pointer warnings
drivers/scsi/aic7xxx/aic7770_osm.c:53:58: warning: Using plain integer as NULL pointer drivers/scsi/aic7xxx/aic7xxx_osm_pci.c:355:47: warning: Using plain integer as NULL pointer drivers/scsi/aic7xxx/aic7xxx_osm_pci.c:372:55: warning: Using plain integer as NULL pointer drivers/scsi/aha152x.c:997:28: warning: Using plain integer as NULL pointer drivers/scsi/aha152x.c:1003:28: warning: Using plain integer as NULL pointer drivers/scsi/aha152x.c:1165:46: warning: Using plain integer as NULL pointer drive...
Apr 28, 7:50 pm 2008
Lyall Pearce
usb_submit_urb returns -38 - help?
Hi. My apologies if this is the incorrect group to post this question. I have linux kernel 2.6.24, from Gentoo r4. I am attempting to establish a webcam (MSI StarCam 370i). I have this webcam plugged into a USB Hub. I have established video4linux in the kernel. I have installed drivers gspcav1. The camera is recognised. When I attempt to use the webcam, I receive a failure from usb_submit_urb of value -38. For further info, you can refer to my request for help in the Gentoo forums, [ message continues ]
" title="http://forums...">http://forums...
Apr 28, 7:05 pm 2008
Pau Aliagas
can I receive UDP broadcasts in aliases interfaces?
Hi, I'm trying to use aliased interfaces to run multiple instances of a process that receives UDP broadcasts; I want to test all in a single computer when I have no access to the network. My problem is that I can bind to the virtual interface ip to send and receive packets, but I don't receive udp broadcasts. I have no firewall rules that block it and udp bcasts are generated from the same computer too. Is there any sysctl param I need to change? I'm usre this can be done but I haven'...
Apr 28, 6:27 pm 2008
Bjorn Helgaas
[patch 20/55] PNP: add debug output to encoders
Add debug output to encoders (enabled by CONFIG_PNP_DEBUG). This uses dev_printk, so I had to add pnp_dev arguments at the same time. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> --- drivers/pnp/isapnp/core.c | 2 drivers/pnp/pnpacpi/core.c | 2 drivers/pnp/pnpacpi/rsparser.c | 90 +++++++++++++++++++++++++++++------------ drivers/pnp/pnpbios/core.c | 2 drivers/pnp/pnpbios/rsparser.c | 58 ++++++++++...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 21/55] PNP: add debug when assigning PNP resources
This patch adds code to dump PNP resources before and after assigning resources and before writing them to the device. This is enabled by CONFIG_PNP_DEBUG=y. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Index: work10/drivers/pnp/base.h =================================================================== --- work10.orig/drivers/pnp/base.h 2008-04-28 16:09:14.000000000 -0600 +++ work10/drivers/pnp/base.h 2008-04-28 16:09:22.000000000 -0600 @@ -16,3 +16,5 @@ int pnp_check_mem(struct...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 24/55] PNP: remove unused interfaces using pnp_resour...
Rene Herman <rene.herman@gmail.com> recently removed the only in-tree driver uses of: pnp_init_resource_table() pnp_manual_config_dev() pnp_resource_change() in this change: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=109c53... These are no longer used in the PNP core either, so we can just remove them completely. It's possible that there are out-of-tree drivers that use these interfaces. They shoul...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 53/55] PNP: make interfaces private to the PNP core
The interfaces for registering protocols, devices, cards, and resource options should only be used inside the PNP core. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> --- drivers/pnp/base.h | 24 +++++++++++++++++++++++- include/linux/pnp.h | 34 ---------------------------------- 2 files changed, 23 insertions(+), 35 deletions(-) Index: work10/include/linux/pnp.h =============================================================...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 28/55] PNP: remove pnp_mem_flags() as an lvalue
A future change will change pnp_mem_flags() from a "#define that simplifies to an lvalue" to "an inline function that returns the flags value." Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/quirks.c =================================================================== --- work10.orig/drivers/pnp/quirks.c 2008-04-28 16:01:11.000000000 -0600 +++ work10/drivers/pnp/quirks.c 2008-04-28 16:09:27.000000000 -0600 @...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 50/55] PNP: make generic pnp_add_mem_resource()
Add a pnp_add_mem_resource() that can be used by all the PNP backends. This consolidates a little more pnp_resource_table knowledge into one place. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> --- drivers/pnp/base.h | 3 +++ drivers/pnp/interface.c | 19 +++++++------------ drivers/pnp/isapnp/core.c | 10 +++------- drivers/pnp/pnpacpi/rsparser.c | 30 +++++++----------------------- drivers/pnp/pnpbios/rsparser.c | 21 +++++---------------- dri...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 52/55] PNPACPI: move _CRS/_PRS warnings closer to the...
Move warnings about _CRS and _PRS problems to the place where we actually make the ACPI calls. Then we don't have to pass around acpi_status values any more than necessary. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/pnpacpi/pnpacpi.h =================================================================== --- work10.orig/drivers/pnp/pnpacpi/pnpacpi.h 2008-04-28 16:09:20.000000000 -0600 +++ work10/drivers/pnp...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 54/55] ISAPNP: remove unused pnp_dev->regs field
The "regs" field in struct pnp_dev is set but never read, so remove it. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/isapnp/core.c =================================================================== --- work10.orig/drivers/pnp/isapnp/core.c 2008-04-28 16:09:49.000000000 -0600 +++ work10/drivers/pnp/isapnp/core.c 2008-04-28 16:09:51.000000000 -0600 @@ -416,10 +416,7 @@ if (!dev) return NULL; - dev...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 55/55] PNPBIOS: remove include/linux/pnpbios.h
The contents of include/linux/pnpbios.h are used only inside the PNPBIOS backend, so this file doesn't need to be visible outside PNP. This patch moves the contents into an existing PNPBIOS-specific file, drivers/pnp/pnpbios/pnpbios.h. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> --- drivers/pnp/pnpbios/bioscalls.c | 1 drivers/pnp/pnpbios/core.c | 1 drivers/pnp/pnpbios/pnpbios.h | 136 +++++++++++++++++++++++++...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 51/55] ISAPNP: fold isapnp_read_resources() back into...
isapnp_get_resources() does very little besides call isapnp_read_resources(), so just fold them back together. Based on a patch by Rene Herman <rene.herman@gmail.com> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Index: work10/drivers/pnp/isapnp/core.c =================================================================== --- work10.orig/drivers/pnp/isapnp/core.c 2008-04-28 16:09:48.000000000 -0600 +++ work10/drivers/pnp/isapnp/core.c 2008-04-28 16:09:49.000000000 -0600 @@ -929,...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 49/55] PNP: make generic pnp_add_io_resource()
Add a pnp_add_io_resource() that can be used by all the PNP backends. This consolidates a little more pnp_resource_table knowledge into one place. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> --- drivers/pnp/base.h | 3 +++ drivers/pnp/interface.c | 20 ++++++++------------ drivers/pnp/isapnp/core.c | 8 +++----- drivers/pnp/pnpacpi/rsparser.c | 35 ++++++++++------------------------- drivers/pnp/pnpbios/rsparser.c | 23 ++++++----------------- ...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 47/55] PNP: make generic pnp_add_irq_resource()
Add a pnp_add_irq_resource() that can be used by all the PNP backends. This consolidates a little more pnp_resource_table knowledge into one place. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> --- drivers/pnp/base.h | 3 +++ drivers/pnp/interface.c | 14 +++++--------- drivers/pnp/isapnp/core.c | 8 +++----- drivers/pnp/pnpacpi/rsparser.c | 31 +++++++------------------------ drivers/pnp/pnpbios/rsparser.c | 31 +++++++------------------------ ...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 48/55] PNP: make generic pnp_add_dma_resource()
Add a pnp_add_dma_resource() that can be used by all the PNP backends. This consolidates a little more pnp_resource_table knowledge into one place. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> --- drivers/pnp/base.h | 2 + drivers/pnp/interface.c | 14 +++---------- drivers/pnp/isapnp/core.c | 9 ++------ drivers/pnp/pnpacpi/rsparser.c | 42 +++++++---------------------------------- drivers/pnp/pnpbios/rsparser.c | 26 +++---------------------- ...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 17/55] PNP: add debug output to option registration
Add debug output to resource option registration functions (enabled by CONFIG_PNP_DEBUG). This uses dev_printk, so I had to add pnp_dev arguments at the same time. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> --- drivers/pnp/isapnp/core.c | 49 +++++++++++++++++------------ drivers/pnp/pnpacpi/rsparser.c | 67 +++++++++++++++++++++++------------------ drivers/pnp/pnpbios/rsparser.c | 53 ++++++++++++++++++--------------...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 45/55] PNP: add pnp_resource index for ISAPNP
Save the ISAPNP config register index in the struct pnp_resource. We need this because it is important to write ISAPNP configuration back to the same registers we read it from. For example, if we read valid regions from memory descriptors 0, 1, and 3, we'd better write them back to the same registers, without compressing them to descriptors 0, 1, and 2. This was previously guaranteed by using the index into the pnp_resource_table array as the ISAPNP config register index. However, I am removing...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 35/55] PNP: pass resources, not indexes, to pnp_check...
The caller already has the struct resource pointer, so no need for pnp_check_port(), pnp_check_mem(), etc., to look it up again. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/base.h =================================================================== --- work10.orig/drivers/pnp/base.h 2008-04-28 16:09:25.000000000 -0600 +++ work10/drivers/pnp/base.h 2008-04-28 16:09:34.000000000 -0600 @@ -12,10 +12,10 @@ i...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 46/55] PNP: add pnp_new_resource() to find a new unse...
This encapsulates the code to locate a new pnp_resource of the desired type. Currently this uses the pnp_resource_table, but it will soon change to find a resource in a linked list. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Index: work10/drivers/pnp/resource.c =================================================================== --- work10.orig/drivers/pnp/resource.c 2008-04-28 16:09:43.000000000 -0600 +++ work10/drivers/pnp/resource.c 2008-04-28 16:09:45.000000000 -0600 @@ -538,6...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 43/55] PNP: add struct pnp_resource
This patch adds a "struct pnp_resource". This currently contains only a struct resource, but we will soon need additional PNP-specific information. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> --- drivers/pnp/base.h | 12 ++++++++---- drivers/pnp/interface.c | 1 + drivers/pnp/manager.c | 20 ++++++++++++-------- drivers/pnp/resource.c | 8 ++++---- 4 files changed, 25 insertions(+), 16 deletions(-) Index: work10/drivers/pnp/base.h ==========================...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 44/55] PNP: add pnp_get_pnp_resource()
In some places, we need to get the struct pnp_resource, not just the struct resource, because ISAPNP needs to store the register index in the pnp_resource. I don't like pnp_get_pnp_resource() and hope that it is temporary, but we need it for a little while. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> --- drivers/pnp/base.h | 3 +++ drivers/pnp/resource.c | 24 ++++++++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) Index: work10/drivers/pnp/base.h...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 42/55] PNP: remove pnp_resource_table references from...
This removes a few more references to the pnp_resource_table. No functional change. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> --- drivers/pnp/isapnp/core.c | 87 ++++++++++++++++++++-------------------- drivers/pnp/pnpacpi/rsparser.c | 88 ++++++++++++++++++++++------------------- drivers/pnp/pnpbios/rsparser.c | 82 +++++++++++++++++++++----------------- 3 files changed, 138 insertions(+), 119 deletions(-) Index: work10/drivers/pnp/isapnp/core.c ==================...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 11/55] PNP: add pnp_alloc_card()
Add pnp_alloc_card() to allocate a struct pnp_card and fill in the protocol, instance number, and initial PNP ID. Now it is always valid to use dev_printk() on any pnp_card pointer. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> --- drivers/pnp/base.h | 1 + drivers/pnp/card.c | 28 +++++++++++++++++++++++++--- drivers/pnp/isapnp/core.c | 11 ++++------- 3 files changed, 30 insertions(+), 10 deletions(-) In...
Apr 28, 6:33 pm 2008
Bjorn Helgaas
[patch 41/55] PNP: make pnp_resource_table private to PNP core
There are no remaining references to the PNP_MAX_* constants or the pnp_resource_table structure outside of the PNP core. Make them private to the PNP core. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> --- drivers/pnp/base.h | 12 ++++++++++++ drivers/pnp/core.c | 8 ++++++++ drivers/pnp/isapnp/core.c | 4 ++-- drivers/pnp/manager.c | 16 ++++++++-------- drivers/pnp/pnpacpi/rsparser.c | 10 ++++++---- drivers/pnp/pnpbios/rsparse...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 40/55] rtc: dont reference pnp_resource_table directly
pnp_resource_table is going away soon, so use the more generic public interfaces instead. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/rtc/rtc-cmos.c =================================================================== --- work10.orig/drivers/rtc/rtc-cmos.c 2008-04-28 15:57:02.000000000 -0600 +++ work10/drivers/rtc/rtc-cmos.c 2008-04-28 16:09:37.000000000 -0600 @@ -854,11 +854,12 @@ * don't define the IRQ....
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 39/55] PNP: remove PNP_MAX_* uses
Remove some PNP_MAX_* uses. The pnp_resource_table isn't dynamic yet, but with pnp_get_resource(), we can start moving away from the table size constants. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> --- drivers/pnp/interface.c | 43 ++++++++++++++++++------------------ drivers/pnp/quirks.c | 13 ++++++----- drivers/pnp/resource.c | 56 +++++++++++++++++++++++++++--------------------- drivers/pnp/system.c | 21 ++++++++---------- 4 files changed, 70 insertions(+), ...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 38/55] PNP: convert assign, interface to use pnp_get_...
This removes more direct references to pnp_resource_table from the pnp_assign_resources() path and the /sys user interface path. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Index: work10/drivers/pnp/manager.c =================================================================== --- work10.orig/drivers/pnp/manager.c 2008-04-28 16:09:34.000000000 -0600 +++ work10/drivers/pnp/manager.c 2008-04-28 16:09:36.000000000 -0600 @@ -21,14 +21,13 @@ { struct resource *res; - if (idx >...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 37/55] PNP: convert encoders to use pnp_get_resource(...
This removes more direct references to pnp_resource_table. This path is used when telling a device what resources it should use. This doesn't convert ISAPNP because ISA needs to know the config register index in addition to the resource itself. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/pnpacpi/rsparser.c =================================================================== --- work10.orig/drivers/pnp/p...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 36/55] PNP: convert resource checks to use pnp_get_re...
This removes more direct references to pnp_resource_table. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> --- drivers/pnp/resource.c | 96 +++++++++++++++++++++++++++++-------------------- 1 file changed, 58 insertions(+), 38 deletions(-) Index: work10/drivers/pnp/resource.c =================================================================== --- work10.orig/drivers/pnp/resource.c 2008-04-28 16:09:34.000000000 -0600 +++ work10/d...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 32/55] PNP: reduce redundancy in pnp_check_port() and...
Use a temporary "res" pointer to replace repeated lookups in the pnp resource tables. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/resource.c =================================================================== --- work10.orig/drivers/pnp/resource.c 2008-04-28 16:09:31.000000000 -0600 +++ work10/drivers/pnp/resource.c 2008-04-28 16:09:32.000000000 -0600 @@ -243,13 +243,15 @@ { int i; struct pnp_dev ...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 34/55] PNP: check for conflicts with all resources, n...
This patch removes a use of "idx" in pnp_check_port() and similar functions, in preparation for replacing idx with a pointer to the resource itself. I split this out because it changes the behavior slightly: we used to check for conflicts only with earlier resources, e.g., we checked resource 2 against resources 0 and 1 but not against 3, 4, etc. Now we will check against all resources except 2. Since resources are assigned in ascending order, the old behavior was probably safe, but I don't lik...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 23/55] PNP: remove pnp_resource_table from internal p...
This changes pnp_clean_resource_table() to take a pnp_dev pointer rather than a pnp_resource_table pointer. This reduces the visibility of pnp_resource_table and removes an opportunity for error in the caller. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/manager.c =================================================================== --- work10.orig/drivers/pnp/manager.c 2008-04-28 16:09:22.000000000 -0600 ...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 33/55] PNP: reduce redundancy in pnp_set_current_reso...
Use a temporary "res" pointer to replace repeated lookups in the pnp resource tables. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/interface.c =================================================================== --- work10.orig/drivers/pnp/interface.c 2008-04-28 16:09:22.000000000 -0600 +++ work10/drivers/pnp/interface.c 2008-04-28 16:09:33.000000000 -0600 @@ -323,6 +323,7 @@ const char *ubuf, size_t...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 31/55] PNP: reduce redundancy in pnp_assign_port() an...
Use a temporary "res" pointer to replace repeated lookups in the pnp resource tables. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> --- drivers/pnp/manager.c | 108 ++++++++++++++++++++++---------------------------- 1 file changed, 48 insertions(+), 60 deletions(-) Index: work10/drivers/pnp/manager.c =================================================================== --- work10.orig/drivers/pnp/manager.c 2008-04-28 16:09:25.000...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 30/55] PNP: use conventional "i" for loop indices
Cosmetic only: just use "i" instead of "tmp". Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/resource.c =================================================================== --- work10.orig/drivers/pnp/resource.c 2008-04-28 16:09:26.000000000 -0600 +++ work10/drivers/pnp/resource.c 2008-04-28 16:09:31.000000000 -0600 @@ -241,7 +241,7 @@ int pnp_check_port(struct pnp_dev *dev, int idx) { - int tmp; + in...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 27/55] PNP: add pnp_get_resource() interface
This adds a pnp_get_resource() that works the same way as platform_get_resource(). This will enable us to consolidate many pnp_resource_table references in one place, which will make it easier to make the table dynamic. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> --- drivers/pnp/resource.c | 27 +++++++++++++++++++++++++++ include/linux/pnp.h | 1 + 2 files changed, 28 insertions(+) Index: work10/include/linux/pnp.h ...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 29/55] PNP: convert resource accessors to use pnp_get...
This removes more direct references to pnp_resource_table. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> --- include/linux/pnp.h | 148 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 108 insertions(+), 40 deletions(-) Index: work10/include/linux/pnp.h =================================================================== --- work10.orig/include/linux/pnp.h 2008-04-28 16:09:26.000000000 -0600 +++ work10/include/linux/pnp.h 2008-04-28 16:09:30.000000000 -0600 @@...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 26/55] PNP: factor pnp_init_resource_table() and pnp_...
Move the common part of pnp_init_resource_table() and pnp_clean_resource_table() into a new pnp_init_resource(). This reduces a little code duplication and will be useful later to initialize an individual resource. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> --- drivers/pnp/base.h | 2 + drivers/pnp/manager.c | 90 ++++++++++++++++++++++++-------------------------- 2 files changed, 46 insertions(+), 46 deletions(-) Index: work10/drivers/pnp/base.h =====================...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 25/55] PNP: use dev_printk when possible
Use dev_printk() when possible for more informative error messages. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> --- drivers/pnp/isapnp/core.c | 38 ++++++++++++++++++-------------------- drivers/pnp/pnpacpi/rsparser.c | 20 ++++++++++++-------- drivers/pnp/pnpbios/rsparser.c | 36 ++++++++++++++---------------------- 3 files changed, 44 insertions(+), 50 deletions(-) Index: work10/drivers/pnp/isapnp/core.c =========...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 22/55] PNP: add pnp_init_resources(struct pnp_dev *) ...
Add pnp_init_resources(struct pnp_dev *) to replace pnp_init_resource_table(), which takes a pointer to the pnp_resource_table itself. Passing only the pnp_dev * reduces the possibility for error in the caller and removes the pnp_resource_table implementation detail from the interface. Even though pnp_init_resource_table() is exported, I did not export pnp_init_resources() because it is used only by the PNP core. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman &...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 19/55] PNP: remove more pnp_resource_table arguments
Stop passing around struct pnp_resource_table pointers. In most cases, the caller doesn't need to know how the resources are stored inside the struct pnp_dev. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> --- drivers/pnp/isapnp/core.c | 6 ++-- drivers/pnp/pnpacpi/core.c | 11 ++----- drivers/pnp/pnpacpi/pnpacpi.h | 6 ++-- drivers/pnp/pnpacpi/rsparser.c | 55 +++++++++++++++++++++----------------- drivers/pn...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 18/55] PNP: remove pnp_resource_table from internal g...
When we call protocol->get() and protocol->set() methods, we currently supply pointers to both the pnp_dev and the pnp_resource_table even though the pnp_resource_table should always be the one associated with the pnp_dev. This removes the pnp_resource_table arguments to make it clear that these methods only operate on the specified pnp_dev. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> --- include/linux/pnp.h | ...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 15/55] PNPACPI: extend irq_flags() to set IORESOURCE_...
This simplifies IRQ resource parsing slightly by computing all the IORESOURCE_IRQ_* flags at the same time. This also keeps track of shareability information when parsing options from _PRS. Previously we ignored shareability in _PRS. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/pnpacpi/rsparser.c =================================================================== --- work10.orig/drivers/pnp/pnpacpi/rspa...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 16/55] PNPACPI: pass pnp_dev instead of acpi_handle
Pass the pnp_dev pointer when possible instead of the acpi_handle. This allows better error messages and reduces the chance of error in the caller. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/pnpacpi/core.c =================================================================== --- work10.orig/drivers/pnp/pnpacpi/core.c 2008-04-28 16:09:12.000000000 -0600 +++ work10/drivers/pnp/pnpacpi/core.c 2008-04-28 16:09...
Apr 28, 6:34 pm 2008
Bjorn Helgaas
[patch 13/55] PNPACPI: use temporaries to reduce repetition
No functional change, just fewer words and fewer chances for transcription errors. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/pnpacpi/rsparser.c =================================================================== --- work10.orig/drivers/pnp/pnpacpi/rsparser.c 2008-04-28 16:09:15.000000000 -0600 +++ work10/drivers/pnp/pnpacpi/rsparser.c 2008-04-28 16:09:16.000000000 -0600 @@ -280,6 +280,14 @@ ...
Apr 28, 6:34 pm 2008
previous daytodaynext day
April 27, 2008April 28, 2008April 29, 2008