lkml.org 
[lkml]   [2018]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 37/66] lan78xx: Fix failure in USB Full Speed
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Yuiko Oshino <yuiko.oshino@microchip.com>


    [ Upstream commit a5b1379afbfabf91e3a689e82ac619a7157336b3 ]

    Fix initialize the uninitialized tx_qlen to an appropriate value when USB
    Full Speed is used.

    Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver")
    Signed-off-by: Yuiko Oshino <yuiko.oshino@microchip.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/usb/lan78xx.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/net/usb/lan78xx.c
    +++ b/drivers/net/usb/lan78xx.c
    @@ -2197,6 +2197,7 @@ static int lan78xx_reset(struct lan78xx_
    buf = DEFAULT_BURST_CAP_SIZE / FS_USB_PKT_SIZE;
    dev->rx_urb_size = DEFAULT_BURST_CAP_SIZE;
    dev->rx_qlen = 4;
    + dev->tx_qlen = 4;
    }

    ret = lan78xx_write_reg(dev, BURST_CAP, buf);

    \
     
     \ /
      Last update: 2018-01-29 21:52    [W:2.630 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site