No description
Find a file
Mark Brown 995b9a4e01 PCI: dwc: Provide deinit callback for i.MX
[ Upstream commit fc8b24c28b ]

The i.MX integration for the DesignWare PCI controller has a _host_exit()
operation which undoes everything that the _host_init() operation does but
does not wire this up as the host_deinit callback for the core, or call it
in any path other than suspend. This means that if we ever unwind the
initial probe of the device, for example because it fails, the regulator
core complains that the regulators for the device were left enabled:

imx6q-pcie 33800000.pcie: iATU: unroll T, 4 ob, 4 ib, align 64K, limit 16G
imx6q-pcie 33800000.pcie: Phy link never came up
imx6q-pcie 33800000.pcie: Phy link never came up
imx6q-pcie: probe of 33800000.pcie failed with error -110
------------[ cut here ]------------
WARNING: CPU: 2 PID: 46 at drivers/regulator/core.c:2396 _regulator_put+0x110/0x128

Wire up the callback so that the core can clean up after itself.

Link: https://lore.kernel.org/r/20230731-pci-imx-regulator-cleanup-v2-1-fc8fa5c9893d@kernel.org
Tested-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 11:14:27 +02:00
arch x86: bring back rep movsq for user access on CPUs without ERMS 2023-09-23 11:14:26 +02:00
block blk-mq: fix tags leak when shrink nr_hw_queues 2023-09-23 11:14:26 +02:00
certs
crypto crypto: lrw,xts - Replace strlcpy with strscpy 2023-09-23 11:14:19 +02:00
Documentation perf/smmuv3: Enable HiSilicon Erratum 162001900 quirk for HIP08/09 2023-09-23 11:14:18 +02:00
drivers PCI: dwc: Provide deinit callback for i.MX 2023-09-23 11:14:27 +02:00
fs ext4: avoid overlapping preallocations due to overflow 2023-09-23 11:14:26 +02:00
include bpf: Consider non-owning refs to refcounted nodes RCU protected 2023-09-23 11:14:23 +02:00
init
io_uring io_uring: annotate the struct io_kiocb slab for appropriate user copy 2023-09-23 11:14:25 +02:00
ipc
kernel bpf: Consider non-owning refs to refcounted nodes RCU protected 2023-09-23 11:14:23 +02:00
lib crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui() 2023-09-23 11:14:20 +02:00
LICENSES
mm vm: fix move_vma() memory accounting being off 2023-09-19 12:30:30 +02:00
net wifi: mac80211: check for station first in client probe 2023-09-23 11:14:22 +02:00
rust
samples samples/hw_breakpoint: Fix kernel BUG 'invalid opcode: 0000' 2023-09-23 11:14:24 +02:00
scripts
security
sound ASoC: SOF: amd: clear panic mask status when panic occurs 2023-09-23 11:14:26 +02:00
tools libbpf: Free btf_vmlinux when closing bpf_object 2023-09-23 11:14:22 +02:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 6.5.4 2023-09-19 12:30:30 +02:00
README

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.