lkml.org 
[lkml]   [2010]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 2/2] MEMSTICK: Add driver for Ricoh R5C592 Card reader.
    From
    Date
    About INT bits, I still don't understand them exactly.

    First of all we have 4 meaningful bits.
    In parallel mode these are exposed on data lines, in serial mode only
    MEMSTICK_INT_CED is.
    And I can always send MS_TPC_GET_INT or just read the registers.

    #define MEMSTICK_INT_CMDNAK 0x01
    #define MEMSTICK_INT_BREQ 0x20
    #define MEMSTICK_INT_ERR 0x40
    #define MEMSTICK_INT_CED 0x80


    Now, I send a command to device, say MS_CMD_BLOCK_READ.
    What bits I need to poll until I can be sure that command is completed?

    Also the MEMSTICK_INT_BREQ tells that input is available in firmware
    buffer (to read using TPC_READ_LONG_DATA)?



    Is that true that MEMSTICK_INT_BREQ is a summary of fifo full/empty bits
    in status0?

    And same about MEMSTICK_INT_ERR and status1.

    I try my best to create a driver that actually works, simple, and error
    free, even in unusual conditions.
    Thats why I am asking all these questions.

    Thanks for help,
    Best regards,
    Maxim Levitsky



    \
     
     \ /
      Last update: 2010-08-09 21:21    [W:3.387 / U:0.232 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site