Skip to contentSkip to conversation

Linux 5.4.251

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Jul 27, 2023 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 5.4.251 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/filesystems/directory-locking.rst         |   26 
 Documentation/networking/af_xdp.rst                     |  268 +++++++-
 Makefile                                                |    2 
 arch/arc/include/asm/linkage.h                          |    8 
 arch/arm/boot/dts/bcm5301x.dtsi                         |    1 
 arch/arm/boot/dts/omap3-gta04a5one.dts                  |    4 
 arch/arm/mach-ep93xx/timer-ep93xx.c                     |    3 
 arch/arm/mach-orion5x/board-dt.c                        |    3 
 arch/arm/mach-orion5x/common.h                          |    6 
 arch/arm/probes/kprobes/checkers-common.c               |    2 
 arch/arm/probes/kprobes/core.c                          |    2 
 arch/arm/probes/kprobes/opt-arm.c                       |    2 
 arch/arm/probes/kprobes/test-core.c                     |    2 
 arch/arm/probes/kprobes/test-core.h                     |    4 
 arch/arm64/boot/dts/qcom/msm8916.dtsi                   |    2 
 arch/arm64/boot/dts/renesas/ulcb-kf.dtsi                |    3 
 arch/arm64/mm/mmu.c                                     |    4 
 arch/powerpc/Kconfig.debug                              |    2 
 arch/powerpc/Makefile                                   |    8 
 arch/powerpc/mm/init_64.c                               |    2 
 arch/s390/kvm/kvm-s390.c                                |    4 
 arch/s390/kvm/vsie.c                                    |    6 
 arch/sh/drivers/dma/dma-sh.c                            |   37 -
 arch/sh/kernel/cpu/sh2/probe.c                          |    2 
 arch/x86/kernel/cpu/resctrl/rdtgroup.c                  |   36 -
 arch/x86/kernel/smpboot.c                               |   24 
 arch/xtensa/platforms/iss/network.c                     |    2 
 block/partitions/amiga.c                                |  104 ++-
 drivers/base/power/domain.c                             |    6 
 drivers/block/nbd.c                                     |    3 
 drivers/char/hw_random/imx-rngc.c                       |    6 
 drivers/char/hw_random/st-rng.c                         |   24 
 drivers/char/hw_random/virtio-rng.c                     |   88 ++
 drivers/char/tpm/tpm_vtpm_proxy.c                       |   30 
 drivers/clk/clk-cdce925.c                               |   12 
 drivers/clk/keystone/sci-clk.c                          |    2 
 drivers/clk/tegra/clk-emc.c                             |    2 
 drivers/clocksource/timer-cadence-ttc.c                 |   45 -
 drivers/crypto/marvell/cipher.c                         |    2 
 drivers/crypto/nx/Makefile                              |    2 
 drivers/crypto/nx/nx.h                                  |    4 
 drivers/extcon/extcon.c                                 |    8 
 drivers/firmware/stratix10-svc.c                        |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c                  |    4 
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c         |   13 
 drivers/gpu/drm/drm_atomic.c                            |   11 
 drivers/gpu/drm/drm_atomic_helper.c                     |   11 
 drivers/gpu/drm/drm_client_modeset.c                    |    6 
 drivers/gpu/drm/drm_panel.c                             |   14 
 drivers/gpu/drm/i915/intel_uncore.c                     |    3 
 drivers/gpu/drm/panel/panel-arm-versatile.c             |    5 
 drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c   |    5 
 drivers/gpu/drm/panel/panel-ilitek-ili9322.c            |    5 
 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c           |    5 
 drivers/gpu/drm/panel/panel-innolux-p079zca.c           |    5 
 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c          |    5 
 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c      |    5 
 drivers/gpu/drm/panel/panel-lg-lb035q02.c               |    5 
 drivers/gpu/drm/panel/panel-lg-lg4573.c                 |    5 
 drivers/gpu/drm/panel/panel-lvds.c                      |    5 
 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c            |    5 
 drivers/gpu/drm/panel/panel-novatek-nt39016.c           |    5 
 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c      |    5 
 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c        |    5 
 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c      |    5 
 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c    |    5 
 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c   |    5 
 drivers/gpu/drm/panel/panel-raydium-rm67191.c           |    5 
 drivers/gpu/drm/panel/panel-raydium-rm68200.c           |    5 
 drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c      |    5 
 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c            |    5 
 drivers/gpu/drm/panel/panel-samsung-ld9040.c            |    5 
 drivers/gpu/drm/panel/panel-samsung-s6d16d0.c           |    5 
 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c           |    5 
 drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c        |    5 
 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c           |    5 
 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c           |    5 
 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c             |    5 
 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c         |    5 
 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c         |    5 
 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c         |    5 
 drivers/gpu/drm/panel/panel-simple.c                    |   33 -
 drivers/gpu/drm/panel/panel-sitronix-st7701.c           |    5 
 drivers/gpu/drm/panel/panel-sitronix-st7789v.c          |    5 
 drivers/gpu/drm/panel/panel-sony-acx565akm.c            |    5 
 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c            |    5 
 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c            |    5 
 drivers/gpu/drm/panel/panel-tpo-tpg110.c                |    5 
 drivers/gpu/drm/panel/panel-truly-nt35597.c             |    5 
 drivers/gpu/drm/radeon/ci_dpm.c                         |   28 
 drivers/gpu/drm/radeon/cypress_dpm.c                    |    8 
 drivers/gpu/drm/radeon/ni_dpm.c                         |    8 
 drivers/gpu/drm/radeon/rv740_dpm.c                      |    8 
 drivers/gpu/drm/rockchip/rockchip_drm_vop.c             |    8 
 drivers/gpu/drm/sun4i/sun4i_tcon.c                      |   19 
 drivers/hid/wacom_wac.c                                 |    6 
 drivers/hid/wacom_wac.h                                 |    2 
 drivers/i2c/busses/i2c-xiic.c                           |   39 -
 drivers/iio/adc/meson_saradc.c                          |    2 
 drivers/infiniband/hw/bnxt_re/qplib_fp.c                |    5 
 drivers/infiniband/hw/hfi1/sdma.c                       |    4 
 drivers/infiniband/hw/hfi1/sdma.h                       |   15 
 drivers/input/misc/adxl34x.c                            |    3 
 drivers/input/misc/drv260x.c                            |    1 
 drivers/irqchip/irq-jcore-aic.c                         |   11 
 drivers/mailbox/ti-msgmgr.c                             |   12 
 drivers/md/bcache/btree.c                               |   10 
 drivers/md/bcache/super.c                               |    4 
 drivers/md/md-bitmap.c                                  |   17 
 drivers/md/md.c                                         |   23 
 drivers/md/raid0.c                                      |   62 +
 drivers/md/raid0.h                                      |    1 
 drivers/md/raid10.c                                     |   38 -
 drivers/media/usb/dvb-usb-v2/az6007.c                   |    3 
 drivers/media/usb/siano/smsusb.c                        |    3 
 drivers/memory/brcmstb_dpfe.c                           |    4 
 drivers/memstick/host/r592.c                            |    4 
 drivers/mfd/intel-lpss-acpi.c                           |    3 
 drivers/mfd/rt5033.c                                    |    3 
 drivers/mfd/stmfx.c                                     |    2 
 drivers/mfd/stmpe.c                                     |    4 
 drivers/misc/fastrpc.c                                  |    2 
 drivers/misc/pci_endpoint_test.c                        |   10 
 drivers/mmc/core/quirks.h                               |   14 
 drivers/mmc/host/sdhci.c                                |    4 
 drivers/mtd/nand/raw/meson_nand.c                       |    4 
 drivers/net/ethernet/broadcom/bgmac.c                   |    8 
 drivers/net/ethernet/broadcom/bgmac.h                   |    2 
 drivers/net/ethernet/broadcom/genet/bcmmii.c            |    2 
 drivers/net/ethernet/broadcom/tg3.c                     |    1 
 drivers/net/ethernet/intel/iavf/iavf_main.c             |    5 
 drivers/net/ethernet/intel/igb/igb_main.c               |    5 
 drivers/net/ethernet/intel/igc/igc_ethtool.c            |    2 
 drivers/net/ethernet/intel/igc/igc_main.c               |    1 
 drivers/net/ethernet/marvell/mvneta.c                   |    4 
 drivers/net/ethernet/microchip/lan743x_main.c           |   21 
 drivers/net/ethernet/pensando/ionic/ionic_lif.c         |   57 -
 drivers/net/ethernet/ti/cpsw_ale.c                      |   24 
 drivers/net/gtp.c                                       |    2 
 drivers/net/ipvlan/ipvlan_core.c                        |    9 
 drivers/net/wireless/ath/ath9k/ar9003_hw.c              |   27 
 drivers/net/wireless/ath/ath9k/htc_hst.c                |    8 
 drivers/net/wireless/ath/ath9k/main.c                   |   11 
 drivers/net/wireless/ath/ath9k/wmi.c                    |    4 
 drivers/net/wireless/atmel/atmel_cs.c                   |   13 
 drivers/net/wireless/cisco/airo.c                       |    5 
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c            |    5 
 drivers/net/wireless/intel/iwlwifi/mvm/sta.c            |    2 
 drivers/net/wireless/intersil/orinoco/orinoco_cs.c      |   13 
 drivers/net/wireless/intersil/orinoco/spectrum_cs.c     |   13 
 drivers/net/wireless/marvell/mwifiex/scan.c             |    6 
 drivers/net/wireless/ray_cs.c                           |   36 -
 drivers/net/wireless/rsi/rsi_91x_sdio.c                 |    3 
 drivers/net/wireless/wl3501_cs.c                        |   51 -
 drivers/ntb/hw/amd/ntb_hw_amd.c                         |    7 
 drivers/ntb/hw/idt/ntb_hw_idt.c                         |    7 
 drivers/ntb/hw/intel/ntb_hw_gen1.c                      |    7 
 drivers/ntb/ntb_transport.c                             |    2 
 drivers/ntb/test/ntb_tool.c                             |    2 
 drivers/pci/controller/dwc/pcie-qcom.c                  |    2 
 drivers/pci/controller/pci-ftpci100.c                   |   14 
 drivers/pci/controller/pcie-rockchip-ep.c               |   65 --
 drivers/pci/controller/pcie-rockchip.c                  |   17 
 drivers/pci/controller/pcie-rockchip.h                  |   11 
 drivers/pci/hotplug/pciehp_ctrl.c                       |    8 
 drivers/pci/pci.c                                       |   10 
 drivers/pci/pcie/aspm.c                                 |   21 
 drivers/pci/quirks.c                                    |    2 
 drivers/pinctrl/intel/pinctrl-cherryview.c              |   15 
 drivers/pinctrl/pinctrl-amd.c                           |   41 -
 drivers/pinctrl/pinctrl-amd.h                           |    1 
 drivers/pinctrl/pinctrl-at91-pio4.c                     |    2 
 drivers/platform/x86/wmi.c                              |   81 +-
 drivers/powercap/Kconfig                                |    4 
 drivers/powercap/intel_rapl_msr.c                       |    1 
 drivers/pwm/pwm-imx-tpm.c                               |    7 
 drivers/pwm/sysfs.c                                     |   17 
 drivers/regulator/core.c                                |   30 
 drivers/rtc/rtc-st-lpc.c                                |    2 
 drivers/scsi/3w-xxxx.c                                  |    4 
 drivers/scsi/qedf/qedf_main.c                           |    3 
 drivers/scsi/qla2xxx/qla_attr.c                         |   13 
 drivers/scsi/qla2xxx/qla_bsg.c                          |    6 
 drivers/scsi/qla2xxx/qla_def.h                          |    1 
 drivers/scsi/qla2xxx/qla_inline.h                       |    5 
 drivers/scsi/qla2xxx/qla_iocb.c                         |    5 
 drivers/scsi/qla2xxx/qla_nvme.c                         |    3 
 drivers/soc/fsl/qe/Kconfig                              |    1 
 drivers/spi/spi-bcm-qspi.c                              |   10 
 drivers/spi/spi-bcm63xx.c                               |    2 
 drivers/spi/spi-geni-qcom.c                             |    2 
 drivers/tty/serial/8250/8250.h                          |    1 
 drivers/tty/serial/8250/8250_omap.c                     |   20 
 drivers/tty/serial/8250/8250_pci.c                      |   19 
 drivers/tty/serial/8250/8250_port.c                     |   11 
 drivers/tty/serial/atmel_serial.c                       |    4 
 drivers/tty/serial/fsl_lpuart.c                         |    1 
 drivers/tty/serial/samsung.c                            |   14 
 drivers/usb/core/devio.c                                |    2 
 drivers/usb/dwc3/dwc3-qcom.c                            |   12 
 drivers/usb/dwc3/gadget.c                               |    4 
 drivers/usb/phy/phy-tahvo.c                             |    2 
 drivers/usb/serial/option.c                             |    4 
 drivers/video/fbdev/au1200fb.c                          |    3 
 drivers/video/fbdev/imsttfb.c                           |   36 -
 drivers/video/fbdev/imxfb.c                             |    4 
 drivers/video/fbdev/omap/lcd_mipid.c                    |    6 
 drivers/w1/w1.c                                         |    4 
 fs/btrfs/qgroup.c                                       |    3 
 fs/ceph/caps.c                                          |    9 
 fs/dlm/plock.c                                          |    4 
 fs/erofs/zdata.c                                        |    2 
 fs/erofs/zmap.c                                         |    6 
 fs/ext4/indirect.c                                      |    8 
 fs/ext4/inode.c                                         |   10 
 fs/ext4/mballoc.c                                       |    4 
 fs/ext4/namei.c                                         |   17 
 fs/ext4/xattr.c                                         |   14 
 fs/f2fs/namei.c                                         |   16 
 fs/f2fs/node.c                                          |    4 
 fs/fs_context.c                                         |    3 
 fs/fuse/dir.c                                           |    2 
 fs/gfs2/super.c                                         |    8 
 fs/inode.c                                              |   42 +
 fs/internal.h                                           |    2 
 fs/jffs2/build.c                                        |    5 
 fs/jffs2/xattr.c                                        |   13 
 fs/jffs2/xattr.h                                        |    4 
 fs/jfs/jfs_dmap.c                                       |    6 
 fs/jfs/jfs_filsys.h                                     |    2 
 fs/namei.c                                              |   25 
 fs/nfs/nfs4proc.c                                       |    1 
 fs/nfsd/nfs4xdr.c                                       |    2 
 fs/notify/fanotify/fanotify_user.c                      |   22 
 fs/pstore/ram_core.c                                    |    2 
 include/drm/drm_panel.h                                 |   13 
 include/linux/etherdevice.h                             |   12 
 include/linux/netdevice.h                               |   18 
 include/linux/netfilter/nfnetlink.h                     |   27 
 include/linux/nmi.h                                     |    2 
 include/linux/pci.h                                     |    1 
 include/linux/sched/signal.h                            |    2 
 include/linux/serial_8250.h                             |    1 
 include/linux/tcp.h                                     |    2 
 include/linux/workqueue.h                               |   15 
 include/net/netfilter/nf_tables.h                       |   14 
 include/net/netns/nftables.h                            |    6 
 include/net/nfc/nfc.h                                   |    4 
 include/net/pkt_sched.h                                 |    2 
 include/net/sock.h                                      |    1 
 include/net/tcp.h                                       |    7 
 include/trace/events/timer.h                            |    6 
 include/uapi/linux/affs_hardblocks.h                    |   68 +-
 include/uapi/linux/videodev2.h                          |    2 
 kernel/bpf/bpf_lru_list.c                               |   21 
 kernel/bpf/bpf_lru_list.h                               |    7 
 kernel/kexec_core.c                                     |    5 
 kernel/sched/fair.c                                     |    2 
 kernel/time/posix-timers.c                              |   31 
 kernel/trace/ring_buffer.c                              |   24 
 kernel/trace/trace.c                                    |    2 
 kernel/trace/trace_events_hist.c                        |    9 
 kernel/trace/trace_probe_tmpl.h                         |    2 
 kernel/watchdog_hld.c                                   |    6 
 kernel/workqueue.c                                      |   13 
 lib/debugobjects.c                                      |    9 
 lib/ts_bm.c                                             |    4 
 net/bridge/br_if.c                                      |    5 
 net/can/bcm.c                                           |   12 
 net/core/devlink.c                                      |    5 
 net/core/rtnetlink.c                                    |  104 +--
 net/core/sock.c                                         |   17 
 net/dsa/tag_sja1105.c                                   |    4 
 net/ipv4/inet_hashtables.c                              |   17 
 net/ipv4/inet_timewait_sock.c                           |    8 
 net/ipv4/tcp.c                                          |   31 
 net/ipv4/tcp_fastopen.c                                 |    6 
 net/ipv4/tcp_input.c                                    |   12 
 net/ipv6/addrconf.c                                     |    3 
 net/ipv6/icmp.c                                         |    5 
 net/ipv6/ip6_gre.c                                      |    3 
 net/ipv6/udp.c                                          |    2 
 net/llc/llc_input.c                                     |    3 
 net/netfilter/ipset/ip_set_core.c                       |   17 
 net/netfilter/nf_conntrack_helper.c                     |    4 
 net/netfilter/nf_conntrack_netlink.c                    |   77 --
 net/netfilter/nf_conntrack_proto_dccp.c                 |   52 +
 net/netfilter/nf_conntrack_sip.c                        |    2 
 net/netfilter/nf_tables_api.c                           |  513 +++++++++-------
 net/netfilter/nf_tables_offload.c                       |   29 
 net/netfilter/nf_tables_trace.c                         |    9 
 net/netfilter/nfnetlink_acct.c                          |   11 
 net/netfilter/nfnetlink_cthelper.c                      |   11 
 net/netfilter/nfnetlink_cttimeout.c                     |   22 
 net/netfilter/nfnetlink_log.c                           |   11 
 net/netfilter/nfnetlink_queue.c                         |   12 
 net/netfilter/nft_byteorder.c                           |   14 
 net/netfilter/nft_chain_filter.c                        |   11 
 net/netfilter/nft_compat.c                              |   11 
 net/netfilter/nft_dynset.c                              |    6 
 net/netlink/af_netlink.c                                |    5 
 net/netlink/diag.c                                      |    7 
 net/nfc/core.c                                          |    4 
 net/nfc/hci/llc_shdlc.c                                 |   10 
 net/nfc/llcp.h                                          |    9 
 net/nfc/llcp_commands.c                                 |   59 +
 net/nfc/llcp_core.c                                     |   93 ++
 net/nfc/llcp_sock.c                                     |   21 
 net/nfc/netlink.c                                       |   20 
 net/nfc/nfc.h                                           |    3 
 net/sched/act_pedit.c                                   |    1 
 net/sched/cls_flower.c                                  |   36 -
 net/sched/cls_fw.c                                      |   10 
 net/sctp/socket.c                                       |    4 
 net/sunrpc/svcsock.c                                    |   27 
 net/wireless/scan.c                                     |  213 +++---
 net/wireless/wext-core.c                                |    6 
 net/xdp/xsk.c                                           |    5 
 samples/bpf/tcp_basertt_kern.c                          |    2 
 scripts/mod/modpost.c                                   |   26 
 scripts/tags.sh                                         |    9 
 security/integrity/evm/evm_main.c                       |    2 
 security/integrity/iint.c                               |   15 
 security/integrity/ima/ima_modsig.c                     |    3 
 security/integrity/ima/ima_policy.c                     |    3 
 sound/core/jack.c                                       |   15 
 sound/pci/ac97/ac97_codec.c                             |    4 
 sound/soc/codecs/es8316.c                               |   23 
 sound/soc/fsl/imx-audmix.c                              |    9 
 tools/perf/tests/shell/test_uprobe_from_different_cu.sh |   77 ++
 tools/perf/util/dwarf-aux.c                             |    2 
 tools/testing/selftests/net/rtnetlink.sh                |    1 
 tools/testing/selftests/tc-testing/settings             |    1 
 333 files changed, 3025 insertions(+), 1725 deletions(-)

Ahmed S. Darwish (1):
scripts/tags.sh: Resolve gtags empty index generation

Alex Dewar (1):
wl3501_cs: Remove unnecessary NULL check

Alexander Aring (1):
fs: dlm: return positive pid value for F_GETLK

Amelie Delaunay (1):
mfd: stmfx: Fix error path in stmfx_chip_init

Amir Goldstein (1):
fanotify: disallow mount/sb marks on kernel internal pseudo fs

Andy Shevchenko (8):
wifi: ray_cs: Utilize strnlen() in parse_addr()
wifi: ray_cs: Drop useless status variable in parse_addr()
pinctrl: cherryview: Return correct value if pin in push-pull mode
extcon: Fix kernel doc of property fields to avoid warnings
extcon: Fix kernel doc of property capability fields to avoid warnings platform/x86: wmi: Replace UUID redefinitions by their originals platform/x86: wmi: Fix indentation in some cases platform/x86: wmi: Break possible infinite loop when parsing GUID

Aneesh Kumar K.V (1):
powerpc/mm/dax: Fix the condition when checking if altmap vmemap can cross-boundary

Arnd Bergmann (6):
ARM: 9303/1: kprobes: avoid missing-declaration warnings memstick r592: make memstick_debug_get_tpc_name() static
ARM: ep93xx: fix missing-prototype warnings
crypto: marvell/cesa - Fix type mismatch warning
usb: hide unused usbfs_notify_suspend/resume functions
ARM: orion5x: fix d2net gpio initialization

Arseniy Krasnov (1):
mtd: rawnand: meson: fix unaligned DMA buffers handling

Artur Rojek (1):
sh: dma: Fix DMA channel offset calculation

Baokun Li (1):
ext4: only update i_reserved_data_blocks on successful block allocation

Barnabás Pőcze (3):
platform/x86: wmi: remove unnecessary argument platform/x86: wmi: use guid_t and guid_equal() platform/x86: wmi: move variables

Bas Nieuwenhuizen (1):
drm/amdgpu: Validate VM ioctl flags.

Benjamin Berg (1):
wifi: cfg80211: rewrite merging of inherited elements

Bikash Hazarika (2):
scsi: qla2xxx: Fix potential NULL pointer dereference
scsi: qla2xxx: Correct the index of array

Bob Peterson (1):
gfs2: Don't deref jdesc in evict

Brian Norris (2):
drm/atomic: Allow vblank-enabled + self-refresh "disable" drm/rockchip: vop: Leave vblank enabled in self-refresh

Cambda Zhu (2):
ipvlan: Fix return value of ipvlan_queue_xmit()
net: Replace the limit of TCP_LINGER2 with TCP_FIN_TIMEOUT_MAX

Chao Yu (1):
f2fs: fix error path handling in truncate_dnode()

Chengfeng Ye (1):

      sctp: fix potential deadlock on &net->sctp.addr_wq_lock

Chevron Li (1):
mmc: sdhci: fix DMA configure compatibility issue when 64bit DMA mode is used.

Chris Wilson (1):
drm/i915: Initialise outparam for error return from wait_for_register

Christophe JAILLET (13):
wifi: mwifiex: Fix the size of a memory allocation in mwifiex_ret_802_11_scan()
wifi: orinoco: Fix an error handling path in spectrum_cs_probe()
wifi: orinoco: Fix an error handling path in orinoco_cs_probe()
wifi: atmel: Fix an error handling path in atmel_probe()
wifi: wl3501_cs: Fix an error handling path in wl3501_probe()
wifi: ray_cs: Fix an error handling path in ray_probe()
fbdev: omapfb: lcd_mipid: Fix an error handling path in mipid_spi_probe()
usb: dwc3: qcom: Release the correct resources in dwc3_qcom_remove()
mfd: stmpe: Only disable the regulators if they are enabled
rtc: st-lpc: Release some resources in st_rtc_probe() in case of error
firmware: stratix10-svc: Fix a potential resource leak in svc_create_memory_pool()
tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() in case of error
tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk

Chunhai Guo (1):
erofs: avoid infinite loop in z_erofs_do_read_page() when reading beyond EOF

Claudiu Beznea (4):
clk: cdce925: check return value of kasprintf()
clk: keystone: sci-clk: check return value of kasprintf()
ASoC: imx-audmix: check return value of devm_kasprintf()
pinctrl: at91-pio4: check return value of devm_kasprintf()

Cristian Ciocaltea (2):
ASoC: es8316: Increment max value for ALC Capture Target Volume control
ASoC: es8316: Do not set rate constraints for unsupported MCLKs

Dai Ngo (1):
NFSD: add encoding of op_recall flag for write delegation

Damien Le Moal (3):
PCI: rockchip: Set address alignment for endpoint mode
misc: pci_endpoint_test: Free IRQs before removing the device
misc: pci_endpoint_test: Re-init completion for every test

Dan Carpenter (4):
modpost: fix off by one in is_executable_section()
w1: fix loop in w1_fini()
scsi: qla2xxx: Fix error code in qla2x00_start_sp()
serial: atmel: don't enable IRQs prematurely

Daniel Vetter (1):
drm/atomic: Fix potential use-after-free in nonblocking commits

Daniil Dulov (2):
drm/amdkfd: Fix potential deallocation of previously deallocated memory.
media: usb: Check az6007_read() return value

Dario Binacchi (1):
drm/panel: simple: fix active size for Ampire AM-480272H3TMQW-T01H

Davide Tronchin (1):
USB: serial: option: add LARA-R6 01B PIDs

Ding Hui (3):
PCI/ASPM: Disable ASPM on MFD function removal to avoid use-after-free
SUNRPC: Fix UAF in svc_tcp_listen_data_ready()
iavf: Fix use-after-free in free_netdev

Dmitry Antipov (1):
wifi: ath9k: convert msecs to jiffies where needed

Douglas Anderson (2):
watchdog/perf: define dummy watchdog_update_hrtimer_threshold() on correct config watchdog/perf: more properly prevent false positives with turbo modes

Duoming Zhou (1):
media: usb: siano: Fix warning due to null work_func_t function pointer

Edwin Peer (1):
rtnetlink: extend RTEXT_FILTER_SKIP_STATS to IFLA_VF_INFO

Ekansh Gupta (1):
misc: fastrpc: Create fastrpc scalar with correct buffer count

Eric Dumazet (9):
netlink: fix potential deadlock in netlink_set_err()
netlink: do not hard code device address lenth in fdb dumps
tcp: annotate data races in __tcp_oow_rate_limited()
udp6: fix udp6_ehashfn() typo
tcp: annotate data-races around tp->tcp_tx_delay
tcp: annotate data-races around tp->linger2
tcp: annotate data-races around rskq_defer_accept
tcp: annotate data-races around tp->notsent_lowat
tcp: annotate data-races around fastopenq.max_qlen

Eric Whitney (1):
ext4: correct inline offset when handling xattrs in inode body

Fabian Frederick (1):
jffs2: reduce stack usage in jffs2_build_xattr_subsystem()

Fabio Estevam (1):
drm/panel: simple: Add connector_type for innolux_at043tn24

Fancy Fang (1):
pwm: imx-tpm: force 'real_period' to be zero in suspend

Fedor Pchelkin (2):
wifi: ath9k: avoid referencing uninit memory in ath9k_wmi_ctrl_rx
wifi: ath9k: don't allow to overwrite ENDPOINT0 attributes

Feng Mingxi (1):
clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe

Filipe Manana (2):
btrfs: fix race when deleting quota root from the dirty cow roots list
btrfs: fix warning when putting transaction with qgroups enabled after abort

Florent Revest (1):
netfilter: conntrack: Avoid nf_ct_helper_hash uses after free

Florian Fainelli (1):
net: bcmgenet: Ensure MDIO unregistration has clocks enabled

Florian Westphal (7):
netfilter: conntrack: dccp: copy entire header to stack buffer, not just basic one
netfilter: nf_tables: fix nat hook table deletion
netfilter: nf_tables: use net_generic infra for transaction data
netfilter: nf_tables: add rescheduling points during loop detection walks
netfilter: nf_tables: fix scheduling-while-atomic splat
netfilter: nf_tables: fix spurious set element insertion failure
netfilter: nf_tables: can't schedule in nft_chain_validate

Gao Xiang (1):
erofs: fix compact 4B support for 16k block size

Geert Uytterhoeven (2):
regulator: core: Fix more error checking for debugfs_create_dir()
regulator: core: Streamline debugfs operations

Georg Müller (1):
perf probe: Add test for regression introduced by switch to die_get_decl_file()

George Stark (1):
meson saradc: fix clock divider mask length

Greg Kroah-Hartman (2):
video: imsttfb: check for ioremap() failures Linux 5.4.251

Guillaume Nault (1):
cls_flower: Add extack support for src and dst port range options

Gustavo A. R. Silva (1):
wifi: wext-core: Fix -Wstringop-overflow warning in ioctl_standard_iw_point()

Herbert Xu (2):
hwrng: virtio - Fix race on data_avail and actual data
hwrng: st - Fix W=1 unused variable warning

Ido Schimmel (1):
net/sched: flower: Ensure both minimum and maximum ports are specified

Ilia.Gavrilov (1):
netfilter: nf_conntrack_sip: fix the ct_sip_parse_numerical_param() return value.

Ilya Maximets (1):
xsk: Honor SO_BINDTODEVICE on bind

Jakub Kicinski (2):

      net: create netdev->dev_addr assignment helpers
      wl3501_cs: use eth_hw_addr_set()

James Morse (1):
x86/resctrl: Use is_closid_match() in more places

Jan Kara (5):
ext4: Remove ext4 locking of moved directory
Revert "f2fs: fix potential corruption when moving a directory"
fs: Establish locking order for unrelated directories
fs: Lock moved directories
fs: no need to check source

Jarkko Sakkinen (1):
tpm: tpm_vtpm_proxy: fix a race condition in /dev/vtpmx creation

Jason Baron (1):
md/raid0: add discard support for the 'original' layout

Jason Gerecke (1):
HID: wacom: Use ktime_t rather than int when dealing with timestamps

Jeremy Sowden (1):
lib/ts_bm: reset initial match offset for every block of text

Jiaqing Zhao (1):
Revert "8250: add support for ASIX devices with a FIFO bug"

Jiasheng Jiang (3):
pstore/ram: Add check for kstrdup
mfd: intel-lpss: Add missing check for platform_get_resource
NTB: ntb_tool: Add check for devm_kcalloc

Jinhong Zhu (1):
scsi: qedf: Fix NULL dereference in error handling

Jocelyn Falempe (2):
drm/client: Fix memory leak in drm_client_target_cloned drm/client: Fix memory leak in drm_client_modeset_probe

Johannes Berg (2):
wifi: iwlwifi: pull from TXQs with softirqs disabled
wifi: iwlwifi: mvm: avoid baid size integer overflow

John Paul Adrian Glaubitz (2):
irqchip/jcore-aic: Fix missing allocation of IRQ descriptors
sh: j2: Use ioremap() to translate device tree address into kernel memory

Jonas Gorski (2):
spi: bcm-qspi: return error if neither hif_mspi nor mspi is available
spi: bcm63xx: fix max prepend length

Junyan Ye (1):
PCI: ftpci100: Release the clock resources

Kalesh AP (1):
RDMA/bnxt_re: Fix to remove an unnecessary log

Kemeng Shi (1):
ext4: fix wrong unit use in ext4_mb_clear_bb

Klaus Kudielka (1):

      net: mvneta: fix txq_map in case of txq_number==1

Krishna Kurapati (1):
usb: dwc3: gadget: Propagate core init errors to UDC during pullup

Krzysztof Kozlowski (5):
nfc: constify several pointers to u8, char and sk_buff
nfc: llcp: fix possible use of uninitialized variable in nfc_llcp_send_connect()
nfc: llcp: simplify llcp_sock_connect() error paths
arm64: dts: qcom: msm8916: correct camss unit address
memory: brcmstb_dpfe: fix testing array offset after use

Kuniyuki Iwashima (5):
gtp: Fix use-after-free in __gtp_encap_destroy().
netlink: Add __sock_i_ino() for __netlink_diag_dump().
icmp6: Fix null-ptr-deref of ip6_null_entry->rt6i_idev in icmp6_dev(). Revert "tcp: avoid the lookup process failing to get sk in ehash table"
llc: Don't drop packet from non-root netns.

Laurent Pinchart (2):
drm/panel: Initialise panel dev and funcs through drm_panel_init() drm/panel: Add and fill drm_panel type field

Laurent Vivier (4):
hwrng: virtio - add an internal buffer
hwrng: virtio - don't wait on cleanup
hwrng: virtio - don't waste entropy
hwrng: virtio - always add a pending request

Lee Jones (2):
wl3501_cs: Fix a bunch of formatting issues related to function docs
wl3501_cs: Fix misspelling and provide missing documentation

Li Nan (5):
md/raid10: check slab-out-of-bounds in md_bitmap_get_counter md/raid10: fix overflow of md/safe_mode_delay md/raid10: fix wrong setting of max_corr_read_errors md/raid10: fix null-ptr-deref of mreplace in raid10_sync_request md/raid10: fix io loss while replacement replace rdev

Li Yang (1):
usb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe()

Lin Ma (2):
net: nfc: Fix use-after-free caused by nfc_llcp_find_local net/sched: act_pedit: Add size check for TCA_PEDIT_PARMS_EX

Linus Torvalds (1):
workqueue: clean up WORK_* constant types, clarify masking

Luca Weiss (1):

      Input: drv260x - sleep between polling GO bit

M A Ramdhan (1):
net/sched: cls_fw: Fix improper refcount update leads to use-after-free

Magnus Karlsson (1):
xsk: Improve documentation for AF_XDP

Manish Rangankar (1):
scsi: qla2xxx: Remove unused nvme_ls_waitq wait queue

Manivannan Sadhasivam (1):
PCI: qcom: Disable write access to read only registers for IP v2.3.3

Marc Zyngier (1):
irqchip/jcore-aic: Kill use of irq_create_strict_mappings()

Marek Vasut (5):
wifi: rsi: Do not set MMC_PM_KEEP_POWER in shutdown
Input: adxl34x - do not hardcode interrupt trigger type
media: videodev2.h: Fix struct v4l2_input tuner index comment
pwm: sysfs: Do not apply state to already disabled PWMs
i2c: xiic: Defer xiic_wakeup() and __xiic_start_xfer() in xiic_process()

Mario Limonciello (4):
pinctrl: amd: Fix mistake in handling clearing pins at startup
pinctrl: amd: Detect internal GPIO0 debounce handling
pinctrl: amd: Only use special debounce behavior for GPIO 0
pinctrl: amd: Use amd_pinconf_set() for all config options

Mark Rutland (1):
arm64: mm: fix VA-range sanity check

Martin KaFai Lau (1):
bpf: Address KCSAN report on bpf_lru_list

Martin Kaiser (3):
hwrng: st - keep clock enabled while hwrng is registered
hwrng: imx-rngc - fix the timeout for init and self check
fbdev: imxfb: warn about invalid left/right margin

Masahiro Yamada (3):
modpost: fix section mismatch message for R_ARM_ABS32
modpost: fix section mismatch message for R_ARM_{PC24,CALL,JUMP24}
ARC: define ASM_NL and __ALIGN(_STR) outside #ifdef __ASSEMBLY__ guard

Masami Hiramatsu (Google) (1):
tracing/probes: Fix not to count error code to total length

Mateusz Stachyra (1):
tracing: Fix null pointer dereference in tracing_err_log_open()

Matthieu Baerts (1):
selftests: tc: set timeout to 15 minutes

Max Filippov (1):
xtensa: ISS: fix call to split_if_spec

Michael Schmitz (4):
block: fix signed int overflow in Amiga partition support
block: change all __u32 annotations to __be32 in affs_hardblocks.h
block: add overflow checks for Amiga partition support block/partition: fix signedness issue for Amiga partitions

Miklos Szeredi (1):
fuse: revalidate: don't invalidate if interrupted

Mohamed Khalfella (2):
tracing/histograms: Add histograms to hist_vars if they have referenced variables tracing/histograms: Return an error if we fail to add histogram to hist_vars list

Moritz Fischer (1):
net: lan743x: Don't sleep in atomic context

Muhammad Husaini Zulkifli (1):
igc: Remove delay during TX ring configuration

Namhyung Kim (1):
perf dwarf-aux: Fix off-by-one in die_get_varname()

Naveen N Rao (1):
powerpc: Fail build if using recordmcount with binutils v2.37

Nico Boehr (1):
KVM: s390: fix KVM_S390_GET_CMMA_BITS for GFNs in memslot holes

Nikita Zhandarovich (3):
PM: domains: fix integer overflow issues in genpd_parse_state()
radeon: avoid double free in ci_dpm_init() drm/radeon: fix possible division-by-zero errors

Nilesh Javali (1):
scsi: qla2xxx: Check valid rport returned by fc_bsg_to_rport()

Nishanth Menon (1):

      mailbox: ti-msgmgr: Fill non-message tx data fields with 0x0

Nitya Sunkad (1):
ionic: remove WARN_ON to prevent panic_on_warn

Olga Kornievskaia (1):
NFSv4.1: freeze the session table upon receiving NFS4ERR_BADSESSION

Ondrej Zary (1):
PCI/PM: Avoid putting EloPOS E2/S2/H2 PCIe Ports in D3cold

Pablo Neira Ayuso (6):
netfilter: nftables: add helper function to set the base sequence number
netfilter: add helper function to set up the nfnetlink header and use it
netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE
netfilter: nf_tables: add NFT_TRANS_PREPARE_ERROR to deal with bound set/chain
netfilter: nf_tables: reject unbound anonymous set before commit phase
netfilter: nf_tables: unbind non-anonymous set if rule construction fails

Patrick Kelsey (1):

      IB/hfi1: Fix sdma.h tx->num_descs off-by-one errors

Pedro Tammela (1):
net/sched: make psched_mtu() RTNL-less safe

Pengcheng Yang (1):
samples/bpf: Fix buffer overflow in tcp_basertt

Peter Seiderer (1):
wifi: ath9k: fix AR9003 mac hardware hang check register offset calculation

Petr Oros (1):
devlink: report devlink_port_type_warn source device

Pierre Morel (1):
KVM: s390: vsie: fix the length of APCB bitmap

Prasad Koya (1):
igc: set TP bit in 'supported' and 'advertising' fields of ethtool_link_ksettings

Quinn Tran (1):
scsi: qla2xxx: Wait for io return on terminate rport

Rafał Miłecki (2):
bgmac: fix *initial* chip reset to support BCM5358
ARM: dts: BCM5301X: Drop "clock-names" from the SPI node

Rajan Vaja (1):
clocksource/drivers/cadence-ttc: Use ttc driver as platform driver

Randy Dunlap (4):
soc/fsl/qe: fix usb.c build errors
crypto: nx - fix build warnings when DEBUG_FS is not enabled
powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y
wifi: airo: avoid uninitialized warning in airo_get_rate()

Remi Pommarel (1):
wifi: ath9k: Fix possible stall on ath9k_txq_list_has_key()

Rick Wertenbroek (5):
PCI: rockchip: Assert PCI Configuration Enable bit after probe
PCI: rockchip: Write PCI Device ID to correct register
PCI: rockchip: Add poll and timeout to wait for PHY PLLs to be locked
PCI: rockchip: Fix legacy IRQ generation for RK3399 PCIe endpoint core
PCI: rockchip: Use u32 variable to access 32-bit registers

Robert Hancock (1):
i2c: xiic: Don't try to handle more interrupt events after error

Robert Marko (2):
mmc: core: disable TRIM on Kingston EMMC04G-M627
mmc: core: disable TRIM on Micron MTFC4GACAJCN-1M

Roberto Sassu (2):
evm: Complete description of evm_inode_setattr()
ima: Fix build warnings

Robin Murphy (1):
PCI: Add function 1 DMA alias quirk for Marvell 88SE9235

Rongguang Wei (1):
PCI: pciehp: Cancel bringup sequence if card is not present

Sabrina Dubroca (1):
selftests: rtnetlink: remove netdevsim device after ipsec offload test

Sebastian Andrzej Siewior (1):
tracing/timer: Add missing hrtimer modes to decode_hrtimer_mode().

Shannon Nelson (4):
ionic: improve irq numa locality
ionic: clean irq affinity on queue deinit
ionic: move irq request to qcq alloc
ionic: ionic_intr_free parameter change

Shawn Wang (1):
x86/resctrl: Only show tasks' pid in current pid namespace

Sherry Sun (1):
tty: serial: fsl_lpuart: add earlycon for imx8ulp platform

Shreyas Deodhar (1):
scsi: qla2xxx: Pointer may be dereferenced

Siddh Raman Pant (1):
jfs: jfs_dmap: Validate db_l2nbperpage while mounting

Stephan Gerhold (1):

      mfd: rt5033: Drop rt5033-battery sub-device

Su Hui (1):
ALSA: ac97: Fix possible NULL dereference in snd_ac97_mixer

Sui Jingfeng (1):
PCI: Add pci_clear_master() stub for non-CONFIG_PCI

Takashi Iwai (1):
ALSA: jack: Fix mutex call in snd_jack_report()

Tanmay Patil (1):
net: ethernet: ti: cpsw_ale: Fix cpsw_ale_get_field()/cpsw_ale_set_field()

Tetsuo Handa (1):
debugobjects: Recheck debug_objects_enabled before reporting

Thadeu Lima de Souza Cascardo (1):
netfilter: nf_tables: prevent OOB access in nft_byteorder_eval

Thomas Gleixner (2):
x86/smp: Use dedicated cache-line for mwait_play_dead()
posix-timers: Ensure timer ID search-loop limit is valid

Thomas Weißschuh (1):
fs: avoid empty option when generating legacy mount string

Tianjia Zhang (1):
integrity: Fix possible multiple allocation in integrity_inode_get()

Tobias Heider (1):
Add MODULE_FIRMWARE() for FIRMWARE_TG357766.

Tony Lindgren (2):
ARM: dts: gta04: Move model property out of pinctrl node
serial: 8250_omap: Use force_suspend and resume for system suspend

Vijaya Krishna Nivarthi (1):
spi: spi-geni-qcom: Correct CS_TOGGLE bit in SPI_TRANS_CFG

Vladimir Oltean (2):
net: bridge: keep ports without IFF_UNICAST_FLT in BR_PROMISC mode
net: dsa: tag_sja1105: fix MAC DA patching from meta frames

Vladislav Efanov (1):
usb: dwc3: qcom: Fix potential memory leak

Wolfram Sang (1):
arm64: dts: renesas: ulcb-kf: Remove flow control for SCIF1

Xiubo Li (1):
ceph: don't let check_caps skip sending responses for revoke msgs

XuDong Liu (1):
drm: sun4i_tcon: use devm_clk_get_enabled in sun4i_tcon_init_clocks

Yang Yingliang (1):
NTB: ntb_transport: fix possible memory leak while device_register() fails

Yicong Yang (1):
sched/fair: Don't balance task to its current running CPU

Ying Hsu (1):
igb: Fix igb_down hung on surprise removal

Yu Kuai (2):
md: fix data corruption for raid456 when reshape restart while grow up md/raid10: prevent soft lockup while flush writes

Yuan Can (4):
clk: tegra: tegra124-emc: Fix potential memory leak
ntb: idt: Fix error handling in idt_pci_driver_init()
NTB: amd: Fix error handling in amd_ntb_pci_driver_init()
ntb: intel: Fix error handling in intel_ntb_pci_driver_init()

Yuanjun Gong (1):
net:ipv6: check return value of pskb_trim()

Yuchen Yang (1):
scsi: 3w-xxxx: Add error handling for initialization failure in tw_probe()

YueHaibing (1):
can: bcm: Fix UAF in bcm_proc_show()

Zhang Rui (1):
powercap: RAPL: Fix CONFIG_IOSF_MBI dependency

Zhang Shurong (1):
fbdev: au1200fb: Fix missing IRQ check in au1200fb_drv_probe

Zhen Lei (1):
kexec: fix a memory leak in crash_shrink_memory()

Zheng Wang (2):
fbdev: imsttfb: Fix use after free bug in imsttfb_probe
bcache: Remove unnecessary NULL point check in node allocations

Zheng Yejian (1):
ring-buffer: Fix deadloop issue on reading trace_pipe

Zhong Jinghua (1):
nbd: Add the maximum limit of allocated index in nbd_dev_add

Ziyang Xuan (1):
ipv6/addrconf: fix a potential refcount underflow for idev

author maintainer
#1 lore raw
Documentation/filesystems/directory-locking.rst +14 -12
index de12016ee419..e59fc830c9af 100644
@@ -22,12 +22,11 @@ exclusive.
 3) object removal.  Locking rules: caller locks parent, finds victim,
 locks victim and calls the method.  Locks are exclusive.
 
-4) rename() that is _not_ cross-directory.  Locking rules: caller locks
-the parent and finds source and target.  In case of exchange (with
-RENAME_EXCHANGE in flags argument) lock both.  In any case,
-if the target already exists, lock it.  If the source is a non-directory,
-lock it.  If we need to lock both, lock them in inode pointer order.
-Then call the method.  All locks are exclusive.
+4) rename() that is _not_ cross-directory.  Locking rules: caller locks the
+parent and finds source and target.  We lock both (provided they exist).  If we
+need to lock two inodes of different type (dir vs non-dir), we lock directory
+first.  If we need to lock two inodes of the same type, lock them in inode
+pointer order.  Then call the method.  All locks are exclusive.
 NB: we might get away with locking the the source (and target in exchange
 case) shared.
 
@@ -44,15 +43,17 @@ All locks are exclusive.
 rules:
 
 	* lock the filesystem
-	* lock parents in "ancestors first" order.
+	* lock parents in "ancestors first" order. If one is not ancestor of
+	  the other, lock them in inode pointer order.
 	* find source and target.
 	* if old parent is equal to or is a descendent of target
 	  fail with -ENOTEMPTY
 	* if new parent is equal to or is a descendent of source
 	  fail with -ELOOP
-	* If it's an exchange, lock both the source and the target.
-	* If the target exists, lock it.  If the source is a non-directory,
-	  lock it.  If we need to lock both, do so in inode pointer order.
+	* Lock both the source and the target provided they exist. If we
+	  need to lock two inodes of different type (dir vs non-dir), we lock
+	  the directory first. If we need to lock two inodes of the same type,
+	  lock them in inode pointer order.
 	* call the method.
 
 All ->i_rwsem are taken exclusive.  Again, we might get away with locking
@@ -66,8 +67,9 @@ If no directory is its own ancestor, the scheme above is deadlock-free.
 
 Proof:
 
-	First of all, at any moment we have a partial ordering of the
-	objects - A < B iff A is an ancestor of B.
+	First of all, at any moment we have a linear ordering of the
+	objects - A < B iff (A is an ancestor of B) or (B is not an ancestor
+        of A and ptr(A) < ptr(B)).
 
 	That ordering can change.  However, the following is true:
 
Documentation/networking/af_xdp.rst +240 -28

383 lines not on this page · raw message

Makefile +1 -1
index 43d62b7b0a00..0b17d6936c2f 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 4
-SUBLEVEL = 250
+SUBLEVEL = 251
 EXTRAVERSION =
 NAME = Kleptomaniac Octopus
 
arch/arc/include/asm/linkage.h +4 -4
index fe19f1d412e7..284fd513d7c6 100644
@@ -8,6 +8,10 @@
 
 #include <asm/dwarf.h>
 
+#define ASM_NL		 `	/* use '`' to mark new line in macro */
+#define __ALIGN		.align 4
+#define __ALIGN_STR	__stringify(__ALIGN)
+
 #ifdef __ASSEMBLY__
 
 .macro ST2 e, o, off
@@ -28,10 +32,6 @@
 #endif
 .endm
 
-#define ASM_NL		 `	/* use '`' to mark new line in macro */
-#define __ALIGN		.align 4
-#define __ALIGN_STR	__stringify(__ALIGN)
-
 /* annotation for data we want in DCCM - if enabled in .config */
 .macro ARCFP_DATA nm
 #ifdef CONFIG_ARC_HAS_DCCM
arch/arm/boot/dts/bcm5301x.dtsi +0 -1
index 05d67f976911..bf8154aa203a 100644
@@ -511,7 +511,6 @@
 				  "spi_lr_session_done",
 				  "spi_lr_overread";
 		clocks = <&iprocmed>;
-		clock-names = "iprocmed";
 		num-cs = <2>;
 		#address-cells = <1>;
 		#size-cells = <0>;
arch/arm/boot/dts/omap3-gta04a5one.dts +3 -1
index 9db9fe67cd63..95df45cc70c0 100644
@@ -5,9 +5,11 @@
 
 #include "omap3-gta04a5.dts"
 
-&omap3_pmx_core {
+/ {
 	model = "Goldelico GTA04A5/Letux 2804 with OneNAND";
+};
 
+&omap3_pmx_core {
 	gpmc_pins: pinmux_gpmc_pins {
 		pinctrl-single,pins = <
 
arch/arm/mach-ep93xx/timer-ep93xx.c +2 -1
index de998830f534..b07956883e16 100644
@@ -9,6 +9,7 @@
 #include <linux/io.h>
 #include <asm/mach/time.h>
 #include "soc.h"
+#include "platform.h"
 
 /*************************************************************************
  * Timer handling for EP93xx
@@ -60,7 +61,7 @@ static u64 notrace ep93xx_read_sched_clock(void)
 	return ret;
 }
 
-u64 ep93xx_clocksource_read(struct clocksource *c)
+static u64 ep93xx_clocksource_read(struct clocksource *c)
 {
 	u64 ret;
 
arch/arm/mach-orion5x/board-dt.c +3 -0
index 3d36f1d95196..3f651df3a71c 100644
@@ -63,6 +63,9 @@ static void __init orion5x_dt_init(void)
 	if (of_machine_is_compatible("maxtor,shared-storage-2"))
 		mss2_init();
 
+	if (of_machine_is_compatible("lacie,d2-network"))
+		d2net_init();
+
 	of_platform_default_populate(NULL, orion5x_auxdata_lookup, NULL);
 }
 
arch/arm/mach-orion5x/common.h +6 -0
index eb96009e21c4..b9cfdb456456 100644
@@ -75,6 +75,12 @@ extern void mss2_init(void);
 static inline void mss2_init(void) {}
 #endif
 
+#ifdef CONFIG_MACH_D2NET_DT
+void d2net_init(void);
+#else
+static inline void d2net_init(void) {}
+#endif
+
 /*****************************************************************************
  * Helpers to access Orion registers
  ****************************************************************************/
arch/arm/probes/kprobes/checkers-common.c +1 -1
index 4d720990cf2a..eba7ac4725c0 100644
@@ -40,7 +40,7 @@ enum probes_insn checker_stack_use_imm_0xx(probes_opcode_t insn,
  * Different from other insn uses imm8, the real addressing offset of
  * STRD in T32 encoding should be imm8 * 4. See ARMARM description.
  */
-enum probes_insn checker_stack_use_t32strd(probes_opcode_t insn,
+static enum probes_insn checker_stack_use_t32strd(probes_opcode_t insn,
 		struct arch_probes_insn *asi,
 		const struct decode_header *h)
 {
arch/arm/probes/kprobes/core.c +1 -1
index 0a783bd4641c..44b5f7dbcc00 100644
@@ -231,7 +231,7 @@ singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb)
  * kprobe, and that level is reserved for user kprobe handlers, so we can't
  * risk encountering a new kprobe in an interrupt handler.
  */
-void __kprobes kprobe_handler(struct pt_regs *regs)
+static void __kprobes kprobe_handler(struct pt_regs *regs)
 {
 	struct kprobe *p, *cur;
 	struct kprobe_ctlblk *kcb;
arch/arm/probes/kprobes/opt-arm.c +0 -2
index c78180172120..e20304f1d8bc 100644
@@ -145,8 +145,6 @@ __arch_remove_optimized_kprobe(struct optimized_kprobe *op, int dirty)
 	}
 }
 
-extern void kprobe_handler(struct pt_regs *regs);
-
 static void
 optimized_callback(struct optimized_kprobe *op, struct pt_regs *regs)
 {
arch/arm/probes/kprobes/test-core.c +1 -1
index c562832b8627..171c7076b89f 100644
@@ -720,7 +720,7 @@ static const char coverage_register_lookup[16] = {
 	[REG_TYPE_NOSPPCX]	= COVERAGE_ANY_REG | COVERAGE_SP,
 };
 
-unsigned coverage_start_registers(const struct decode_header *h)
+static unsigned coverage_start_registers(const struct decode_header *h)
 {
 	unsigned regs = 0;
 	int i;
arch/arm/probes/kprobes/test-core.h +4 -0
index 19a5b2add41e..805116c2ec27 100644
@@ -453,3 +453,7 @@ void kprobe_thumb32_test_cases(void);
 #else
 void kprobe_arm_test_cases(void);
 #endif
+
+void __kprobes_test_case_start(void);
+void __kprobes_test_case_end_16(void);
+void __kprobes_test_case_end_32(void);
arch/arm64/boot/dts/qcom/msm8916.dtsi +1 -1
index 301c1c467c0b..bf40500adef7 100644
@@ -1451,7 +1451,7 @@
 			};
 		};
 
-		camss: camss@1b00000 {
+		camss: camss@1b0ac00 {
 			compatible = "qcom,msm8916-camss";
 			reg = <0x1b0ac00 0x200>,
 				<0x1b00030 0x4>,
arch/arm64/boot/dts/renesas/ulcb-kf.dtsi +1 -2
index 202177706cde..df00acb35263 100644
@@ -269,7 +269,7 @@
 	};
 
 	scif1_pins: scif1 {
-		groups = "scif1_data_b", "scif1_ctrl";
+		groups = "scif1_data_b";
 		function = "scif1";
 	};
 
@@ -329,7 +329,6 @@
 &scif1 {
 	pinctrl-0 = <&scif1_pins>;
 	pinctrl-names = "default";
-	uart-has-rtscts;
 
 	status = "okay";
 };
arch/arm64/mm/mmu.c +2 -2
index 5cf575f23af2..8e934bb44f12 100644
@@ -399,7 +399,7 @@ static phys_addr_t pgd_pgtable_alloc(int shift)
 static void __init create_mapping_noalloc(phys_addr_t phys, unsigned long virt,
 				  phys_addr_t size, pgprot_t prot)
 {
-	if ((virt >= PAGE_END) && (virt < VMALLOC_START)) {
+	if (virt < PAGE_OFFSET) {
 		pr_warn("BUG: not creating mapping for %pa at 0x%016lx - outside kernel range\n",
 			&phys, virt);
 		return;
@@ -426,7 +426,7 @@ void __init create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys,
 static void update_mapping_prot(phys_addr_t phys, unsigned long virt,
 				phys_addr_t size, pgprot_t prot)
 {
-	if ((virt >= PAGE_END) && (virt < VMALLOC_START)) {
+	if (virt < PAGE_OFFSET) {
 		pr_warn("BUG: not updating mapping for %pa at 0x%016lx - outside kernel range\n",
 			&phys, virt);
 		return;
arch/powerpc/Kconfig.debug +1 -1
index 2ca9114fcf00..0c8436b06c49 100644
@@ -234,7 +234,7 @@ config PPC_EARLY_DEBUG_40x
 
 config PPC_EARLY_DEBUG_CPM
 	bool "Early serial debugging for Freescale CPM-based serial ports"
-	depends on SERIAL_CPM
+	depends on SERIAL_CPM=y
 	help
 	  Select this to enable early debugging for Freescale chips
 	  using a CPM-based serial port.  This assumes that the bootwrapper
arch/powerpc/Makefile +8 -0
index 6c32ea6dc755..77649f4cc945 100644
@@ -425,3 +425,11 @@ checkbin:
 		echo -n '*** Please use a different binutils version.' ; \
 		false ; \
 	fi
+	@if test "x${CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT}" = "xy" -a \
+		"x${CONFIG_LD_IS_BFD}" = "xy" -a \
+		"${CONFIG_LD_VERSION}" = "23700" ; then \
+		echo -n '*** binutils 2.37 drops unused section symbols, which recordmcount ' ; \
+		echo 'is unable to handle.' ; \
+		echo '*** Please use a different binutils version.' ; \
+		false ; \
+	fi
arch/powerpc/mm/init_64.c +1 -1
index 210f1c28b8e4..e4fb5ab41e2d 100644
@@ -178,7 +178,7 @@ static bool altmap_cross_boundary(struct vmem_altmap *altmap, unsigned long star
 	unsigned long nr_pfn = page_size / sizeof(struct page);
 	unsigned long start_pfn = page_to_pfn((struct page *)start);
 
-	if ((start_pfn + nr_pfn) > altmap->end_pfn)
+	if ((start_pfn + nr_pfn - 1) > altmap->end_pfn)
 		return true;
 
 	if (start_pfn < altmap->base_pfn)
arch/s390/kvm/kvm-s390.c +4 -0
index 9ade970b4232..b11eb11e2f49 100644
@@ -1982,6 +1982,10 @@ static unsigned long kvm_s390_next_dirty_cmma(struct kvm_memslots *slots,
 		ms = slots->memslots + slotidx;
 		ofs = 0;
 	}
+
+	if (cur_gfn < ms->base_gfn)
+		ofs = 0;
+
 	ofs = find_next_bit(kvm_second_dirty_bitmap(ms), ms->npages, ofs);
 	while ((slotidx > 0) && (ofs >= ms->npages)) {
 		slotidx--;
arch/s390/kvm/vsie.c +4 -2
index 2021946176de..596b2a2cd837 100644
@@ -168,7 +168,8 @@ static int setup_apcb00(struct kvm_vcpu *vcpu, unsigned long *apcb_s,
 			    sizeof(struct kvm_s390_apcb0)))
 		return -EFAULT;
 
-	bitmap_and(apcb_s, apcb_s, apcb_h, sizeof(struct kvm_s390_apcb0));
+	bitmap_and(apcb_s, apcb_s, apcb_h,
+		   BITS_PER_BYTE * sizeof(struct kvm_s390_apcb0));
 
 	return 0;
 }
@@ -190,7 +191,8 @@ static int setup_apcb11(struct kvm_vcpu *vcpu, unsigned long *apcb_s,
 			    sizeof(struct kvm_s390_apcb1)))
 		return -EFAULT;
 
-	bitmap_and(apcb_s, apcb_s, apcb_h, sizeof(struct kvm_s390_apcb1));
+	bitmap_and(apcb_s, apcb_s, apcb_h,
+		   BITS_PER_BYTE * sizeof(struct kvm_s390_apcb1));
 
 	return 0;
 }
arch/sh/drivers/dma/dma-sh.c +24 -13
index 96c626c2cd0a..306fba1564e5 100644
@@ -18,6 +18,18 @@
 #include <cpu/dma-register.h>
 #include <cpu/dma.h>
 
+/*
+ * Some of the SoCs feature two DMAC modules. In such a case, the channels are
+ * distributed equally among them.
+ */
+#ifdef	SH_DMAC_BASE1
+#define	SH_DMAC_NR_MD_CH	(CONFIG_NR_ONCHIP_DMA_CHANNELS / 2)
+#else
+#define	SH_DMAC_NR_MD_CH	CONFIG_NR_ONCHIP_DMA_CHANNELS
+#endif
+
+#define	SH_DMAC_CH_SZ		0x10
+
 /*
  * Define the default configuration for dual address memory-memory transfer.
  * The 0x400 value represents auto-request, external->external.
@@ -29,7 +41,7 @@ static unsigned long dma_find_base(unsigned int chan)
 	unsigned long base = SH_DMAC_BASE0;
 
 #ifdef SH_DMAC_BASE1
-	if (chan >= 6)
+	if (chan >= SH_DMAC_NR_MD_CH)
 		base = SH_DMAC_BASE1;
 #endif
 
@@ -40,13 +52,13 @@ static unsigned long dma_base_addr(unsigned int chan)
 {
 	unsigned long base = dma_find_base(chan);
 
-	/* Normalize offset calculation */
-	if (chan >= 9)
-		chan -= 6;
-	if (chan >= 4)
-		base += 0x10;
+	chan = (chan % SH_DMAC_NR_MD_CH) * SH_DMAC_CH_SZ;
+
+	/* DMAOR is placed inside the channel register space. Step over it. */
+	if (chan >= DMAOR)
+		base += SH_DMAC_CH_SZ;
 
-	return base + (chan * 0x10);
+	return base + chan;
 }
 
 #ifdef CONFIG_SH_DMA_IRQ_MULTI
@@ -250,12 +262,11 @@ static int sh_dmac_get_dma_residue(struct dma_channel *chan)
 #define NR_DMAOR	1
 #endif
 
-/*
- * DMAOR bases are broken out amongst channel groups. DMAOR0 manages
- * channels 0 - 5, DMAOR1 6 - 11 (optional).
- */
-#define dmaor_read_reg(n)		__raw_readw(dma_find_base((n)*6))
-#define dmaor_write_reg(n, data)	__raw_writew(data, dma_find_base(n)*6)
+#define dmaor_read_reg(n)		__raw_readw(dma_find_base((n) * \
+						    SH_DMAC_NR_MD_CH) + DMAOR)
+#define dmaor_write_reg(n, data)	__raw_writew(data, \
+						     dma_find_base((n) * \
+						     SH_DMAC_NR_MD_CH) + DMAOR)
 
 static inline int dmaor_reset(int no)
 {
arch/sh/kernel/cpu/sh2/probe.c +1 -1
index d342ea08843f..70a07f4f2142 100644
@@ -21,7 +21,7 @@ static int __init scan_cache(unsigned long node, const char *uname,
 	if (!of_flat_dt_is_compatible(node, "jcore,cache"))
 		return 0;
 
-	j2_ccr_base = (u32 __iomem *)of_flat_dt_translate_address(node);
+	j2_ccr_base = ioremap(of_flat_dt_translate_address(node), 4);
 
 	return 1;
 }
arch/x86/kernel/cpu/resctrl/rdtgroup.c +19 -17
index 0e4f14dae1c0..91016bb18d4f 100644
@@ -593,6 +593,18 @@ static int __rdtgroup_move_task(struct task_struct *tsk,
 	return 0;
 }
 
+static bool is_closid_match(struct task_struct *t, struct rdtgroup *r)
+{
+	return (rdt_alloc_capable &&
+	       (r->type == RDTCTRL_GROUP) && (t->closid == r->closid));
+}
+
+static bool is_rmid_match(struct task_struct *t, struct rdtgroup *r)
+{
+	return (rdt_mon_capable &&
+	       (r->type == RDTMON_GROUP) && (t->rmid == r->mon.rmid));
+}
+
 /**
  * rdtgroup_tasks_assigned - Test if tasks have been assigned to resource group
  * @r: Resource group
@@ -608,8 +620,7 @@ int rdtgroup_tasks_assigned(struct rdtgroup *r)
 
 	rcu_read_lock();
 	for_each_process_thread(p, t) {
-		if ((r->type == RDTCTRL_GROUP && t->closid == r->closid) ||
-		    (r->type == RDTMON_GROUP && t->rmid == r->mon.rmid)) {
+		if (is_closid_match(t, r) || is_rmid_match(t, r)) {
 			ret = 1;
 			break;
 		}
@@ -704,12 +715,15 @@ static ssize_t rdtgroup_tasks_write(struct kernfs_open_file *of,
 static void show_rdt_tasks(struct rdtgroup *r, struct seq_file *s)
 {
 	struct task_struct *p, *t;
+	pid_t pid;
 
 	rcu_read_lock();
 	for_each_process_thread(p, t) {
-		if ((r->type == RDTCTRL_GROUP && t->closid == r->closid) ||
-		    (r->type == RDTMON_GROUP && t->rmid == r->mon.rmid))
-			seq_printf(s, "%d\n", t->pid);
+		if (is_closid_match(t, r) || is_rmid_match(t, r)) {
+			pid = task_pid_vnr(t);
+			if (pid)
+				seq_printf(s, "%d\n", pid);
+		}
 	}
 	rcu_read_unlock();
 }
@@ -2148,18 +2162,6 @@ static int reset_all_ctrls(struct rdt_resource *r)
 	return 0;
 }
 
-static bool is_closid_match(struct task_struct *t, struct rdtgroup *r)
-{
-	return (rdt_alloc_capable &&
-		(r->type == RDTCTRL_GROUP) && (t->closid == r->closid));
-}
-
-static bool is_rmid_match(struct task_struct *t, struct rdtgroup *r)
-{
-	return (rdt_mon_capable &&
-		(r->type == RDTMON_GROUP) && (t->rmid == r->mon.rmid));
-}
-
 /*
  * Move tasks from one to the other group. If @from is NULL, then all tasks
  * in the systems are moved unconditionally (used for teardown).
arch/x86/kernel/smpboot.c +14 -10
index 1699d18bd154..45e5ecb43393 100644
@@ -99,6 +99,17 @@ DEFINE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_llc_shared_map);
 DEFINE_PER_CPU_READ_MOSTLY(struct cpuinfo_x86, cpu_info);
 EXPORT_PER_CPU_SYMBOL(cpu_info);
 
+struct mwait_cpu_dead {
+	unsigned int	control;
+	unsigned int	status;
+};
+
+/*
+ * Cache line aligned data for mwait_play_dead(). Separate on purpose so
+ * that it's unlikely to be touched by other CPUs.
+ */
+static DEFINE_PER_CPU_ALIGNED(struct mwait_cpu_dead, mwait_cpu_dead);
+
 /* Logical package management. We might want to allocate that dynamically */
 unsigned int __max_logical_packages __read_mostly;
 EXPORT_SYMBOL(__max_logical_packages);
@@ -1675,10 +1686,10 @@ static bool wakeup_cpu0(void)
  */
 static inline void mwait_play_dead(void)
 {
+	struct mwait_cpu_dead *md = this_cpu_ptr(&mwait_cpu_dead);
 	unsigned int eax, ebx, ecx, edx;
 	unsigned int highest_cstate = 0;
 	unsigned int highest_subcstate = 0;
-	void *mwait_ptr;
 	int i;
 
 	if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD ||
@@ -1713,13 +1724,6 @@ static inline void mwait_play_dead(void)
 			(highest_subcstate - 1);
 	}
 
-	/*
-	 * This should be a memory location in a cache line which is
-	 * unlikely to be touched by other processors.  The actual
-	 * content is immaterial as it is not actually modified in any way.
-	 */
-	mwait_ptr = &current_thread_info()->flags;
-
 	wbinvd();
 
 	while (1) {
@@ -1731,9 +1735,9 @@ static inline void mwait_play_dead(void)
 		 * case where we return around the loop.
 		 */
 		mb();
-		clflush(mwait_ptr);
+		clflush(md);
 		mb();
-		__monitor(mwait_ptr, 0, 0);
+		__monitor(md, 0, 0);
 		mb();
 		__mwait(eax, 0);
 		/*
arch/xtensa/platforms/iss/network.c +1 -1
index fa9f3893b002..cbca91bb5334 100644
@@ -231,7 +231,7 @@ static int tuntap_probe(struct iss_net_private *lp, int index, char *init)
 
 	init += sizeof(TRANSPORT_TUNTAP_NAME) - 1;
 	if (*init == ',') {
-		rem = split_if_spec(init + 1, &mac_str, &dev_name);
+		rem = split_if_spec(init + 1, &mac_str, &dev_name, NULL);
 		if (rem != NULL) {
 			pr_err("%s: extra garbage on specification : '%s'\n",
 			       dev->name, rem);
block/partitions/amiga.c +86 -18

155 lines not on this page · raw message

drivers/base/power/domain.c +3 -3
index edb791354421..5be76197bc36 100644
@@ -2596,10 +2596,10 @@ static int genpd_parse_state(struct genpd_power_state *genpd_state,
 
 	err = of_property_read_u32(state_node, "min-residency-us", &residency);
 	if (!err)
-		genpd_state->residency_ns = 1000 * residency;
+		genpd_state->residency_ns = 1000LL * residency;
 
-	genpd_state->power_on_latency_ns = 1000 * exit_latency;
-	genpd_state->power_off_latency_ns = 1000 * entry_latency;
+	genpd_state->power_on_latency_ns = 1000LL * exit_latency;
+	genpd_state->power_off_latency_ns = 1000LL * entry_latency;
 	genpd_state->fwnode = &state_node->fwnode;
 
 	return 0;
drivers/block/nbd.c +2 -1
index 218aa7e41970..37994a7a1b6f 100644
@@ -1708,7 +1708,8 @@ static int nbd_dev_add(int index)
 		if (err == -ENOSPC)
 			err = -EEXIST;
 	} else {
-		err = idr_alloc(&nbd_index_idr, nbd, 0, 0, GFP_KERNEL);
+		err = idr_alloc(&nbd_index_idr, nbd, 0,
+				(MINORMASK >> part_shift) + 1, GFP_KERNEL);
 		if (err >= 0)
 			index = err;
 	}
drivers/char/hw_random/imx-rngc.c +2 -4
index 0576801944fd..2e902419601d 100644
@@ -99,7 +99,7 @@ static int imx_rngc_self_test(struct imx_rngc *rngc)
 	cmd = readl(rngc->base + RNGC_COMMAND);
 	writel(cmd | RNGC_CMD_SELF_TEST, rngc->base + RNGC_COMMAND);
 
-	ret = wait_for_completion_timeout(&rngc->rng_op_done, RNGC_TIMEOUT);
+	ret = wait_for_completion_timeout(&rngc->rng_op_done, msecs_to_jiffies(RNGC_TIMEOUT));
 	if (!ret) {
 		imx_rngc_irq_mask_clear(rngc);
 		return -ETIMEDOUT;
@@ -182,9 +182,7 @@ static int imx_rngc_init(struct hwrng *rng)
 		cmd = readl(rngc->base + RNGC_COMMAND);
 		writel(cmd | RNGC_CMD_SEED, rngc->base + RNGC_COMMAND);
 
-		ret = wait_for_completion_timeout(&rngc->rng_op_done,
-				RNGC_TIMEOUT);
-
+		ret = wait_for_completion_timeout(&rngc->rng_op_done, msecs_to_jiffies(RNGC_TIMEOUT));
 		if (!ret) {
 			imx_rngc_irq_mask_clear(rngc);
 			return -ETIMEDOUT;
drivers/char/hw_random/st-rng.c +3 -21
index 863448360a7d..f708a99619ec 100644
@@ -12,6 +12,7 @@
 #include <linux/delay.h>
 #include <linux/hw_random.h>
 #include <linux/io.h>
+#include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>
@@ -41,7 +42,6 @@
 
 struct st_rng_data {
 	void __iomem	*base;
-	struct clk	*clk;
 	struct hwrng	ops;
 };
 
@@ -86,26 +86,18 @@ static int st_rng_probe(struct platform_device *pdev)
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-	clk = devm_clk_get(&pdev->dev, NULL);
+	clk = devm_clk_get_enabled(&pdev->dev, NULL);
 	if (IS_ERR(clk))
 		return PTR_ERR(clk);
 
-	ret = clk_prepare_enable(clk);
-	if (ret)
-		return ret;
-
 	ddata->ops.priv	= (unsigned long)ddata;
 	ddata->ops.read	= st_rng_read;
 	ddata->ops.name	= pdev->name;
 	ddata->base	= base;
-	ddata->clk	= clk;
-
-	dev_set_drvdata(&pdev->dev, ddata);
 
 	ret = devm_hwrng_register(&pdev->dev, &ddata->ops);
 	if (ret) {
 		dev_err(&pdev->dev, "Failed to register HW RNG\n");
-		clk_disable_unprepare(clk);
 		return ret;
 	}
 
@@ -114,16 +106,7 @@ static int st_rng_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int st_rng_remove(struct platform_device *pdev)
-{
-	struct st_rng_data *ddata = dev_get_drvdata(&pdev->dev);
-
-	clk_disable_unprepare(ddata->clk);
-
-	return 0;
-}
-
-static const struct of_device_id st_rng_match[] = {
+static const struct of_device_id st_rng_match[] __maybe_unused = {
 	{ .compatible = "st,rng" },
 	{},
 };
@@ -135,7 +118,6 @@ static struct platform_driver st_rng_driver = {
 		.of_match_table = of_match_ptr(st_rng_match),
 	},
 	.probe = st_rng_probe,
-	.remove = st_rng_remove
 };
 
 module_platform_driver(st_rng_driver);
drivers/char/hw_random/virtio-rng.c +66 -22

158 lines not on this page · raw message

drivers/char/tpm/tpm_vtpm_proxy.c +7 -23
index 2f6e087ec496..ff6b88fa4f47 100644
@@ -693,37 +693,21 @@ static struct miscdevice vtpmx_miscdev = {
 	.fops = &vtpmx_fops,
 };
 
-static int vtpmx_init(void)
-{
-	return misc_register(&vtpmx_miscdev);
-}
-
-static void vtpmx_cleanup(void)
-{
-	misc_deregister(&vtpmx_miscdev);
-}
-
 static int __init vtpm_module_init(void)
 {
 	int rc;
 
-	rc = vtpmx_init();
-	if (rc) {
-		pr_err("couldn't create vtpmx device\n");
-		return rc;
-	}
-
 	workqueue = create_workqueue("tpm-vtpm");
 	if (!workqueue) {
 		pr_err("couldn't create workqueue\n");
-		rc = -ENOMEM;
-		goto err_vtpmx_cleanup;
+		return -ENOMEM;
 	}
 
-	return 0;
-
-err_vtpmx_cleanup:
-	vtpmx_cleanup();
+	rc = misc_register(&vtpmx_miscdev);
+	if (rc) {
+		pr_err("couldn't create vtpmx device\n");
+		destroy_workqueue(workqueue);
+	}
 
 	return rc;
 }
@@ -731,7 +715,7 @@ static int __init vtpm_module_init(void)
 static void __exit vtpm_module_exit(void)
 {
 	destroy_workqueue(workqueue);
-	vtpmx_cleanup();
+	misc_deregister(&vtpmx_miscdev);
 }
 
 module_init(vtpm_module_init);
drivers/clk/clk-cdce925.c +12 -0
index 308b353815e1..470d91d7314d 100644
@@ -705,6 +705,10 @@ static int cdce925_probe(struct i2c_client *client,
 	for (i = 0; i < data->chip_info->num_plls; ++i) {
 		pll_clk_name[i] = kasprintf(GFP_KERNEL, "%pOFn.pll%d",
 			client->dev.of_node, i);
+		if (!pll_clk_name[i]) {
+			err = -ENOMEM;
+			goto error;
+		}
 		init.name = pll_clk_name[i];
 		data->pll[i].chip = data;
 		data->pll[i].hw.init = &init;
@@ -746,6 +750,10 @@ static int cdce925_probe(struct i2c_client *client,
 	init.num_parents = 1;
 	init.parent_names = &parent_name; /* Mux Y1 to input */
 	init.name = kasprintf(GFP_KERNEL, "%pOFn.Y1", client->dev.of_node);
+	if (!init.name) {
+		err = -ENOMEM;
+		goto error;
+	}
 	data->clk[0].chip = data;
 	data->clk[0].hw.init = &init;
 	data->clk[0].index = 0;
@@ -764,6 +772,10 @@ static int cdce925_probe(struct i2c_client *client,
 	for (i = 1; i < data->chip_info->num_outputs; ++i) {
 		init.name = kasprintf(GFP_KERNEL, "%pOFn.Y%d",
 			client->dev.of_node, i+1);
+		if (!init.name) {
+			err = -ENOMEM;
+			goto error;
+		}
 		data->clk[i].chip = data;
 		data->clk[i].hw.init = &init;
 		data->clk[i].index = i;
drivers/clk/keystone/sci-clk.c +2 -0
index 64ea895f1a7d..8e28e3489ded 100644
@@ -287,6 +287,8 @@ static int _sci_clk_build(struct sci_clk_provider *provider,
 
 	name = kasprintf(GFP_KERNEL, "clk:%d:%d", sci_clk->dev_id,
 			 sci_clk->clk_id);
+	if (!name)
+		return -ENOMEM;
 
 	init.name = name;
 
drivers/clk/tegra/clk-emc.c +2 -0
index 0c1b83bedb73..eb2411a4cd78 100644
@@ -459,6 +459,7 @@ static int load_timings_from_dt(struct tegra_clk_emc *tegra,
 		err = load_one_timing_from_dt(tegra, timing, child);
 		if (err) {
 			of_node_put(child);
+			kfree(tegra->timings);
 			return err;
 		}
 
@@ -510,6 +511,7 @@ struct clk *tegra_clk_register_emc(void __iomem *base, struct device_node *np,
 		err = load_timings_from_dt(tegra, node, node_ram_code);
 		if (err) {
 			of_node_put(node);
+			kfree(tegra);
 			return ERR_PTR(err);
 		}
 	}
drivers/clocksource/timer-cadence-ttc.c +31 -14

86 lines not on this page · raw message

drivers/crypto/marvell/cipher.c +1 -1
index 708dc63b2f09..c7d433d1cd99 100644
@@ -287,7 +287,7 @@ static int mv_cesa_des_setkey(struct crypto_skcipher *cipher, const u8 *key,
 static int mv_cesa_des3_ede_setkey(struct crypto_skcipher *cipher,
 				   const u8 *key, unsigned int len)
 {
-	struct mv_cesa_des_ctx *ctx = crypto_skcipher_ctx(cipher);
+	struct mv_cesa_des3_ctx *ctx = crypto_skcipher_ctx(cipher);
 	int err;
 
 	err = verify_skcipher_des3_key(cipher, key);
drivers/crypto/nx/Makefile +1 -1
index 015155da59c2..76139865d7fa 100644
@@ -1,7 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 obj-$(CONFIG_CRYPTO_DEV_NX_ENCRYPT) += nx-crypto.o
 nx-crypto-objs := nx.o \
-		  nx_debugfs.o \
 		  nx-aes-cbc.o \
 		  nx-aes-ecb.o \
 		  nx-aes-gcm.o \
@@ -11,6 +10,7 @@ nx-crypto-objs := nx.o \
 		  nx-sha256.o \
 		  nx-sha512.o
 
+nx-crypto-$(CONFIG_DEBUG_FS) += nx_debugfs.o
 obj-$(CONFIG_CRYPTO_DEV_NX_COMPRESS_PSERIES) += nx-compress-pseries.o nx-compress.o
 obj-$(CONFIG_CRYPTO_DEV_NX_COMPRESS_POWERNV) += nx-compress-powernv.o nx-compress.o
 nx-compress-objs := nx-842.o
drivers/crypto/nx/nx.h +2 -2
index 7ecca168f8c4..5c77aba450cf 100644
@@ -169,8 +169,8 @@ struct nx_sg *nx_walk_and_build(struct nx_sg *, unsigned int,
 void nx_debugfs_init(struct nx_crypto_driver *);
 void nx_debugfs_fini(struct nx_crypto_driver *);
 #else
-#define NX_DEBUGFS_INIT(drv)	(0)
-#define NX_DEBUGFS_FINI(drv)	(0)
+#define NX_DEBUGFS_INIT(drv)	do {} while (0)
+#define NX_DEBUGFS_FINI(drv)	do {} while (0)
 #endif
 
 #define NX_PAGE_NUM(x)		((u64)(x) & 0xfffffffffffff000ULL)
drivers/extcon/extcon.c +8 -0
index 6b905c3d30f4..12f9ae2aac11 100644
@@ -196,6 +196,14 @@ static const struct __extcon_info {
  * @attr_name:		"name" sysfs entry
  * @attr_state:		"state" sysfs entry
  * @attrs:		the array pointing to attr_name and attr_state for attr_g
+ * @usb_propval:	the array of USB connector properties
+ * @chg_propval:	the array of charger connector properties
+ * @jack_propval:	the array of jack connector properties
+ * @disp_propval:	the array of display connector properties
+ * @usb_bits:		the bit array of the USB connector property capabilities
+ * @chg_bits:		the bit array of the charger connector property capabilities
+ * @jack_bits:		the bit array of the jack connector property capabilities
+ * @disp_bits:		the bit array of the display connector property capabilities
  */
 struct extcon_cable {
 	struct extcon_dev *edev;
drivers/firmware/stratix10-svc.c +1 -1
index 7122bc6ea796..2da2aa79c87e 100644
@@ -615,7 +615,7 @@ svc_create_memory_pool(struct platform_device *pdev,
 	end = rounddown(sh_memory->addr + sh_memory->size, PAGE_SIZE);
 	paddr = begin;
 	size = end - begin;
-	va = memremap(paddr, size, MEMREMAP_WC);
+	va = devm_memremap(dev, paddr, size, MEMREMAP_WC);
 	if (!va) {
 		dev_err(dev, "fail to remap shared memory\n");
 		return ERR_PTR(-EINVAL);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +4 -0
index fb47ddc6f7f4..dcf23b43f323 100644
@@ -3076,6 +3076,10 @@ int amdgpu_vm_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
 	struct amdgpu_fpriv *fpriv = filp->driver_priv;
 	int r;
 
+	/* No valid flags defined yet */
+	if (args->in.flags)
+		return -EINVAL;
+
 	switch (args->in.op) {
 	case AMDGPU_VM_OP_RESERVE_VMID:
 		/* current, we only have requirement to reserve vmid from gfxhub */
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c +7 -6
index d3380c5bdbde..d978fcac2665 100644
@@ -101,18 +101,19 @@ static struct kfd_mem_obj *allocate_mqd(struct kfd_dev *kfd,
 			&(mqd_mem_obj->gtt_mem),
 			&(mqd_mem_obj->gpu_addr),
 			(void *)&(mqd_mem_obj->cpu_ptr), true);
+
+		if (retval) {
+			kfree(mqd_mem_obj);
+			return NULL;
+		}
 	} else {
 		retval = kfd_gtt_sa_allocate(kfd, sizeof(struct v9_mqd),
 				&mqd_mem_obj);
-	}
-
-	if (retval) {
-		kfree(mqd_mem_obj);
-		return NULL;
+		if (retval)
+			return NULL;
 	}
 
 	return mqd_mem_obj;
-
 }
 
 static void init_mqd(struct mqd_manager *mm, void **mqd,
drivers/gpu/drm/drm_atomic.c +10 -1
index 2fc0f221fb4e..47649186fed7 100644
@@ -97,6 +97,12 @@ drm_atomic_state_init(struct drm_device *dev, struct drm_atomic_state *state)
 	if (!state->planes)
 		goto fail;
 
+	/*
+	 * Because drm_atomic_state can be committed asynchronously we need our
+	 * own reference and cannot rely on the on implied by drm_file in the
+	 * ioctl call.
+	 */
+	drm_dev_get(dev);
 	state->dev = dev;
 
 	DRM_DEBUG_ATOMIC("Allocated atomic state %p\n", state);
@@ -256,7 +262,8 @@ EXPORT_SYMBOL(drm_atomic_state_clear);
 void __drm_atomic_state_free(struct kref *ref)
 {
 	struct drm_atomic_state *state = container_of(ref, typeof(*state), ref);
-	struct drm_mode_config *config = &state->dev->mode_config;
+	struct drm_device *dev = state->dev;
+	struct drm_mode_config *config = &dev->mode_config;
 
 	drm_atomic_state_clear(state);
 
@@ -268,6 +275,8 @@ void __drm_atomic_state_free(struct kref *ref)
 		drm_atomic_state_default_release(state);
 		kfree(state);
 	}
+
+	drm_dev_put(dev);
 }
 EXPORT_SYMBOL(__drm_atomic_state_free);
 
drivers/gpu/drm/drm_atomic_helper.c +10 -1
index 62b77f3a950b..d91d6c063a1d 100644
@@ -1086,7 +1086,16 @@ disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state)
 			continue;
 
 		ret = drm_crtc_vblank_get(crtc);
-		WARN_ONCE(ret != -EINVAL, "driver forgot to call drm_crtc_vblank_off()\n");
+		/*
+		 * Self-refresh is not a true "disable"; ensure vblank remains
+		 * enabled.
+		 */
+		if (new_crtc_state->self_refresh_active)
+			WARN_ONCE(ret != 0,
+				  "driver disabled vblank in self-refresh\n");
+		else
+			WARN_ONCE(ret != -EINVAL,
+				  "driver forgot to call drm_crtc_vblank_off()\n");
 		if (ret == 0)
 			drm_crtc_vblank_put(crtc);
 	}
drivers/gpu/drm/drm_client_modeset.c +6 -0
index bf1bdb0aac19..10769efaf7cb 100644
@@ -281,6 +281,9 @@ static bool drm_client_target_cloned(struct drm_device *dev,
 	can_clone = true;
 	dmt_mode = drm_mode_find_dmt(dev, 1024, 768, 60, false);
 
+	if (!dmt_mode)
+		goto fail;
+
 	for (i = 0; i < connector_count; i++) {
 		if (!enabled[i])
 			continue;
@@ -296,11 +299,13 @@ static bool drm_client_target_cloned(struct drm_device *dev,
 		if (!modes[i])
 			can_clone = false;
 	}
+	kfree(dmt_mode);
 
 	if (can_clone) {
 		DRM_DEBUG_KMS("can clone using 1024x768\n");
 		return true;
 	}
+fail:
 	DRM_INFO("kms: can't enable cloning when we probably wanted to.\n");
 	return false;
 }
@@ -785,6 +790,7 @@ int drm_client_modeset_probe(struct drm_client_dev *client, unsigned int width,
 				break;
 			}
 
+			kfree(modeset->mode);
 			modeset->mode = drm_mode_duplicate(dev, mode);
 			drm_connector_get(connector);
 			modeset->connectors[modeset->num_connectors++] = connector;
drivers/gpu/drm/drm_panel.c +11 -3
index 6b0bf42039cf..ed7985c0535a 100644
@@ -44,13 +44,21 @@ static LIST_HEAD(panel_list);
 /**
  * drm_panel_init - initialize a panel
  * @panel: DRM panel
+ * @dev: parent device of the panel
+ * @funcs: panel operations
+ * @connector_type: the connector type (DRM_MODE_CONNECTOR_*) corresponding to
+ *	the panel interface
  *
- * Sets up internal fields of the panel so that it can subsequently be added
- * to the registry.
+ * Initialize the panel structure for subsequent registration with
+ * drm_panel_add().
  */
-void drm_panel_init(struct drm_panel *panel)
+void drm_panel_init(struct drm_panel *panel, struct device *dev,
+		    const struct drm_panel_funcs *funcs, int connector_type)
 {
 	INIT_LIST_HEAD(&panel->list);
+	panel->dev = dev;
+	panel->funcs = funcs;
+	panel->connector_type = connector_type;
 }
 EXPORT_SYMBOL(drm_panel_init);
 
drivers/gpu/drm/i915/intel_uncore.c +2 -1
index dae6b33fc4c4..dc5483b31c1b 100644
@@ -1926,13 +1926,14 @@ int __intel_wait_for_register_fw(struct intel_uncore *uncore,
 				 unsigned int slow_timeout_ms,
 				 u32 *out_value)
 {
-	u32 reg_value;
+	u32 reg_value = 0;
 #define done (((reg_value = intel_uncore_read_fw(uncore, reg)) & mask) == value)
 	int ret;
 
 	/* Catch any overuse of this function */
 	might_sleep_if(slow_timeout_ms);
 	GEM_BUG_ON(fast_timeout_us > 20000);
+	GEM_BUG_ON(!fast_timeout_us && !slow_timeout_ms);
 
 	ret = -ETIMEDOUT;
 	if (fast_timeout_us && fast_timeout_us <= 20000)
drivers/gpu/drm/panel/panel-arm-versatile.c +2 -3
index 5f72c922a04b..a0574dc03e16 100644
@@ -350,9 +350,8 @@ static int versatile_panel_probe(struct platform_device *pdev)
 			dev_info(dev, "panel mounted on IB2 daughterboard\n");
 	}
 
-	drm_panel_init(&vpanel->panel);
-	vpanel->panel.dev = dev;
-	vpanel->panel.funcs = &versatile_panel_drm_funcs;
+	drm_panel_init(&vpanel->panel, dev, &versatile_panel_drm_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	return drm_panel_add(&vpanel->panel);
 }
drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c +2 -3
index dabf59e0f56f..98f184b81187 100644
@@ -204,9 +204,8 @@ static int feiyang_dsi_probe(struct mipi_dsi_device *dsi)
 	mipi_dsi_set_drvdata(dsi, ctx);
 	ctx->dsi = dsi;
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = &dsi->dev;
-	ctx->panel.funcs = &feiyang_funcs;
+	drm_panel_init(&ctx->panel, &dsi->dev, &feiyang_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	ctx->dvdd = devm_regulator_get(&dsi->dev, "dvdd");
 	if (IS_ERR(ctx->dvdd)) {
drivers/gpu/drm/panel/panel-ilitek-ili9322.c +2 -3
index 3c58f63adbf7..24955bec1958 100644
@@ -895,9 +895,8 @@ static int ili9322_probe(struct spi_device *spi)
 		ili->input = ili->conf->input;
 	}
 
-	drm_panel_init(&ili->panel);
-	ili->panel.dev = dev;
-	ili->panel.funcs = &ili9322_drm_funcs;
+	drm_panel_init(&ili->panel, dev, &ili9322_drm_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	return drm_panel_add(&ili->panel);
 }
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +2 -3
index 3ad4a46c4e94..e8789e460a16 100644
@@ -433,9 +433,8 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi)
 	mipi_dsi_set_drvdata(dsi, ctx);
 	ctx->dsi = dsi;
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = &dsi->dev;
-	ctx->panel.funcs = &ili9881c_funcs;
+	drm_panel_init(&ctx->panel, &dsi->dev, &ili9881c_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	ctx->power = devm_regulator_get(&dsi->dev, "power");
 	if (IS_ERR(ctx->power)) {
drivers/gpu/drm/panel/panel-innolux-p079zca.c +2 -3
index df90b6607981..327fca97977e 100644
@@ -487,9 +487,8 @@ static int innolux_panel_add(struct mipi_dsi_device *dsi,
 	if (IS_ERR(innolux->backlight))
 		return PTR_ERR(innolux->backlight);
 
-	drm_panel_init(&innolux->base);
-	innolux->base.funcs = &innolux_panel_funcs;
-	innolux->base.dev = dev;
+	drm_panel_init(&innolux->base, dev, &innolux_panel_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	err = drm_panel_add(&innolux->base);
 	if (err < 0)
drivers/gpu/drm/panel/panel-jdi-lt070me05000.c +2 -3
index ff3e89e61e3f..56364a93f0b8 100644
@@ -437,9 +437,8 @@ static int jdi_panel_add(struct jdi_panel *jdi)
 		return ret;
 	}
 
-	drm_panel_init(&jdi->base);
-	jdi->base.funcs = &jdi_panel_funcs;
-	jdi->base.dev = &jdi->dsi->dev;
+	drm_panel_init(&jdi->base, &jdi->dsi->dev, &jdi_panel_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	ret = drm_panel_add(&jdi->base);
 
drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c +2 -3
index 1e7fecab72a9..2c576e7eee72 100644
@@ -391,9 +391,8 @@ static int kingdisplay_panel_add(struct kingdisplay_panel *kingdisplay)
 	if (IS_ERR(kingdisplay->backlight))
 		return PTR_ERR(kingdisplay->backlight);
 
-	drm_panel_init(&kingdisplay->base);
-	kingdisplay->base.funcs = &kingdisplay_panel_funcs;
-	kingdisplay->base.dev = &kingdisplay->link->dev;
+	drm_panel_init(&kingdisplay->base, &kingdisplay->link->dev,
+		       &kingdisplay_panel_funcs, DRM_MODE_CONNECTOR_DSI);
 
 	return drm_panel_add(&kingdisplay->base);
 }
drivers/gpu/drm/panel/panel-lg-lb035q02.c +2 -3
index ee4379729a5b..7a1385e834f0 100644
@@ -196,9 +196,8 @@ static int lb035q02_probe(struct spi_device *spi)
 	if (ret < 0)
 		return ret;
 
-	drm_panel_init(&lcd->panel);
-	lcd->panel.dev = &lcd->spi->dev;
-	lcd->panel.funcs = &lb035q02_funcs;
+	drm_panel_init(&lcd->panel, &lcd->spi->dev, &lb035q02_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	return drm_panel_add(&lcd->panel);
 }
drivers/gpu/drm/panel/panel-lg-lg4573.c +2 -3
index 41bf02d122a1..db4865a4c2b9 100644
@@ -259,9 +259,8 @@ static int lg4573_probe(struct spi_device *spi)
 		return ret;
 	}
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = &spi->dev;
-	ctx->panel.funcs = &lg4573_drm_funcs;
+	drm_panel_init(&ctx->panel, &spi->dev, &lg4573_drm_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	return drm_panel_add(&ctx->panel);
 }
drivers/gpu/drm/panel/panel-lvds.c +2 -3
index bf5fcc3e5379..2405f26e5d31 100644
@@ -254,9 +254,8 @@ static int panel_lvds_probe(struct platform_device *pdev)
 	 */
 
 	/* Register the panel. */
-	drm_panel_init(&lvds->panel);
-	lvds->panel.dev = lvds->dev;
-	lvds->panel.funcs = &panel_lvds_funcs;
+	drm_panel_init(&lvds->panel, lvds->dev, &panel_lvds_funcs,
+		       DRM_MODE_CONNECTOR_LVDS);
 
 	ret = drm_panel_add(&lvds->panel);
 	if (ret < 0)
drivers/gpu/drm/panel/panel-nec-nl8048hl11.c +2 -3
index 20f17e46e65d..fd593532ab23 100644
@@ -205,9 +205,8 @@ static int nl8048_probe(struct spi_device *spi)
 	if (ret < 0)
 		return ret;
 
-	drm_panel_init(&lcd->panel);
-	lcd->panel.dev = &lcd->spi->dev;
-	lcd->panel.funcs = &nl8048_funcs;
+	drm_panel_init(&lcd->panel, &lcd->spi->dev, &nl8048_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	return drm_panel_add(&lcd->panel);
 }
drivers/gpu/drm/panel/panel-novatek-nt39016.c +2 -3
index 2ad1063b068d..60ccedce530c 100644
@@ -292,9 +292,8 @@ static int nt39016_probe(struct spi_device *spi)
 		return err;
 	}
 
-	drm_panel_init(&panel->drm_panel);
-	panel->drm_panel.dev = dev;
-	panel->drm_panel.funcs = &nt39016_funcs;
+	drm_panel_init(&panel->drm_panel, dev, &nt39016_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	err = drm_panel_add(&panel->drm_panel);
 	if (err < 0) {
drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c +2 -3
index 2bae1db3ff34..f2a72ee6ee07 100644
@@ -288,9 +288,8 @@ static int lcd_olinuxino_probe(struct i2c_client *client,
 	if (IS_ERR(lcd->backlight))
 		return PTR_ERR(lcd->backlight);
 
-	drm_panel_init(&lcd->panel);
-	lcd->panel.dev = dev;
-	lcd->panel.funcs = &lcd_olinuxino_funcs;
+	drm_panel_init(&lcd->panel, dev, &lcd_olinuxino_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	return drm_panel_add(&lcd->panel);
 }
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +2 -3
index 3ee265f1755f..938826f32665 100644
@@ -455,9 +455,8 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi)
 	dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
 			  MIPI_DSI_MODE_LPM;
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = dev;
-	ctx->panel.funcs = &otm8009a_drm_funcs;
+	drm_panel_init(&ctx->panel, dev, &otm8009a_drm_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	ctx->bl_dev = devm_backlight_device_register(dev, dev_name(dev),
 						     dev, ctx,
drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c +2 -3
index e0e20ecff916..2b40913899d8 100644
@@ -166,9 +166,8 @@ static int osd101t2587_panel_add(struct osd101t2587_panel *osd101t2587)
 	if (IS_ERR(osd101t2587->backlight))
 		return PTR_ERR(osd101t2587->backlight);
 
-	drm_panel_init(&osd101t2587->base);
-	osd101t2587->base.funcs = &osd101t2587_panel_funcs;
-	osd101t2587->base.dev = &osd101t2587->dsi->dev;
+	drm_panel_init(&osd101t2587->base, &osd101t2587->dsi->dev,
+		       &osd101t2587_panel_funcs, DRM_MODE_CONNECTOR_DSI);
 
 	return drm_panel_add(&osd101t2587->base);
 }
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +2 -3
index 3dff0b3f73c2..664605071d34 100644
@@ -223,9 +223,8 @@ static int wuxga_nt_panel_add(struct wuxga_nt_panel *wuxga_nt)
 			return -EPROBE_DEFER;
 	}
 
-	drm_panel_init(&wuxga_nt->base);
-	wuxga_nt->base.funcs = &wuxga_nt_panel_funcs;
-	wuxga_nt->base.dev = &wuxga_nt->dsi->dev;
+	drm_panel_init(&wuxga_nt->base, &wuxga_nt->dsi->dev,
+		       &wuxga_nt_panel_funcs, DRM_MODE_CONNECTOR_DSI);
 
 	ret = drm_panel_add(&wuxga_nt->base);
 	if (ret < 0)
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +2 -3
index a621dd28ff70..2ccb74debc8a 100644
@@ -433,9 +433,8 @@ static int rpi_touchscreen_probe(struct i2c_client *i2c,
 		return PTR_ERR(ts->dsi);
 	}
 
-	drm_panel_init(&ts->base);
-	ts->base.dev = dev;
-	ts->base.funcs = &rpi_touchscreen_funcs;
+	drm_panel_init(&ts->base, dev, &rpi_touchscreen_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	/* This appears last, as it's what will unblock the DSI host
 	 * driver's component bind function.
drivers/gpu/drm/panel/panel-raydium-rm67191.c +2 -3
index 6a5d37006103..fd67fc6185c4 100644
@@ -606,9 +606,8 @@ static int rad_panel_probe(struct mipi_dsi_device *dsi)
 	if (ret)
 		return ret;
 
-	drm_panel_init(&panel->panel);
-	panel->panel.funcs = &rad_panel_funcs;
-	panel->panel.dev = dev;
+	drm_panel_init(&panel->panel, dev, &rad_panel_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 	dev_set_drvdata(dev, panel);
 
 	ret = drm_panel_add(&panel->panel);
drivers/gpu/drm/panel/panel-raydium-rm68200.c +2 -3
index ba889625ad43..994e855721f4 100644
@@ -404,9 +404,8 @@ static int rm68200_probe(struct mipi_dsi_device *dsi)
 	dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
 			  MIPI_DSI_MODE_LPM;
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = dev;
-	ctx->panel.funcs = &rm68200_drm_funcs;
+	drm_panel_init(&ctx->panel, dev, &rm68200_drm_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	drm_panel_add(&ctx->panel);
 
drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c +2 -3
index b9109922397f..31234b79d3b1 100644
@@ -343,9 +343,8 @@ static int jh057n_probe(struct mipi_dsi_device *dsi)
 		return ret;
 	}
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = dev;
-	ctx->panel.funcs = &jh057n_drm_funcs;
+	drm_panel_init(&ctx->panel, dev, &jh057n_drm_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	drm_panel_add(&ctx->panel);
 
drivers/gpu/drm/panel/panel-ronbo-rb070d30.c +2 -3
index 3c15764f0c03..170a5cda21b9 100644
@@ -173,9 +173,8 @@ static int rb070d30_panel_dsi_probe(struct mipi_dsi_device *dsi)
 	mipi_dsi_set_drvdata(dsi, ctx);
 	ctx->dsi = dsi;
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = &dsi->dev;
-	ctx->panel.funcs = &rb070d30_panel_funcs;
+	drm_panel_init(&ctx->panel, &dsi->dev, &rb070d30_panel_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	ctx->gpios.reset = devm_gpiod_get(&dsi->dev, "reset", GPIOD_OUT_LOW);
 	if (IS_ERR(ctx->gpios.reset)) {
drivers/gpu/drm/panel/panel-samsung-ld9040.c +2 -3
index 3be902dcedc0..250809ba37c7 100644
@@ -351,9 +351,8 @@ static int ld9040_probe(struct spi_device *spi)
 		return ret;
 	}
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = dev;
-	ctx->panel.funcs = &ld9040_drm_funcs;
+	drm_panel_init(&ctx->panel, dev, &ld9040_drm_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	return drm_panel_add(&ctx->panel);
 }
drivers/gpu/drm/panel/panel-samsung-s6d16d0.c +2 -3
index f75bef24e050..e3a0397e953e 100644
@@ -215,9 +215,8 @@ static int s6d16d0_probe(struct mipi_dsi_device *dsi)
 		return ret;
 	}
 
-	drm_panel_init(&s6->panel);
-	s6->panel.dev = dev;
-	s6->panel.funcs = &s6d16d0_drm_funcs;
+	drm_panel_init(&s6->panel, dev, &s6d16d0_drm_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	ret = drm_panel_add(&s6->panel);
 	if (ret < 0)
drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c +2 -3
index b923de23ed65..938ab72c5540 100644
@@ -732,9 +732,8 @@ static int s6e3ha2_probe(struct mipi_dsi_device *dsi)
 	ctx->bl_dev->props.brightness = S6E3HA2_DEFAULT_BRIGHTNESS;
 	ctx->bl_dev->props.power = FB_BLANK_POWERDOWN;
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = dev;
-	ctx->panel.funcs = &s6e3ha2_drm_funcs;
+	drm_panel_init(&ctx->panel, dev, &s6e3ha2_drm_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	ret = drm_panel_add(&ctx->panel);
 	if (ret < 0)
drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +2 -3
index cd90fa700c49..a60635e9226d 100644
@@ -466,9 +466,8 @@ static int s6e63j0x03_probe(struct mipi_dsi_device *dsi)
 		return PTR_ERR(ctx->reset_gpio);
 	}
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = dev;
-	ctx->panel.funcs = &s6e63j0x03_funcs;
+	drm_panel_init(&ctx->panel, dev, &s6e63j0x03_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	ctx->bl_dev = backlight_device_register("s6e63j0x03", dev, ctx,
 						&s6e63j0x03_bl_ops, NULL);
drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +2 -3
index 142d395ea512..ba01af0b14fd 100644
@@ -473,9 +473,8 @@ static int s6e63m0_probe(struct spi_device *spi)
 		return ret;
 	}
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = dev;
-	ctx->panel.funcs = &s6e63m0_drm_funcs;
+	drm_panel_init(&ctx->panel, dev, &s6e63m0_drm_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	ret = s6e63m0_backlight_register(ctx);
 	if (ret < 0)
drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c +2 -3
index 81858267723a..dbced6501204 100644
@@ -1017,9 +1017,8 @@ static int s6e8aa0_probe(struct mipi_dsi_device *dsi)
 
 	ctx->brightness = GAMMA_LEVEL_NUM - 1;
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = dev;
-	ctx->panel.funcs = &s6e8aa0_drm_funcs;
+	drm_panel_init(&ctx->panel, dev, &s6e8aa0_drm_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	ret = drm_panel_add(&ctx->panel);
 	if (ret < 0)
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +2 -3
index 18b22b1294fb..b3619ba443bd 100644
@@ -274,9 +274,8 @@ static int seiko_panel_probe(struct device *dev,
 			return -EPROBE_DEFER;
 	}
 
-	drm_panel_init(&panel->base);
-	panel->base.dev = dev;
-	panel->base.funcs = &seiko_panel_funcs;
+	drm_panel_init(&panel->base, dev, &seiko_panel_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	err = drm_panel_add(&panel->base);
 	if (err < 0)
drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c +2 -3
index e910b4ad1310..5e136c3ba185 100644
@@ -329,9 +329,8 @@ static int sharp_panel_add(struct sharp_panel *sharp)
 	if (IS_ERR(sharp->backlight))
 		return PTR_ERR(sharp->backlight);
 
-	drm_panel_init(&sharp->base);
-	sharp->base.funcs = &sharp_panel_funcs;
-	sharp->base.dev = &sharp->link1->dev;
+	drm_panel_init(&sharp->base, &sharp->link1->dev, &sharp_panel_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	return drm_panel_add(&sharp->base);
 }
drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c +2 -3
index 46cd9a250129..eeab7998c7de 100644
@@ -185,9 +185,8 @@ static int ls037v7dw01_probe(struct platform_device *pdev)
 		return PTR_ERR(lcd->ud_gpio);
 	}
 
-	drm_panel_init(&lcd->panel);
-	lcd->panel.dev = &pdev->dev;
-	lcd->panel.funcs = &ls037v7dw01_funcs;
+	drm_panel_init(&lcd->panel, &pdev->dev, &ls037v7dw01_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	return drm_panel_add(&lcd->panel);
 }
drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c +2 -3
index c39abde9f9f1..b963ba4ab589 100644
@@ -264,9 +264,8 @@ static int sharp_nt_panel_add(struct sharp_nt_panel *sharp_nt)
 	if (IS_ERR(sharp_nt->backlight))
 		return PTR_ERR(sharp_nt->backlight);
 
-	drm_panel_init(&sharp_nt->base);
-	sharp_nt->base.funcs = &sharp_nt_panel_funcs;
-	sharp_nt->base.dev = &sharp_nt->dsi->dev;
+	drm_panel_init(&sharp_nt->base, &sharp_nt->dsi->dev,
+		       &sharp_nt_panel_funcs, DRM_MODE_CONNECTOR_DSI);
 
 	return drm_panel_add(&sharp_nt->base);
 }
drivers/gpu/drm/panel/panel-simple.c +28 -5
index 312a3c4e2331..a87b79c8d76f 100644
@@ -94,6 +94,7 @@ struct panel_desc {
 
 	u32 bus_format;
 	u32 bus_flags;
+	int connector_type;
 };
 
 struct panel_simple {
@@ -464,9 +465,8 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
 	if (!of_get_display_timing(dev->of_node, "panel-timing", &dt))
 		panel_simple_parse_panel_timing_node(dev, panel, &dt);
 
-	drm_panel_init(&panel->base);
-	panel->base.dev = dev;
-	panel->base.funcs = &panel_simple_funcs;
+	drm_panel_init(&panel->base, dev, &panel_simple_funcs,
+		       desc->connector_type);
 
 	err = drm_panel_add(&panel->base);
 	if (err < 0)
@@ -531,8 +531,8 @@ static const struct panel_desc ampire_am_480272h3tmqw_t01h = {
 	.num_modes = 1,
 	.bpc = 8,
 	.size = {
-		.width = 105,
-		.height = 67,
+		.width = 99,
+		.height = 58,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
 };
@@ -833,6 +833,7 @@ static const struct panel_desc auo_g133han01 = {
 		.unprepare = 1000,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct display_timing auo_g185han01_timings = {
@@ -862,6 +863,7 @@ static const struct panel_desc auo_g185han01 = {
 		.unprepare = 1000,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct display_timing auo_p320hvn03_timings = {
@@ -890,6 +892,7 @@ static const struct panel_desc auo_p320hvn03 = {
 		.unprepare = 500,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct drm_display_mode auo_t215hvn01_mode = {
@@ -1205,6 +1208,7 @@ static const struct panel_desc dlc_dlc0700yzg_1 = {
 		.disable = 200,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct display_timing dlc_dlc1010gig_timing = {
@@ -1235,6 +1239,7 @@ static const struct panel_desc dlc_dlc1010gig = {
 		.unprepare = 60,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct drm_display_mode edt_et035012dm6_mode = {
@@ -1501,6 +1506,7 @@ static const struct panel_desc hannstar_hsd070pww1 = {
 		.height = 94,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct display_timing hannstar_hsd100pxn1_timing = {
@@ -1525,6 +1531,7 @@ static const struct panel_desc hannstar_hsd100pxn1 = {
 		.height = 152,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = {
@@ -1577,6 +1584,7 @@ static const struct panel_desc innolux_at043tn24 = {
 		.height = 54,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+	.connector_type = DRM_MODE_CONNECTOR_DPI,
 	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
 };
 
@@ -1631,6 +1639,7 @@ static const struct panel_desc innolux_g070y2_l01 = {
 		.unprepare = 800,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct display_timing innolux_g101ice_l01_timing = {
@@ -1659,6 +1668,7 @@ static const struct panel_desc innolux_g101ice_l01 = {
 		.disable = 200,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct display_timing innolux_g121i1_l01_timing = {
@@ -1686,6 +1696,7 @@ static const struct panel_desc innolux_g121i1_l01 = {
 		.disable = 20,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct drm_display_mode innolux_g121x1_l03_mode = {
@@ -1869,6 +1880,7 @@ static const struct panel_desc koe_tx31d200vm0baa = {
 		.height = 109,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct display_timing kyo_tcg121xglp_timing = {
@@ -1893,6 +1905,7 @@ static const struct panel_desc kyo_tcg121xglp = {
 		.height = 184,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct drm_display_mode lemaker_bl035_rgb_002_mode = {
@@ -1941,6 +1954,7 @@ static const struct panel_desc lg_lb070wv8 = {
 		.height = 91,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct drm_display_mode lg_lp079qx1_sp0v_mode = {
@@ -2097,6 +2111,7 @@ static const struct panel_desc mitsubishi_aa070mc01 = {
 		.disable = 400,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 	.bus_flags = DRM_BUS_FLAG_DE_HIGH,
 };
 
@@ -2125,6 +2140,7 @@ static const struct panel_desc nec_nl12880bc20_05 = {
 		.disable = 50,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct drm_display_mode nec_nl4827hc19_05b_mode = {
@@ -2227,6 +2243,7 @@ static const struct panel_desc nlt_nl192108ac18_02d = {
 		.unprepare = 500,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct drm_display_mode nvd_9128_mode = {
@@ -2250,6 +2267,7 @@ static const struct panel_desc nvd_9128 = {
 		.height = 88,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct display_timing okaya_rs800480t_7x0gp_timing = {
@@ -2662,6 +2680,7 @@ static const struct panel_desc sharp_lq101k1ly04 = {
 		.height = 136,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct display_timing sharp_lq123p1jx31_timing = {
@@ -2841,6 +2860,7 @@ static const struct panel_desc tianma_tm070jdhg30 = {
 		.height = 95,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct display_timing tianma_tm070rvhg71_timing = {
@@ -2865,6 +2885,7 @@ static const struct panel_desc tianma_tm070rvhg71 = {
 		.height = 86,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = {
@@ -2947,6 +2968,7 @@ static const struct panel_desc toshiba_lt089ac29000 = {
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
 	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct drm_display_mode tpk_f07a_0102_mode = {
@@ -3017,6 +3039,7 @@ static const struct panel_desc urt_umsh_8596md_lvds = {
 		.height = 91,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
 static const struct panel_desc urt_umsh_8596md_parallel = {
drivers/gpu/drm/panel/panel-sitronix-st7701.c +2 -3
index 638f605acb2d..1d2fd6cc6674 100644
@@ -369,7 +369,8 @@ static int st7701_dsi_probe(struct mipi_dsi_device *dsi)
 	if (IS_ERR(st7701->backlight))
 		return PTR_ERR(st7701->backlight);
 
-	drm_panel_init(&st7701->panel);
+	drm_panel_init(&st7701->panel, &dsi->dev, &st7701_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 
 	/**
 	 * Once sleep out has been issued, ST7701 IC required to wait 120ms
@@ -381,8 +382,6 @@ static int st7701_dsi_probe(struct mipi_dsi_device *dsi)
 	 * ts8550b and there is no valid documentation for that.
 	 */
 	st7701->sleep_delay = 120 + desc->panel_sleep_delay;
-	st7701->panel.funcs = &st7701_funcs;
-	st7701->panel.dev = &dsi->dev;
 
 	ret = drm_panel_add(&st7701->panel);
 	if (ret < 0)
drivers/gpu/drm/panel/panel-sitronix-st7789v.c +2 -3
index 3b2612ae931e..108a85bb6667 100644
@@ -381,9 +381,8 @@ static int st7789v_probe(struct spi_device *spi)
 	spi_set_drvdata(spi, ctx);
 	ctx->spi = spi;
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = &spi->dev;
-	ctx->panel.funcs = &st7789v_drm_funcs;
+	drm_panel_init(&ctx->panel, &spi->dev, &st7789v_drm_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	ctx->power = devm_regulator_get(&spi->dev, "power");
 	if (IS_ERR(ctx->power))
drivers/gpu/drm/panel/panel-sony-acx565akm.c +2 -3
index 3d5b9c4f68d9..d6387d8f88a3 100644
@@ -648,9 +648,8 @@ static int acx565akm_probe(struct spi_device *spi)
 			return ret;
 	}
 
-	drm_panel_init(&lcd->panel);
-	lcd->panel.dev = &lcd->spi->dev;
-	lcd->panel.funcs = &acx565akm_funcs;
+	drm_panel_init(&lcd->panel, &lcd->spi->dev, &acx565akm_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	ret = drm_panel_add(&lcd->panel);
 	if (ret < 0) {
drivers/gpu/drm/panel/panel-tpo-td028ttec1.c +2 -3
index f2baff827f50..c44d6a65c0aa 100644
@@ -347,9 +347,8 @@ static int td028ttec1_probe(struct spi_device *spi)
 		return ret;
 	}
 
-	drm_panel_init(&lcd->panel);
-	lcd->panel.dev = &lcd->spi->dev;
-	lcd->panel.funcs = &td028ttec1_funcs;
+	drm_panel_init(&lcd->panel, &lcd->spi->dev, &td028ttec1_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	return drm_panel_add(&lcd->panel);
 }
drivers/gpu/drm/panel/panel-tpo-td043mtea1.c +2 -3
index ba163c779084..621b65feec07 100644
@@ -458,9 +458,8 @@ static int td043mtea1_probe(struct spi_device *spi)
 		return ret;
 	}
 
-	drm_panel_init(&lcd->panel);
-	lcd->panel.dev = &lcd->spi->dev;
-	lcd->panel.funcs = &td043mtea1_funcs;
+	drm_panel_init(&lcd->panel, &lcd->spi->dev, &td043mtea1_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 
 	ret = drm_panel_add(&lcd->panel);
 	if (ret < 0) {
drivers/gpu/drm/panel/panel-tpo-tpg110.c +2 -3
index 71591e5f5938..1a5418ae2ccf 100644
@@ -457,9 +457,8 @@ static int tpg110_probe(struct spi_device *spi)
 	if (ret)
 		return ret;
 
-	drm_panel_init(&tpg->panel);
-	tpg->panel.dev = dev;
-	tpg->panel.funcs = &tpg110_drm_funcs;
+	drm_panel_init(&tpg->panel, dev, &tpg110_drm_funcs,
+		       DRM_MODE_CONNECTOR_DPI);
 	spi_set_drvdata(spi, tpg);
 
 	return drm_panel_add(&tpg->panel);
drivers/gpu/drm/panel/panel-truly-nt35597.c +2 -3
index 77e1311b7c69..0feea2456e14 100644
@@ -518,9 +518,8 @@ static int truly_nt35597_panel_add(struct truly_nt35597 *ctx)
 	/* dual port */
 	gpiod_set_value(ctx->mode_gpio, 0);
 
-	drm_panel_init(&ctx->panel);
-	ctx->panel.dev = dev;
-	ctx->panel.funcs = &truly_nt35597_drm_funcs;
+	drm_panel_init(&ctx->panel, dev, &truly_nt35597_drm_funcs,
+		       DRM_MODE_CONNECTOR_DSI);
 	drm_panel_add(&ctx->panel);
 
 	return 0;
drivers/gpu/drm/radeon/ci_dpm.c +20 -8
index 1e62e7bbf1b1..5403f4c902b6 100644
@@ -5556,6 +5556,7 @@ static int ci_parse_power_table(struct radeon_device *rdev)
 	u8 frev, crev;
 	u8 *power_state_offset;
 	struct ci_ps *ps;
+	int ret;
 
 	if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
 				   &frev, &crev, &data_offset))
@@ -5585,11 +5586,15 @@ static int ci_parse_power_table(struct radeon_device *rdev)
 		non_clock_array_index = power_state->v2.nonClockInfoIndex;
 		non_clock_info = (struct _ATOM_PPLIB_NONCLOCK_INFO *)
 			&non_clock_info_array->nonClockInfo[non_clock_array_index];
-		if (!rdev->pm.power_state[i].clock_info)
-			return -EINVAL;
+		if (!rdev->pm.power_state[i].clock_info) {
+			ret = -EINVAL;
+			goto err_free_ps;
+		}
 		ps = kzalloc(sizeof(struct ci_ps), GFP_KERNEL);
-		if (ps == NULL)
-			return -ENOMEM;
+		if (ps == NULL) {
+			ret = -ENOMEM;
+			goto err_free_ps;
+		}
 		rdev->pm.dpm.ps[i].ps_priv = ps;
 		ci_parse_pplib_non_clock_info(rdev, &rdev->pm.dpm.ps[i],
 					      non_clock_info,
@@ -5629,6 +5634,12 @@ static int ci_parse_power_table(struct radeon_device *rdev)
 	}
 
 	return 0;
+
+err_free_ps:
+	for (i = 0; i < rdev->pm.dpm.num_ps; i++)
+		kfree(rdev->pm.dpm.ps[i].ps_priv);
+	kfree(rdev->pm.dpm.ps);
+	return ret;
 }
 
 static int ci_get_vbios_boot_values(struct radeon_device *rdev,
@@ -5717,25 +5728,26 @@ int ci_dpm_init(struct radeon_device *rdev)
 
 	ret = ci_get_vbios_boot_values(rdev, &pi->vbios_boot_state);
 	if (ret) {
-		ci_dpm_fini(rdev);
+		kfree(rdev->pm.dpm.priv);
 		return ret;
 	}
 
 	ret = r600_get_platform_caps(rdev);
 	if (ret) {
-		ci_dpm_fini(rdev);
+		kfree(rdev->pm.dpm.priv);
 		return ret;
 	}
 
 	ret = r600_parse_extended_power_table(rdev);
 	if (ret) {
-		ci_dpm_fini(rdev);
+		kfree(rdev->pm.dpm.priv);
 		return ret;
 	}
 
 	ret = ci_parse_power_table(rdev);
 	if (ret) {
-		ci_dpm_fini(rdev);
+		kfree(rdev->pm.dpm.priv);
+		r600_free_extended_power_table(rdev);
 		return ret;
 	}
 
drivers/gpu/drm/radeon/cypress_dpm.c +6 -2
index 32ed60f1048b..b31d65a6752f 100644
@@ -559,8 +559,12 @@ static int cypress_populate_mclk_value(struct radeon_device *rdev,
 						     ASIC_INTERNAL_MEMORY_SS, vco_freq)) {
 			u32 reference_clock = rdev->clock.mpll.reference_freq;
 			u32 decoded_ref = rv740_get_decoded_reference_divider(dividers.ref_div);
-			u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
-			u32 clk_v = ss.percentage *
+			u32 clk_s, clk_v;
+
+			if (!decoded_ref)
+				return -EINVAL;
+			clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
+			clk_v = ss.percentage *
 				(0x4000 * dividers.whole_fb_div + 0x800 * dividers.frac_fb_div) / (clk_s * 625);
 
 			mpll_ss1 &= ~CLKV_MASK;
drivers/gpu/drm/radeon/ni_dpm.c +6 -2
index 288ec3039bc2..cad7a73a551f 100644
@@ -2241,8 +2241,12 @@ static int ni_populate_mclk_value(struct radeon_device *rdev,
 						     ASIC_INTERNAL_MEMORY_SS, vco_freq)) {
 			u32 reference_clock = rdev->clock.mpll.reference_freq;
 			u32 decoded_ref = rv740_get_decoded_reference_divider(dividers.ref_div);
-			u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
-			u32 clk_v = ss.percentage *
+			u32 clk_s, clk_v;
+
+			if (!decoded_ref)
+				return -EINVAL;
+			clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
+			clk_v = ss.percentage *
 				(0x4000 * dividers.whole_fb_div + 0x800 * dividers.frac_fb_div) / (clk_s * 625);
 
 			mpll_ss1 &= ~CLKV_MASK;
drivers/gpu/drm/radeon/rv740_dpm.c +6 -2
index 327d65a76e1f..79b2de65e905 100644
@@ -250,8 +250,12 @@ int rv740_populate_mclk_value(struct radeon_device *rdev,
 						     ASIC_INTERNAL_MEMORY_SS, vco_freq)) {
 			u32 reference_clock = rdev->clock.mpll.reference_freq;
 			u32 decoded_ref = rv740_get_decoded_reference_divider(dividers.ref_div);
-			u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
-			u32 clk_v = 0x40000 * ss.percentage *
+			u32 clk_s, clk_v;
+
+			if (!decoded_ref)
+				return -EINVAL;
+			clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
+			clk_v = 0x40000 * ss.percentage *
 				(dividers.whole_fb_div + (dividers.frac_fb_div / 8)) / (clk_s * 10000);
 
 			mpll_ss1 &= ~CLKV_MASK;
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +4 -4
index 57e0396662c3..1795adbd81d3 100644
@@ -654,13 +654,13 @@ static void vop_crtc_atomic_disable(struct drm_crtc *crtc,
 	if (crtc->state->self_refresh_active)
 		rockchip_drm_set_win_enabled(crtc, false);
 
+	if (crtc->state->self_refresh_active)
+		goto out;
+
 	mutex_lock(&vop->vop_lock);
 
 	drm_crtc_vblank_off(crtc);
 
-	if (crtc->state->self_refresh_active)
-		goto out;
-
 	/*
 	 * Vop standby will take effect at end of current frame,
 	 * if dsp hold valid irq happen, it means standby complete.
@@ -692,9 +692,9 @@ static void vop_crtc_atomic_disable(struct drm_crtc *crtc,
 	vop_core_clks_disable(vop);
 	pm_runtime_put(vop->dev);
 
-out:
 	mutex_unlock(&vop->vop_lock);
 
+out:
 	if (crtc->state->event && !crtc->state->active) {
 		spin_lock_irq(&crtc->dev->event_lock);
 		drm_crtc_send_vblank_event(crtc, crtc->state->event);
drivers/gpu/drm/sun4i/sun4i_tcon.c +4 -15
index eb3b2350687f..193c7f979bca 100644
@@ -753,21 +753,19 @@ static irqreturn_t sun4i_tcon_handler(int irq, void *private)
 static int sun4i_tcon_init_clocks(struct device *dev,
 				  struct sun4i_tcon *tcon)
 {
-	tcon->clk = devm_clk_get(dev, "ahb");
+	tcon->clk = devm_clk_get_enabled(dev, "ahb");
 	if (IS_ERR(tcon->clk)) {
 		dev_err(dev, "Couldn't get the TCON bus clock\n");
 		return PTR_ERR(tcon->clk);
 	}
-	clk_prepare_enable(tcon->clk);
 
 	if (tcon->quirks->has_channel_0) {
-		tcon->sclk0 = devm_clk_get(dev, "tcon-ch0");
+		tcon->sclk0 = devm_clk_get_enabled(dev, "tcon-ch0");
 		if (IS_ERR(tcon->sclk0)) {
 			dev_err(dev, "Couldn't get the TCON channel 0 clock\n");
 			return PTR_ERR(tcon->sclk0);
 		}
 	}
-	clk_prepare_enable(tcon->sclk0);
 
 	if (tcon->quirks->has_channel_1) {
 		tcon->sclk1 = devm_clk_get(dev, "tcon-ch1");
@@ -780,12 +778,6 @@ static int sun4i_tcon_init_clocks(struct device *dev,
 	return 0;
 }
 
-static void sun4i_tcon_free_clocks(struct sun4i_tcon *tcon)
-{
-	clk_disable_unprepare(tcon->sclk0);
-	clk_disable_unprepare(tcon->clk);
-}
-
 static int sun4i_tcon_init_irq(struct device *dev,
 			       struct sun4i_tcon *tcon)
 {
@@ -1202,14 +1194,14 @@ static int sun4i_tcon_bind(struct device *dev, struct device *master,
 	ret = sun4i_tcon_init_regmap(dev, tcon);
 	if (ret) {
 		dev_err(dev, "Couldn't init our TCON regmap\n");
-		goto err_free_clocks;
+		goto err_assert_reset;
 	}
 
 	if (tcon->quirks->has_channel_0) {
 		ret = sun4i_dclk_create(dev, tcon);
 		if (ret) {
 			dev_err(dev, "Couldn't create our TCON dot clock\n");
-			goto err_free_clocks;
+			goto err_assert_reset;
 		}
 	}
 
@@ -1272,8 +1264,6 @@ static int sun4i_tcon_bind(struct device *dev, struct device *master,
 err_free_dotclock:
 	if (tcon->quirks->has_channel_0)
 		sun4i_dclk_free(tcon);
-err_free_clocks:
-	sun4i_tcon_free_clocks(tcon);
 err_assert_reset:
 	reset_control_assert(tcon->lcd_rst);
 	return ret;
@@ -1287,7 +1277,6 @@ static void sun4i_tcon_unbind(struct device *dev, struct device *master,
 	list_del(&tcon->list);
 	if (tcon->quirks->has_channel_0)
 		sun4i_dclk_free(tcon);
-	sun4i_tcon_free_clocks(tcon);
 }
 
 static const struct component_ops sun4i_tcon_ops = {
drivers/hid/wacom_wac.c +3 -3
index 75761939f02b..28da9b4087c3 100644
@@ -1307,7 +1307,7 @@ static void wacom_intuos_pro2_bt_pen(struct wacom_wac *wacom)
 	struct input_dev *pen_input = wacom->pen_input;
 	unsigned char *data = wacom->data;
 	int number_of_valid_frames = 0;
-	int time_interval = 15000000;
+	ktime_t time_interval = 15000000;
 	ktime_t time_packet_received = ktime_get();
 	int i;
 
@@ -1341,7 +1341,7 @@ static void wacom_intuos_pro2_bt_pen(struct wacom_wac *wacom)
 	if (number_of_valid_frames) {
 		if (wacom->hid_data.time_delayed)
 			time_interval = ktime_get() - wacom->hid_data.time_delayed;
-		time_interval /= number_of_valid_frames;
+		time_interval = div_u64(time_interval, number_of_valid_frames);
 		wacom->hid_data.time_delayed = time_packet_received;
 	}
 
@@ -1352,7 +1352,7 @@ static void wacom_intuos_pro2_bt_pen(struct wacom_wac *wacom)
 		bool range = frame[0] & 0x20;
 		bool invert = frame[0] & 0x10;
 		int frames_number_reversed = number_of_valid_frames - i - 1;
-		int event_timestamp = time_packet_received - frames_number_reversed * time_interval;
+		ktime_t event_timestamp = time_packet_received - frames_number_reversed * time_interval;
 
 		if (!valid)
 			continue;
drivers/hid/wacom_wac.h +1 -1
index 88badfbae999..166731292c35 100644
@@ -320,7 +320,7 @@ struct hid_data {
 	int bat_connected;
 	int ps_connected;
 	bool pad_input_event_flag;
-	int time_delayed;
+	ktime_t time_delayed;
 };
 
 struct wacom_remote_data {
drivers/i2c/busses/i2c-xiic.c +28 -11
index c92ea6990ec6..6bcb46cc28cd 100644
@@ -353,6 +353,9 @@ static irqreturn_t xiic_process(int irq, void *dev_id)
 	struct xiic_i2c *i2c = dev_id;
 	u32 pend, isr, ier;
 	u32 clr = 0;
+	int xfer_more = 0;
+	int wakeup_req = 0;
+	int wakeup_code = 0;
 
 	/* Get the interrupt Status from the IPIF. There is no clearing of
 	 * interrupts in the IPIF. Interrupts must be cleared at the source.
@@ -389,10 +392,16 @@ static irqreturn_t xiic_process(int irq, void *dev_id)
 		 */
 		xiic_reinit(i2c);
 
-		if (i2c->rx_msg)
-			xiic_wakeup(i2c, STATE_ERROR);
-		if (i2c->tx_msg)
-			xiic_wakeup(i2c, STATE_ERROR);
+		if (i2c->rx_msg) {
+			wakeup_req = 1;
+			wakeup_code = STATE_ERROR;
+		}
+		if (i2c->tx_msg) {
+			wakeup_req = 1;
+			wakeup_code = STATE_ERROR;
+		}
+		/* don't try to handle other events */
+		goto out;
 	}
 	if (pend & XIIC_INTR_RX_FULL_MASK) {
 		/* Receive register/FIFO is full */
@@ -426,8 +435,7 @@ static irqreturn_t xiic_process(int irq, void *dev_id)
 				i2c->tx_msg++;
 				dev_dbg(i2c->adap.dev.parent,
 					"%s will start next...\n", __func__);
-
-				__xiic_start_xfer(i2c);
+				xfer_more = 1;
 			}
 		}
 	}
@@ -441,11 +449,13 @@ static irqreturn_t xiic_process(int irq, void *dev_id)
 		if (!i2c->tx_msg)
 			goto out;
 
-		if ((i2c->nmsgs == 1) && !i2c->rx_msg &&
-			xiic_tx_space(i2c) == 0)
-			xiic_wakeup(i2c, STATE_DONE);
+		wakeup_req = 1;
+
+		if (i2c->nmsgs == 1 && !i2c->rx_msg &&
+		    xiic_tx_space(i2c) == 0)
+			wakeup_code = STATE_DONE;
 		else
-			xiic_wakeup(i2c, STATE_ERROR);
+			wakeup_code = STATE_ERROR;
 	}
 	if (pend & (XIIC_INTR_TX_EMPTY_MASK | XIIC_INTR_TX_HALF_MASK)) {
 		/* Transmit register/FIFO is empty or ½ empty */
@@ -469,7 +479,7 @@ static irqreturn_t xiic_process(int irq, void *dev_id)
 			if (i2c->nmsgs > 1) {
 				i2c->nmsgs--;
 				i2c->tx_msg++;
-				__xiic_start_xfer(i2c);
+				xfer_more = 1;
 			} else {
 				xiic_irq_dis(i2c, XIIC_INTR_TX_HALF_MASK);
 
@@ -487,6 +497,13 @@ static irqreturn_t xiic_process(int irq, void *dev_id)
 	dev_dbg(i2c->adap.dev.parent, "%s clr: 0x%x\n", __func__, clr);
 
 	xiic_setreg32(i2c, XIIC_IISR_OFFSET, clr);
+	if (xfer_more)
+		__xiic_start_xfer(i2c);
+	if (wakeup_req)
+		xiic_wakeup(i2c, wakeup_code);
+
+	WARN_ON(xfer_more && wakeup_req);
+
 	mutex_unlock(&i2c->lock);
 	return IRQ_HANDLED;
 }
drivers/iio/adc/meson_saradc.c +1 -1
index 7b27306330a3..1a82be03624c 100644
@@ -71,7 +71,7 @@
 	#define MESON_SAR_ADC_REG3_PANEL_DETECT_COUNT_MASK	GENMASK(20, 18)
 	#define MESON_SAR_ADC_REG3_PANEL_DETECT_FILTER_TB_MASK	GENMASK(17, 16)
 	#define MESON_SAR_ADC_REG3_ADC_CLK_DIV_SHIFT		10
-	#define MESON_SAR_ADC_REG3_ADC_CLK_DIV_WIDTH		5
+	#define MESON_SAR_ADC_REG3_ADC_CLK_DIV_WIDTH		6
 	#define MESON_SAR_ADC_REG3_BLOCK_DLY_SEL_MASK		GENMASK(9, 8)
 	#define MESON_SAR_ADC_REG3_BLOCK_DLY_MASK		GENMASK(7, 0)
 
drivers/infiniband/hw/bnxt_re/qplib_fp.c +1 -4
index 5fc5ab7813c0..18b579c8a8c5 100644
@@ -2606,11 +2606,8 @@ static int bnxt_qplib_cq_process_terminal(struct bnxt_qplib_cq *cq,
 
 	qp = (struct bnxt_qplib_qp *)((unsigned long)
 				      le64_to_cpu(hwcqe->qp_handle));
-	if (!qp) {
-		dev_err(&cq->hwq.pdev->dev,
-			"FP: CQ Process terminal qp is NULL\n");
+	if (!qp)
 		return -EINVAL;
-	}
 
 	/* Must block new posting of SQ and RQ */
 	qp->state = CMDQ_MODIFY_QP_NEW_STATE_ERR;
drivers/infiniband/hw/hfi1/sdma.c +2 -2
index 2a684fc6056e..057c9ffcd02e 100644
@@ -3203,8 +3203,7 @@ int _pad_sdma_tx_descs(struct hfi1_devdata *dd, struct sdma_txreq *tx)
 {
 	int rval = 0;
 
-	tx->num_desc++;
-	if ((unlikely(tx->num_desc == tx->desc_limit))) {
+	if ((unlikely(tx->num_desc + 1 == tx->desc_limit))) {
 		rval = _extend_sdma_tx_descs(dd, tx);
 		if (rval) {
 			__sdma_txclean(dd, tx);
@@ -3217,6 +3216,7 @@ int _pad_sdma_tx_descs(struct hfi1_devdata *dd, struct sdma_txreq *tx)
 		SDMA_MAP_NONE,
 		dd->sdma_pad_phys,
 		sizeof(u32) - (tx->packet_len & (sizeof(u32) - 1)));
+	tx->num_desc++;
 	_sdma_close_tx(dd, tx);
 	return rval;
 }
drivers/infiniband/hw/hfi1/sdma.h +7 -8
index 1e2e40f79cb2..6ac00755848d 100644
@@ -672,14 +672,13 @@ static inline void sdma_txclean(struct hfi1_devdata *dd, struct sdma_txreq *tx)
 static inline void _sdma_close_tx(struct hfi1_devdata *dd,
 				  struct sdma_txreq *tx)
 {
-	tx->descp[tx->num_desc].qw[0] |=
-		SDMA_DESC0_LAST_DESC_FLAG;
-	tx->descp[tx->num_desc].qw[1] |=
-		dd->default_desc1;
+	u16 last_desc = tx->num_desc - 1;
+
+	tx->descp[last_desc].qw[0] |= SDMA_DESC0_LAST_DESC_FLAG;
+	tx->descp[last_desc].qw[1] |= dd->default_desc1;
 	if (tx->flags & SDMA_TXREQ_F_URGENT)
-		tx->descp[tx->num_desc].qw[1] |=
-			(SDMA_DESC1_HEAD_TO_HOST_FLAG |
-			 SDMA_DESC1_INT_REQ_FLAG);
+		tx->descp[last_desc].qw[1] |= (SDMA_DESC1_HEAD_TO_HOST_FLAG |
+					       SDMA_DESC1_INT_REQ_FLAG);
 }
 
 static inline int _sdma_txadd_daddr(
@@ -696,6 +695,7 @@ static inline int _sdma_txadd_daddr(
 		type,
 		addr, len);
 	WARN_ON(len > tx->tlen);
+	tx->num_desc++;
 	tx->tlen -= len;
 	/* special cases for last */
 	if (!tx->tlen) {
@@ -707,7 +707,6 @@ static inline int _sdma_txadd_daddr(
 			_sdma_close_tx(dd, tx);
 		}
 	}
-	tx->num_desc++;
 	return rval;
 }
 
drivers/input/misc/adxl34x.c +1 -2
index 4cc4e8ff42b3..ad035c342cd3 100644
@@ -811,8 +811,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq,
 	AC_WRITE(ac, POWER_CTL, 0);
 
 	err = request_threaded_irq(ac->irq, NULL, adxl34x_irq,
-				   IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
-				   dev_name(dev), ac);
+				   IRQF_ONESHOT, dev_name(dev), ac);
 	if (err) {
 		dev_err(dev, "irq %d busy?\n", ac->irq);
 		goto err_free_mem;
drivers/input/misc/drv260x.c +1 -0
index 79d7fa710a71..54002d1a446b 100644
@@ -435,6 +435,7 @@ static int drv260x_init(struct drv260x_data *haptics)
 	}
 
 	do {
+		usleep_range(15000, 15500);
 		error = regmap_read(haptics->regmap, DRV260X_GO, &cal_buf);
 		if (error) {
 			dev_err(&haptics->client->dev,
drivers/irqchip/irq-jcore-aic.c +9 -2
index 033bccb41455..b9dcc8e78c75 100644
@@ -68,6 +68,7 @@ static int __init aic_irq_of_init(struct device_node *node,
 	unsigned min_irq = JCORE_AIC2_MIN_HWIRQ;
 	unsigned dom_sz = JCORE_AIC_MAX_HWIRQ+1;
 	struct irq_domain *domain;
+	int ret;
 
 	pr_info("Initializing J-Core AIC\n");
 
@@ -100,11 +101,17 @@ static int __init aic_irq_of_init(struct device_node *node,
 	jcore_aic.irq_unmask = noop;
 	jcore_aic.name = "AIC";
 
-	domain = irq_domain_add_linear(node, dom_sz, &jcore_aic_irqdomain_ops,
+	ret = irq_alloc_descs(-1, min_irq, dom_sz - min_irq,
+			      of_node_to_nid(node));
+
+	if (ret < 0)
+		return ret;
+
+	domain = irq_domain_add_legacy(node, dom_sz - min_irq, min_irq, min_irq,
+				       &jcore_aic_irqdomain_ops,
 				       &jcore_aic);
 	if (!domain)
 		return -ENOMEM;
-	irq_create_strict_mappings(domain, min_irq, min_irq, dom_sz - min_irq);
 
 	return 0;
 }
drivers/mailbox/ti-msgmgr.c +9 -3
index 88047d835211..75f14b624ca2 100644
@@ -385,14 +385,20 @@ static int ti_msgmgr_send_data(struct mbox_chan *chan, void *data)
 		/* Ensure all unused data is 0 */
 		data_trail &= 0xFFFFFFFF >> (8 * (sizeof(u32) - trail_bytes));
 		writel(data_trail, data_reg);
-		data_reg++;
+		data_reg += sizeof(u32);
 	}
+
 	/*
 	 * 'data_reg' indicates next register to write. If we did not already
 	 * write on tx complete reg(last reg), we must do so for transmit
+	 * In addition, we also need to make sure all intermediate data
+	 * registers(if any required), are reset to 0 for TISCI backward
+	 * compatibility to be maintained.
 	 */
-	if (data_reg <= qinst->queue_buff_end)
-		writel(0, qinst->queue_buff_end);
+	while (data_reg <= qinst->queue_buff_end) {
+		writel(0, data_reg);
+		data_reg += sizeof(u32);
+	}
 
 	return 0;
 }
drivers/md/bcache/btree.c +5 -5
index 5a33910aea78..b7fea84d19ad 100644
@@ -1186,7 +1186,7 @@ static struct btree *btree_node_alloc_replacement(struct btree *b,
 {
 	struct btree *n = bch_btree_node_alloc(b->c, op, b->level, b->parent);
 
-	if (!IS_ERR_OR_NULL(n)) {
+	if (!IS_ERR(n)) {
 		mutex_lock(&n->write_lock);
 		bch_btree_sort_into(&b->keys, &n->keys, &b->c->sort);
 		bkey_copy_key(&n->key, &b->key);
@@ -1389,7 +1389,7 @@ static int btree_gc_coalesce(struct btree *b, struct btree_op *op,
 	memset(new_nodes, 0, sizeof(new_nodes));
 	closure_init_stack(&cl);
 
-	while (nodes < GC_MERGE_NODES && !IS_ERR_OR_NULL(r[nodes].b))
+	while (nodes < GC_MERGE_NODES && !IS_ERR(r[nodes].b))
 		keys += r[nodes++].keys;
 
 	blocks = btree_default_blocks(b->c) * 2 / 3;
@@ -1401,7 +1401,7 @@ static int btree_gc_coalesce(struct btree *b, struct btree_op *op,
 
 	for (i = 0; i < nodes; i++) {
 		new_nodes[i] = btree_node_alloc_replacement(r[i].b, NULL);
-		if (IS_ERR_OR_NULL(new_nodes[i]))
+		if (IS_ERR(new_nodes[i]))
 			goto out_nocoalesce;
 	}
 
@@ -1536,7 +1536,7 @@ static int btree_gc_coalesce(struct btree *b, struct btree_op *op,
 	bch_keylist_free(&keylist);
 
 	for (i = 0; i < nodes; i++)
-		if (!IS_ERR_OR_NULL(new_nodes[i])) {
+		if (!IS_ERR(new_nodes[i])) {
 			btree_node_free(new_nodes[i]);
 			rw_unlock(true, new_nodes[i]);
 		}
@@ -1718,7 +1718,7 @@ static int bch_btree_gc_root(struct btree *b, struct btree_op *op,
 	if (should_rewrite) {
 		n = btree_node_alloc_replacement(b, NULL);
 
-		if (!IS_ERR_OR_NULL(n)) {
+		if (!IS_ERR(n)) {
 			bch_btree_node_write_sync(n);
 
 			bch_btree_set_root(n);
drivers/md/bcache/super.c +2 -2
index efdf6ce0443e..70e46e0d2f1a 100644
@@ -1633,7 +1633,7 @@ static void cache_set_flush(struct closure *cl)
 	if (!IS_ERR_OR_NULL(c->gc_thread))
 		kthread_stop(c->gc_thread);
 
-	if (!IS_ERR_OR_NULL(c->root))
+	if (!IS_ERR(c->root))
 		list_add(&c->root->list, &c->btree_cache);
 
 	/*
@@ -2000,7 +2000,7 @@ static int run_cache_set(struct cache_set *c)
 
 		err = "cannot allocate new btree root";
 		c->root = __bch_btree_node_alloc(c, NULL, 0, true, NULL);
-		if (IS_ERR_OR_NULL(c->root))
+		if (IS_ERR(c->root))
 			goto err;
 
 		mutex_lock(&c->root->write_lock);
drivers/md/md-bitmap.c +9 -8
index 0545cdccf636..bea8265ce9b8 100644
@@ -54,14 +54,7 @@ __acquires(bitmap->lock)
 {
 	unsigned char *mappage;
 
-	if (page >= bitmap->pages) {
-		/* This can happen if bitmap_start_sync goes beyond
-		 * End-of-device while looking for a whole page.
-		 * It is harmless.
-		 */
-		return -EINVAL;
-	}
-
+	WARN_ON_ONCE(page >= bitmap->pages);
 	if (bitmap->bp[page].hijacked) /* it's hijacked, don't try to alloc */
 		return 0;
 
@@ -1369,6 +1362,14 @@ __acquires(bitmap->lock)
 	sector_t csize;
 	int err;
 
+	if (page >= bitmap->pages) {
+		/*
+		 * This can happen if bitmap_start_sync goes beyond
+		 * End-of-device while looking for a whole page or
+		 * user set a huge number to sysfs bitmap_set_bits.
+		 */
+		return NULL;
+	}
 	err = md_bitmap_checkpage(bitmap, page, create, 0);
 
 	if (bitmap->bp[page].hijacked ||
drivers/md/md.c +18 -5
index 64558991ce0a..a006f3a9554b 100644
@@ -3766,8 +3766,9 @@ int strict_strtoul_scaled(const char *cp, unsigned long *res, int scale)
 static ssize_t
 safe_delay_show(struct mddev *mddev, char *page)
 {
-	int msec = (mddev->safemode_delay*1000)/HZ;
-	return sprintf(page, "%d.%03d\n", msec/1000, msec%1000);
+	unsigned int msec = ((unsigned long)mddev->safemode_delay*1000)/HZ;
+
+	return sprintf(page, "%u.%03u\n", msec/1000, msec%1000);
 }
 static ssize_t
 safe_delay_store(struct mddev *mddev, const char *cbuf, size_t len)
@@ -3779,7 +3780,7 @@ safe_delay_store(struct mddev *mddev, const char *cbuf, size_t len)
 		return -EINVAL;
 	}
 
-	if (strict_strtoul_scaled(cbuf, &msec, 3) < 0)
+	if (strict_strtoul_scaled(cbuf, &msec, 3) < 0 || msec > UINT_MAX / HZ)
 		return -EINVAL;
 	if (msec == 0)
 		mddev->safemode_delay = 0;
@@ -4440,6 +4441,8 @@ max_corrected_read_errors_store(struct mddev *mddev, const char *buf, size_t len
 	rv = kstrtouint(buf, 10, &n);
 	if (rv < 0)
 		return rv;
+	if (n > INT_MAX)
+		return -EINVAL;
 	atomic_set(&mddev->max_corr_read_errors, n);
 	return len;
 }
@@ -4740,11 +4743,21 @@ action_store(struct mddev *mddev, const char *page, size_t len)
 			return -EINVAL;
 		err = mddev_lock(mddev);
 		if (!err) {
-			if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery))
+			if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) {
 				err =  -EBUSY;
-			else {
+			} else if (mddev->reshape_position == MaxSector ||
+				   mddev->pers->check_reshape == NULL ||
+				   mddev->pers->check_reshape(mddev)) {
 				clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery);
 				err = mddev->pers->start_reshape(mddev);
+			} else {
+				/*
+				 * If reshape is still in progress, and
+				 * md_check_recovery() can continue to reshape,
+				 * don't restart reshape because data can be
+				 * corrupted for raid456.
+				 */
+				clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery);
 			}
 			mddev_unlock(mddev);
 		}
drivers/md/raid0.c +54 -8

110 lines not on this page · raw message

drivers/md/raid0.h +1 -0
index 3816e5477db1..8cc761ca7423 100644
@@ -6,6 +6,7 @@ struct strip_zone {
 	sector_t zone_end;	/* Start of the next zone (in sectors) */
 	sector_t dev_start;	/* Zone offset in real dev (in sectors) */
 	int	 nb_dev;	/* # of devices attached to the zone */
+	int	 disk_shift;	/* start disk for the original layout */
 };
 
 /* Linux 3.14 (20d0189b101) made an unintended change to
drivers/md/raid10.c +25 -13
index aee429ab114a..3983d5c8b5cd 100644
@@ -751,8 +751,16 @@ static struct md_rdev *read_balance(struct r10conf *conf,
 		disk = r10_bio->devs[slot].devnum;
 		rdev = rcu_dereference(conf->mirrors[disk].replacement);
 		if (rdev == NULL || test_bit(Faulty, &rdev->flags) ||
-		    r10_bio->devs[slot].addr + sectors > rdev->recovery_offset)
+		    r10_bio->devs[slot].addr + sectors >
+		    rdev->recovery_offset) {
+			/*
+			 * Read replacement first to prevent reading both rdev
+			 * and replacement as NULL during replacement replace
+			 * rdev.
+			 */
+			smp_mb();
 			rdev = rcu_dereference(conf->mirrors[disk].rdev);
+		}
 		if (rdev == NULL ||
 		    test_bit(Faulty, &rdev->flags))
 			continue;
@@ -919,6 +927,7 @@ static void flush_pending_writes(struct r10conf *conf)
 			else
 				generic_make_request(bio);
 			bio = next;
+			cond_resched();
 		}
 		blk_finish_plug(&plug);
 	} else
@@ -1104,6 +1113,7 @@ static void raid10_unplug(struct blk_plug_cb *cb, bool from_schedule)
 		else
 			generic_make_request(bio);
 		bio = next;
+		cond_resched();
 	}
 	kfree(plug);
 }
@@ -1363,9 +1373,15 @@ static void raid10_write_request(struct mddev *mddev, struct bio *bio,
 
 	for (i = 0;  i < conf->copies; i++) {
 		int d = r10_bio->devs[i].devnum;
-		struct md_rdev *rdev = rcu_dereference(conf->mirrors[d].rdev);
-		struct md_rdev *rrdev = rcu_dereference(
-			conf->mirrors[d].replacement);
+		struct md_rdev *rdev, *rrdev;
+
[… more lines in the raw message]

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

drivers/media/usb/dvb-usb-v2/az6007.c +2 -1
index 62ee09f28a0b..7524c90f5da6 100644

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

drivers/media/usb/siano/smsusb.c +2 -1
index 1db232a1063b..0358cd104387 100644

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

drivers/memory/brcmstb_dpfe.c +3 -1
index 6827ed484750..127a9bffdbca 100644

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

drivers/memstick/host/r592.c +1 -3
index dd06c18495eb..0e37c6a5ee36 100644

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

drivers/mfd/intel-lpss-acpi.c +3 -0
index 045cbf0cbe53..993e305a232c 100644

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

drivers/mfd/rt5033.c +0 -3
index 48381d9bf740..302115dabff4 100644

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

drivers/mfd/stmfx.c +1 -1
index 711979afd90a..887c92342b7f 100644

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

drivers/mfd/stmpe.c +2 -2
index 508349399f8a..7f758fb60c1f 100644

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

drivers/misc/fastrpc.c +1 -1
index 10fec109bbd3..9bbbeec4cd02 100644

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

drivers/misc/pci_endpoint_test.c +7 -3
index 1154f0435b0a..478d6118550e 100644

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

drivers/mmc/core/quirks.h +14 -0
index 3dba15bccce2..9a253324c95a 100644

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

drivers/mmc/host/sdhci.c +2 -2
index ae3cbf792d7b..8d97451bbd28 100644

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

drivers/mtd/nand/raw/meson_nand.c +4 -0
index 312738124ea1..8339c020c1a1 100644

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

drivers/net/ethernet/broadcom/bgmac.c +6 -2
index 193722334d93..89a63fdbe0e3 100644

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

drivers/net/ethernet/broadcom/bgmac.h +2 -0
index 40d02fec2747..76930b8353d6 100644

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

drivers/net/ethernet/broadcom/genet/bcmmii.c +2 -0
index ce569b7d3b35..53495d39cc9c 100644

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

drivers/net/ethernet/broadcom/tg3.c +1 -0
index d0cd86af29d9..b16517d162cf 100644

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

drivers/net/ethernet/intel/iavf/iavf_main.c +1 -4
index 838cd7881f2f..9cf556fedc70 100644

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

drivers/net/ethernet/intel/igb/igb_main.c +5 -0
index 00d66a6e5c6e..8c6c0d9c7f76 100644

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

drivers/net/ethernet/intel/igc/igc_ethtool.c +2 -0
index cbcb8611ab50..0a4e7f5f292a 100644

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

drivers/net/ethernet/intel/igc/igc_main.c +0 -1
index b8297a63a7fd..3839ca8bdf6d 100644

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

drivers/net/ethernet/marvell/mvneta.c +2 -2
index 977c2961aa2c..110221a16bf6 100644

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

drivers/net/ethernet/microchip/lan743x_main.c +17 -4
index c69ffcfe6168..6458dbd6c631 100644

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

drivers/net/ethernet/pensando/ionic/ionic_lif.c +26 -31

57 lines not on this page · raw message

drivers/net/ethernet/ti/cpsw_ale.c +19 -5
index e7c24396933e..f17619c545ae 100644

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

drivers/net/gtp.c +2 -0
index d0653babab92..0409afe9a53d 100644

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

drivers/net/ipvlan/ipvlan_core.c +6 -3
index 0a5b5ff597c6..ab09d110760e 100644

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

drivers/net/wireless/ath/ath9k/ar9003_hw.c +18 -9
index 2fe12b0de5b4..dea8a998fb62 100644

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

drivers/net/wireless/ath/ath9k/htc_hst.c +7 -1
index fe62ff668f75..99667aba289d 100644

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

drivers/net/wireless/ath/ath9k/main.c +6 -5
index eb5751a45f26..5968fcec1173 100644

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

drivers/net/wireless/ath/ath9k/wmi.c +4 -0
index deb22b8c2065..ef861b19fd47 100644

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

drivers/net/wireless/atmel/atmel_cs.c +11 -2
index 7afc9c5329fb..f5fa1a95b0c1 100644

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

drivers/net/wireless/cisco/airo.c +4 -1
index da0d3834b5f0..ebf0d3072290 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/ops.c +4 -1
index 5973eecbc037..18c5975d7c03 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/sta.c +1 -1
index a3255100e3fe..7befb92b5159 100644

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

drivers/net/wireless/intersil/orinoco/orinoco_cs.c +11 -2
index a956f965a1e5..03bfd2482656 100644

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

drivers/net/wireless/intersil/orinoco/spectrum_cs.c +11 -2
index b60048c95e0a..011c86e55923 100644

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

drivers/net/wireless/marvell/mwifiex/scan.c +3 -3
index 629af26675cf..1ab04adc53dc 100644

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

drivers/net/wireless/ray_cs.c +19 -17
index 3836d6ac5304..d9c1ac5cb562 100644

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

drivers/net/wireless/rsi/rsi_91x_sdio.c +0 -3
index 4fe837090cda..22b0567ad826 100644

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

drivers/net/wireless/wl3501_cs.c +27 -24

51 lines not on this page · raw message

drivers/ntb/hw/amd/ntb_hw_amd.c +6 -1
index abb37659de34..50983d77329e 100644

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

drivers/ntb/hw/idt/ntb_hw_idt.c +6 -1
index dcf234680535..a0091900b0cf 100644

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

drivers/ntb/hw/intel/ntb_hw_gen1.c +6 -1
index bb57ec239029..8d8739bff9f3 100644

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

drivers/ntb/ntb_transport.c +1 -1
index 00a5d5764993..3cc0e8ebcdd5 100644

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

drivers/ntb/test/ntb_tool.c +2 -0
index 6301aa413c3b..1f6414654622 100644

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

drivers/pci/controller/dwc/pcie-qcom.c +2 -0
index 17f411772f0c..24dbb6968831 100644

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

drivers/pci/controller/pci-ftpci100.c +2 -12
index bf5ece5d9291..88983fd0c1bd 100644

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

drivers/pci/controller/pcie-rockchip-ep.c +24 -41

65 lines not on this page · raw message

drivers/pci/controller/pcie-rockchip.c +17 -0
index c53d1322a3d6..b047437605cb 100644

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

drivers/pci/controller/pcie-rockchip.h +10 -1
index 8e87a059ce73..1c45b3c32151 100644

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

drivers/pci/hotplug/pciehp_ctrl.c +8 -0
index 6503d15effbb..45d0f6370715 100644

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

drivers/pci/pci.c +5 -5
index f8c730b6701b..64c89b23e99f 100644

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

drivers/pci/pcie/aspm.c +12 -9
index 7624c71011c6..d8d27b11b48c 100644

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

drivers/pci/quirks.c +2 -0
index 449d4ed611a6..73260bd21727 100644

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

drivers/pinctrl/intel/pinctrl-cherryview.c +10 -5
index 8f06445a8e39..2b48901f1b2a 100644

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

drivers/pinctrl/pinctrl-amd.c +26 -15

41 lines not on this page · raw message

drivers/pinctrl/pinctrl-amd.h +1 -0
index d4a192df5fab..55ff463bb996 100644

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

drivers/pinctrl/pinctrl-at91-pio4.c +2 -0
index 064b7c3c942a..9c225256e3f4 100644

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

drivers/platform/x86/wmi.c +39 -42

81 lines not on this page · raw message

drivers/powercap/Kconfig +3 -1
index dc1c1381d7fa..61fd5dfaf7a0 100644

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

drivers/powercap/intel_rapl_msr.c +0 -1
index d5487965bdfe..6091e462626a 100644

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

drivers/pwm/pwm-imx-tpm.c +7 -0
index 9145f6160649..85aad55b7a8f 100644

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

drivers/pwm/sysfs.c +17 -0
index 2389b8669846..986f3a29a13d 100644

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

drivers/regulator/core.c +13 -17
index cc9aa95d6969..fe4b666edd03 100644

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

drivers/rtc/rtc-st-lpc.c +1 -1
index 27261b020f8d..2031d042c5e4 100644

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

drivers/scsi/3w-xxxx.c +3 -1
index 2b1e0d503020..75290aabd543 100644

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

drivers/scsi/qedf/qedf_main.c +1 -2
index f864ef059d29..858058f22819 100644

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

drivers/scsi/qla2xxx/qla_attr.c +13 -0
index 59f5dc9876cc..be3525d17fc9 100644

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

drivers/scsi/qla2xxx/qla_bsg.c +6 -0
index ce55121910e8..e584d39dc982 100644

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

drivers/scsi/qla2xxx/qla_def.h +0 -1
index a8272d429075..2ef6277244f5 100644

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

drivers/scsi/qla2xxx/qla_inline.h +4 -1
index 477b0b8a5f4b..c54b987d1f11 100644

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

drivers/scsi/qla2xxx/qla_iocb.c +3 -2
index 103288b0377e..716f46a67bcd 100644

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

drivers/scsi/qla2xxx/qla_nvme.c +0 -3
index ab9dcbd2006c..b67480456f45 100644

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

drivers/soc/fsl/qe/Kconfig +1 -0
index cfa4b2939992..3ed083860764 100644

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

drivers/spi/spi-bcm-qspi.c +3 -7
index d933a6eda5fd..118d9161a788 100644

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

drivers/spi/spi-bcm63xx.c +1 -1
index fdd7eaa0b8ed..ff2759616873 100644

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

drivers/spi/spi-geni-qcom.c +1 -1
index 01b53d816497..ae1cbc321536 100644

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

drivers/tty/serial/8250/8250.h +0 -1
index e50af46f8c19..04bf2b297fdc 100644

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

drivers/tty/serial/8250/8250_omap.c +15 -5
index 928b35b87dcf..a2db055278a1 100644

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

drivers/tty/serial/8250/8250_pci.c +0 -19
index 4a3991ac2dd0..5c7a2145b945 100644

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

drivers/tty/serial/8250/8250_port.c +3 -8
index 96ae6c6031d4..f49f3b017206 100644

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

drivers/tty/serial/atmel_serial.c +2 -2
index 6c0628c58efd..8d0838c904c8 100644

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

drivers/tty/serial/fsl_lpuart.c +1 -0
index 1d0124126eb2..88c835796922 100644

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

drivers/tty/serial/samsung.c +13 -1
index 1df74bad1063..24f9bd910166 100644

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

drivers/usb/core/devio.c +2 -0
index 44922e6381da..087ab2248855 100644

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

drivers/usb/dwc3/dwc3-qcom.c +8 -4
index 2dcdeb52fc29..2d7cfa8825aa 100644

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

drivers/usb/dwc3/gadget.c +3 -1
index 12d8a50d24ba..bda9fd7157e4 100644

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

drivers/usb/phy/phy-tahvo.c +1 -1
index a3e043e3e4aa..d0672b671298 100644

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

drivers/usb/serial/option.c +4 -0
index 7d9f9c0cb2ea..939bcbb5404f 100644

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

drivers/video/fbdev/au1200fb.c +3 -0
index 43a4dddaafd5..d0335d4d5ab5 100644

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

drivers/video/fbdev/imsttfb.c +26 -10
index 5f610d4929dd..9670e5b5fe32 100644

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

drivers/video/fbdev/imxfb.c +2 -2
index ffde3107104b..dbc8808b093a 100644

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

drivers/video/fbdev/omap/lcd_mipid.c +5 -1
index a75ae0c9b14c..d1cd8785d011 100644

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

drivers/w1/w1.c +2 -2
index 2a7970a10533..e08f40c9d54c 100644

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

fs/btrfs/qgroup.c +3 -0
index 353e89efdebf..db8f83ab55f6 100644

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

fs/ceph/caps.c +9 -0
index 7def75d5b00c..243e246cb504 100644

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

fs/dlm/plock.c +3 -1
index a10d2bcfe75a..edce0b25cd90 100644

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

fs/erofs/zdata.c +1 -1
index fdd18c250811..dcc377094f90 100644

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

fs/erofs/zmap.c +1 -5
index b5ee58fdd82f..6553f58fb289 100644

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

fs/ext4/indirect.c +8 -0
index a131d2781342..25532bac7777 100644

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

fs/ext4/inode.c +0 -10
index 51c67418ed02..8a0bca3b653b 100644

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

fs/ext4/mballoc.c +2 -2
index 92c37fbbabc1..be5c2e53b636 100644

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

fs/ext4/namei.c +2 -15
index d3804975e82b..3da931a5c955 100644

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

fs/ext4/xattr.c +14 -0
index 79d13811c5be..cd371ac25f84 100644

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

fs/f2fs/namei.c +1 -15
index 9cb2a87247b2..ed95c27e9302 100644

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

fs/f2fs/node.c +3 -1
index b080d5c58f6c..8256a2dedae8 100644

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

fs/fs_context.c +2 -1
index e492a83fa100..412712eb59ee 100644

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

fs/fuse/dir.c +1 -1
index 34487bf1d791..b2f37809fa9b 100644

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

fs/gfs2/super.c +8 -0
index 9c593fd50c6a..baf0a70460c0 100644

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

fs/inode.c +42 -0

42 lines not on this page · raw message

fs/internal.h +2 -0
index 61aed95f83d1..377f984e9226 100644

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

fs/jffs2/build.c +4 -1
index 837cd55fd4c5..6ae9d6fefb86 100644

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

fs/jffs2/xattr.c +9 -4
index da3e18503c65..acb4492f5970 100644

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

fs/jffs2/xattr.h +2 -2
index 720007b2fd65..1b5030a3349d 100644

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

fs/jfs/jfs_dmap.c +6 -0
index cc1fed285b2d..dac67ee1879b 100644

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

fs/jfs/jfs_filsys.h +2 -0
index b5d702df7111..33ef13a0b110 100644

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

fs/namei.c +15 -10
index d220df830c49..14e600711f50 100644

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

fs/nfs/nfs4proc.c +1 -0
index c54dd49c993c..231da9fadf09 100644

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

fs/nfsd/nfs4xdr.c +1 -1
index a4f2c0cc6a49..ff95a0857472 100644

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

fs/notify/fanotify/fanotify_user.c +20 -2
index 8508ab575017..ec4eadf459ae 100644

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

fs/pstore/ram_core.c +2 -0
index 286340f312dc..73aed51447b9 100644

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

include/drm/drm_panel.h +12 -1
index 624bd15ecfab..ce8da64022b4 100644

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

include/linux/etherdevice.h +12 -0
index 0f1e95240c0c..66b89189a1e2 100644

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

include/linux/netdevice.h +18 -0
index 8dea4b53d664..bf623f0e04d6 100644

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

include/linux/netfilter/nfnetlink.h +27 -0
index 41de4156540a..0518ca72b761 100644

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

include/linux/nmi.h +1 -1
index e972d1ae1ee6..6cb593d9ed08 100644

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

include/linux/pci.h +1 -0
index fc343d123127..1cd5caa567cf 100644

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

include/linux/sched/signal.h +1 -1
index b3f88470cbb5..2f355c3c0d15 100644

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

include/linux/serial_8250.h +0 -1
index bb2bc99388ca..432fdabd00e4 100644

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

include/linux/tcp.h +1 -1
index 89751c89f11f..68dacc199437 100644

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

include/linux/workqueue.h +8 -7
index 4261d1c6e87b..887f0b94d6e9 100644

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

include/net/netfilter/nf_tables.h +14 -0
index a8cc2750990f..7ab13f515749 100644

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

include/net/netns/nftables.h +0 -6
index a1a8d45adb42..8c77832d0240 100644

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

include/net/nfc/nfc.h +2 -2
index 5d277d68fd8d..c55e72474eb2 100644

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

include/net/pkt_sched.h +1 -1
index 2d932834ed5b..fd99650a2e22 100644

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

include/net/sock.h +1 -0
index 87e57f81ee82..ee8630d6abc1 100644

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

include/net/tcp.h +6 -1
index 077feeca6c99..4e909148fce3 100644

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

include/trace/events/timer.h +5 -1
index 295517f109d7..1b5371f0317a 100644

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

include/uapi/linux/affs_hardblocks.h +34 -34

68 lines not on this page · raw message

include/uapi/linux/videodev2.h +1 -1
index 9c89429f3113..895c5ba8b6ac 100644

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

kernel/bpf/bpf_lru_list.c +13 -8
index d99e89f113c4..3dabdd137d10 100644

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

kernel/bpf/bpf_lru_list.h +2 -5
index f02504640e18..41f8fea530c8 100644

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

kernel/kexec_core.c +2 -3
index d65b0fc8fb48..3694d90c3722 100644

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

kernel/sched/fair.c +1 -1
index 9fcba0d2ab19..2680216234ff 100644

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

kernel/time/posix-timers.c +18 -13
index efe3873021a3..f3b8313475ac 100644

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

kernel/trace/ring_buffer.c +15 -9
index c24039c4d75a..afd7f3a51485 100644

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

kernel/trace/trace.c +1 -1
index 219cd2c81936..7f7c700a6156 100644

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

kernel/trace/trace_events_hist.c +6 -3
index 3cb937c17ce0..1ede6d41ab8d 100644

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

kernel/trace/trace_probe_tmpl.h +2 -0
index e5282828f4a6..29348874ebde 100644

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

kernel/watchdog_hld.c +3 -3
index 247bf0b1582c..1e8a49dc956e 100644

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

kernel/workqueue.c +8 -5
index dd96391b44de..856188b0681a 100644

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

lib/debugobjects.c +9 -0
index 26fa04335537..b0e4301d7495 100644

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

lib/ts_bm.c +3 -1
index b352903c50e3..0a22ae48af61 100644

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

net/bridge/br_if.c +3 -2
index e2a999890d05..6b650dfc084d 100644

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

net/can/bcm.c +6 -6
index 23c7d5f896bd..5cb4b6129263 100644

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

net/core/devlink.c +4 -1
index 2dd354d869cd..b4dabe5d89f7 100644

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

net/core/rtnetlink.c +55 -49

104 lines not on this page · raw message

net/core/sock.c +14 -3
index 5e1dccbd61a6..d55eea5538bc 100644

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

net/dsa/tag_sja1105.c +2 -2
index 12f3ce52e62e..836a75030a52 100644

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

net/ipv4/inet_hashtables.c +2 -15
index 9d14b3289f00..e4f2790fd641 100644

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

net/ipv4/inet_timewait_sock.c +4 -4
index a00102d7c7fd..c411c87ae865 100644

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

net/ipv4/tcp.c +16 -15
index fdf2ddc4864d..647cb664c2ad 100644

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

net/ipv4/tcp_fastopen.c +4 -2
index 21705b2ddaff..35088cd30840 100644

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

net/ipv4/tcp_input.c +9 -3
index 44398317f033..8308c3c3a6e4 100644

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

net/ipv6/addrconf.c +1 -2
index a0123760fb2c..46e3c939958b 100644

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

net/ipv6/icmp.c +4 -1
index 3db10cae7b17..169467b5c98a 100644

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

net/ipv6/ip6_gre.c +2 -1
index 0977137b00dc..2d34bd98fcce 100644

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

net/ipv6/udp.c +1 -1
index 797d45ceb2c7..93eb62221975 100644

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

net/llc/llc_input.c +0 -3
index 82cb93f66b9b..f9e801cc50f5 100644

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

net/netfilter/ipset/ip_set_core.c +3 -14
index e3c14f8890a8..1cf143f5df2e 100644

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

net/netfilter/nf_conntrack_helper.c +4 -0
index 118f415928ae..32cc91f5ba99 100644

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

net/netfilter/nf_conntrack_netlink.c +21 -56

77 lines not on this page · raw message

net/netfilter/nf_conntrack_proto_dccp.c +49 -3

52 lines not on this page · raw message

net/netfilter/nf_conntrack_sip.c +1 -1
index 78fd9122b70c..751df19fe0f8 100644

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

net/netfilter/nf_tables_api.c +301 -212

513 lines not on this page · raw message

net/netfilter/nf_tables_offload.c +18 -11
index 2d3bc22c855c..1e691eff1c40 100644

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

net/netfilter/nf_tables_trace.c +2 -7
index 87b36da5cd98..0cf3278007ba 100644

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

net/netfilter/nfnetlink_acct.c +3 -8
index 2481470dec36..4b46421c5e17 100644

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

net/netfilter/nfnetlink_cthelper.c +3 -8
index 3d5fc07b2530..cb9c2e955996 100644

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

net/netfilter/nfnetlink_cttimeout.c +6 -16
index da915c224a82..a854e1560cc1 100644

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

net/netfilter/nfnetlink_log.c +3 -8
index 33c13edbca4b..f087baa95b07 100644

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

net/netfilter/nfnetlink_queue.c +4 -8
index ad88904ee3f9..772f8c69818c 100644

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

net/netfilter/nft_byteorder.c +7 -7
index 9d5947ab8d4e..7b0b8fecb220 100644

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

net/netfilter/nft_chain_filter.c +8 -3
index b5d5d071d765..04824d7dcc22 100644

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

net/netfilter/nft_compat.c +3 -8
index bbe03b9a03b1..1c975e1d3fea 100644

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

net/netfilter/nft_dynset.c +5 -1
index 9f064f7b31d6..8aca2fdc0664 100644

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

net/netlink/af_netlink.c +3 -2
index bf7e300e8c25..29eabd45b832 100644

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

net/netlink/diag.c +4 -3
index c6255eac305c..e4f21b1067bc 100644

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

net/nfc/core.c +2 -2
index 2d4729d1f0eb..fef112fb4993 100644

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

net/nfc/hci/llc_shdlc.c +5 -5
index 0eb4ddc056e7..02909e3e91ef 100644

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

net/nfc/llcp.h +4 -5
index 97853c9cefc7..a81893bc06ce 100644

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

net/nfc/llcp_commands.c +35 -24

59 lines not on this page · raw message

net/nfc/llcp_core.c +66 -27

93 lines not on this page · raw message

net/nfc/llcp_sock.c +12 -9
index bd2174699af9..aea337d81702 100644

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

net/nfc/netlink.c +15 -5
index 66ab97131fd2..5b55466fe315 100644

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

net/nfc/nfc.h +2 -1
index 889fefd64e56..0b1e6466f4fb 100644

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

net/sched/act_pedit.c +1 -0
index f095a0fb75c6..bf74f3f4c752 100644

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

net/sched/cls_flower.c +28 -8
index f21c97f02d36..c92318f68f92 100644

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

net/sched/cls_fw.c +5 -5
index ec945294626a..41f0898a5a56 100644

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

net/sctp/socket.c +2 -2
index bf3fed5b91d2..7cff1a031f76 100644

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

net/sunrpc/svcsock.c +13 -14
index d52abde51f1b..aeb0b3e48ad5 100644

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

net/wireless/scan.c +124 -89

213 lines not on this page · raw message

net/wireless/wext-core.c +6 -0
index 76a80a41615b..a57f54bc0e1a 100644

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

net/xdp/xsk.c +5 -0
index 2bc0d6e3e124..d04a2345bc3f 100644

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

samples/bpf/tcp_basertt_kern.c +1 -1
index 9dba48c2b920..66dd58f78d52 100644

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

scripts/mod/modpost.c +22 -4
index e5aeaf72dcdb..53e276bb24ac 100644

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

scripts/tags.sh +8 -1
index 4e18ae5282a6..f667527ddff5 100755

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

security/integrity/evm/evm_main.c +2 -0
index b82291d10e73..cc7e4e4439b0 100644

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

security/integrity/iint.c +9 -6
index 0b9cb639a0ed..ff37143000b4 100644

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

security/integrity/ima/ima_modsig.c +3 -0
index d106885cc495..5fb971efc6e1 100644

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

security/integrity/ima/ima_policy.c +2 -1
index 6df0436462ab..e749403f07a8 100644

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

sound/core/jack.c +7 -8
index e7ac82d46821..c2022b13fddc 100644

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

sound/pci/ac97/ac97_codec.c +2 -2
index 83bb086bf975..b920c739d686 100644

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

sound/soc/codecs/es8316.c +14 -9
index efeffa0bf2d7..131f41cccbe6 100644

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

sound/soc/fsl/imx-audmix.c +9 -0
index 71590ca6394b..08c044a72250 100644

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

tools/perf/tests/shell/test_uprobe_from_different_cu.sh new file +77 -0

77 lines not on this page · raw message

tools/perf/util/dwarf-aux.c +1 -1
index f1e2f566ce6f..1d51aa88f4cb 100644

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

tools/testing/selftests/net/rtnetlink.sh +1 -0
index 911c549f186f..3b929e031f59 100755

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

tools/testing/selftests/tc-testing/settings new file +1 -0
new file mode 100644
index 000000000000..e2206265f67c

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.