• Frank Gevaerts's avatar
    [PATCH] USB: ipaq.c timing parameters · b33488eb
    Frank Gevaerts authored
    Adds configurable waiting periods to the ipaq connection code. These are
    not needed when the pocketpc device is running normally when plugged in,
    but they need extra delays if they are physically connected while
    rebooting.
    
    There are two parameters :
    
    * initial_wait : this is the delay before the driver attemts to start the
      connection. This is needed because the pocktpc device takes much
      longer to boot if the driver starts sending control packets too soon.
    
    * connect_retries : this is the number of times the control urb is
      retried before finally giving up. The patch also adds a 1 second delay
      between retries.
    
    I'm not sure if the cases where this patch is useful are general enough
    to include this in the kernel.
    Signed-off-by: default avatarFrank Gevaerts <frank.gevaerts@fks.be>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    b33488eb
ipaq.c 41.8 KB