Skip to content

Commit

Permalink
Merge tag 'fixes-for-v4.9-rc4' of git://git.kernel.org/pub/scm/linux/…
Browse files Browse the repository at this point in the history
…kernel/git/balbi/usb into usb-linus

Felipe writes:

usb: fixes for v4.9-rc4

Three more fixes for current -rc cycle. One
randbuild fix on dwc3-st which was lacking
<linux/pinctrl/consumer.h>, removal of IRQ
throttling for networking gadgets and a fix for
dwc3's error handling on failed initialization.
  • Loading branch information
gregkh committed Nov 1, 2016
2 parents a909d3e + fd9afd3 commit afe4155
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
5 changes: 2 additions & 3 deletions drivers/usb/dwc3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,15 +769,14 @@ static int dwc3_core_init(struct dwc3 *dwc)
return 0;

err4:
phy_power_off(dwc->usb2_generic_phy);
phy_power_off(dwc->usb3_generic_phy);

err3:
phy_power_off(dwc->usb3_generic_phy);
phy_power_off(dwc->usb2_generic_phy);

err2:
usb_phy_set_suspend(dwc->usb2_phy, 1);
usb_phy_set_suspend(dwc->usb3_phy, 1);
dwc3_core_exit(dwc);

err1:
usb_phy_shutdown(dwc->usb2_phy);
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/dwc3/dwc3-st.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <linux/slab.h>
#include <linux/regmap.h>
#include <linux/reset.h>
#include <linux/pinctrl/consumer.h>
#include <linux/usb/of.h>

#include "core.h"
Expand Down
8 changes: 0 additions & 8 deletions drivers/usb/gadget/function/u_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,14 +588,6 @@ static netdev_tx_t eth_start_xmit(struct sk_buff *skb,

req->length = length;

/* throttle high/super speed IRQ rate back slightly */
if (gadget_is_dualspeed(dev->gadget))
req->no_interrupt = (((dev->gadget->speed == USB_SPEED_HIGH ||
dev->gadget->speed == USB_SPEED_SUPER)) &&
!list_empty(&dev->tx_reqs))
? ((atomic_read(&dev->tx_qlen) % dev->qmult) != 0)
: 0;

retval = usb_ep_queue(in, req, GFP_ATOMIC);
switch (retval) {
default:
Expand Down

0 comments on commit afe4155

Please sign in to comment.