lkml.org 
[lkml]   [2011]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH/RFC 2/5] usb:dummy_hcd: connect/disconnect test support
    On Thu, 16 Jun 2011, Tatyana Brokhman wrote:

    > This implementation adds a new proprietary device control requests (to be
    > handled by the dummy_hcd) that initiates a connect/disconnect sequence.
    > The bRequest value of the new control request is 0x52.
    > It is used by the user-space Unit testing application.
    >
    > Signed-off-by: Tatyana Linder <tlinder@codeaurora.org>

    > @@ -1534,6 +1572,10 @@ static int handle_control_request(struct dummy_hcd *dum_hcd, struct urb *urb,
    > *status = 0;
    > }
    > break;
    > + case 0x52: /* UT: Connect/disconnect the device */
    > + schedule_work(&dum_hcd->conn_disc_work);
    > + ret_val = 0;
    > + break;
    > }
    > return ret_val;
    > }

    I forgot to mention... You need to test setup->bRequestType.

    Alan Stern



    \
     
     \ /
      Last update: 2011-06-16 17:19    [W:0.022 / U:30.924 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site