Skip to content

Commit 3032f8c

Browse files
committed
Merge tag 'usb-4.16-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB fixes from Greg KH: "Here are a small clump of USB fixes for 4.16-rc6. Nothing major, just a number of fixes in lots of different drivers, as well as a PHY driver fix that snuck into this tree. Full details are in the shortlog. All of these have been in linux-next with no reported issues" * tag 'usb-4.16-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (22 commits) usb: musb: Fix external abort in musb_remove on omap2430 phy: qcom-ufs: add MODULE_LICENSE tag usb: typec: tcpm: fusb302: Do not log an error on -EPROBE_DEFER USB: OHCI: Fix NULL dereference in HCDs using HCD_LOCAL_MEM usbip: vudc: fix null pointer dereference on udc->lock xhci: Fix front USB ports on ASUS PRIME B350M-A usb: host: xhci-plat: revert "usb: host: xhci-plat: enable clk in resume timing" usb: usbmon: Read text within supplied buffer size usb: host: xhci-rcar: add support for r8a77965 USB: storage: Add JMicron bridge 152d:2567 to unusual_devs.h usb: xhci: dbc: Fix lockdep warning xhci: fix endpoint context tracer output Revert "typec: tcpm: Only request matching pdos" usb: musb: call pm_runtime_{get,put}_sync before reading vbus registers usb: quirks: add control message delay for 1b1c:1b20 uas: fix comparison for error code usb: gadget: udc: renesas_usb3: add binging for r8a77965 usb: renesas_usbhs: add binding for r8a77965 usb: dwc2: fix STM32F7 USB OTG HS compatible dt-bindings: usb: fix the STM32F7 DWC2 OTG HS core binding ...
2 parents 6560ca4 + 94e46a4 commit 3032f8c

File tree

26 files changed

+211
-218
lines changed

26 files changed

+211
-218
lines changed

Documentation/devicetree/bindings/usb/dwc2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Required properties:
1919
configured in FS mode;
2020
- "st,stm32f4x9-hsotg": The DWC2 USB HS controller instance in STM32F4x9 SoCs
2121
configured in HS mode;
22-
- "st,stm32f7xx-hsotg": The DWC2 USB HS controller instance in STM32F7xx SoCs
22+
- "st,stm32f7-hsotg": The DWC2 USB HS controller instance in STM32F7 SoCs
2323
configured in HS mode;
2424
- reg : Should contain 1 register range (address and length)
2525
- interrupts : Should contain 1 interrupt

Documentation/devicetree/bindings/usb/renesas_usb3.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Required properties:
44
- compatible: Must contain one of the following:
55
- "renesas,r8a7795-usb3-peri"
66
- "renesas,r8a7796-usb3-peri"
7+
- "renesas,r8a77965-usb3-peri"
78
- "renesas,rcar-gen3-usb3-peri" for a generic R-Car Gen3 compatible
89
device
910

Documentation/devicetree/bindings/usb/renesas_usbhs.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Required properties:
1212
- "renesas,usbhs-r8a7794" for r8a7794 (R-Car E2) compatible device
1313
- "renesas,usbhs-r8a7795" for r8a7795 (R-Car H3) compatible device
1414
- "renesas,usbhs-r8a7796" for r8a7796 (R-Car M3-W) compatible device
15+
- "renesas,usbhs-r8a77965" for r8a77965 (R-Car M3-N) compatible device
1516
- "renesas,usbhs-r8a77995" for r8a77995 (R-Car D3) compatible device
1617
- "renesas,usbhs-r7s72100" for r7s72100 (RZ/A1) compatible device
1718
- "renesas,rcar-gen2-usbhs" for R-Car Gen2 or RZ/G1 compatible devices

Documentation/devicetree/bindings/usb/usb-xhci.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Required properties:
1313
- "renesas,xhci-r8a7793" for r8a7793 SoC
1414
- "renesas,xhci-r8a7795" for r8a7795 SoC
1515
- "renesas,xhci-r8a7796" for r8a7796 SoC
16+
- "renesas,xhci-r8a77965" for r8a77965 SoC
1617
- "renesas,rcar-gen2-xhci" for a generic R-Car Gen2 or RZ/G1 compatible
1718
device
1819
- "renesas,rcar-gen3-xhci" for a generic R-Car Gen3 compatible device

drivers/phy/qualcomm/phy-qcom-ufs.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,3 +675,8 @@ int ufs_qcom_phy_power_off(struct phy *generic_phy)
675675
return 0;
676676
}
677677
EXPORT_SYMBOL_GPL(ufs_qcom_phy_power_off);
678+
679+
MODULE_AUTHOR("Yaniv Gardi <ygardi@codeaurora.org>");
680+
MODULE_AUTHOR("Vivek Gautam <vivek.gautam@codeaurora.org>");
681+
MODULE_DESCRIPTION("Universal Flash Storage (UFS) QCOM PHY");
682+
MODULE_LICENSE("GPL v2");

drivers/usb/core/message.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ int usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request,
151151

152152
ret = usb_internal_control_msg(dev, pipe, dr, data, size, timeout);
153153

154+
/* Linger a bit, prior to the next control message. */
155+
if (dev->quirks & USB_QUIRK_DELAY_CTRL_MSG)
156+
msleep(200);
157+
154158
kfree(dr);
155159

156160
return ret;

drivers/usb/core/quirks.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ static const struct usb_device_id usb_quirk_list[] = {
230230
{ USB_DEVICE(0x1b1c, 0x1b13), .driver_info = USB_QUIRK_DELAY_INIT },
231231

232232
/* Corsair Strafe RGB */
233-
{ USB_DEVICE(0x1b1c, 0x1b20), .driver_info = USB_QUIRK_DELAY_INIT },
233+
{ USB_DEVICE(0x1b1c, 0x1b20), .driver_info = USB_QUIRK_DELAY_INIT |
234+
USB_QUIRK_DELAY_CTRL_MSG },
234235

235236
/* Corsair K70 LUX */
236237
{ USB_DEVICE(0x1b1c, 0x1b36), .driver_info = USB_QUIRK_DELAY_INIT },

drivers/usb/dwc2/params.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static void dwc2_set_stm32f4x9_fsotg_params(struct dwc2_hsotg *hsotg)
137137
p->activate_stm_fs_transceiver = true;
138138
}
139139

140-
static void dwc2_set_stm32f7xx_hsotg_params(struct dwc2_hsotg *hsotg)
140+
static void dwc2_set_stm32f7_hsotg_params(struct dwc2_hsotg *hsotg)
141141
{
142142
struct dwc2_core_params *p = &hsotg->params;
143143

@@ -164,8 +164,8 @@ const struct of_device_id dwc2_of_match_table[] = {
164164
{ .compatible = "st,stm32f4x9-fsotg",
165165
.data = dwc2_set_stm32f4x9_fsotg_params },
166166
{ .compatible = "st,stm32f4x9-hsotg" },
167-
{ .compatible = "st,stm32f7xx-hsotg",
168-
.data = dwc2_set_stm32f7xx_hsotg_params },
167+
{ .compatible = "st,stm32f7-hsotg",
168+
.data = dwc2_set_stm32f7_hsotg_params },
169169
{},
170170
};
171171
MODULE_DEVICE_TABLE(of, dwc2_of_match_table);

drivers/usb/dwc3/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void dwc3_set_mode(struct dwc3 *dwc, u32 mode)
175175
dwc->desired_dr_role = mode;
176176
spin_unlock_irqrestore(&dwc->lock, flags);
177177

178-
queue_work(system_power_efficient_wq, &dwc->drd_work);
178+
queue_work(system_freezable_wq, &dwc->drd_work);
179179
}
180180

181181
u32 dwc3_core_fifo_space(struct dwc3_ep *dep, u8 type)

drivers/usb/gadget/function/f_fs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,6 @@ ffs_fs_kill_sb(struct super_block *sb)
15381538
if (sb->s_fs_info) {
15391539
ffs_release_dev(sb->s_fs_info);
15401540
ffs_data_closed(sb->s_fs_info);
1541-
ffs_data_put(sb->s_fs_info);
15421541
}
15431542
}
15441543

0 commit comments

Comments
 (0)