RE: [PATCH v3] input/misc: new ADXL345/346 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dmitry Torokhov wrote on 2010-06-25:
> Hi Mike, Michael,
>
> On Tue, Oct 20, 2009 at 04:40:39AM -0400, Mike Frysinger wrote:
>> From: Michael Hennerich <michael.hennerich@xxxxxxxxxx>
>>
>> This is a driver for the ADXL345/346 Three-Axis Digital Accelerometers.
>>
>
> As I mentioned in one of the threads I decided to pull 3-axis
> acceleromenetrs into input and I am finally getting around to apply
> the patch... However I messed a bit with it so I was wondering if
> someone could give it a short spin to see if I broke it or not.
>
> Thanks!
>

Hi Dmitry,

Thanks for merging this driver.
I gave it a quick spin. And there is one issue.
There is a code path that is taken with the mutex held,
which is also trying to acquire the mutex.

Take a look at

adxl34x_input_close() -> __adxl34x_disable()
or
adxl34x_disable() -> __adxl34x_disable()

I think __adxl34x_disable() should not acquire the mutex!

Besides that the driver seems to work fine.

We have some local enhancements for this driver which hasn't been submitted yet.

Mike,

Can you please send Dmitry the patches?

Greetings,
Michael

Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 4036 Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif


--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux