drm/vc4: Use pm_runtime_resume_and_get to fix pm_runtime_get_sync() usage
Miaoqian Lin authored
[ Upstream commit 3d0b93d9 ]

If the device is already in a runtime PM enabled state
pm_runtime_get_sync() will return 1.

Also, we need to call pm_runtime_put_noidle() when pm_runtime_get_sync()
fails, so use pm_runtime_resume_and_get() instead. this function
will handle this.

Fixes: 4078f575

 ("drm/vc4: Add DSI driver")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220420135008.2757-1-linmq006@gmail.com

Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
6796aad6
Name Last commit Last update
Documentation dt-bindings: net: snps: remove duplicate name
LICENSES LICENSES/LGPL-2.1: Add LGPL-2.1-or-later as valid identifiers
arch KVM: PPC: Fix TCE handling for VFIO
block block/compat_ioctl: fix range check in BLKGETSIZE
certs certs: Fix build error when CONFIG_MODULE_SIG_KEY is empty
crypto crypto: xts - Add softdep on ecb
drivers drm/vc4: Use pm_runtime_resume_and_get to fix pm_runtime_get_sync() usage
fs io_uring: free iovec if file assignment fails
include oom_kill.c: futex: delay the OOM reaper to allow time for proper futex cleanup
init init/main.c: return 1 from handled __setup() functions
ipc ipc/sem: do not sleep with a spin lock held
kernel perf/core: Fix perf_mmap fail when CONFIG_PERF_USE_VMALLOC enabled
lib XArray: Disallow sibling entries of nodes
mm mm/mmu_notifier.c: fix race in mmu_interval_notifier_remove()
net netlink: reset network and mac headers in netlink_dump()
samples samples/bpf, xdpsock: Fix race when running for fix duration of time
scripts gcc-plugins: latent_entropy: use /dev/urandom
security Fix incorrect type in assignment of ipv6 port for audit
sound ALSA: hda: intel-dsp-config: update AlderLake PCI IDs
tools selftests: KVM: Free the GIC FD when cleaning up in arch_timer
usr kbuild: remove include/linux/cyclades.h from header file check
virt KVM: avoid NULL pointer dereference in kvm_dirty_ring_push
.clang-format genirq/msi: Make interrupt allocation less convoluted
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
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.