lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <4D2643CA020000230002685F@novprvlin0050.provo.novell.com>
Date:	Thu, 06 Jan 2011 04:35:54 -0700
From:	"Joey Lee" <jlee@...ell.com>
To:	<kangkai.yin@...ux.intel.com>
Cc:	<corentin.chary@...il.com>, <bing.wei.liu@...el.com>,
	<yong.y.wang@...el.com>, "Gary Lin" <GLin@...ell.com>,
	<mjg@...hat.com>, <linux-kernel@...r.kernel.org>,
	<platform-driver-x86@...r.kernel.org>
Subject: Re: [PATCH] platform-driver-x86: ACPI EC Extra driver for
 Oaktrail

Hi Yin Kangkai, 

於 四,2011-01-06 於 04:32 -0700,Joey Lee 提到:
> Hi Yin Kangkai, 
> 
> 於 四,2011-01-06 於 11:54 +0100,Corentin Chary 提到:
> > On Thu, Jan 6, 2011 at 11:50 AM, Yin Kangkai
> > <kangkai.yin@...ux.intel.com> wrote:
> > > On 2011-01-06, 08:29 +0100, Corentin Chary wrote:
> > >> > + * gps - GPS subsystem enabled: contains either 0 or 1. (rw)
> > >> > + * wifi - WiFi subsystem enabled: contains either 0 or 1. (rw)
> > >> > + * wwan - WWAN (3G) subsystem enabled: contains either 0 or 1. (rw)
> > >>
> > >> Is there a reason do add these files in /sys/devices/platform while the
> > >> functionality is already provided by rfkill ?
> > >
> > > This is not the same functionality.
> > >
> > > enable/disable using files in /sys/devices/platform will completely
> > > cut power of those components. For example, if disabled, you can not
> > > list out those components using lsusb. Can we achieve this using
> > > rfkill?
> > >
> > 
> > oh, sorry then, I didn't understood that.
> > 
> > So, you're lucky, you can control both the device and the radio. I'm
> > not sure what's
> > the best thing to do here, you can probably keep these files here.
> > 
> > CCing Matthew, he may have something to say about that.
> > 
> > 
> 
> We should used rfkill to provide interface to userland for
> enable/disable wlan/bluetooth/wwan. You can set the killswitch state to
> soft block when your driver call EC function to disable devices.
> 
> Udev/HAL will forward the killswitch change event to userland, then
> userland application can do some response, e.g. show up OSD.
> And, userland app also can control killswitch by /dev/rfkill.
> 
> There also have a urfkill daemon to provide DBus to userland app for
> control killswitch:
>  http://freedesktop.org/wiki/Software/urfkill
> 
> Use rfkill interface is more standard then create special sysfs file
> in /sys/devices/platform/intel_oaktrail. 
> 

Sorry, forgot said. 
I think the rfkill is good enough for userland and don't need have
special sysfs interface in /sys/devices/platform...


Thank's a lot
Joey Lee

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ