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] [day] [month] [year] [list]
Date:	Fri, 9 Sep 2011 09:28:13 -0700
From:	Greg KH <gregkh@...e.de>
To:	Jonathan Cameron <jic23@....ac.uk>
Cc:	Donggeun Kim <dg77.kim@...sung.com>, linux-kernel@...r.kernel.org,
	linux-doc@...r.kernel.org, akpm@...ux-foundation.org,
	jic23@....ac.kr, kyungmin.park@...sung.com
Subject: Re: [PATCH v2] misc: Add driver for GP2AP002 proximity/ambient light
 sensor

On Fri, Sep 09, 2011 at 10:16:24AM +0100, Jonathan Cameron wrote:
> On 09/09/11 09:31, Greg KH wrote:
> > On Fri, Sep 09, 2011 at 05:22:26PM +0900, Donggeun Kim wrote:
> >> SHARP GP2AP002 is proximity and ambient light sensor.
> >> This patch supports it.
> >>
> >> Signed-off-by: Donggeun Kim <dg77.kim@...sung.com>
> >> Signed-off-by: Kyungmin Park <kyungmin.park@...sung.com>
> >> ---
> >> Changes for v2
> >>   - changed to expose lux
> >>   - changed request_irq to request_threaded_irq function
> >>   - added sysfs_notify function call
> > 
> > Why?  You should never do that unless you _really_ know what you are
> > doing.
> My bad.  I suggested it was a better bet than doing a uevent to act
> as a data ready notifier...
> 
> Greg, for future reference can you clarify why it's a bad idea or
> give a reference (if it's been clarified elsewhere and I missed it!)

uevents are not for general "this sensor changed" type events.  They are
for "large" events like "your laptop got docked, your disk got removed,
etc."

They can be very "heavy" so don't use them lightly,

greg k-h
--
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