Skip to contentSkip to conversation

Linux 5.4.255

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Aug 30, 2023 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 5.4.255 kernel.

All users of the 5.4 kernel series must upgrade.

The updated 5.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Documentation/admin-guide/sysctl/vm.rst                      |    9 
 Documentation/power/runtime_pm.rst                           |    6 
 MAINTAINERS                                                  |    2 
 Makefile                                                     |    2 
 arch/arm/boot/dts/imx23.dtsi                                 |    2 
 arch/arm/boot/dts/imx28.dtsi                                 |    2 
 arch/arm/boot/dts/imx6qdl.dtsi                               |    2 
 arch/arm/boot/dts/imx6sx.dtsi                                |    8 
 arch/arm/boot/dts/imx6ul.dtsi                                |    2 
 arch/arm/boot/dts/imx7s.dtsi                                 |    9 
 arch/mips/include/asm/cpu-features.h                         |   21 
 arch/mips/include/asm/dec/prom.h                             |    2 
 arch/powerpc/kernel/rtas_flash.c                             |    6 
 arch/powerpc/mm/kasan/Makefile                               |    1 
 arch/x86/kernel/fpu/xstate.c                                 |    8 
 drivers/base/power/runtime.c                                 |   49 
 drivers/base/regmap/regmap-i2c.c                             |    4 
 drivers/bus/ti-sysc.c                                        |   12 
 drivers/clk/clk-devres.c                                     |   13 
 drivers/dma-buf/sw_sync.c                                    |   18 
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c                       |    6 
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c    |    4 
 drivers/gpu/drm/radeon/radeon_cs.c                           |    3 
 drivers/hid/hid-ids.h                                        |    1 
 drivers/hid/hid-quirks.c                                     |    1 
 drivers/i2c/busses/i2c-bcm-iproc.c                           |   11 
 drivers/iio/Kconfig                                          |    1 
 drivers/iio/Makefile                                         |    1 
 drivers/iio/adc/Kconfig                                      |   16 
 drivers/iio/adc/Makefile                                     |    1 
 drivers/iio/adc/stx104.c                                     |  375 ----
 drivers/iio/addac/Kconfig                                    |   24 
 drivers/iio/addac/Makefile                                   |    7 
 drivers/iio/addac/stx104.c                                   |  415 ++++
 drivers/interconnect/core.c                                  |   77 
 drivers/interconnect/internal.h                              |   42 
 drivers/iommu/amd_iommu_types.h                              |    4 
 drivers/irqchip/irq-mips-gic.c                               |   65 
 drivers/leds/trigger/ledtrig-netdev.c                        |    3 
 drivers/md/dm-integrity.c                                    |    4 
 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c           |    2 
 drivers/media/platform/mtk-vpu/mtk_vpu.c                     |    6 
 drivers/mmc/core/block.c                                     |    7 
 drivers/mmc/host/bcm2835.c                                   |    4 
 drivers/mmc/host/sdhci_f_sdh30.c                             |   68 
 drivers/mmc/host/sunxi-mmc.c                                 |    4 
 drivers/mmc/host/wbsd.c                                      |    2 
 drivers/net/bonding/bond_alb.c                               |    6 
 drivers/net/can/vxcan.c                                      |    7 
 drivers/net/dsa/mv88e6xxx/chip.c                             |    8 
 drivers/net/ethernet/broadcom/bgmac.c                        |    2 
 drivers/net/ethernet/broadcom/genet/bcmmii.c                 |    2 
 drivers/net/ethernet/ibm/ibmveth.c                           |    2 
 drivers/net/ethernet/intel/i40e/i40e_nvm.c                   |   16 
 drivers/net/ethernet/intel/igb/igb_ptp.c                     |   24 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c          |    3 
 drivers/net/ipvlan/ipvlan_main.c                             |    3 
 drivers/net/macsec.c                                         |   70 
 drivers/net/phy/broadcom.c                                   |   13 
 drivers/net/team/team.c                                      |    4 
 drivers/net/veth.c                                           |    5 
 drivers/net/virtio_net.c                                     |    4 
 drivers/pci/hotplug/acpiphp_glue.c                           |    9 
 drivers/pcmcia/rsrc_nonstatic.c                              |    2 
 drivers/pinctrl/pinctrl-rza2.c                               |   17 
 drivers/scsi/raid_class.c                                    |   48 
 drivers/scsi/snic/snic_disc.c                                |    3 
 drivers/tty/serial/8250/8250_port.c                          |    1 
 drivers/tty/serial/fsl_lpuart.c                              |    4 
 drivers/usb/chipidea/ci_hdrc_imx.c                           |    5 
 drivers/usb/dwc3/dwc3-qcom.c                                 |   69 
 drivers/video/fbdev/core/sysimgblt.c                         |   64 
 drivers/video/fbdev/mmp/hw/mmp_ctrl.c                        |    4 
 drivers/virtio/virtio_mmio.c                                 |   23 
 fs/btrfs/volumes.c                                           |    3 
 fs/cifs/file.c                                               |    2 
 fs/dlm/lock.c                                                |   53 
 fs/dlm/plock.c                                               |   89 
 fs/dlm/recover.c                                             |   39 
 fs/gfs2/super.c                                              |   26 
 fs/jfs/jfs_dmap.c                                            |    3 
 fs/jfs/jfs_txnmgr.c                                          |    5 
 fs/jfs/namei.c                                               |    5 
 fs/nfs/nfs4proc.c                                            |    9 
 fs/nfsd/nfs4state.c                                          |   11 
 fs/overlayfs/ovl_entry.h                                     |    9 
 fs/quota/dquot.c                                             |    5 
 fs/udf/unicode.c                                             |    2 
 include/drm/drm_dp_helper.h                                  |    2 
 include/linux/clk.h                                          |   80 
 include/linux/interconnect.h                                 |   12 
 include/linux/mm.h                                           |    2 
 include/linux/pm_runtime.h                                   |   12 
 include/linux/raid_class.h                                   |    4 
 include/linux/virtio_net.h                                   |    4 
 include/linux/wait.h                                         |    2 
 include/media/v4l2-mem2mem.h                                 |   18 
 include/net/bonding.h                                        |   25 
 include/net/rtnetlink.h                                      |    4 
 include/net/sock.h                                           |   11 
 include/sound/core.h                                         |    3 
 include/trace/events/rpm.h                                   |    6 
 kernel/sysctl.c                                              |    8 
 kernel/trace/trace.c                                         |    9 
 kernel/trace/trace_irqsoff.c                                 |    3 
 kernel/trace/trace_kprobe.c                                  |    3 
 kernel/trace/trace_probe_tmpl.h                              |   18 
 kernel/trace/trace_sched_wakeup.c                            |    2 
 kernel/trace/trace_uprobe.c                                  |    3 
 lib/clz_ctz.c                                                |   32 
 lib/radix-tree.c                                             |    1 
 mm/filemap.c                                                 |  160 +
 net/batman-adv/bat_v_elp.c                                   |    3 
 net/batman-adv/bat_v_ogm.c                                   |    7 
 net/batman-adv/hard-interface.c                              |   14 
 net/batman-adv/netlink.c                                     |    3 
 net/batman-adv/soft-interface.c                              |    3 
 net/batman-adv/translation-table.c                           |    1 
 net/batman-adv/types.h                                       |    6 
 net/bluetooth/l2cap_core.c                                   |    5 
 net/core/rtnetlink.c                                         |   29 
 net/core/sock.c                                              |    2 
 net/dccp/proto.c                                             |   20 
 net/ipv4/ip_vti.c                                            |    4 
 net/ipv4/tcp_timer.c                                         |    4 
 net/ipv6/ip6_vti.c                                           |    4 
 net/key/af_key.c                                             |    4 
 net/ncsi/ncsi-manage.c                                       |    3 
 net/ncsi/ncsi-rsp.c                                          |    6 
 net/netfilter/ipvs/ip_vs_ctl.c                               |    4 
 net/netfilter/nf_conntrack_proto_sctp.c                      |    6 
 net/netfilter/nft_dynset.c                                   |    3 
 net/sched/sch_api.c                                          |   53 
 net/sctp/socket.c                                            |    2 
 net/unix/af_unix.c                                           |    9 
 net/xfrm/Makefile                                            |    2 
 net/xfrm/xfrm_interface.c                                    |  987 -----------
 net/xfrm/xfrm_interface_core.c                               |  987 +++++++++++
 net/xfrm/xfrm_user.c                                         |   13 
 security/integrity/ima/Kconfig                               |    2 
 sound/core/init.c                                            |    1 
 sound/core/pcm_memory.c                                      |   99 -
 sound/hda/hdac_device.c                                      |    2 
 sound/hda/hdac_regmap.c                                      |    7 
 sound/pci/emu10k1/emufx.c                                    |  112 -
 sound/pci/hda/patch_realtek.c                                |    9 
 sound/soc/codecs/rt5665.c                                    |    2 
 sound/soc/fsl/fsl_sai.c                                      |  149 +
 sound/soc/fsl/fsl_sai.h                                      |   60 
 sound/soc/meson/axg-tdm-formatter.c                          |   42 
 sound/usb/quirks-table.h                                     |   29 
 tools/testing/selftests/net/forwarding/mirror_gre_changes.sh |    3 
 tools/testing/selftests/net/forwarding/tc_flower.sh          |    8 
 153 files changed, 2936 insertions(+), 2208 deletions(-)

Abel Wu (1):
sock: Fix misuse of sk_under_memory_pressure()

Alessio Igor Bogani (1):
igb: Avoid starting unnecessary workqueues

Alexander Aring (5):
dlm: improve plock logging if interrupted
fs: dlm: add pid to debug log
fs: dlm: change plock interrupted message to debug again
fs: dlm: use dlm_plock_info for do_unlock_close
fs: dlm: fix mismatch of plock results from userspace

Alfred Lee (1):
net: dsa: mv88e6xxx: Wait for EEPROM done before HW reset

Andrey Skvortsov (1):
clk: Fix slab-out-of-bounds error in devm_clk_release()

Andrii Staikov (1):
i40e: fix misleading debug logs

Ankit Nautiyal (1):
drm/display/dp: Fix the DP DSC Receiver cap size

Armin Wolf (1):
pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db()

Arnd Bergmann (1):
radix tree: remove unused variable

Benjamin Coddington (2):
NFSv4: Fix dropped lock for racing OPEN and delegation return
nfsd: Fix race to FREE_STATEID and cl_revoked

Benjamin Gray (1):
powerpc/kasan: Disable KCOV in KASAN code

Biju Das (2):
clk: Fix undefined reference to `clk_rate_exclusive_{get,put}'
pinctrl: renesas: rza2: Add lock around pinctrl_generic{{add,remove}_group,{add,remove}_function}

Chengfeng Ye (1):
i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue

Christian Brauner (1):
ovl: check type and offset of struct vfsmount in ovl_entry

Christian Marangi (1):
leds: trigger: netdev: Recheck NETDEV_LED_MODE_LINKUP on dev rename

Clayton Yager (1):
macsec: Fix traffic counters/statistics

Colin Ian King (1):
ALSA: pcm: Check for null pointer of pointer substream before dereferencing it

Cosmin Tanislav (1):
iio: add addac subdirectory

Eric Dumazet (4):
macsec: use DEV_STATS_INC()
net: do not allow gso_size to be set to GSO_BY_FRAGS
sock: annotate data-races around prot->memory_pressure
dccp: annotate data-races in dccp_poll()

Eyal Birger (1):
xfrm: interface: rename xfrm_interface.c to xfrm_interface_core.c

Feng Tang (1):
x86/fpu: Set X86_FEATURE_OSXSAVE feature after enabling OSXSAVE in CR4

Georgi Djakov (3):
interconnect: Move internal structs into a separate file
interconnect: Add helpers for enabling/disabling a path
interconnect: Do not skip aggregation for disabled paths

Greg Kroah-Hartman (1):

      Linux 5.4.255

Gustavo A. R. Silva (1):
MIPS: dec: prom: Address -Warray-bounds warning

Hangbin Liu (1):
bonding: fix macvlan over alb bond support

Hans Verkuil (1):
media: platform: mediatek: vpu: fix NULL ptr dereference

Hariprasad Kelam (1):
octeontx2-af: SDP: fix receive link config

Helge Deller (1):

      lib/clz_ctz.c: Fix __clzdi2() and __ctzdi2() for 32-bit kernels

Ido Schimmel (2):
selftests: forwarding: tc_flower: Relax success criterion
rtnetlink: Reject negative ifindexes in RTM_NEWLINK

Igor Mammedov (2):
PCI: acpiphp: Reassign resources on bridge if necessary
PCI: acpiphp: Use pci_assign_unassigned_bridge_resources() only for non-root bus

Immad Mir (2):
FS: JFS: Fix null-ptr-deref Read in txBegin
FS: JFS: Check for read-only mounted filesystem in txBegin

J. Bruce Fields (1):
nfsd4: kill warnings on testing stateids with mismatched clientids

Jakob Koschel (1):
dlm: replace usage of found with dedicated list iterator variable

Jakub Kicinski (2):
net: validate veth and vxcan peer ifindexes
net: remove bond_slave_has_mac_rcu()

Jamal Hadi Salim (1):
net/sched: fix a qdisc modification with ambiguous command request

Jan Kara (2):
quota: Properly disable quotas when add_dquot_ref() fails
udf: Fix uninitialized array access for some pathnames

Jason Wang (1):
virtio-net: set queues after driver_ok

Jason Xing (1):
net: fix the RTO timer retransmitting skb every 1ms if linear option is enabled

Jerome Brunet (1):
ASoC: meson: axg-tdm-formatter: fix channel slot allocation

Jiaxun Yang (4):
irqchip/mips-gic: Use raw spinlock for gic_lock
MIPS: cpu-features: Enable octeon_cache by cpu_type
MIPS: cpu-features: Use boot_cpu_type for CPU type based features irqchip/mips-gic: Don't touch vl_map if a local interrupt is not routable

Joel Savitz (1):
Documentation/sysctl: document page_lock_unfairness

Johan Hovold (1):
USB: dwc3: qcom: fix NULL-deref on suspend

Josip Pavic (1):
drm/amd/display: do not wait for mpc idle if tg is disabled

Justin Chen (1):
net: phy: broadcom: stub c45 read/write for 54810

Kishon Vijay Abraham I (1):
iommu/amd: Fix "Guest Virtual APIC Table Root Pointer" configuration in IRTE

Kunihiko Hayashi (1):
mmc: sdhci-f-sdh30: Replace with sdhci_pltfm

Kuniyuki Iwashima (1):
af_unix: Fix null-ptr-deref in unix_stream_sendpage().

Lin Ma (4):
net: xfrm: Fix xfrm_address_filter OOB read
net: af_key: fix sadb_x_filter validation
xfrm: add NULL check in xfrm_update_ae_params
net: xfrm: Amend XFRMA_SEC_CTX nla_policy structure

Linus Torvalds (1):
mm: allow a controlled amount of unfairness in the page lock

Lu Wei (1):
ipvlan: Fix a reference count leak warning in ipvlan_ns_exit()

Marc Zyngier (1):
irqchip/mips-gic: Get rid of the reliance on irq_cpu_online()

Marco Morandini (1):
HID: add quirk for 03f0:464a HP Elite Presenter Mouse

Marek Vasut (1):
ARM: dts: imx7s: Drop dma-apb interrupt-names

Mark Brown (1):
regmap: Account for register length in SMBus I/O limits

Masami Hiramatsu (Google) (1):
tracing/probes: Fix to update dynamic data counter if fetcharg uses it

Matus Gajdos (1):
ASoC: fsl_sai: Disable bit clock with transmitter

Michael Ellerman (1):
ibmveth: Use dcbf rather than dcbfl

Michał Mirosław (1):
PM-runtime: add tracepoints for usage_count changes

Mikulas Patocka (2):
dm integrity: increase RECALC_SECTORS to improve recalculate speed dm integrity: reduce vmalloc space footprint on 32-bit architectures

Nathan Lynch (1):
powerpc/rtas_flash: allow user copy to flash block cache objects

Oswald Buddenhagen (1):
ALSA: emu10k1: roll up loops in DSP setup code for Audigy

Pablo Neira Ayuso (1):
netfilter: nft_dynset: disallow object maps

Petr Machata (1):
selftests: mirror_gre_changes: Tighten up the TTL test match

Randy Dunlap (1):
IMA: allow/fix UML builds

Remi Pommarel (3):
batman-adv: Do not get eth header before batadv_check_management_packet
batman-adv: Fix TT global entry leak when client roamed back
batman-adv: Fix batadv_v_ogm_aggr_send memory leak

Rob Clark (1):
dma-buf/sw_sync: Avoid recursive lock during fence signal

Ruan Jinjie (2):
net: bgmac: Fix return value check for fixed_phy_register()
net: bcmgenet: Fix return value check for fixed_phy_register()

Russell Harmon via samba-technical (1):
cifs: Release folio lock on fscache read hit.

Sakari Ailus (1):
PM: runtime: Add pm_runtime_get_if_active()

Sandeep Maheswaram (1):
usb: dwc3: qcom: Add helper functions to enable,disable wake irqs

Sergey Shtylyov (2):
mmc: bcm2835: fix deferred probing
mmc: sunxi: fix deferred probing

Shengjiu Wang (2):
ASoC: fsl_sai: Refine enable/disable TE/RE sequence in trigger()
ASoC: fsl_sai: Add new added registers and new bit definition

Sherry Sun (1):
tty: serial: fsl_lpuart: Clear the error flags by writing 1 for lpuart32 platforms

Sishuai Gong (1):
ipvs: fix racy memcpy in proc_do_sync_threshold

Stefan Wahren (1):
ARM: dts: imx: Adjust dma-apbh node name

Steven Rostedt (VMware) (1):
tracing/probes: Have process_fetch_insn() take a void * instead of pt_regs

Sven Eckelmann (3):
batman-adv: Trigger events for auto adjusted MTU
batman-adv: Don't increase MTU when set by user
batman-adv: Hold rtnl lock during MTU update via netlink

Taimur Hassan (1):
drm/amd/display: check TG is non-null before checking if enabled

Takashi Iwai (6):
ALSA: hda: Fix unhandled register update during auto-suspend period
ALSA: pcm: Set per-card upper limit of PCM buffer allocations
ALSA: pcm: Use SG-buffer only when direct DMA is available
ALSA: pcm: Fix potential data race at PCM memory allocation helpers
ALSA: pcm: Fix build error on m68k and others
Revert "ALSA: pcm: Use SG-buffer only when direct DMA is available"

Tang Bin (1):
virtio-mmio: Use to_virtio_mmio_device() to simply code

Thomas Zimmermann (2):
fbdev: Improve performance of sys_imageblit()
fbdev: Fix sys_imageblit() for arbitrary image widths

Tony Lindgren (3):
bus: ti-sysc: Improve reset to work with modules with no sysconfig
bus: ti-sysc: Flush posted write on enable before reset
serial: 8250: Fix oops for port->pm on uart_change_pm()

Trond Myklebust (1):
nfsd: Remove incorrect check in nfsd4_validate_stateid

Tuo Li (2):
gfs2: Fix possible data races in gfs2_show_options()
ALSA: hda: fix a possible null-pointer dereference due to data race in snd_hdac_regmap_sync()

Vijay Khemka (1):
net/ncsi: Fix gma flag setting after response

Wei Chen (1):
media: vcodec: Fix potential array out-of-bounds in encoder queue_setup

William Breathitt Gray (5):
iio: adc: stx104: Utilize iomap interface
iio: adc: stx104: Implement and utilize register structures
iio: stx104: Move to addac subdirectory
iio: addac: stx104: Fix race condition for stx104_write_raw()
iio: addac: stx104: Fix race condition when converting analog-to-digital

Wolfram Sang (1):
virtio-mmio: don't break lifecycle of vm_dev

Xiaolei Wang (2):
ARM: dts: imx: Set default tuning step for imx7d usdhc
ARM: dts: imx: Set default tuning step for imx6sx usdhc

Xin Long (1):
netfilter: set default timeout to 3 secs for sctp shutdown send and recv state

Xu Yang (1):
usb: chipidea: imx: don't request QoS for imx8ulp

Yang Yingliang (1):
mmc: wbsd: fix double mmc_free_host() in wbsd_init()

Yangtao Li (3):
mmc: sdhci_f_sdh30: convert to devm_platform_ioremap_resource
virtio-mmio: convert to devm_platform_ioremap_resource
mmc: f-sdh30: fix order of function calls in sdhci_f_sdh30_remove

Ye Bin (1):
quota: fix warning in dqgrab()

Yibin Ding (1):
mmc: block: Fix in_flight[issue_type] value error

Yogesh (1):
fs: jfs: Fix UBSAN: array-index-out-of-bounds in dbAllocDmapLev

Yuanjun Gong (1):
fbdev: mmp: fix value check in mmphw_probe()

Yunfei Dong (1):
media: v4l2-mem2mem: add lock to protect parameter num_rdy

Zhang Shurong (2):
ASoC: rt5665: add missed regulator_bulk_disable
fbdev: fix potential OOB read in fast_imageblit()

Zheng Yejian (1):
tracing: Fix memleak due to race between current_tracer and trace

Zhengchao Shao (3):
xfrm: fix slab-use-after-free in decode_session6
ip6_vti: fix slab-use-after-free in decode_session6
ip_vti: fix potential slab-use-after-free in decode_session6

Zhengping Jiang (1):
Bluetooth: L2CAP: Fix use-after-free

Zhu Wang (2):
scsi: snic: Fix double free in snic_tgt_create()
scsi: core: raid_class: Remove raid_component_add()

Ziyang Xuan (1):
team: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves

dengxiang (2):
ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760
ALSA: usb-audio: Add support for Mythware XA001AU capture and playback interfaces.

hackyzh002 (1):
drm/radeon: Fix integer overflow in radeon_cs_parser_init

shanzhulig (1):
drm/amdgpu: Fix potential fence use-after-free v2

xiaoshoukui (1):
btrfs: fix BUG_ON condition in btrfs_cancel_balance

author maintainer
#1 lore raw
Documentation/admin-guide/sysctl/vm.rst +9 -0
index 64aeee1009ca..fdc9c99437d1 100644
@@ -61,6 +61,7 @@ Currently, these files are in /proc/sys/vm:
 - overcommit_memory
 - overcommit_ratio
 - page-cluster
+- page_lock_unfairness
 - panic_on_oom
 - percpu_pagelist_fraction
 - stat_interval
@@ -741,6 +742,14 @@ extra faults and I/O delays for following faults if they would have been part of
 that consecutive pages readahead would have brought in.
 
 
+page_lock_unfairness
+====================
+
+This value determines the number of times that the page lock can be
+stolen from under a waiter. After the lock is stolen the number of times
+specified in this file (default is 5), the "fair lock handoff" semantics
+will apply, and the waiter will only be awakened if the lock can be taken.
+
 panic_on_oom
 ============
 
Documentation/power/runtime_pm.rst +6 -0
index 2c2ec99b5088..78bef529464f 100644
@@ -382,6 +382,12 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h:
       nonzero, increment the counter and return 1; otherwise return 0 without
       changing the counter
 
+  `int pm_runtime_get_if_active(struct device *dev, bool ign_usage_count);`
+    - return -EINVAL if 'power.disable_depth' is nonzero; otherwise, if the
+      runtime PM status is RPM_ACTIVE, and either ign_usage_count is true
+      or the device's usage_count is non-zero, increment the counter and
+      return 1; otherwise return 0 without changing the counter
+
   `void pm_runtime_put_noidle(struct device *dev);`
     - decrement the device's usage counter
 
MAINTAINERS +1 -1
index 34d3497f1177..2040c2f76dcf 100644
@@ -1101,7 +1101,7 @@ APEX EMBEDDED SYSTEMS STX104 IIO DRIVER
 M:	William Breathitt Gray <[email protected]>
 L:	[email protected]
 S:	Maintained
-F:	drivers/iio/adc/stx104.c
+F:	drivers/iio/addac/stx104.c
 
 APM DRIVER
 M:	Jiri Kosina <[email protected]>
Makefile +1 -1
index bf7299823095..041adebe7da2 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 4
-SUBLEVEL = 254
+SUBLEVEL = 255
 EXTRAVERSION =
 NAME = Kleptomaniac Octopus
 
arch/arm/boot/dts/imx23.dtsi +1 -1
index 8257630f7a49..42700d7f8bf7 100644
@@ -59,7 +59,7 @@
 				reg = <0x80000000 0x2000>;
 			};
 
-			dma_apbh: dma-apbh@80004000 {
+			dma_apbh: dma-controller@80004000 {
 				compatible = "fsl,imx23-dma-apbh";
 				reg = <0x80004000 0x2000>;
 				interrupts = <0 14 20 0
arch/arm/boot/dts/imx28.dtsi +1 -1
index e14d8ef0158b..235c69bd181f 100644
@@ -78,7 +78,7 @@
 				status = "disabled";
 			};
 
-			dma_apbh: dma-apbh@80004000 {
+			dma_apbh: dma-controller@80004000 {
 				compatible = "fsl,imx28-dma-apbh";
 				reg = <0x80004000 0x2000>;
 				interrupts = <82 83 84 85
arch/arm/boot/dts/imx6qdl.dtsi +1 -1
index bb02923bc2e5..861392ff7086 100644
@@ -160,7 +160,7 @@
 		interrupt-parent = <&gpc>;
 		ranges;
 
-		dma_apbh: dma-apbh@110000 {
+		dma_apbh: dma-controller@110000 {
 			compatible = "fsl,imx6q-dma-apbh", "fsl,imx28-dma-apbh";
 			reg = <0x00110000 0x2000>;
 			interrupts = <0 13 IRQ_TYPE_LEVEL_HIGH>,
arch/arm/boot/dts/imx6sx.dtsi +7 -1
index 790cc88c8b1a..3dc1e97e145c 100644
@@ -211,7 +211,7 @@
 			power-domains = <&pd_pu>;
 		};
 
-		dma_apbh: dma-apbh@1804000 {
+		dma_apbh: dma-controller@1804000 {
 			compatible = "fsl,imx6sx-dma-apbh", "fsl,imx28-dma-apbh";
 			reg = <0x01804000 0x2000>;
 			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
@@ -958,6 +958,8 @@
 					 <&clks IMX6SX_CLK_USDHC1>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-start-tap = <20>;
+				fsl,tuning-step= <2>;
 				status = "disabled";
 			};
 
@@ -970,6 +972,8 @@
 					 <&clks IMX6SX_CLK_USDHC2>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-start-tap = <20>;
+				fsl,tuning-step= <2>;
 				status = "disabled";
 			};
 
@@ -982,6 +986,8 @@
 					 <&clks IMX6SX_CLK_USDHC3>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-start-tap = <20>;
+				fsl,tuning-step= <2>;
 				status = "disabled";
 			};
 
arch/arm/boot/dts/imx6ul.dtsi +1 -1
index 05390cc2a3b3..5b677b66162a 100644
@@ -174,7 +174,7 @@
 			      <0x00a06000 0x2000>;
 		};
 
-		dma_apbh: dma-apbh@1804000 {
+		dma_apbh: dma-controller@1804000 {
 			compatible = "fsl,imx6q-dma-apbh", "fsl,imx28-dma-apbh";
 			reg = <0x01804000 0x2000>;
 			interrupts = <0 13 IRQ_TYPE_LEVEL_HIGH>,
arch/arm/boot/dts/imx7s.dtsi +7 -2
index e5151a7849d6..791530124fb0 100644
@@ -1133,6 +1133,8 @@
 					<&clks IMX7D_USDHC1_ROOT_CLK>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-step = <2>;
+				fsl,tuning-start-tap = <20>;
 				status = "disabled";
 			};
 
@@ -1145,6 +1147,8 @@
 					<&clks IMX7D_USDHC2_ROOT_CLK>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-step = <2>;
+				fsl,tuning-start-tap = <20>;
 				status = "disabled";
 			};
 
@@ -1157,6 +1161,8 @@
 					<&clks IMX7D_USDHC3_ROOT_CLK>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-step = <2>;
+				fsl,tuning-start-tap = <20>;
 				status = "disabled";
 			};
 
@@ -1192,14 +1198,13 @@
 			};
 		};
 
-		dma_apbh: dma-apbh@33000000 {
+		dma_apbh: dma-controller@33000000 {
 			compatible = "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh";
 			reg = <0x33000000 0x2000>;
 			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
 				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
 				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
 				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
-			interrupt-names = "gpmi0", "gpmi1", "gpmi2", "gpmi3";
 			#dma-cells = <1>;
 			dma-channels = <4>;
 			clocks = <&clks IMX7D_NAND_USDHC_BUS_RAWNAND_CLK>;
arch/mips/include/asm/cpu-features.h +19 -2
index 3e26b0c7391b..ae4a2f52e3c4 100644
@@ -124,7 +124,24 @@
 #define cpu_has_tx39_cache	__opt(MIPS_CPU_TX39_CACHE)
 #endif
 #ifndef cpu_has_octeon_cache
-#define cpu_has_octeon_cache	0
+#define cpu_has_octeon_cache						\
+({									\
+	int __res;							\
+									\
+	switch (boot_cpu_type()) {					\
+	case CPU_CAVIUM_OCTEON:						\
+	case CPU_CAVIUM_OCTEON_PLUS:					\
+	case CPU_CAVIUM_OCTEON2:					\
+	case CPU_CAVIUM_OCTEON3:					\
+		__res = 1;						\
+		break;							\
+									\
+	default:							\
+		__res = 0;						\
+	}								\
+									\
+	__res;								\
+})
 #endif
 /* Don't override `cpu_has_fpu' to 1 or the "nofpu" option won't work.  */
 #ifndef cpu_has_fpu
@@ -341,7 +358,7 @@
 ({									\
 	int __res;							\
 									\
-	switch (current_cpu_type()) {					\
+	switch (boot_cpu_type()) {					\
 	case CPU_M14KC:							\
 	case CPU_74K:							\
 	case CPU_1074K:							\
arch/mips/include/asm/dec/prom.h +1 -1
index 1e1247add1cf..908e96e3a311 100644
@@ -70,7 +70,7 @@ static inline bool prom_is_rex(u32 magic)
  */
 typedef struct {
 	int pagesize;
-	unsigned char bitmap[0];
+	unsigned char bitmap[];
 } memmap;
 
 
arch/powerpc/kernel/rtas_flash.c +3 -3
index 84f794782c62..7defca2f8e8b 100644
@@ -710,9 +710,9 @@ static int __init rtas_flash_init(void)
 	if (!rtas_validate_flash_data.buf)
 		return -ENOMEM;
 
-	flash_block_cache = kmem_cache_create("rtas_flash_cache",
-					      RTAS_BLK_SIZE, RTAS_BLK_SIZE, 0,
-					      NULL);
+	flash_block_cache = kmem_cache_create_usercopy("rtas_flash_cache",
+						       RTAS_BLK_SIZE, RTAS_BLK_SIZE,
+						       0, 0, RTAS_BLK_SIZE, NULL);
 	if (!flash_block_cache) {
 		printk(KERN_ERR "%s: failed to create block cache\n",
 				__func__);
arch/powerpc/mm/kasan/Makefile +1 -0
index 6577897673dd..22f1a7c3f436 100644
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 
 KASAN_SANITIZE := n
+KCOV_INSTRUMENT := n
 
 obj-$(CONFIG_PPC32)           += kasan_init_32.o
arch/x86/kernel/fpu/xstate.c +8 -0
index 046782df37a6..d8162f6baa5d 100644
@@ -805,6 +805,14 @@ void __init fpu__init_system_xstate(void)
 	fpu__init_prepare_fx_sw_frame();
 	setup_init_fpu_buf();
 	setup_xstate_comp();
+
+	/*
+	 * CPU capabilities initialization runs before FPU init. So
+	 * X86_FEATURE_OSXSAVE is not set. Now that XSAVE is completely
+	 * functional, set the feature bit so depending code works.
+	 */
+	setup_force_cpu_cap(X86_FEATURE_OSXSAVE);
+
 	print_xstate_offset_size();
 
 	pr_info("x86/fpu: Enabled xstate features 0x%llx, context size is %d bytes, using '%s' format.\n",
drivers/base/power/runtime.c +38 -11

94 lines not on this page · raw message

drivers/base/regmap/regmap-i2c.c +2 -2
index ac9b31c57967..6d934c35a770 100644
@@ -242,8 +242,8 @@ static int regmap_i2c_smbus_i2c_read(void *context, const void *reg,
 static struct regmap_bus regmap_i2c_smbus_i2c_block = {
 	.write = regmap_i2c_smbus_i2c_write,
 	.read = regmap_i2c_smbus_i2c_read,
-	.max_raw_read = I2C_SMBUS_BLOCK_MAX,
-	.max_raw_write = I2C_SMBUS_BLOCK_MAX,
+	.max_raw_read = I2C_SMBUS_BLOCK_MAX - 1,
+	.max_raw_write = I2C_SMBUS_BLOCK_MAX - 1,
 };
 
 static const struct regmap_bus *regmap_get_i2c_bus(struct i2c_client *i2c,
drivers/bus/ti-sysc.c +8 -4
index 44aeceaccfa4..e1a9838c9665 100644
@@ -1809,7 +1809,7 @@ static int sysc_reset(struct sysc *ddata)
 
 	sysc_offset = ddata->offsets[SYSC_SYSCONFIG];
 
-	if (ddata->legacy_mode || sysc_offset < 0 ||
+	if (ddata->legacy_mode ||
 	    ddata->cap->regbits->srst_shift < 0 ||
 	    ddata->cfg.quirks & SYSC_QUIRK_NO_RESET_ON_INIT)
 		return 0;
@@ -1819,9 +1819,13 @@ static int sysc_reset(struct sysc *ddata)
 	if (ddata->pre_reset_quirk)
 		ddata->pre_reset_quirk(ddata);
 
-	sysc_val = sysc_read_sysconfig(ddata);
-	sysc_val |= sysc_mask;
-	sysc_write(ddata, sysc_offset, sysc_val);
+	if (sysc_offset >= 0) {
+		sysc_val = sysc_read_sysconfig(ddata);
+		sysc_val |= sysc_mask;
+		sysc_write(ddata, sysc_offset, sysc_val);
+		/* Flush posted write */
+		sysc_val = sysc_read_sysconfig(ddata);
+	}
 
 	if (ddata->cfg.srst_udelay)
 		usleep_range(ddata->cfg.srst_udelay,
drivers/clk/clk-devres.c +7 -6
index 4fb4fd4b06bd..737aa70e2cb3 100644
@@ -205,18 +205,19 @@ EXPORT_SYMBOL(devm_clk_put);
 struct clk *devm_get_clk_from_child(struct device *dev,
 				    struct device_node *np, const char *con_id)
 {
-	struct clk **ptr, *clk;
+	struct devm_clk_state *state;
+	struct clk *clk;
 
-	ptr = devres_alloc(devm_clk_release, sizeof(*ptr), GFP_KERNEL);
-	if (!ptr)
+	state = devres_alloc(devm_clk_release, sizeof(*state), GFP_KERNEL);
+	if (!state)
 		return ERR_PTR(-ENOMEM);
 
 	clk = of_clk_get_by_name(np, con_id);
 	if (!IS_ERR(clk)) {
-		*ptr = clk;
-		devres_add(dev, ptr);
+		state->clk = clk;
+		devres_add(dev, state);
 	} else {
-		devres_free(ptr);
+		devres_free(state);
 	}
 
 	return clk;
drivers/dma-buf/sw_sync.c +9 -9
index 6713cfb1995c..7e7356970d5f 100644
@@ -191,6 +191,7 @@ static const struct dma_fence_ops timeline_fence_ops = {
  */
 static void sync_timeline_signal(struct sync_timeline *obj, unsigned int inc)
 {
+	LIST_HEAD(signalled);
 	struct sync_pt *pt, *next;
 
 	trace_sync_timeline(obj);
@@ -203,21 +204,20 @@ static void sync_timeline_signal(struct sync_timeline *obj, unsigned int inc)
 		if (!timeline_fence_signaled(&pt->base))
 			break;
 
-		list_del_init(&pt->link);
+		dma_fence_get(&pt->base);
+
+		list_move_tail(&pt->link, &signalled);
 		rb_erase(&pt->node, &obj->pt_tree);
 
-		/*
-		 * A signal callback may release the last reference to this
-		 * fence, causing it to be freed. That operation has to be
-		 * last to avoid a use after free inside this loop, and must
-		 * be after we remove the fence from the timeline in order to
-		 * prevent deadlocking on timeline->lock inside
-		 * timeline_fence_release().
-		 */
 		dma_fence_signal_locked(&pt->base);
 	}
 
 	spin_unlock_irq(&obj->lock);
+
+	list_for_each_entry_safe(pt, next, &signalled, link) {
+		list_del_init(&pt->link);
+		dma_fence_put(&pt->base);
+	}
 }
 
 /**
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +3 -3
index 7eeb98fe50ed..0e478d4d830c 100644
@@ -1575,15 +1575,15 @@ static int amdgpu_cs_wait_all_fences(struct amdgpu_device *adev,
 			continue;
 
 		r = dma_fence_wait_timeout(fence, true, timeout);
+		if (r > 0 && fence->error)
+			r = fence->error;
+
 		dma_fence_put(fence);
 		if (r < 0)
 			return r;
 
 		if (r == 0)
 			break;
-
-		if (fence->error)
-			return fence->error;
 	}
 
 	memset(wait, 0, sizeof(*wait));
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +3 -1
index fa3acf60e7bd..c4c99bc7f289 100644
@@ -2902,7 +2902,9 @@ static void dcn10_wait_for_mpcc_disconnect(
 		if (pipe_ctx->stream_res.opp->mpcc_disconnect_pending[mpcc_inst]) {
 			struct hubp *hubp = get_hubp_by_inst(res_pool, mpcc_inst);
 
-			res_pool->mpc->funcs->wait_for_idle(res_pool->mpc, mpcc_inst);
+			if (pipe_ctx->stream_res.tg &&
+				pipe_ctx->stream_res.tg->funcs->is_tg_enabled(pipe_ctx->stream_res.tg))
+				res_pool->mpc->funcs->wait_for_idle(res_pool->mpc, mpcc_inst);
 			pipe_ctx->stream_res.opp->mpcc_disconnect_pending[mpcc_inst] = false;
 			hubp->funcs->set_blank(hubp, true);
 		}
drivers/gpu/drm/radeon/radeon_cs.c +2 -1
index 7b5460678382..ba64dad1d7c9 100644
@@ -271,7 +271,8 @@ int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data)
 {
 	struct drm_radeon_cs *cs = data;
 	uint64_t *chunk_array_ptr;
-	unsigned size, i;
+	u64 size;
+	unsigned i;
 	u32 ring = RADEON_CS_RING_GFX;
 	s32 priority = 0;
 
drivers/hid/hid-ids.h +1 -0
index 479516bbb61b..64842926aff6 100644
@@ -581,6 +581,7 @@
 #define USB_DEVICE_ID_UGCI_FIGHTING	0x0030
 
 #define USB_VENDOR_ID_HP		0x03f0
+#define USB_PRODUCT_ID_HP_ELITE_PRESENTER_MOUSE_464A		0x464a
 #define USB_PRODUCT_ID_HP_LOGITECH_OEM_USB_OPTICAL_MOUSE_0A4A	0x0a4a
 #define USB_PRODUCT_ID_HP_LOGITECH_OEM_USB_OPTICAL_MOUSE_0B4A	0x0b4a
 #define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE		0x134a
drivers/hid/hid-quirks.c +1 -0
index e5dcc47586ee..83c3322fcf18 100644
@@ -96,6 +96,7 @@ static const struct hid_device_id hid_quirks[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD_A096), HID_QUIRK_NO_INIT_REPORTS },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD_A293), HID_QUIRK_ALWAYS_POLL },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_LOGITECH_OEM_USB_OPTICAL_MOUSE_0A4A), HID_QUIRK_ALWAYS_POLL },
+	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_ELITE_PRESENTER_MOUSE_464A), HID_QUIRK_MULTI_INPUT },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_LOGITECH_OEM_USB_OPTICAL_MOUSE_0B4A), HID_QUIRK_ALWAYS_POLL },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE), HID_QUIRK_ALWAYS_POLL },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_094A), HID_QUIRK_ALWAYS_POLL },
drivers/i2c/busses/i2c-bcm-iproc.c +7 -4
index 70cd9fc7fb86..cae34c55ae08 100644
@@ -240,13 +240,14 @@ static inline u32 iproc_i2c_rd_reg(struct bcm_iproc_i2c_dev *iproc_i2c,
 				   u32 offset)
 {
 	u32 val;
+	unsigned long flags;
 
 	if (iproc_i2c->idm_base) {
-		spin_lock(&iproc_i2c->idm_lock);
+		spin_lock_irqsave(&iproc_i2c->idm_lock, flags);
 		writel(iproc_i2c->ape_addr_mask,
 		       iproc_i2c->idm_base + IDM_CTRL_DIRECT_OFFSET);
 		val = readl(iproc_i2c->base + offset);
-		spin_unlock(&iproc_i2c->idm_lock);
+		spin_unlock_irqrestore(&iproc_i2c->idm_lock, flags);
 	} else {
 		val = readl(iproc_i2c->base + offset);
 	}
@@ -257,12 +258,14 @@ static inline u32 iproc_i2c_rd_reg(struct bcm_iproc_i2c_dev *iproc_i2c,
 static inline void iproc_i2c_wr_reg(struct bcm_iproc_i2c_dev *iproc_i2c,
 				    u32 offset, u32 val)
 {
+	unsigned long flags;
+
 	if (iproc_i2c->idm_base) {
-		spin_lock(&iproc_i2c->idm_lock);
+		spin_lock_irqsave(&iproc_i2c->idm_lock, flags);
 		writel(iproc_i2c->ape_addr_mask,
 		       iproc_i2c->idm_base + IDM_CTRL_DIRECT_OFFSET);
 		writel(val, iproc_i2c->base + offset);
-		spin_unlock(&iproc_i2c->idm_lock);
+		spin_unlock_irqrestore(&iproc_i2c->idm_lock, flags);
 	} else {
 		writel(val, iproc_i2c->base + offset);
 	}
drivers/iio/Kconfig +1 -0
index 5bd51853b15e..3c0da322ece7 100644
@@ -70,6 +70,7 @@ config IIO_TRIGGERED_EVENT
 
 source "drivers/iio/accel/Kconfig"
 source "drivers/iio/adc/Kconfig"
+source "drivers/iio/addac/Kconfig"
 source "drivers/iio/afe/Kconfig"
 source "drivers/iio/amplifiers/Kconfig"
 source "drivers/iio/chemical/Kconfig"
drivers/iio/Makefile +1 -0
index bff682ad1cfb..96fd43b2ef7c 100644
@@ -15,6 +15,7 @@ obj-$(CONFIG_IIO_TRIGGERED_EVENT) += industrialio-triggered-event.o
 
 obj-y += accel/
 obj-y += adc/
+obj-y += addac/
 obj-y += afe/
 obj-y += amplifiers/
 obj-y += buffer/
drivers/iio/adc/Kconfig +0 -16
index cb5788084299..b39d5ad15744 100644
@@ -840,22 +840,6 @@ config STMPE_ADC
 	  Say yes here to build support for ST Microelectronics STMPE
 	  built-in ADC block (stmpe811).
 
-config STX104
-	tristate "Apex Embedded Systems STX104 driver"
-	depends on PC104 && X86
-	select ISA_BUS_API
-	select GPIOLIB
-	help
-	  Say yes here to build support for the Apex Embedded Systems STX104
-	  integrated analog PC/104 card.
-
-	  This driver supports the 16 channels of single-ended (8 channels of
-	  differential) analog inputs, 2 channels of analog output, 4 digital
-	  inputs, and 4 digital outputs provided by the STX104.
-
-	  The base port addresses for the devices may be configured via the base
-	  array module parameter.
-
 config SUN4I_GPADC
 	tristate "Support for the Allwinner SoCs GPADC"
 	depends on IIO
drivers/iio/adc/Makefile +0 -1
index ef9cc485fb67..d0b11502102e 100644
@@ -72,7 +72,6 @@ obj-$(CONFIG_RCAR_GYRO_ADC) += rcar-gyroadc.o
 obj-$(CONFIG_ROCKCHIP_SARADC) += rockchip_saradc.o
 obj-$(CONFIG_SC27XX_ADC) += sc27xx_adc.o
 obj-$(CONFIG_SPEAR_ADC) += spear_adc.o
-obj-$(CONFIG_STX104) += stx104.o
 obj-$(CONFIG_SUN4I_GPADC) += sun4i-gpadc-iio.o
 obj-$(CONFIG_STM32_ADC_CORE) += stm32-adc-core.o
 obj-$(CONFIG_STM32_ADC) += stm32-adc.o
drivers/iio/adc/stx104.c deleted +0 -375

375 lines not on this page · raw message

drivers/iio/addac/Kconfig new file +24 -0
new file mode 100644
index 000000000000..1f598670e84f
@@ -0,0 +1,24 @@
+#
+# ADC DAC drivers
+#
+# When adding new entries keep the list in alphabetical order
+
+menu "Analog to digital and digital to analog converters"
+
+config STX104
+	tristate "Apex Embedded Systems STX104 driver"
+	depends on PC104 && X86
+	select ISA_BUS_API
+	select GPIOLIB
+	help
+	  Say yes here to build support for the Apex Embedded Systems STX104
+	  integrated analog PC/104 card.
+
+	  This driver supports the 16 channels of single-ended (8 channels of
+	  differential) analog inputs, 2 channels of analog output, 4 digital
+	  inputs, and 4 digital outputs provided by the STX104.
+
+	  The base port addresses for the devices may be configured via the base
+	  array module parameter.
+
+endmenu
drivers/iio/addac/Makefile new file +7 -0
new file mode 100644
index 000000000000..862914523354
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Makefile for industrial I/O ADDAC drivers
+#
+
+# When adding new entries keep the list in alphabetical order
+obj-$(CONFIG_STX104) += stx104.o
drivers/iio/addac/stx104.c new file +415 -0

415 lines not on this page · raw message

drivers/interconnect/core.c +47 -30

113 lines not on this page · raw message

drivers/interconnect/internal.h new file +42 -0

42 lines not on this page · raw message

drivers/iommu/amd_iommu_types.h +2 -2
index 76e9d3e2f9f2..15eef44efd03 100644
@@ -886,8 +886,8 @@ struct amd_ir_data {
 	 */
 	struct irq_cfg *cfg;
 	int ga_vector;
-	int ga_root_ptr;
-	int ga_tag;
+	u64 ga_root_ptr;
+	u32 ga_tag;
 };
 
 struct amd_irte_ops {
drivers/irqchip/irq-mips-gic.c +41 -24

157 lines not on this page · raw message

drivers/leds/trigger/ledtrig-netdev.c +3 -0
index d5e774d83021..f4d670ec30bc 100644
@@ -318,6 +318,9 @@ static int netdev_trig_notify(struct notifier_block *nb,
 	clear_bit(NETDEV_LED_MODE_LINKUP, &trigger_data->mode);
 	switch (evt) {
 	case NETDEV_CHANGENAME:
+		if (netif_carrier_ok(dev))
+			set_bit(NETDEV_LED_MODE_LINKUP, &trigger_data->mode);
+		fallthrough;
 	case NETDEV_REGISTER:
 		if (trigger_data->net_dev)
 			dev_put(trigger_data->net_dev);
drivers/md/dm-integrity.c +2 -2
index d7911c623edd..81157801a3dc 100644
@@ -31,11 +31,11 @@
 #define DEFAULT_BUFFER_SECTORS		128
 #define DEFAULT_JOURNAL_WATERMARK	50
 #define DEFAULT_SYNC_MSEC		10000
-#define DEFAULT_MAX_JOURNAL_SECTORS	131072
+#define DEFAULT_MAX_JOURNAL_SECTORS	(IS_ENABLED(CONFIG_64BIT) ? 131072 : 8192)
 #define MIN_LOG2_INTERLEAVE_SECTORS	3
 #define MAX_LOG2_INTERLEAVE_SECTORS	31
 #define METADATA_WORKQUEUE_MAX_ACTIVE	16
-#define RECALC_SECTORS			8192
+#define RECALC_SECTORS			(IS_ENABLED(CONFIG_64BIT) ? 32768 : 2048)
 #define RECALC_WRITE_SUPER		16
 #define BITMAP_BLOCK_SIZE		4096	/* don't change it */
 #define BITMAP_FLUSH_INTERVAL		(10 * HZ)
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c +2 -0
index fd8de027e83e..6117efb425c7 100644
@@ -759,6 +759,8 @@ static int vb2ops_venc_queue_setup(struct vb2_queue *vq,
 		return -EINVAL;
 
 	if (*nplanes) {
+		if (*nplanes != q_data->fmt->num_planes)
+			return -EINVAL;
 		for (i = 0; i < *nplanes; i++)
 			if (sizes[i] < q_data->sizeimage[i])
 				return -EINVAL;
drivers/media/platform/mtk-vpu/mtk_vpu.c +4 -2
index acf64723f938..650e198a270e 100644
@@ -529,15 +529,17 @@ static int load_requested_vpu(struct mtk_vpu *vpu,
 int vpu_load_firmware(struct platform_device *pdev)
 {
 	struct mtk_vpu *vpu;
-	struct device *dev = &pdev->dev;
+	struct device *dev;
 	struct vpu_run *run;
 	int ret;
 
 	if (!pdev) {
-		dev_err(dev, "VPU platform device is invalid\n");
+		pr_err("VPU platform device is invalid\n");
 		return -EINVAL;
 	}
 
+	dev = &pdev->dev;
+
 	vpu = platform_get_drvdata(pdev);
 	run = &vpu->run;
 
drivers/mmc/core/block.c +4 -3
index 5757b72f5304..c54b2a23285c 100644
@@ -1969,14 +1969,14 @@ static void mmc_blk_mq_poll_completion(struct mmc_queue *mq,
 	mmc_blk_urgent_bkops(mq, mqrq);
 }
 
-static void mmc_blk_mq_dec_in_flight(struct mmc_queue *mq, struct request *req)
+static void mmc_blk_mq_dec_in_flight(struct mmc_queue *mq, enum mmc_issue_type issue_type)
 {
 	unsigned long flags;
 	bool put_card;
 
 	spin_lock_irqsave(&mq->lock, flags);
 
-	mq->in_flight[mmc_issue_type(mq, req)] -= 1;
+	mq->in_flight[issue_type] -= 1;
 
 	put_card = (mmc_tot_in_flight(mq) == 0);
 
@@ -1988,6 +1988,7 @@ static void mmc_blk_mq_dec_in_flight(struct mmc_queue *mq, struct request *req)
 
 static void mmc_blk_mq_post_req(struct mmc_queue *mq, struct request *req)
 {
+	enum mmc_issue_type issue_type = mmc_issue_type(mq, req);
 	struct mmc_queue_req *mqrq = req_to_mmc_queue_req(req);
 	struct mmc_request *mrq = &mqrq->brq.mrq;
 	struct mmc_host *host = mq->card->host;
@@ -2003,7 +2004,7 @@ static void mmc_blk_mq_post_req(struct mmc_queue *mq, struct request *req)
 	else
 		blk_mq_complete_request(req);
 
-	mmc_blk_mq_dec_in_flight(mq, req);
+	mmc_blk_mq_dec_in_flight(mq, issue_type);
 }
 
 void mmc_blk_mq_recovery(struct mmc_queue *mq)
drivers/mmc/host/bcm2835.c +2 -2
index 148414d7f0c9..d20943e43312 100644
@@ -1408,8 +1408,8 @@ static int bcm2835_probe(struct platform_device *pdev)
 	host->max_clk = clk_get_rate(clk);
 
 	host->irq = platform_get_irq(pdev, 0);
-	if (host->irq <= 0) {
-		ret = -EINVAL;
+	if (host->irq < 0) {
+		ret = host->irq;
 		goto err;
 	}
 
drivers/mmc/host/sdhci_f_sdh30.c +31 -37

120 lines not on this page · raw message

drivers/mmc/host/sunxi-mmc.c +2 -2
index 519718bb246c..0a67ad57e5c1 100644
@@ -1314,8 +1314,8 @@ static int sunxi_mmc_resource_request(struct sunxi_mmc_host *host,
 		return ret;
 
 	host->irq = platform_get_irq(pdev, 0);
-	if (host->irq <= 0) {
-		ret = -EINVAL;
+	if (host->irq < 0) {
+		ret = host->irq;
 		goto error_disable_mmc;
 	}
 
drivers/mmc/host/wbsd.c +0 -2
index 639f87ba1606..c8fd3cb91789 100644
@@ -1708,8 +1708,6 @@ static int wbsd_init(struct device *dev, int base, int irq, int dma,
 
 		wbsd_release_resources(host);
 		wbsd_free_mmc(dev);
-
-		mmc_free_host(mmc);
 		return ret;
 	}
 
drivers/net/bonding/bond_alb.c +3 -3
index 20114e1dde77..6df78a36bafd 100644
@@ -656,10 +656,10 @@ static struct slave *rlb_arp_xmit(struct sk_buff *skb, struct bonding *bond)
 		return NULL;
 	arp = (struct arp_pkt *)skb_network_header(skb);
 
-	/* Don't modify or load balance ARPs that do not originate locally
-	 * (e.g.,arrive via a bridge).
+	/* Don't modify or load balance ARPs that do not originate
+	 * from the bond itself or a VLAN directly above the bond.
 	 */
-	if (!bond_slave_has_mac_rx(bond, arp->mac_src))
+	if (!bond_slave_has_mac_rcu(bond, arp->mac_src))
 		return NULL;
 
 	if (arp->op_code == htons(ARPOP_REPLY)) {
drivers/net/can/vxcan.c +1 -6
index 282c53ef76d2..1bfede407270 100644
@@ -179,12 +179,7 @@ static int vxcan_newlink(struct net *net, struct net_device *dev,
 
 		nla_peer = data[VXCAN_INFO_PEER];
 		ifmp = nla_data(nla_peer);
-		err = rtnl_nla_parse_ifla(peer_tb,
-					  nla_data(nla_peer) +
-					  sizeof(struct ifinfomsg),
-					  nla_len(nla_peer) -
-					  sizeof(struct ifinfomsg),
-					  NULL);
+		err = rtnl_nla_parse_ifinfomsg(peer_tb, nla_peer, extack);
 		if (err < 0)
 			return err;
 
drivers/net/dsa/mv88e6xxx/chip.c +8 -0
index 393ee145ae06..ca705a0e0961 100644
@@ -2143,6 +2143,14 @@ static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip)
 
 	/* If there is a GPIO connected to the reset pin, toggle it */
 	if (gpiod) {
+		/* If the switch has just been reset and not yet completed
+		 * loading EEPROM, the reset may interrupt the I2C transaction
+		 * mid-byte, causing the first EEPROM read after the reset
+		 * from the wrong location resulting in the switch booting
+		 * to wrong mode and inoperable.
+		 */
+		mv88e6xxx_g1_wait_eeprom_done(chip);
+
 		gpiod_set_value_cansleep(gpiod, 1);
 		usleep_range(10000, 20000);
 		gpiod_set_value_cansleep(gpiod, 0);
drivers/net/ethernet/broadcom/bgmac.c +1 -1
index 89a63fdbe0e3..1148370e2432 100644
@@ -1447,7 +1447,7 @@ int bgmac_phy_connect_direct(struct bgmac *bgmac)
 	int err;
 
 	phy_dev = fixed_phy_register(PHY_POLL, &fphy_status, NULL);
-	if (!phy_dev || IS_ERR(phy_dev)) {
+	if (IS_ERR(phy_dev)) {
 		dev_err(bgmac->dev, "Failed to register fixed PHY device\n");
 		return -ENODEV;
 	}
drivers/net/ethernet/broadcom/genet/bcmmii.c +1 -1
index 53495d39cc9c..2fbec2acb606 100644
@@ -565,7 +565,7 @@ static int bcmgenet_mii_pd_init(struct bcmgenet_priv *priv)
 		};
 
 		phydev = fixed_phy_register(PHY_POLL, &fphy_status, NULL);
-		if (!phydev || IS_ERR(phydev)) {
+		if (IS_ERR(phydev)) {
 			dev_err(kdev, "failed to register fixed PHY device\n");
 			return -ENODEV;
 		}
drivers/net/ethernet/ibm/ibmveth.c +1 -1
index a20d9147d5f2..fde949a73cb5 100644
@@ -196,7 +196,7 @@ static inline void ibmveth_flush_buffer(void *addr, unsigned long length)
 	unsigned long offset;
 
 	for (offset = 0; offset < length; offset += SMP_CACHE_BYTES)
-		asm("dcbfl %0,%1" :: "b" (addr), "r" (offset));
+		asm("dcbf %0,%1,1" :: "b" (addr), "r" (offset));
 }
 
 /* replenish the buffers for a pool.  note that we don't need to
drivers/net/ethernet/intel/i40e/i40e_nvm.c +8 -8
index e4d8d20baf3b..37a29b5fc2af 100644
@@ -210,11 +210,11 @@ static i40e_status i40e_read_nvm_word_srctl(struct i40e_hw *hw, u16 offset,
  * @hw: pointer to the HW structure.
  * @module_pointer: module pointer location in words from the NVM beginning
  * @offset: offset in words from module start
- * @words: number of words to write
- * @data: buffer with words to write to the Shadow RAM
+ * @words: number of words to read
+ * @data: buffer with words to read to the Shadow RAM
  * @last_command: tells the AdminQ that this is the last command
  *
- * Writes a 16 bit words buffer to the Shadow RAM using the admin command.
+ * Reads a 16 bit words buffer to the Shadow RAM using the admin command.
  **/
 static i40e_status i40e_read_nvm_aq(struct i40e_hw *hw,
 				    u8 module_pointer, u32 offset,
@@ -234,18 +234,18 @@ static i40e_status i40e_read_nvm_aq(struct i40e_hw *hw,
 	 */
 	if ((offset + words) > hw->nvm.sr_size)
 		i40e_debug(hw, I40E_DEBUG_NVM,
-			   "NVM write error: offset %d beyond Shadow RAM limit %d\n",
+			   "NVM read error: offset %d beyond Shadow RAM limit %d\n",
 			   (offset + words), hw->nvm.sr_size);
 	else if (words > I40E_SR_SECTOR_SIZE_IN_WORDS)
-		/* We can write only up to 4KB (one sector), in one AQ write */
+		/* We can read only up to 4KB (one sector), in one AQ write */
 		i40e_debug(hw, I40E_DEBUG_NVM,
-			   "NVM write fail error: tried to write %d words, limit is %d.\n",
+			   "NVM read fail error: tried to read %d words, limit is %d.\n",
 			   words, I40E_SR_SECTOR_SIZE_IN_WORDS);
 	else if (((offset + (words - 1)) / I40E_SR_SECTOR_SIZE_IN_WORDS)
 		 != (offset / I40E_SR_SECTOR_SIZE_IN_WORDS))
-		/* A single write cannot spread over two sectors */
+		/* A single read cannot spread over two sectors */
 		i40e_debug(hw, I40E_DEBUG_NVM,
-			   "NVM write error: cannot spread over two sectors in a single write offset=%d words=%d\n",
+			   "NVM read error: cannot spread over two sectors in a single read offset=%d words=%d\n",
 			   offset, words);
 	else
 		ret_code = i40e_aq_read_nvm(hw, module_pointer,
drivers/net/ethernet/intel/igb/igb_ptp.c +12 -12
index c39e921757ba..3c501c67bdbb 100644
@@ -1245,18 +1245,6 @@ void igb_ptp_init(struct igb_adapter *adapter)
 		return;
 	}
 
-	spin_lock_init(&adapter->tmreg_lock);
-	INIT_WORK(&adapter->ptp_tx_work, igb_ptp_tx_work);
-
-	if (adapter->ptp_flags & IGB_PTP_OVERFLOW_CHECK)
-		INIT_DELAYED_WORK(&adapter->ptp_overflow_work,
-				  igb_ptp_overflow_check);
-
-	adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE;
-	adapter->tstamp_config.tx_type = HWTSTAMP_TX_OFF;
-
-	igb_ptp_reset(adapter);
-
 	adapter->ptp_clock = ptp_clock_register(&adapter->ptp_caps,
 						&adapter->pdev->dev);
 	if (IS_ERR(adapter->ptp_clock)) {
@@ -1266,6 +1254,18 @@ void igb_ptp_init(struct igb_adapter *adapter)
 		dev_info(&adapter->pdev->dev, "added PHC on %s\n",
 			 adapter->netdev->name);
 		adapter->ptp_flags |= IGB_PTP_ENABLED;
+
+		spin_lock_init(&adapter->tmreg_lock);
+		INIT_WORK(&adapter->ptp_tx_work, igb_ptp_tx_work);
+
+		if (adapter->ptp_flags & IGB_PTP_OVERFLOW_CHECK)
+			INIT_DELAYED_WORK(&adapter->ptp_overflow_work,
+					  igb_ptp_overflow_check);
+
+		adapter->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE;
+		adapter->tstamp_config.tx_type = HWTSTAMP_TX_OFF;
+
+		igb_ptp_reset(adapter);
 	}
 }
 
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +2 -1
index 4a7609fd6dd0..5bc54ba68c83 100644
@@ -2430,9 +2430,10 @@ int rvu_mbox_handler_nix_set_hw_frs(struct rvu *rvu, struct nix_frs_cfg *req,
 	if (link < 0)
 		return NIX_AF_ERR_RX_LINK_INVALID;
 
-	nix_find_link_frs(rvu, req, pcifunc);
 
 linkcfg:
+	nix_find_link_frs(rvu, req, pcifunc);
+
 	cfg = rvu_read64(rvu, blkaddr, NIX_AF_RX_LINKX_CFG(link));
 	cfg = (cfg & ~(0xFFFFULL << 16)) | ((u64)req->maxlen << 16);
 	if (req->update_minlen)
drivers/net/ipvlan/ipvlan_main.c +2 -1
index 5fbabae2909e..5fea2e4a9310 100644
@@ -735,7 +735,8 @@ static int ipvlan_device_event(struct notifier_block *unused,
 
 		write_pnet(&port->pnet, newnet);
 
-		ipvlan_migrate_l3s_hook(oldnet, newnet);
+		if (port->mode == IPVLAN_MODE_L3S)
+			ipvlan_migrate_l3s_hook(oldnet, newnet);
 		break;
 	}
 	case NETDEV_UNREGISTER:
drivers/net/macsec.c +55 -15

219 lines not on this page · raw message

drivers/net/phy/broadcom.c +13 -0
index 7be75a611e9e..0e0bcc304d6c 100644
@@ -425,6 +425,17 @@ static int bcm5482_read_status(struct phy_device *phydev)
 	return err;
 }
 
+static int bcm54810_read_mmd(struct phy_device *phydev, int devnum, u16 regnum)
+{
+	return -EOPNOTSUPP;
+}
+
+static int bcm54810_write_mmd(struct phy_device *phydev, int devnum, u16 regnum,
+			      u16 val)
+{
+	return -EOPNOTSUPP;
+}
+
 static int bcm5481_config_aneg(struct phy_device *phydev)
 {
 	struct device_node *np = phydev->mdio.dev.of_node;
@@ -696,6 +707,8 @@ static struct phy_driver broadcom_drivers[] = {
 	.phy_id_mask    = 0xfffffff0,
 	.name           = "Broadcom BCM54810",
 	/* PHY_GBIT_FEATURES */
+	.read_mmd	= bcm54810_read_mmd,
+	.write_mmd	= bcm54810_write_mmd,
 	.config_init    = bcm54xx_config_init,
 	.config_aneg    = bcm5481_config_aneg,
 	.ack_interrupt  = bcm_phy_ack_intr,
drivers/net/team/team.c +3 -1
index 5c72e9ac4804..4dc98832bbba 100644
@@ -2194,7 +2194,9 @@ static void team_setup(struct net_device *dev)
 
 	dev->hw_features = TEAM_VLAN_FEATURES |
 			   NETIF_F_HW_VLAN_CTAG_RX |
-			   NETIF_F_HW_VLAN_CTAG_FILTER;
+			   NETIF_F_HW_VLAN_CTAG_FILTER |
+			   NETIF_F_HW_VLAN_STAG_RX |
+			   NETIF_F_HW_VLAN_STAG_FILTER;
 
 	dev->hw_features |= NETIF_F_GSO_ENCAP_ALL | NETIF_F_GSO_UDP_L4;
 	dev->features |= dev->hw_features;
drivers/net/veth.c +1 -4
index 683425e3a353..a6445bba4f94 100644
@@ -1255,10 +1255,7 @@ static int veth_newlink(struct net *src_net, struct net_device *dev,
 
 		nla_peer = data[VETH_INFO_PEER];
 		ifmp = nla_data(nla_peer);
-		err = rtnl_nla_parse_ifla(peer_tb,
-					  nla_data(nla_peer) + sizeof(struct ifinfomsg),
-					  nla_len(nla_peer) - sizeof(struct ifinfomsg),
-					  NULL);
+		err = rtnl_nla_parse_ifinfomsg(peer_tb, nla_peer, extack);
 		if (err < 0)
 			return err;
 
drivers/net/virtio_net.c +2 -2
index 6e520720beb5..f6a6678f43b9 100644
@@ -3265,8 +3265,6 @@ static int virtnet_probe(struct virtio_device *vdev)
 		}
 	}
 
-	_virtnet_set_queues(vi, vi->curr_queue_pairs);
-
 	/* serialize netdev register + virtio_device_ready() with ndo_open() */
 	rtnl_lock();
 
@@ -3279,6 +3277,8 @@ static int virtnet_probe(struct virtio_device *vdev)
 
 	virtio_device_ready(vdev);
 
+	_virtnet_set_queues(vi, vi->curr_queue_pairs);
+
 	rtnl_unlock();
 
 	err = virtnet_cpu_notif_add(vi);
drivers/pci/hotplug/acpiphp_glue.c +6 -3
index 98be06ac2af2..f304bdefa8f5 100644
@@ -510,12 +510,15 @@ static void enable_slot(struct acpiphp_slot *slot, bool bridge)
 				if (pass && dev->subordinate) {
 					check_hotplug_bridge(slot, dev);
 					pcibios_resource_survey_bus(dev->subordinate);
-					__pci_bus_size_bridges(dev->subordinate,
-							       &add_list);
+					if (pci_is_root_bus(bus))
+						__pci_bus_size_bridges(dev->subordinate, &add_list);
 				}
 			}
 		}
-		__pci_bus_assign_resources(bus, &add_list, NULL);
+		if (pci_is_root_bus(bus))
+			__pci_bus_assign_resources(bus, &add_list, NULL);
+		else
+			pci_assign_unassigned_bridge_resources(bus->self);
 	}
 
 	acpiphp_sanitize_bus(bus);
drivers/pcmcia/rsrc_nonstatic.c +2 -0
index 3a512513cb32..6b311d6f8bf0 100644
@@ -1053,6 +1053,8 @@ static void nonstatic_release_resource_db(struct pcmcia_socket *s)
 		q = p->next;
 		kfree(p);
 	}
+
+	kfree(data);
 }
 
 
drivers/pinctrl/pinctrl-rza2.c +15 -2
index eda88cdf870d..8c3174d00750 100644
@@ -14,6 +14,7 @@
 #include <linux/gpio/driver.h>
 #include <linux/io.h>
 #include <linux/module.h>
+#include <linux/mutex.h>
 #include <linux/of_device.h>
 #include <linux/pinctrl/pinmux.h>
 
@@ -46,6 +47,7 @@ struct rza2_pinctrl_priv {
 	struct pinctrl_dev *pctl;
 	struct pinctrl_gpio_range gpio_range;
 	int npins;
+	struct mutex mutex; /* serialize adding groups and functions */
 };
 
 #define RZA2_PDR(port)		(0x0000 + (port) * 2)	/* Direction 16-bit */
@@ -359,10 +361,14 @@ static int rza2_dt_node_to_map(struct pinctrl_dev *pctldev,
 		psel_val[i] = MUX_FUNC(value);
 	}
 
+	mutex_lock(&priv->mutex);
+
 	/* Register a single pin group listing all the pins we read from DT */
 	gsel = pinctrl_generic_add_group(pctldev, np->name, pins, npins, NULL);
-	if (gsel < 0)
-		return gsel;
+	if (gsel < 0) {
+		ret = gsel;
+		goto unlock;
+	}
 
 	/*
 	 * Register a single group function where the 'data' is an array PSEL
@@ -391,6 +397,8 @@ static int rza2_dt_node_to_map(struct pinctrl_dev *pctldev,
 	(*map)->data.mux.function = np->name;
 	*num_maps = 1;
 
+	mutex_unlock(&priv->mutex);
+
 	return 0;
 
 remove_function:
@@ -399,6 +407,9 @@ static int rza2_dt_node_to_map(struct pinctrl_dev *pctldev,
 remove_group:
 	pinctrl_generic_remove_group(pctldev, gsel);
 
+unlock:
+	mutex_unlock(&priv->mutex);
+
 	dev_err(priv->dev, "Unable to parse DT node %s\n", np->name);
 
 	return ret;
@@ -476,6 +487,8 @@ static int rza2_pinctrl_probe(struct platform_device *pdev)
 	if (IS_ERR(priv->base))
 		return PTR_ERR(priv->base);
 
+	mutex_init(&priv->mutex);
+
 	platform_set_drvdata(pdev, priv);
 
 	priv->npins = (int)(uintptr_t)of_device_get_match_data(&pdev->dev) *
drivers/scsi/raid_class.c +0 -48

54 lines not on this page · raw message

drivers/scsi/snic/snic_disc.c +1 -2
index c445853c623e..e362453e8d26 100644
@@ -317,12 +317,11 @@ snic_tgt_create(struct snic *snic, struct snic_tgt_id *tgtid)
 			      "Snic Tgt: device_add, with err = %d\n",
 			      ret);
 
-		put_device(&tgt->dev);
 		put_device(&snic->shost->shost_gendev);
 		spin_lock_irqsave(snic->shost->host_lock, flags);
 		list_del(&tgt->list);
 		spin_unlock_irqrestore(snic->shost->host_lock, flags);
-		kfree(tgt);
+		put_device(&tgt->dev);
 		tgt = NULL;
 
 		return tgt;
drivers/tty/serial/8250/8250_port.c +1 -0
index f49f3b017206..4770513944d4 100644
@@ -3135,6 +3135,7 @@ void serial8250_init_port(struct uart_8250_port *up)
 	struct uart_port *port = &up->port;
 
 	spin_lock_init(&port->lock);
+	port->pm = NULL;
 	port->ops = &serial8250_pops;
 
 	up->cur_iotype = 0xFF;
drivers/tty/serial/fsl_lpuart.c +2 -2
index 88c835796922..9230d96ed3cd 100644
@@ -1023,8 +1023,8 @@ static void lpuart_copy_rx_to_tty(struct lpuart_port *sport)
 		unsigned long sr = lpuart32_read(&sport->port, UARTSTAT);
 
 		if (sr & (UARTSTAT_PE | UARTSTAT_FE)) {
-			/* Read DR to clear the error flags */
-			lpuart32_read(&sport->port, UARTDATA);
+			/* Clear the error flags */
+			lpuart32_write(&sport->port, sr, UARTSTAT);
 
 			if (sr & UARTSTAT_PE)
 				sport->port.icount.parity++;
drivers/usb/chipidea/ci_hdrc_imx.c +5 -0
index 85561b3194a1..0fe545815c5c 100644
@@ -70,6 +70,10 @@ static const struct ci_hdrc_imx_platform_flag imx7ulp_usb_data = {
 		CI_HDRC_PMQOS,
 };
 
+static const struct ci_hdrc_imx_platform_flag imx8ulp_usb_data = {
+	.flags = CI_HDRC_SUPPORTS_RUNTIME_PM,
+};
+
 static const struct of_device_id ci_hdrc_imx_dt_ids[] = {
 	{ .compatible = "fsl,imx23-usb", .data = &imx23_usb_data},
 	{ .compatible = "fsl,imx28-usb", .data = &imx28_usb_data},
@@ -80,6 +84,7 @@ static const struct of_device_id ci_hdrc_imx_dt_ids[] = {
 	{ .compatible = "fsl,imx6ul-usb", .data = &imx6ul_usb_data},
 	{ .compatible = "fsl,imx7d-usb", .data = &imx7d_usb_data},
 	{ .compatible = "fsl,imx7ulp-usb", .data = &imx7ulp_usb_data},
+	{ .compatible = "fsl,imx8ulp-usb", .data = &imx8ulp_usb_data},
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, ci_hdrc_imx_dt_ids);
drivers/usb/dwc3/dwc3-qcom.c +36 -33

91 lines not on this page · raw message

drivers/video/fbdev/core/sysimgblt.c +56 -8

99 lines not on this page · raw message

drivers/video/fbdev/mmp/hw/mmp_ctrl.c +3 -1
index 17174cd7a5bb..b02b0bc10613 100644
@@ -510,7 +510,9 @@ static int mmphw_probe(struct platform_device *pdev)
 		ret = -ENOENT;
 		goto failed;
 	}
-	clk_prepare_enable(ctrl->clk);
+	ret = clk_prepare_enable(ctrl->clk);
+	if (ret)
+		goto failed;
 
 	/* init global regs */
 	ctrl_set_default(ctrl);
drivers/virtio/virtio_mmio.c +6 -17
index e781e5e9215f..aee8b5ce8b63 100644
@@ -542,11 +542,9 @@ static void virtio_mmio_release_dev(struct device *_d)
 {
 	struct virtio_device *vdev =
 			container_of(_d, struct virtio_device, dev);
-	struct virtio_mmio_device *vm_dev =
-			container_of(vdev, struct virtio_mmio_device, vdev);
-	struct platform_device *pdev = vm_dev->pdev;
+	struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev);
 
-	devm_kfree(&pdev->dev, vm_dev);
+	kfree(vm_dev);
 }
 
 /* Platform device */
@@ -554,19 +552,10 @@ static void virtio_mmio_release_dev(struct device *_d)
 static int virtio_mmio_probe(struct platform_device *pdev)
 {
 	struct virtio_mmio_device *vm_dev;
-	struct resource *mem;
 	unsigned long magic;
 	int rc;
 
-	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	if (!mem)
-		return -EINVAL;
-
-	if (!devm_request_mem_region(&pdev->dev, mem->start,
-			resource_size(mem), pdev->name))
-		return -EBUSY;
-
-	vm_dev = devm_kzalloc(&pdev->dev, sizeof(*vm_dev), GFP_KERNEL);
+	vm_dev = kzalloc(sizeof(*vm_dev), GFP_KERNEL);
 	if (!vm_dev)
 		return -ENOMEM;
 
@@ -577,9 +566,9 @@ static int virtio_mmio_probe(struct platform_device *pdev)
 	INIT_LIST_HEAD(&vm_dev->virtqueues);
 	spin_lock_init(&vm_dev->lock);
 
-	vm_dev->base = devm_ioremap(&pdev->dev, mem->start, resource_size(mem));
-	if (vm_dev->base == NULL)
-		return -EFAULT;
+	vm_dev->base = devm_platform_ioremap_resource(pdev, 0);
+	if (IS_ERR(vm_dev->base))
+		return PTR_ERR(vm_dev->base);
 
 	/* Check magic value */
 	magic = readl(vm_dev->base + VIRTIO_MMIO_MAGIC_VALUE);
fs/btrfs/volumes.c +1 -2
index c5944c61317f..0d4afeacb237 100644
@@ -4558,8 +4558,7 @@ int btrfs_cancel_balance(struct btrfs_fs_info *fs_info)
 		}
 	}
 
-	BUG_ON(fs_info->balance_ctl ||
-		test_bit(BTRFS_FS_BALANCE_RUNNING, &fs_info->flags));
+	ASSERT(!test_bit(BTRFS_FS_BALANCE_RUNNING, &fs_info->flags));
 	atomic_dec(&fs_info->balance_cancel_req);
 	mutex_unlock(&fs_info->balance_mutex);
 	return 0;
fs/cifs/file.c +1 -1
index 86924831fd4b..a0b99c5e0721 100644
@@ -4510,9 +4510,9 @@ static int cifs_readpage_worker(struct file *file, struct page *page,
 
 io_error:
 	kunmap(page);
-	unlock_page(page);
 
 read_complete:
+	unlock_page(page);
 	return rc;
 }
 
fs/dlm/lock.c +25 -28

117 lines not on this page · raw message

fs/dlm/plock.c +59 -30

88 lines not on this page · raw message

fs/dlm/recover.c +19 -20
index 8928e99dfd47..df18f38a0273 100644

Lines of this file are not shown. View the raw message.

fs/gfs2/super.c +15 -11
index baf0a70460c0..15e757f76380 100644

Lines of this file are not shown. View the raw message.

fs/jfs/jfs_dmap.c +3 -0
index dac67ee1879b..8e8d53241386 100644

Lines of this file are not shown. View the raw message.

fs/jfs/jfs_txnmgr.c +5 -0
index c8ce7f1bc594..6f6a5b9203d3 100644

Lines of this file are not shown. View the raw message.

fs/jfs/namei.c +5 -0
index 7a55d14cc1af..f155ad6650bd 100644

Lines of this file are not shown. View the raw message.

fs/nfs/nfs4proc.c +8 -1
index 231da9fadf09..c41d14962604 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfs4state.c +1 -10
index 5922eceb0176..477819700156 100644

Lines of this file are not shown. View the raw message.

fs/overlayfs/ovl_entry.h +9 -0
index 28348c44ea5b..8d81e88f1d1e 100644

Lines of this file are not shown. View the raw message.

fs/quota/dquot.c +3 -2
index 1d652af48f0b..3d1a71d2909b 100644

Lines of this file are not shown. View the raw message.

fs/udf/unicode.c +1 -1
index 622569007b53..2142cbd1dde2 100644

Lines of this file are not shown. View the raw message.

include/drm/drm_dp_helper.h +1 -1
index 8364502f92cf..8eaf640d4680 100644

Lines of this file are not shown. View the raw message.

include/linux/clk.h +40 -40

80 lines not on this page · raw message

include/linux/interconnect.h +12 -0
index d70a914cba11..1e0dd0541b1e 100644

Lines of this file are not shown. View the raw message.

include/linux/mm.h +2 -0
index d35c29d322d8..d14aba548ff4 100644

Lines of this file are not shown. View the raw message.

include/linux/pm_runtime.h +11 -1
index 7145795b4b9d..f615e217e575 100644

Lines of this file are not shown. View the raw message.

include/linux/raid_class.h +0 -4
index 5cdfcb873a8f..772d45b2a60a 100644

Lines of this file are not shown. View the raw message.

include/linux/virtio_net.h +4 -0
index a960de68ac69..6047058d6703 100644

Lines of this file are not shown. View the raw message.

include/linux/wait.h +2 -0
index 7d04c1b588c7..03bff85e365f 100644

Lines of this file are not shown. View the raw message.

include/media/v4l2-mem2mem.h +16 -2
index 0b9c3a287061..57b48c33f56c 100644

Lines of this file are not shown. View the raw message.

include/net/bonding.h +1 -24
index a3698f0fb2a6..9e9ccbade3b5 100644

Lines of this file are not shown. View the raw message.

include/net/rtnetlink.h +2 -2
index 4da61c950e93..5c2a73bbfabe 100644

Lines of this file are not shown. View the raw message.

include/net/sock.h +9 -2
index ee8630d6abc1..f73ef7087a18 100644

Lines of this file are not shown. View the raw message.

include/sound/core.h +3 -0
index 8a80121811d9..e4b24dcb4b19 100644

Lines of this file are not shown. View the raw message.

include/trace/events/rpm.h +6 -0
index 26927a560eab..3c716214dab1 100644

Lines of this file are not shown. View the raw message.

kernel/sysctl.c +8 -0
index decabf5714c0..4f85f7ed42fc 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace.c +8 -1
index 8006592803e1..ad0ee4de9248 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_irqsoff.c +2 -1
index a745b0cee5d3..07557904dab8 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_kprobe.c +2 -1
index a422cf6a0358..0b95277396fc 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_probe_tmpl.h +10 -8
index 29348874ebde..cf14a37dff8c 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_sched_wakeup.c +2 -0
index 617e297f46dc..7b2d8f776ae2 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_uprobe.c +2 -1
index efb51a23a14f..1a566bc67548 100644

Lines of this file are not shown. View the raw message.

lib/clz_ctz.c +6 -26
index 0d3a686b5ba2..fb8c0c5c2bd2 100644

Lines of this file are not shown. View the raw message.

lib/radix-tree.c +0 -1
index 18349781847c..4121aab98b06 100644

Lines of this file are not shown. View the raw message.

mm/filemap.c +129 -31

160 lines not on this page · raw message

net/batman-adv/bat_v_elp.c +2 -1
index a39af0eefad3..aae73f94b2c8 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/bat_v_ogm.c +5 -2
index 3165f6ff8ee7..f13a779b8656 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/hard-interface.c +13 -1
index 5f44c94ad707..073019f2e451 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/netlink.c +3 -0
index e59c5aa27ee0..f3e102a1201b 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/soft-interface.c +3 -0
index 504e3cb67bed..bd06d5b5314e 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/translation-table.c +0 -1
index 515205d7b650..a01b0277bdb1 100644

Lines of this file are not shown. View the raw message.

net/batman-adv/types.h +6 -0
index 4d7f1baee7b7..9fdf1be9b99b 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/l2cap_core.c +5 -0
index e56863587ea2..61bf48926550 100644

Lines of this file are not shown. View the raw message.

net/core/rtnetlink.c +23 -6
index 3eaf7c706b0e..bb1a27384077 100644

Lines of this file are not shown. View the raw message.

net/core/sock.c +1 -1
index 636427d400d7..69b4158a29f7 100644

Lines of this file are not shown. View the raw message.

net/dccp/proto.c +12 -8
index cd868556452e..491b148afa8f 100644

Lines of this file are not shown. View the raw message.

net/ipv4/ip_vti.c +2 -2
index bd41354ed8c1..275f2ecf0ba6 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp_timer.c +3 -1
index a0107eb02ae4..551c4a78f68d 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ip6_vti.c +2 -2
index 8b44d3b53844..e4cd6909e9bb 100644

Lines of this file are not shown. View the raw message.

net/key/af_key.c +2 -2
index 1a33c46d9c89..ce844919b2eb 100644

Lines of this file are not shown. View the raw message.

net/ncsi/ncsi-manage.c +0 -3
index 9bd12f7517ed..6710f6b8764b 100644

Lines of this file are not shown. View the raw message.

net/ncsi/ncsi-rsp.c +6 -0
index 7c893c379920..e1c6bb4ab98f 100644

Lines of this file are not shown. View the raw message.

net/netfilter/ipvs/ip_vs_ctl.c +4 -0
index 07242503d74d..2bc82dabfe3b 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_conntrack_proto_sctp.c +3 -3
index cec4b16170a0..21cbaf6dac33 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nft_dynset.c +3 -0
index 8aca2fdc0664..e0c17217817d 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_api.c +40 -13

53 lines not on this page · raw message

net/sctp/socket.c +1 -1
index 7cff1a031f76..431b9399a781 100644

Lines of this file are not shown. View the raw message.

net/unix/af_unix.c +4 -5
index f966b64d2939..baf0af49c5bd 100644

Lines of this file are not shown. View the raw message.

net/xfrm/Makefile +2 -0
index fbc4552d17b8..6e5e307f985e 100644

Lines of this file are not shown. View the raw message.

net/xfrm/xfrm_interface.c deleted +0 -987

987 lines not on this page · raw message

net/xfrm/xfrm_interface_core.c new file +987 -0

987 lines not on this page · raw message

net/xfrm/xfrm_user.c +11 -2
index bd44a800e7db..3589c2ee3d6f 100644

Lines of this file are not shown. View the raw message.

security/integrity/ima/Kconfig +1 -1
index 44b3315f3235..d90ead61f0de 100644

Lines of this file are not shown. View the raw message.

sound/core/init.c +1 -0
index 45bbc4884ef0..a127763ae5fb 100644

Lines of this file are not shown. View the raw message.

sound/core/pcm_memory.c +81 -18

99 lines not on this page · raw message

sound/hda/hdac_device.c +1 -1
index 489f996d86bc..9df0158e89f4 100644

Lines of this file are not shown. View the raw message.

sound/hda/hdac_regmap.c +3 -4
index 49780399c284..a035a7d74ce0 100644

Lines of this file are not shown. View the raw message.

sound/pci/emu10k1/emufx.c +9 -103

112 lines not on this page · raw message

sound/pci/hda/patch_realtek.c +9 -0
index 6d8d9fc1da0b..c0bcbab7b656 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/rt5665.c +2 -0
index 68299ce26d3e..648e0708007e 100644

Lines of this file are not shown. View the raw message.

sound/soc/fsl/fsl_sai.c +108 -41

149 lines not on this page · raw message

sound/soc/fsl/fsl_sai.h +60 -0

60 lines not on this page · raw message

sound/soc/meson/axg-tdm-formatter.c +26 -16

42 lines not on this page · raw message

sound/usb/quirks-table.h +29 -0
index 06657412c6d8..96d32766e93c 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/net/forwarding/mirror_gre_changes.sh +2 -1
index 472bd023e2a5..b501b366367f 100755

Lines of this file are not shown. View the raw message.

tools/testing/selftests/net/forwarding/tc_flower.sh +4 -4
index b11d8e6b5bc1..b7cdf75efb5f 100755

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.