linux-stable/drivers/usb/phy
Gustavo A. R. Silva dcf8f7ecb3 usb: phy: ab8500-usb: Mark expected switch fall-throughs
Mark switch cases where we are expecting to fall through.

This patch fixes the following warnings:

drivers/usb/phy/phy-ab8500-usb.c: In function 'ab8500_usb_link_status_update':
drivers/usb/phy/phy-ab8500-usb.c:424:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
   event = UX500_MUSB_RIDB;
   ~~~~~~^~~~~~~~~~~~~~~~~
drivers/usb/phy/phy-ab8500-usb.c:425:2: note: here
  case USB_LINK_NOT_CONFIGURED_8500:
  ^~~~
drivers/usb/phy/phy-ab8500-usb.c:440:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
   event = UX500_MUSB_RIDC;
   ~~~~~~^~~~~~~~~~~~~~~~~
drivers/usb/phy/phy-ab8500-usb.c:441:2: note: here
  case USB_LINK_STD_HOST_NC_8500:
  ^~~~
drivers/usb/phy/phy-ab8500-usb.c:459:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
   event = UX500_MUSB_RIDA;
   ~~~~~~^~~~~~~~~~~~~~~~~
drivers/usb/phy/phy-ab8500-usb.c:460:2: note: here
  case USB_LINK_HM_IDGND_8500:
  ^~~~
drivers/usb/phy/phy-ab8500-usb.c: In function 'ab8505_usb_link_status_update':
drivers/usb/phy/phy-ab8500-usb.c:332:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
   event = UX500_MUSB_RIDB;
   ~~~~~~^~~~~~~~~~~~~~~~~
drivers/usb/phy/phy-ab8500-usb.c:333:2: note: here
  case USB_LINK_NOT_CONFIGURED_8505:
  ^~~~
drivers/usb/phy/phy-ab8500-usb.c:352:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
   event = UX500_MUSB_RIDC;
   ~~~~~~^~~~~~~~~~~~~~~~~
drivers/usb/phy/phy-ab8500-usb.c:353:2: note: here
  case USB_LINK_STD_HOST_NC_8505:
  ^~~~
drivers/usb/phy/phy-ab8500-usb.c:370:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
   event = UX500_MUSB_RIDA;
   ~~~~~~^~~~~~~~~~~~~~~~~
drivers/usb/phy/phy-ab8500-usb.c:371:2: note: here
  case USB_LINK_HM_IDGND_8505:
  ^~~~

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20190729000631.GA24165@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-30 13:00:38 +02:00
..
Kconfig usb: gadget: fsl: fix link error against usb-gadget module 2019-05-03 09:13:47 +03:00
Makefile usb: phy: Add Kconfig entry for Tegra PHY driver 2018-04-23 09:50:57 +02:00
of.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-ab8500-usb.c usb: phy: ab8500-usb: Mark expected switch fall-throughs 2019-07-30 13:00:38 +02:00
phy-am335x-control.c bus_find_device: Unify the match callback with class_find_device 2019-06-24 05:22:31 +02:00
phy-am335x-control.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
phy-am335x.c usb: phy: am335x: fix race condition in _probe 2019-01-28 15:31:43 +02:00
phy-fsl-usb.c usb/phy: fix PPC64 build errors in phy-fsl-usb.c 2018-07-17 10:12:51 +03:00
phy-fsl-usb.h USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-generic.c usb: phy-generic: Use gpiod_set_value_cansleep 2018-03-13 10:47:52 +02:00
phy-generic.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
phy-gpio-vbus-usb.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-isp1301-omap.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-isp1301.c bus_find_device: Unify the match callback with class_find_device 2019-06-24 05:22:31 +02:00
phy-keystone.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-mv-usb.c usb: phy: mv-usb: Remove set but not used variable 'phy' 2019-06-03 15:21:57 +02:00
phy-mv-usb.h USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-mxs-usb.c usb: phy: phy-mxs-usb: add imx7ulp support 2019-07-03 10:56:19 +03:00
phy-omap-otg.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-tahvo.c USB: move many drivers to use DEVICE_ATTR_RO 2018-01-24 08:49:52 +01:00
phy-tegra-usb.c usb: tegra: Move utmi-pads reset from ehci-tegra to tegra-phy 2018-04-23 09:50:57 +02:00
phy-twl6030-usb.c usb: phy: twl6030-usb: fix possible use-after-free on remove 2019-02-13 13:05:35 +02:00
phy-ulpi-viewport.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-ulpi.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy.c USB: phy: drop legacy board-file support 2018-04-22 15:58:24 +02:00