lkml.org 
[lkml]   [2005]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [PATCH] USB and Driver Core patches for 2.6.10
    Date
    From
    ChangeSet 1.1938.446.18, 2004/12/15 16:33:56-08:00, david-b@pacbell.net

    [PATCH] USB: CRIS HCD and usb_dev->epmaxpacket (6/15)

    Makes the CRIS HCD stop referencing the udev->epmaxpacket[] arrays.
    Also makes it stop providing device allocate/deallocate routines;
    this HCD doesn't need them, and a later patch will remove that API.

    Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>


    drivers/usb/host/hc_crisv10.c | 20 +-------------------
    1 files changed, 1 insertion(+), 19 deletions(-)


    diff -Nru a/drivers/usb/host/hc_crisv10.c b/drivers/usb/host/hc_crisv10.c
    --- a/drivers/usb/host/hc_crisv10.c 2005-01-07 15:49:14 -08:00
    +++ b/drivers/usb/host/hc_crisv10.c 2005-01-07 15:49:14 -08:00
    @@ -479,8 +479,6 @@
    static int etrax_usb_submit_urb(struct urb *urb, int mem_flags);
    static int etrax_usb_unlink_urb(struct urb *urb, int status);
    static int etrax_usb_get_frame_number(struct usb_device *usb_dev);
    -static int etrax_usb_allocate_dev(struct usb_device *usb_dev);
    -static int etrax_usb_deallocate_dev(struct usb_device *usb_dev);

    static irqreturn_t etrax_usb_tx_interrupt(int irq, void *vhc, struct pt_regs *regs);
    static irqreturn_t etrax_usb_rx_interrupt(int irq, void *vhc, struct pt_regs *regs);
    @@ -512,8 +510,6 @@

    static struct usb_operations etrax_usb_device_operations =
    {
    - .allocate = etrax_usb_allocate_dev,
    - .deallocate = etrax_usb_deallocate_dev,
    .get_frame_number = etrax_usb_get_frame_number,
    .submit_urb = etrax_usb_submit_urb,
    .unlink_urb = etrax_usb_unlink_urb,
    @@ -1579,20 +1575,6 @@
    return (*R_USB_FM_NUMBER & 0x7ff);
    }

    -static int etrax_usb_allocate_dev(struct usb_device *usb_dev)
    -{
    - DBFENTER;
    - DBFEXIT;
    - return 0;
    -}
    -
    -static int etrax_usb_deallocate_dev(struct usb_device *usb_dev)
    -{
    - DBFENTER;
    - DBFEXIT;
    - return 0;
    -}
    -
    static irqreturn_t etrax_usb_tx_interrupt(int irq, void *vhc, struct pt_regs *regs)
    {
    DBFENTER;
    @@ -4546,7 +4528,7 @@
    usb_rh->speed = USB_SPEED_FULL;
    usb_rh->devnum = 1;
    hc->bus->devnum_next = 2;
    - usb_rh->epmaxpacketin[0] = usb_rh->epmaxpacketout[0] = 64;
    + usb_rh->ep0.desc.wMaxPacketSize = 64;
    usb_get_device_descriptor(usb_rh, USB_DT_DEVICE_SIZE);
    usb_new_device(usb_rh);

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:09    [W:0.024 / U:95.936 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site