Re: [PATCH try #4] Input/Joystick Driver: add support AD7142 joystick driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <bryan.wu@...>
Cc: Andrey Panin <pazke@...>, Roel Kluin <12o3l@...>, Ahmed S. Darwish <darwish.07@...>, <linux-input@...>, <linux-joystick@...>, <linux-kernel@...>, <akpm@...>, Jean Delvare <khali@...>
Date: Wednesday, October 17, 2007 - 12:12 pm

Hi Bryan,

On 10/17/07, Bryan Wu <bryan.wu@analog.com> wrote:

My comments are in addition to Jean's:


I think you need disable_irq() here


and enable_irq() here. This way you can be sure that you will not
re-arm the work between flush_scheduled_work() and shutting off the
controller.


Where did input_unregister_device() go? It still needs to be somewhere...

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

Messages in current thread:
Re: [PATCH try #4] Input/Joystick Driver: add support AD7142..., Dmitry Torokhov, (Wed Oct 17, 12:12 pm)