lkml.org 
[lkml]   [2006]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Add a "enable" sysfs attribute to the pci devices to allow userspace (Xorg) to enable devices without doing foul direct access
From
Date

> *Especially* since there are a number of users (including myself) who
> have tendencies to go wandering around sysfs tinkering with the
> available values. Not having seen this thread, I would have had no
> problem doing "echo -n 0 >enable" on some device thinking that it was
> a fairly standard way to turn off the power to my soundcard

it is

> when I'm
> not using it, and likely result in a kernel panic because I suddenly
> disabled the BARs on the device out from under the driver.

well it is in the pci dir, not in the sound dir. You know you're not
using the driver layer at that point, but are directly poking the
hardware. Just like the resources (eg the contents of the bars) are in
that same directory... you're not echo;ing random crap into those as
well, are you?
-
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: 2006-05-08 16:57    [W:0.133 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site