Skip to contentSkip to conversation

PnP Changes for 2.5.66

PATCH New Adam Belay 1 participant 1 message Apr 4, 2003

lore
Share & tools
lore

Adam Belay

author
#0 lore raw

PATCH 1/1 PnP Changes for 2.5.66

Hi,

This set of changes includes driver conversions, pnpbios updates, and a few bug fixes.

Please Pull from: bk://linux-pnp.bkbits.net/pnp-2.5 (Note: this is different from the previous address)

Thanks,
Adam

 drivers/isdn/hisax/hisax_fcpcipnp.c |    4
 drivers/pnp/card.c                  |   74 ++++---
 drivers/pnp/core.c                  |    2
 drivers/pnp/manager.c               |    6
 drivers/pnp/pnpbios/core.c          |  137 +++++++++---
 drivers/pnp/pnpbios/proc.c          |   65 ++----
 include/linux/pnp.h                 |    7 
 include/linux/pnpbios.h             |   11 -
 sound/isa/als100.c                  |   11 -
 sound/isa/azt2320.c                 |  230 +++++++++------------
 sound/isa/dt019x.c                  |  251 +++++++++--------------
 sound/isa/sb/es968.c                |   10 
 sound/isa/sb/sb16.c                 |  380 +++++++++++++++++-------------------
 sound/oss/sb_card.c                 |    2 
 sound/oss/sb_card.h                 |    2 
 15 files changed, 600 insertions(+), 592 deletions(-)

through these ChangeSets:

[email protected], 2003-04-03 23:31:47+00:00, [email protected]
[PATCH 2.5] ES968: kmalloc params fix

Date: Mon, 31 Mar 2003 14:39:54 -0300 (ART)
From: Pablo Menichini <[email protected]>

This patch swaps the arguments of kmalloc, and relax the type of allocation to GFP_KERNEL as others PnP functions do.

Pablo

 sound/isa/sb/es968.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

[email protected], 2003-04-03 23:27:53+00:00, [email protected]
[PATCH 2.5] ALS100: kmalloc params fix

Date: Mon, 31 Mar 2003 14:39:54 -0300 (ART)
From: Pablo Menichini <[email protected]>

This patch swaps the arguments of kmalloc, and relax the type of allocation to GFP_KERNEL as others PnP functions do.

Pablo

 sound/isa/als100.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

[email protected], 2003-04-03 23:22:22+00:00, [email protected]
ALSA DT019X PnP Updates

Converts this driver to the pnp api.

 sound/isa/dt019x.c |  251 ++++++++++++++++++++++-------------------------------
 1 files changed, 105 insertions(+), 146 deletions(-)

[email protected], 2003-04-03 23:21:01+00:00, [email protected]
AZT2320 PnP Updates

Converts this driver to the pnp api.

 sound/isa/azt2320.c |  230 ++++++++++++++++++++++------------------------------
 1 files changed, 101 insertions(+), 129 deletions(-)

[email protected], 2003-03-25 21:37:30+00:00, [email protected]
Increment Version Number

 drivers/pnp/core.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

[email protected], 2003-03-25 21:34:45+00:00, [email protected]
Silently Ignore if the device is already active/disabled

Some drivers will try to activate a device even though it is already active. Instead of returning an error, the resource manager will now just ignore this. This should solve some of the recently seen problems. Also it doesn't make sense to return an error if the device is already in the correct state.

 drivers/pnp/manager.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

[email protected], 2003-03-25 21:21:48+00:00, [email protected]
ALSA SB16 PnP Update

Updates the driver to the new pnp apis. Although it has only been tested for compiliation, it is an improvement over the existing broken code. These changes are based on a update by Shaheed Haque <[email protected]>.

 sound/isa/sb/sb16.c |  380 +++++++++++++++++++++++++---------------------------
 1 files changed, 188 insertions(+), 192 deletions(-)

[email protected], 2003-03-25 17:31:57+00:00, [email protected]
[PATCH 2.5] PnP changes to allow MODULE_DEVICE_TABLE()

This patch fixes the MODULE_DEVICE_TABLE problems, the correct code was accidentally lost a few merges back. It is from Daniel Ritz <[email protected]>, below is the original message.

hello adam, jaroslav, list

this patch does:
- rename struct pnp_card_id to pnp_card_device_id
- fix all references to it

this is needed for the MODULE_DEVICE_TABLE() macro to work with pnp_card's. jaroslav did this a while ago (changeset 1.879.79.1), but adam undid it a bit later (changeset 1.889.202.3). but why?

w/o the patch gcc dies when compiling als100.c with the message 'storage size of __mod_pnp_card_device_table unknown' (this is from the macro).

any reasons why i should not send this to linus? against 2.5.65-bk

rgds
-daniel

 drivers/isdn/hisax/hisax_fcpcipnp.c |    4 ++--
 drivers/pnp/card.c                  |    6 +++---
 include/linux/pnp.h                 |    6 +++---
 sound/isa/als100.c                  |    8 ++++----
 sound/isa/sb/es968.c                |    8 ++++----
 sound/oss/sb_card.c                 |    2 +-
 sound/oss/sb_card.h                 |    2 +-
 7 files changed, 18 insertions(+), 18 deletions(-)

[email protected], 2003-03-24 22:36:22+00:00, [email protected]
ALS100 Memory Leak Fix

This trivial patch adds a missing kfree, the leak occurs when pnp_activate_dev fails.

 sound/isa/als100.c |    1 +
 1 files changed, 1 insertion(+)

[email protected], 2003-03-24 22:30:41+00:00, [email protected]
PnPBIOS Update

- Prevents calling the node_info call more than necessary in order to take load off the pnpbios
- intregrates the proc registration code with the device scanning code
- adds human readable error messages instead of number codes
- other small cleanups

 drivers/pnp/pnpbios/core.c |  137 +++++++++++++++++++++++++++++++++------------
 drivers/pnp/pnpbios/proc.c |   65 ++++++++-------------
 include/linux/pnpbios.h    |   11 +++
 3 files changed, 137 insertions(+), 76 deletions(-)

[email protected], 2003-03-24 22:24:04+00:00, [email protected]
PnP Card Service Cleanups

Moves probing code to a central location and matches when new cards are added instead of only when new drivers are added.

 drivers/pnp/card.c  |   68 +++++++++++++++++++++++++++++++++-------------------
 include/linux/pnp.h |    1 
 2 files changed, 45 insertions(+), 24 deletions(-)