usb: dwc2: fix wrong order of phy_power_on and phy_init
Heiner Kallweit authored
commit f9b995b4 upstream.

Since 1599069a ("phy: core: Warn when phy_power_on is called before
phy_init") the driver complains. In my case (Amlogic SoC) the warning
is: phy phy-fe03e000.phy.2: phy_power_on was called before phy_init
So change the order of the two calls. The same change has to be done
to the order of phy_exit() and phy_power_off().

Fixes: 09a75e85

 ("usb: dwc2: refactor common low-level hw code to platform.c")
Cc: stable@vger.kernel.org
Acked-by: default avatarMinas Harutyunyan <hminas@synopsys.com>
Acked-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/dfcc6b40-2274-4e86-e73c-5c5e6aa3e046@gmail.com

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
62ef6b5f
Name Last commit Last update
Documentation rtla: Fix tracer name
LICENSES LICENSES/LGPL-2.1: Add LGPL-2.1-or-later as valid identifiers
arch mm: pagewalk: Fix race between unmap and page walker
block blk-mq: fix io hung due to missing commit_rqs
certs certs: make system keyring depend on x509 parser
crypto KEYS: asymmetric: enforce SM2 signature use pkey algo
drivers usb: dwc2: fix wrong order of phy_power_on and phy_init
fs cifs: fix small mempool leak in SMB2_negotiate()
include usb: typec: altmodes/displayport: correct pin assignment for UFP receptacles
init arm64: fix rodata=full
io_uring io_uring: fix issue with io_write() not always undoing sb_start_write()
ipc ipc: Free mq_sysctls if ipc namespace creation failed
kernel bpf: Do mark_chain_precision for ARG_CONST_ALLOC_SIZE_OR_ZERO
lib crypto: lib - remove unneeded selection of XOR_BLOCKS
mm mm: pagewalk: Fix race between unmap and page walker
net net/smc: Remove redundant refcount increase
samples sample: bpf: xdp_router_ipv4: Allow the kernel to send arp requests
scripts kbuild: dummy-tools: avoid tmpdir leak in dummy gcc
security landlock: Fix file reparenting without explicit LANDLOCK_ACCESS_FS_REFER
sound ALSA: hda: intel-nhlt: Correct the handling of fmt_config flexible array
tools landlock: Fix file reparenting without explicit LANDLOCK_ACCESS_FS_REFER
usr Merge tag 'mm-nonmm-stable-2022-05-26' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
virt KVM: Unconditionally get a ref to /dev/kvm module when creating a VM
.clang-format clang-format: Fix space after for_each macros
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes .gitattributes: use 'dts' diff driver for dts files
.gitignore kbuild: split the second line of *.mod into *.usyms
.mailmap Merge tag 'soc-fixes-5.19-4' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
COPYING COPYING: state that all contributions really are covered by this file
CREDITS MAINTAINERS: mark ARM/PALM TREO SUPPORT orphan
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y
Kconfig kbuild: ensure full rebuild when the compiler is updated
MAINTAINERS io_uring: move to separate directory
Makefile Linux 5.19.7
README Drop all 00-INDEX files from Documentation/
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.