aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-08-04 23:11:28 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-04 23:11:28 -0400
commitae9b475ebed96afe51d6bcf10dc7aee9c8d89ed7 (patch)
tree374bf5821a03d717b35f0b91dcbdeaa2428e649d /drivers/usb/dwc2
parent79eb238c76782a59d51adf8a3dd7f6444245b475 (diff)
parentd310d05f1225d1f6f2bf505255fdf593bfbb3051 (diff)
Merge tag 'usb-3.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB updates from Greg KH: "Here is the big USB driver update for 3.17-rc1. Loads of gadget driver changes in here, including some big file movements to make things easier to manage over time. There's also the usual xhci and uas driver updates, and a handful of other changes in here. The changelog has the full details. All of these have been in linux-next for a while" * tag 'usb-3.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (211 commits) USB: devio: fix issue with log flooding uas: Log a warning when we cannot use uas because the hcd lacks streams uas: Only complain about missing sg if all other checks succeed xhci: Add missing checks for xhci_alloc_command failure xhci: Rename Asrock P67 pci product-id to EJ168 xhci: Blacklist using streams on the Etron EJ168 controller uas: Limit qdepth to 32 when connected over usb-2 uwb/whci: use correct structure type name in sizeof usb-core bInterval quirk USB: serial: ftdi_sio: Add support for new Xsens devices USB: serial: ftdi_sio: Annotate the current Xsens PID assignments usb: chipidea: debug: fix sparse non static symbol warnings usb: ci_hdrc_imx doc: fsl,usbphy is required usb: ci_hdrc_imx: Return -EINVAL for missing USB PHY usb: core: allow zero packet flag for interrupt urbs usb: lvstest: Fix sparse warnings generated by kbuild test bot USB: core: hcd-pci: free IRQ before disabling PCI device when shutting down phy: miphy365x: Represent each PHY channel as a DT subnode phy: miphy365x: Provide support for the MiPHY356x Generic PHY phy: miphy365x: Add Device Tree bindings for the MiPHY365x ...
Diffstat (limited to 'drivers/usb/dwc2')
-rw-r--r--drivers/usb/dwc2/gadget.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index f3c56a2fed5b..0ba9c335b584 100644
--- a/drivers/usb/dwc2/gadget.c
+++ b/drivers/usb/dwc2/gadget.c
@@ -1,6 +1,4 @@
1/** 1/**
2 * linux/drivers/usb/gadget/s3c-hsotg.c
3 *
4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. 2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com 3 * http://www.samsung.com
6 * 4 *
@@ -1022,7 +1020,8 @@ static void s3c_hsotg_disconnect(struct s3c_hsotg *hsotg);
1022 * 1020 *
1023 * Set stall for ep0 as response for setup request. 1021 * Set stall for ep0 as response for setup request.
1024 */ 1022 */
1025static void s3c_hsotg_stall_ep0(struct s3c_hsotg *hsotg) { 1023static void s3c_hsotg_stall_ep0(struct s3c_hsotg *hsotg)
1024{
1026 struct s3c_hsotg_ep *ep0 = &hsotg->eps[0]; 1025 struct s3c_hsotg_ep *ep0 = &hsotg->eps[0];
1027 u32 reg; 1026 u32 reg;
1028 u32 ctrl; 1027 u32 ctrl;
@@ -1994,7 +1993,7 @@ static void kill_all_requests(struct s3c_hsotg *hsotg,
1994 s3c_hsotg_complete_request(hsotg, ep, req, 1993 s3c_hsotg_complete_request(hsotg, ep, req,
1995 result); 1994 result);
1996 } 1995 }
1997 if(hsotg->dedicated_fifos) 1996 if (hsotg->dedicated_fifos)
1998 if ((readl(hsotg->regs + DTXFSTS(ep->index)) & 0xffff) * 4 < 3072) 1997 if ((readl(hsotg->regs + DTXFSTS(ep->index)) & 0xffff) * 4 < 3072)
1999 s3c_hsotg_txfifo_flush(hsotg, ep->index); 1998 s3c_hsotg_txfifo_flush(hsotg, ep->index);
2000} 1999}
@@ -3390,10 +3389,8 @@ static int s3c_hsotg_probe(struct platform_device *pdev)
3390 int i; 3389 int i;
3391 3390
3392 hsotg = devm_kzalloc(&pdev->dev, sizeof(struct s3c_hsotg), GFP_KERNEL); 3391 hsotg = devm_kzalloc(&pdev->dev, sizeof(struct s3c_hsotg), GFP_KERNEL);
3393 if (!hsotg) { 3392 if (!hsotg)
3394 dev_err(dev, "cannot get memory\n");
3395 return -ENOMEM; 3393 return -ENOMEM;
3396 }
3397 3394
3398 /* 3395 /*
3399 * Attempt to find a generic PHY, then look for an old style 3396 * Attempt to find a generic PHY, then look for an old style
@@ -3512,7 +3509,6 @@ static int s3c_hsotg_probe(struct platform_device *pdev)
3512 eps = kcalloc(hsotg->num_of_eps + 1, sizeof(struct s3c_hsotg_ep), 3509 eps = kcalloc(hsotg->num_of_eps + 1, sizeof(struct s3c_hsotg_ep),
3513 GFP_KERNEL); 3510 GFP_KERNEL);
3514 if (!eps) { 3511 if (!eps) {
3515 dev_err(dev, "cannot get memory\n");
3516 ret = -ENOMEM; 3512 ret = -ENOMEM;
3517 goto err_supplies; 3513 goto err_supplies;
3518 } 3514 }