usb: cdns3: call cdns_power_is_lost() only once in cdns_resume()
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 5 Feb 2025 17:36:49 +0000 (18:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Mar 2025 08:18:02 +0000 (09:18 +0100)
commit17c6526b333cfd89a4c888a6f7c876c8c326e5ae
tree2f4fa14926327c3998f78221c2461e9d02c0aa67
parent0bde749c58c72405c54a1eabf6266a0273377226
usb: cdns3: call cdns_power_is_lost() only once in cdns_resume()

cdns_power_is_lost() does a register read.
Call it only once rather than twice.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20250205-s2r-cdns-v7-4-13658a271c3c@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/core.c