[lkml]   [2012]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 19/20] Input: atmel_mxt_ts - remove mxt_make_highchg and parse T6 report
    Daniel Kurtz wrote:
    > This function attempts to make the CHG pin high by reading a bunch of
    > messages until the device is happy. Instead of just blindly trying to
    > read a fixed number of messages, let's actually read and process them.
    > It turns out that the messages after boot or nvupdates are T6 reports,
    > containing a status, and the config memory checksum. So, let's parse
    > them and dump a useful info message.
    > Signed-off-by: Daniel Kurtz <>

    mxt_make_highchg exists due to the interrupts being edge triggered. It
    forces the CHG line to go high.

    With this implementation, I suspect that if a new message arrives after you
    have read T44 and before you finish processing messages, then the interrupt
    handler will not ever be run. What testing have you done on this?

    The printout of T6 messages looks OK, though. I'd prefer to see a lookup
    table for the report IDs.

    Nick Dyer
    Software Engineer, ITDev Ltd
    Hardware and Software Development Consultancy

     \ /
      Last update: 2012-03-20 16:41    [W:0.019 / U:76.940 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site