serial: 8250_of: Fix for lack of interrupt support
John Garry authored
[ Upstream commit a27d9382 ]

In commit c58caaab ("serial: 8250: of: Defer probe on missing IRQ"), a
check was added for the UART driver being probed prior to the parent IRQ
controller.

Unfortunately this breaks certain boards which have no interrupt support,
like Huawei D03.

Indeed, the 8250 DT bindings state that interrupts should be supported -
not must.

To fix, switch from irq_of_parse_and_map() to of_irq_get(), which
does relay whether the IRQ host controller domain is not ready, i.e.
defer probe, instead of assuming it.

Fixes: c58caaab

 ("serial: 8250: of: Defer probe on missing IRQ")
Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarAlexander Sverdlin <alexander.sverdlin@nokia.com>
Tested-by: default avatarAlexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
ff8bf852
Name Last commit Last update
Documentation media: replace ADOBERGB by OPRGB
LICENSES LICENSES: Remove CC-BY-SA-4.0 license text
arch MIPS/PCI: Call pcie_bus_configure_settings() to set MPS/MRRS
block block, bfq: correctly charge and reset entity service in all cases
certs export.h: remove VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR()
crypto crypto: speck - remove Speck
drivers serial: 8250_of: Fix for lack of interrupt support
firmware kbuild: remove all dummy assignments to obj-
fs Btrfs: fix use-after-free when dumping free space
include media: hdmi.h: rename ADOBE_RGB to OPRGB and ADOBE_YCC to OPYCC
init Merge tag 'kbuild-v4.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
ipc ipc/shm.c: use ERR_CAST() for shm_lock() error return
kernel tracing/kprobes: Check the probe on unloaded module correctly
lib locking/lockdep: Fix debug_locks off performance problem
mm mm/hmm: fix race between hmm_mirror_unregister() and mmu_notifier callback
net net: sched: Remove TCA_OPTIONS from policy
samples samples: disable CONFIG_SAMPLES for UML
scripts Merge tag 'kbuild-fixes-v4.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
security ima: open a new file instance if no read permissions
sound ASoC: sta32x: set ->component pointer in private struct
tools selftests/powerpc: Fix ptrace tm failure
usr initramfs: move gen_initramfs_list.sh from scripts/ to usr/
virt KVM: arm64: Fix caching of host MDCR_EL2 value
.clang-format clang-format: Set IndentWrappedFunctionNames false
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore
.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.
See Documentation/00-INDEX for a list of what is contained in each file.

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.