Re: [PATCH v3] input: Add LED support to Synaptics device

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Torokhov
Date: Wednesday, April 21, 2010 - 10:23 am

On Wed, Apr 21, 2010 at 04:46:39PM +0200, Takashi Iwai wrote:

Tkashi,

Does it build if you disable LED subsystem? Note that I don't want
psmouse to depend on LEDs...


2+ instances of work may run simultaneously on 2 CPUs; I think you need
lcokign here. Also you need locking to prevent psmouse core access the
device (send other commands) when user accesses sysfs attributes. Also,
doesn't the device have to be in command mode before you start sending
commands to it?


I do not think synaptics_led structure uses that much space to be
allocated separately and conditionally; why don't you just put lde, work
and value directly into synaptics_data?


-- 
Dmitry
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v2] input: Add LED support to Synaptics device, Takashi Iwai, (Wed Apr 21, 6:01 am)
[PATCH v3] input: Add LED support to Synaptics device, Takashi Iwai, (Wed Apr 21, 7:46 am)
Re: [PATCH v3] input: Add LED support to Synaptics device, Dmitry Torokhov, (Wed Apr 21, 10:23 am)
Re: [PATCH v3] input: Add LED support to Synaptics device, Takashi Iwai, (Wed Apr 21, 11:10 pm)