usb: musb: Simplify cable state handling
authorTony Lindgren <tony@atomide.com>
Fri, 4 Jun 2021 08:05:35 +0000 (11:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Jun 2021 08:25:16 +0000 (10:25 +0200)
commite2ff8815f3d4dc082d60e261d3f8c80896ad4078
treea2a858a7e54de0b2821836df44ba032fc2c62d0d
parent37fdb7c90f8cc2f41bdf2190ccc44a37bbf1a295
usb: musb: Simplify cable state handling

Simplify cable state handling a bit to leave out duplicated code.
We are just scheduling work and showing state info if a recheck is
needed. No intended functional changes.

Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Andreas Kemnade <andreas@kemnade.info>
Cc: Bhushan Shah <bshah@kde.org>
Cc: Drew Fustini <drew@beagleboard.org>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20210604080536.12185-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c