lkml.org 
[lkml]   [2009]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [lm-sensors] [PATCH] adxl345 accelerometer hwmon driver
    Mike Frysinger wrote:
    > On Thu, Jul 2, 2009 at 13:38, Jonathan Cameron wrote:
    >
    >> One interesting thing I just came across whilst searching lkml for
    >> your post to reply to, was that Mike Frysinger submited a patch
    >> adding some board support for an adx34x driver to bf548-ezkit.
    >> I've not seen any sign of this anywhere else as yet (it hasn't
    >> hit the input list which would be the obvious place) I've copied in
    >> both people who signed off. Michael or Mike able to give us more info?
    >>
    >
    > that's because we're still in the process of making sure it is stable.
    > I2C is a pita to work with.
    > http://git.kernel.org/?p=linux/kernel/git/vapier/blackfin.git;a=commitdiff;h=43d4cabbdeb5c24f84b159c5dc369c1a60844a48
    >
    > the advantage here is that we have been testing our driver with actual
    > hardware ...
    >
    Cheat ;)

    Looks like a nice driver, see what you mean about the i2c fun and games
    you are having
    though.
    I'm particularly interested in your use of the fifo:

    I've only had a quick look, but assuming I read it right, you are using
    the fifo
    with a watermark of 0 then spitting out 3 separate events for every
    element in it.
    Basically a data ready response unless you fail to read in time. Seems
    like a sensible
    approach with this particular chip in input type applications.

    Does this work well even at the higher rates? Seems a fair bit of
    overhead but I guess
    if everything is quick enough it doesn't really matter. Does this act as
    a clean means
    of ensuring you get a consistent set of values?

    Thanks,

    Jonathan



    \
     
     \ /
      Last update: 2009-07-02 20:03    [W:6.662 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site