Some imx platforms do not have fwnode connections to all CSI input
ports, and should not be treated as an error. This includes the
imx6q SabreAuto, which has no connections to ipu1_csi1 and ipu2_csi0.
Return -ENOTCONN in imx_csi_parse_endpoint() so that v4l2-fwnode
endpoint parsing will not treat an unconnected CSI input port as
an error.
Fixes: c893500a16baf ("media: imx: csi: Register a subdev notifier")
Signed-off-by: Steve Longerbeam <slongerbeam(a)gmail.com>
Reviewed-by: Philipp Zabel <p.zabel(a)pengutronix.de>
Acked-by: Tim Harvey <tharvey(a)gateworks.com>
Cc: stable(a)vger.kernel.org
---
Changes in v2:
- Added some acks and Cc: stable. No functional changes.
---
drivers/staging/media/imx/imx-media-csi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/staging/media/imx/imx-media-csi.c
index 555aa45e02e3..e18f58f56dfb 100644
--- a/drivers/staging/media/imx/imx-media-csi.c
+++ b/drivers/staging/media/imx/imx-media-csi.c
@@ -1861,7 +1861,7 @@ static int imx_csi_parse_endpoint(struct device *dev,
struct v4l2_fwnode_endpoint *vep,
struct v4l2_async_subdev *asd)
{
- return fwnode_device_is_available(asd->match.fwnode) ? 0 : -EINVAL;
+ return fwnode_device_is_available(asd->match.fwnode) ? 0 : -ENOTCONN;
}
static int imx_csi_async_register(struct csi_priv *priv)
--
2.17.1
'nobats' kernel parameter or some options like CONFIG_DEBUG_PAGEALLOC
deny the use of BATS for mapping memory.
This patch makes sure that the specific wii RAM mapping function
takes it into account as well.
Fixes: de32400dd26e ("wii: use both mem1 and mem2 as ram")
Cc: stable(a)vger.kernel.org
Signed-off-by: Christophe Leroy <christophe.leroy(a)c-s.fr>
---
Resending due to some servers not accepting 'umlaut' on Jonathan's family name. Sorry Jonathan.
<linux-kernel(a)vger.kernel.org>: host vger.kernel.org[209.132.180.67] said: 550
5.7.1 Content-Policy reject msg: Message headers can not have 8-bit
non-ASCII characters in it; Use MIME encodings if such are needed! BF:<H
1.16368e-10>; S1729557AbfAOQgb (in reply to end of DATA command)
<stable(a)vger.kernel.org>: host vger.kernel.org[209.132.180.67] said: 550 5.7.1
Content-Policy reject msg: Message headers can not have 8-bit non-ASCII
characters in it; Use MIME encodings if such are needed! BF:<H
1.16368e-10>; S1729557AbfAOQgb (in reply to end of DATA command)
arch/powerpc/platforms/embedded6xx/wii.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c
index ecf703ee3a76..bae843e32ae7 100644
--- a/arch/powerpc/platforms/embedded6xx/wii.c
+++ b/arch/powerpc/platforms/embedded6xx/wii.c
@@ -82,6 +82,9 @@ unsigned long __init wii_mmu_mapin_mem2(unsigned long top)
/* MEM2 64MB@0x10000000 */
delta = wii_hole_start + wii_hole_size;
+ if (__map_without_bats)
+ return delta;
+
size = top - delta;
for (bl = 128<<10; bl < max_size; bl <<= 1) {
if (bl * 2 > size)
--
2.13.3
Commit c3ff2a5193fa ("powerpc/32: add stack protector support")
caused kernel panic on PowerPC if an external module is used with
CONFIG_STACKPROTECTOR because the 'prepare' target was not executed
for the external module build.
Commit e07db28eea38 ("kbuild: fix single target build for external
module") turned it into a build error because the 'prepare' target is
now executed but the 'prepare0' target is missing for the external
module build.
External module on arm/arm64 with CONFIG_STACKPROTECTOR_PER_TASK is
also broken in the same way.
Move 'PHONY += prepare0' to the common place. Make is fine with missing
rule for phony targets.
I minimize the change so it can be easily backported to 4.20.x
To fix v4.20 for external modules of PowerPC, please backport
e07db28eea38 ("kbuild: fix single target build for external module"),
and then this commit.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=201891
Fixes: e07db28eea38 ("kbuild: fix single target build for external module")
Fixes: c3ff2a5193fa ("powerpc/32: add stack protector support")
Fixes: 189af4657186 ("ARM: smp: add support for per-task stack canaries")
Fixes: 0a1213fa7432 ("arm64: enable per-task stack canaries")
Cc: linux-stable <stable(a)vger.kernel.org> # v4.20
Reported-by: Samuel Holland <samuel(a)sholland.org>
Reported-by: Alexey Kardashevskiy <aik(a)ozlabs.ru>
Signed-off-by: Masahiro Yamada <yamada.masahiro(a)socionext.com>
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 499b968..789b332 100644
--- a/Makefile
+++ b/Makefile
@@ -955,6 +955,7 @@ ifdef CONFIG_STACK_VALIDATION
endif
endif
+PHONY += prepare0
ifeq ($(KBUILD_EXTMOD),)
core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/
@@ -1061,8 +1062,7 @@ scripts: scripts_basic scripts_dtc
# archprepare is used in arch Makefiles and when processed asm symlink,
# version.h and scripts_basic is processed / created.
-# Listed in dependency order
-PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3
+PHONY += prepare archprepare prepare1 prepare2 prepare3
# prepare3 is used to check if we are building in a separate output directory,
# and if so do:
--
2.7.4
I'm announcing the release of the 4.20.3 kernel.
All users of the 4.20 kernel series must upgrade.
The updated 4.20.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.20.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2
arch/arm/mach-davinci/board-da830-evm.c | 4
arch/arm/mach-davinci/board-da850-evm.c | 4
arch/arm/mach-davinci/board-dm355-evm.c | 4
arch/arm/mach-davinci/board-dm644x-evm.c | 4
arch/arm/mach-davinci/board-omapl138-hawk.c | 4
arch/powerpc/kernel/signal_32.c | 18 ++-
arch/powerpc/kernel/signal_64.c | 20 ++-
arch/x86/kernel/cpu/bugs.c | 2
drivers/acpi/arm64/iort.c | 3
drivers/acpi/pmic/intel_pmic_xpower.c | 41 +++++--
drivers/acpi/power.c | 22 +++
drivers/block/rbd.c | 9 -
drivers/cpufreq/scmi-cpufreq.c | 8 -
drivers/cpufreq/scpi-cpufreq.c | 4
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 37 ++++--
drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4
drivers/gpu/drm/drm_fb_helper.c | 126 ++++++++++++----------
drivers/gpu/drm/i915/i915_gem_gtt.c | 15 ++
drivers/i2c/i2c-dev.c | 6 +
drivers/mtd/nand/raw/qcom_nandc.c | 20 +--
drivers/opp/core.c | 63 ++++++++++-
drivers/pci/controller/dwc/pcie-designware-host.c | 37 ++++--
drivers/staging/rtl8188eu/core/rtw_security.c | 6 -
drivers/usb/class/cdc-acm.c | 7 +
drivers/usb/core/generic.c | 9 +
drivers/usb/core/quirks.c | 3
drivers/usb/storage/scsiglue.c | 8 +
drivers/usb/storage/unusual_devs.h | 12 ++
drivers/vfio/vfio_iommu_type1.c | 2
fs/btrfs/ctree.c | 16 +-
fs/btrfs/qgroup.c | 14 +-
fs/btrfs/volumes.c | 39 ++++--
fs/btrfs/xattr.c | 8 +
fs/cifs/file.c | 8 -
fs/cifs/misc.c | 34 +++--
fs/cifs/smb2file.c | 4
fs/cifs/smb2pdu.c | 8 +
fs/cifs/transport.c | 63 +++++++----
fs/ext4/fsync.c | 16 ++
fs/ext4/inline.c | 6 -
fs/ext4/inode.c | 5
fs/ext4/super.c | 2
include/linux/compiler-gcc.h | 2
include/linux/module.h | 2
include/linux/pm_opp.h | 5
include/linux/sunrpc/svc.h | 5
include/trace/events/sunrpc.h | 6 -
kernel/fork.c | 1
mm/memory.c | 23 ++++
mm/slab.c | 6 -
mm/usercopy.c | 9 -
mm/util.c | 2
net/sunrpc/svc.c | 11 +
net/sunrpc/svc_xprt.c | 5
net/sunrpc/svcsock.c | 2
scripts/mod/modpost.c | 2
sound/pci/hda/patch_realtek.c | 18 ++-
59 files changed, 577 insertions(+), 250 deletions(-)
Alex Deucher (1):
drm/amdgpu: Add new VegaM pci id
Alex Williamson (1):
vfio/type1: Fix unmap overflow off-by-one
Bartosz Golaszewski (5):
ARM: davinci: dm355-evm: fix label names in GPIO lookup entries
ARM: davinci: da850-evm: fix label names in GPIO lookup entries
ARM: davinci: omapl138-hawk: fix label names in GPIO lookup entries
ARM: davinci: dm644x-evm: fix label names in GPIO lookup entries
ARM: davinci: da830-evm: fix label names in GPIO lookup entries
Breno Leitao (1):
powerpc/tm: Unset MSR[TS] if not recheckpointing
Chris Wilson (1):
drm/i915: Unwind failure on pinning the gen7 ppgtt
Christian Lamparter (1):
mtd: rawnand: qcom: fix memory corruption that causes panic
Christoph Lameter (1):
slab: alien caches must not be initialized if the allocation of the alien cache failed
Daniele Palmas (1):
usb: cdc-acm: send ZLP for Telit 3G Intel based modems
Filipe Manana (4):
Btrfs: fix deadlock when using free space tree due to block group creation
Btrfs: fix access to available allocation bits when starting balance
Btrfs: fix deadlock when enabling quotas due to concurrent snapshot creation
Btrfs: use nofs context when initializing security xattrs to avoid deadlock
Greg Kroah-Hartman (1):
Linux 4.20.3
Hans de Goede (2):
ACPI: power: Skip duplicate power resource references in _PRx
ACPI / PMIC: xpower: Fix TS-pin current-source handling
Icenowy Zheng (2):
USB: storage: don't insert sane sense for SPC3+ when bad sense specified
USB: storage: add quirk for SMI SM3350
Ilya Dryomov (1):
rbd: don't return 0 on unmap if RBD_DEV_FLAG_REMOVING is set
Ivan Mironov (1):
drm/fb-helper: Partially bring back workaround for bugs of SDL 1.2
Jack Stocker (1):
USB: Add USB_QUIRK_DELAY_CTRL_MSG quirk for Corsair K70 RGB
Jan Stancek (1):
mm: page_mapped: don't assume compound page is huge or THP
Jean-Philippe Brucker (1):
ACPI/IORT: Fix rc_dma_get_range()
Jerry (Fangzhi) Zuo (1):
drm/amd/display: Fix MST dp_blank REG_WAIT timeout
Joe Perches (1):
cifs: check kzalloc return
Kailang Yang (3):
ALSA: hda/realtek - Support Dell headset mode for New AIO platform
ALSA: hda/realtek - Add unplug function into unplug state of Headset Mode for ALC225
ALSA: hda/realtek - Disable headset Mic VREF for headset mode of ALC225
Larry Finger (2):
staging: rtl8188eu: Fix module loading from tasklet for CCMP encryption
staging: rtl8188eu: Fix module loading from tasklet for WEP encryption
Lyude Paul (2):
drm/amdgpu: Don't ignore rc from drm_dp_mst_topology_mgr_resume()
drm/amdgpu: Don't fail resume process if resuming atomic state fails
Marc Zyngier (3):
PCI: dwc: Use interrupt masking instead of disabling
PCI: dwc: Take lock when ACKing an interrupt
PCI: dwc: Move interrupt acking into the proper callback
Michal Hocko (1):
mm, memcg: fix reclaim deadlock with writeback
Pavel Shilovsky (4):
CIFS: Fix adjustment of credits for MTU requests
CIFS: Do not set credits to 1 if the server didn't grant anything
CIFS: Do not hide EINTR after sending network packets
CIFS: Fix credit computation for compounded requests
Qian Cai (1):
mm/usercopy.c: no check page span for stack objects
Quentin Perret (1):
cpufreq: scmi: Fix frequency invariance in slow path
Ross Lagerwall (1):
cifs: Fix potential OOB access of lock element array
Saranya Gopal (1):
usbcore: Select only first configuration for non-UAC3 compliant devices
Shakeel Butt (1):
fork, memcg: fix cached_stacks case
Theodore Ts'o (6):
ext4: make sure enough credits are reserved for dioread_nolock writes
ext4: fix a potential fiemap/page fault deadlock w/ inline_data
ext4: avoid kernel warning when writing the superblock to a dead device
ext4: use ext4_write_inode() when fsyncing w/o a journal
ext4: track writeback errors using the generic tracking infrastructure
ext4: fix special inode number checks in __ext4_iget()
Vasily Averin (1):
sunrpc: use-after-free in svc_process_common()
Viresh Kumar (1):
cpufreq: scpi/scmi: Fix freeing of dynamic OPPs
WANG Chao (1):
x86, modpost: Replace last remnants of RETPOLINE with CONFIG_RETPOLINE
Yi Zeng (1):
i2c: dev: prevent adapter retries and timeout being set as minus value