lkml.org 
[lkml]   [2004]   [Aug]   [29]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 29 Aug 2004 12:07:01 +0200
From castet.matthieu@free ...
Subjectpnp and manual choose of resource : bug ?
Hi,
due to a bug in pnpbios parser [1] I wanted to choose my configuration.
So I looked in Documentation/pnp.txt and tried to changed it with echo "manual
<depnum> <mode>" > resources, but it didn't work.
After looking in drivers/pnp/interface.c, I saw that is not implemented :(
So I try to modify the driver in order it use a good configuration. But for
using pnp_assign_resources that let you choose an other config, the device must
be disable, but when you activate a device with pnp_activate_dev, it call
pnp_auto_config_dev that change the config you choose before.
So you can't choose another configuration, without an ugly hack (dev->active =
0; to your change; dev->active = 1;)

Is that normal ?

Matthieu

[1] : http://bugzilla.kernel.org/show_bug.cgi?id=3295

PS : please CC me since I'm not subscribed to lkml.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [from the cache]
©2003-2008