linux/drivers/usb/musb
Ivaylo Dimitrov ecec4b20d2 usb: musb: remove extra check in musb_gadget_vbus_draw
The checks for musb->xceiv and musb->xceiv->set_power duplicate those in
usb_phy_set_power(), so there is no need of them. Moreover, not calling
usb_phy_set_power() results in usb_phy_set_charger_current() not being
called, so current USB config max current is not propagated through USB
charger framework and charger drivers may try to draw more current than
allowed or possible.

Fix that by removing those extra checks and calling usb_phy_set_power()
directly.

Tested on Motorola Droid4 and Nokia N900

Fixes: a9081a008f ("usb: phy: Add USB charger support")
Cc: stable <stable@kernel.org>
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Link: https://lore.kernel.org/r/1669400475-4762-1-git-send-email-ivo.g.dimitrov.75@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-12-08 16:44:39 +01:00
..
cppi_dma.h
da8xx.c usb: musb: da8xx: Switch to use dev_err_probe() helper 2022-09-27 10:36:06 +02:00
jz4740.c usb: musb: jz4740: Support the generic PHY framework 2022-11-09 12:39:13 +01:00
Kconfig usb: musb: Drop old unused am35x glue layer 2022-11-29 08:56:09 +01:00
Makefile usb: musb: Drop old unused am35x glue layer 2022-11-29 08:56:09 +01:00
mediatek.c usb: musb: mediatek: Use clk_bulk API to simplify clock operations 2022-04-21 19:23:46 +02:00
mpfs.c usb: musb: mpfs: add missing clk_disable_unprepare() in mpfs_remove() 2022-06-29 21:02:05 +02:00
musb_core.c usb: musb: Allow running without CONFIG_USB_PHY 2022-11-09 12:39:13 +01:00
musb_core.h usb: musb: Allow running without CONFIG_USB_PHY 2022-11-09 12:39:13 +01:00
musb_cppi41.c usb: musb: cppi41: Switch to use dev_err_probe() helper 2022-09-27 10:36:06 +02:00
musb_debug.h
musb_debugfs.c usb: musb: Add and use inline functions musb_{get,set}_state 2022-11-09 12:39:12 +01:00
musb_dma.h usb: musb: remove left-over after USB_TI_CPPI_DMA removal 2022-11-09 12:37:34 +01:00
musb_dsps.c usb: musb: dsps: Use platform_get_irq_byname() to get the interrupt 2021-12-21 08:51:57 +01:00
musb_gadget_ep0.c
musb_gadget.c usb: musb: remove extra check in musb_gadget_vbus_draw 2022-12-08 16:44:39 +01:00
musb_gadget.h
musb_host.c usb: musb: Support setting OTG mode using generic PHY 2022-11-09 12:39:13 +01:00
musb_host.h
musb_io.h
musb_regs.h
musb_trace.c
musb_trace.h usb: musb: tracing: Use the new __vstring() helper 2022-07-19 11:20:24 -04:00
musb_virthub.c usb: musb: Allow running without CONFIG_USB_PHY 2022-11-09 12:39:13 +01:00
musbhsdma.c
omap2430.c usb: musb: omap2430: Fix probe regression for missing resources 2022-11-22 17:30:12 +01:00
omap2430.h
sunxi.c usb: musb: sunxi: Switch to use dev_err_probe() helper 2022-09-27 10:36:07 +02:00
tusb6010_omap.c
tusb6010.c usb/musb: fix repeated words in comments 2022-07-27 14:34:05 +02:00
tusb6010.h
ux500_dma.c
ux500.c usb: musb: Set the DT node on the child device 2021-12-17 17:00:45 +01:00