Skip to contentSkip to conversation

Linux 4.14.168

DISCUSSION Greg KH 1 participant 2 messages Jan 27, 2020 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.14.168 kernel.

All users of the 4.14 kernel series must upgrade.

The updated 4.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.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

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

 Makefile                                                      |    6 
 arch/arm/boot/dts/lpc3250-phy3250.dts                         |    4 
 arch/arm/boot/dts/lpc32xx.dtsi                                |   10 
 arch/arm/boot/dts/ls1021a-twr.dts                             |    9 
 arch/arm/boot/dts/ls1021a.dtsi                                |   11 
 arch/arm/boot/dts/stm32h743i-eval.dts                         |    1 
 arch/arm/boot/dts/sun8i-h3-beelink-x2.dts                     |    4 
 arch/arm/common/mcpm_entry.c                                  |    2 
 arch/arm/include/asm/suspend.h                                |    1 
 arch/arm/kernel/hyp-stub.S                                    |    4 
 arch/arm/kernel/sleep.S                                       |   12 
 arch/arm/mach-omap2/omap_hwmod.c                              |    2 
 arch/arm/mach-rpc/irq.c                                       |    3 
 arch/arm/plat-pxa/ssp.c                                       |    6 
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi                 |    3 
 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts  |    1 
 arch/arm64/boot/dts/arm/juno-clocks.dtsi                      |    4 
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi                     |    2 
 arch/m68k/amiga/cia.c                                         |    9 
 arch/m68k/atari/ataints.c                                     |    4 
 arch/m68k/atari/time.c                                        |   15 -
 arch/m68k/bvme6000/config.c                                   |   20 -
 arch/m68k/hp300/time.c                                        |   10 
 arch/m68k/mac/via.c                                           |  119 ++++----
 arch/m68k/mvme147/config.c                                    |   18 -
 arch/m68k/mvme16x/config.c                                    |   21 -
 arch/m68k/q40/q40ints.c                                       |   19 -
 arch/m68k/sun3/sun3ints.c                                     |    3 
 arch/m68k/sun3x/time.c                                        |   16 -
 arch/mips/bcm63xx/Makefile                                    |    6 
 arch/mips/bcm63xx/boards/board_bcm963xx.c                     |   20 -
 arch/mips/bcm63xx/dev-dsp.c                                   |   56 ---
 arch/mips/include/asm/io.h                                    |   14 
 arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_dsp.h          |   14 
 arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h           |    5 
 arch/mips/kernel/setup.c                                      |    2 
 arch/nios2/kernel/nios2_ksyms.c                               |   12 
 arch/powerpc/Makefile                                         |    2 
 arch/powerpc/include/asm/archrandom.h                         |    2 
 arch/powerpc/kernel/cacheinfo.c                               |   21 +
 arch/powerpc/kernel/cacheinfo.h                               |    4 
 arch/powerpc/kernel/dt_cpu_ftrs.c                             |   17 -
 arch/powerpc/kvm/book3s_64_vio.c                              |    1 
 arch/powerpc/mm/dump_hashpagetable.c                          |    2 
 arch/powerpc/platforms/pseries/mobility.c                     |   10 
 arch/x86/Kconfig.debug                                        |    2 
 arch/x86/kernel/kgdb.c                                        |    2 
 arch/x86/mm/tlb.c                                             |    3 
 block/blk-merge.c                                             |    8 
 crypto/pcrypt.c                                               |    2 
 crypto/tgr192.c                                               |    6 
 drivers/ata/libahci.c                                         |    1 
 drivers/base/core.c                                           |   20 -
 drivers/base/power/wakeup.c                                   |    2 
 drivers/bcma/driver_pci.c                                     |    4 
 drivers/block/drbd/drbd_main.c                                |    2 
 drivers/clk/clk-highbank.c                                    |    1 
 drivers/clk/clk-qoriq.c                                       |    1 
 drivers/clk/imx/clk-imx6q.c                                   |    1 
 drivers/clk/imx/clk-imx6sx.c                                  |    1 
 drivers/clk/imx/clk-imx7d.c                                   |    1 
 drivers/clk/imx/clk-vf610.c                                   |    1 
 drivers/clk/mvebu/armada-370.c                                |    4 
 drivers/clk/mvebu/armada-xp.c                                 |    4 
 drivers/clk/mvebu/dove.c                                      |    8 
 drivers/clk/mvebu/kirkwood.c                                  |    2 
 drivers/clk/mvebu/mv98dx3236.c                                |    4 
 drivers/clk/qcom/gcc-msm8996.c                                |   36 --
 drivers/clk/samsung/clk-exynos4.c                             |    1 
 drivers/clk/socfpga/clk-pll-a10.c                             |    1 
 drivers/clk/socfpga/clk-pll.c                                 |    1 
 drivers/clk/sunxi-ng/ccu-sun8i-a23.c                          |    2 
 drivers/clk/sunxi-ng/ccu-sun8i-v3s.c                          |   19 +
 drivers/clk/sunxi-ng/ccu-sun8i-v3s.h                          |    6 
 drivers/clocksource/exynos_mct.c                              |   14 
 drivers/clocksource/timer-sun5i.c                             |   10 
 drivers/cpufreq/brcmstb-avs-cpufreq.c                         |   12 
 drivers/crypto/amcc/crypto4xx_trng.h                          |    4 
 drivers/crypto/bcm/cipher.c                                   |    6 
 drivers/crypto/caam/caamrng.c                                 |    5 
 drivers/crypto/caam/error.c                                   |    2 
 drivers/crypto/ccp/ccp-crypto-aes.c                           |    8 
 drivers/crypto/ccp/ccp-ops.c                                  |   67 ++--
 drivers/crypto/sunxi-ss/sun4i-ss-hash.c                       |   21 -
 drivers/dma/dma-axi-dmac.c                                    |    2 
 drivers/dma/dw/platform.c                                     |   14 
 drivers/dma/edma.c                                            |    6 
 drivers/dma/hsu/hsu.c                                         |    4 
 drivers/dma/imx-sdma.c                                        |    8 
 drivers/dma/mv_xor.c                                          |    2 
 drivers/dma/tegra210-adma.c                                   |   72 ++++
 drivers/edac/edac_mc.c                                        |   12 
 drivers/gpu/drm/drm_dp_mst_topology.c                         |   15 -
 drivers/gpu/drm/etnaviv/etnaviv_dump.c                        |    2 
 drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c                   |    2 
 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c             |    1 
 drivers/gpu/drm/msm/adreno/a3xx_gpu.c                         |   24 -
 drivers/gpu/drm/msm/dsi/dsi_host.c                            |    6 
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c                       |    2 
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c                |    2 
 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/memx.c                |    4 
 drivers/gpu/drm/radeon/cik.c                                  |    4 
 drivers/gpu/drm/radeon/r600.c                                 |    4 
 drivers/gpu/drm/radeon/si.c                                   |    4 
 drivers/gpu/drm/shmobile/shmob_drm_drv.c                      |    4 
 drivers/gpu/drm/sti/sti_hda.c                                 |    1 
 drivers/gpu/drm/sti/sti_hdmi.c                                |    1 
 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c                   |    2 
 drivers/gpu/drm/virtio/virtgpu_vq.c                           |    5 
 drivers/hwmon/lm75.c                                          |    2 
 drivers/hwmon/pmbus/tps53679.c                                |    9 
 drivers/hwmon/shtc1.c                                         |    2 
 drivers/hwmon/w83627hf.c                                      |   42 ++
 drivers/iio/dac/ad5380.c                                      |    2 
 drivers/infiniband/core/cma.c                                 |    2 
 drivers/infiniband/hw/cxgb4/cm.c                              |   24 -
 drivers/infiniband/hw/hfi1/chip.c                             |   26 +
 drivers/infiniband/hw/hns/hns_roce_qp.c                       |    1 
 drivers/infiniband/hw/mlx5/qp.c                               |   21 +
 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c                   |    2 
 drivers/infiniband/hw/qedr/verbs.c                            |   27 -
 drivers/infiniband/hw/usnic/usnic_ib_verbs.c                  |    2 
 drivers/infiniband/sw/rxe/rxe_cq.c                            |    4 
 drivers/infiniband/sw/rxe/rxe_pool.c                          |   26 -
 drivers/infiniband/sw/rxe/rxe_qp.c                            |    5 
 drivers/infiniband/ulp/iser/iscsi_iser.h                      |    2 
 drivers/infiniband/ulp/iser/iser_memory.c                     |   10 
 drivers/input/keyboard/nomadik-ske-keypad.c                   |    2 
 drivers/iommu/amd_iommu.c                                     |    2 
 drivers/iommu/amd_iommu_init.c                                |    3 
 drivers/iommu/intel-iommu.c                                   |   39 +-
 drivers/iommu/iommu.c                                         |    6 
 drivers/iommu/mtk_iommu.c                                     |   26 +
 drivers/lightnvm/pblk-rb.c                                    |    2 
 drivers/media/i2c/ov2659.c                                    |    2 
 drivers/media/pci/cx18/cx18-fileops.c                         |    2 
 drivers/media/pci/cx23885/cx23885-dvb.c                       |    5 
 drivers/media/pci/ivtv/ivtv-fileops.c                         |    2 
 drivers/media/pci/tw5864/tw5864-video.c                       |    4 
 drivers/media/platform/atmel/atmel-isi.c                      |    2 
 drivers/media/platform/davinci/isif.c                         |    9 
 drivers/media/platform/davinci/vpbe.c                         |    2 
 drivers/media/platform/omap/omap_vout.c                       |   15 -
 drivers/media/platform/s5p-jpeg/jpeg-core.c                   |    2 
 drivers/media/platform/vivid/vivid-osd.c                      |    2 
 drivers/media/radio/wl128x/fmdrv_common.c                     |    5 
 drivers/mfd/intel-lpss-pci.c                                  |   28 +
 drivers/mfd/intel-lpss.c                                      |    1 
 drivers/misc/mic/card/mic_x100.c                              |   28 -
 drivers/misc/sgi-xp/xpc_partition.c                           |    2 
 drivers/mmc/core/host.c                                       |    2 
 drivers/mmc/core/quirks.h                                     |    7 
 drivers/mmc/host/sdhci-brcmstb.c                              |    4 
 drivers/net/dsa/qca8k.c                                       |   12 
 drivers/net/dsa/qca8k.h                                       |    1 
 drivers/net/ethernet/amazon/ena/ena_com.c                     |    3 
 drivers/net/ethernet/amazon/ena/ena_ethtool.c                 |    4 
 drivers/net/ethernet/amazon/ena/ena_netdev.c                  |    1 
 drivers/net/ethernet/aquantia/atlantic/aq_vec.c               |   15 -
 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c     |    4 
 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c     |    4 
 drivers/net/ethernet/broadcom/bcmsysport.c                    |    2 
 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c             |   18 -
 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c                 |    2 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h       |    2 
 drivers/net/ethernet/ibm/ehea/ehea_main.c                     |    2 
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c                 |   16 -
 drivers/net/ethernet/mellanox/mlx5/core/qp.c                  |    5 
 drivers/net/ethernet/mellanox/mlxsw/reg.h                     |   22 +
 drivers/net/ethernet/natsemi/sonic.c                          |    6 
 drivers/net/ethernet/pasemi/pasemi_mac.c                      |    2 
 drivers/net/ethernet/qlogic/qed/qed_iwarp.c                   |   16 -
 drivers/net/ethernet/qlogic/qed/qed_l2.c                      |   34 +-
 drivers/net/ethernet/qualcomm/qca_spi.c                       |    9 
 drivers/net/ethernet/qualcomm/qca_spi.h                       |    1 
 drivers/net/ethernet/renesas/sh_eth.c                         |    6 
 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c           |    2 
 drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c           |    2 
 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c             |    2 
 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c              |    2 
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c             |    2 
 drivers/net/hyperv/netvsc_drv.c                               |   13 
 drivers/net/phy/fixed_phy.c                                   |    6 
 drivers/net/phy/phy_device.c                                  |   11 
 drivers/net/vxlan.c                                           |    7 
 drivers/net/wireless/ath/ath10k/sdio.c                        |   29 +-
 drivers/net/wireless/ath/ath9k/dynack.c                       |    8 
 drivers/net/wireless/intel/iwlwifi/mvm/fw.c                   |   12 
 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c                 |    2 
 drivers/net/wireless/intel/iwlwifi/mvm/sta.c                  |   19 -
 drivers/net/wireless/marvell/libertas_tf/cmd.c                |    2 
 drivers/net/wireless/mediatek/mt7601u/phy.c                   |    2 
 drivers/ntb/hw/idt/ntb_hw_idt.c                               |    8 
 drivers/nvme/host/pci.c                                       |    2 
 drivers/nvmem/imx-ocotp.c                                     |    3 
 drivers/of/of_mdio.c                                          |    2 
 drivers/pci/endpoint/functions/pci-epf-test.c                 |    4 
 drivers/pci/host/pcie-iproc.c                                 |    8 
 drivers/pci/switch/switchtec.c                                |    4 
 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c                      |   96 +++++-
 drivers/pinctrl/sh-pfc/pfc-emev2.c                            |   20 +
 drivers/pinctrl/sh-pfc/pfc-r8a7740.c                          |    3 
 drivers/pinctrl/sh-pfc/pfc-r8a7791.c                          |    8 
 drivers/pinctrl/sh-pfc/pfc-r8a7792.c                          |    1 
 drivers/pinctrl/sh-pfc/pfc-r8a7794.c                          |    2 
 drivers/pinctrl/sh-pfc/pfc-r8a77995.c                         |    8 
 drivers/pinctrl/sh-pfc/pfc-sh7269.c                           |    2 
 drivers/pinctrl/sh-pfc/pfc-sh73a0.c                           |    4 
 drivers/pinctrl/sh-pfc/pfc-sh7734.c                           |    4 
 drivers/platform/mips/cpu_hwmon.c                             |    2 
 drivers/platform/x86/alienware-wmi.c                          |   19 -
 drivers/platform/x86/wmi.c                                    |    3 
 drivers/power/supply/power_supply_core.c                      |   10 
 drivers/pwm/pwm-lpss.c                                        |    6 
 drivers/pwm/pwm-meson.c                                       |    9 
 drivers/rapidio/rio_cm.c                                      |    4 
 drivers/regulator/lp87565-regulator.c                         |    2 
 drivers/regulator/pv88060-regulator.c                         |    2 
 drivers/regulator/pv88080-regulator.c                         |    2 
 drivers/regulator/pv88090-regulator.c                         |    2 
 drivers/regulator/tps65086-regulator.c                        |    4 
 drivers/regulator/wm831x-dcdc.c                               |    4 
 drivers/rtc/rtc-88pm80x.c                                     |   21 -
 drivers/rtc/rtc-88pm860x.c                                    |   21 -
 drivers/rtc/rtc-ds1307.c                                      |    7 
 drivers/rtc/rtc-ds1672.c                                      |    3 
 drivers/rtc/rtc-mc146818-lib.c                                |    2 
 drivers/rtc/rtc-pcf2127.c                                     |   32 --
 drivers/rtc/rtc-pcf8563.c                                     |   13 
 drivers/rtc/rtc-pm8xxx.c                                      |    6 
 drivers/scsi/fnic/fnic_isr.c                                  |    4 
 drivers/scsi/libfc/fc_exch.c                                  |    2 
 drivers/scsi/megaraid/megaraid_sas_base.c                     |    4 
 drivers/scsi/qla2xxx/qla_os.c                                 |   34 +-
 drivers/scsi/qla2xxx/qla_target.c                             |   14 
 drivers/soc/fsl/qe/gpio.c                                     |    4 
 drivers/spi/spi-bcm2835aux.c                                  |   13 
 drivers/spi/spi-cadence.c                                     |   11 
 drivers/spi/spi-fsl-spi.c                                     |    2 
 drivers/spi/spi-tegra114.c                                    |  145 +++++++---
 drivers/spi/spi-topcliff-pch.c                                |    6 
 drivers/staging/comedi/drivers/ni_mio_common.c                |   24 +
 drivers/staging/greybus/light.c                               |   12 
 drivers/staging/most/aim-cdev/cdev.c                          |    5 
 drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_func_88xx.c |    5 
 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c |    9 
 drivers/target/target_core_device.c                           |    4 
 drivers/thermal/cpu_cooling.c                                 |    2 
 drivers/thermal/mtk_thermal.c                                 |    6 
 drivers/tty/ipwireless/hardware.c                             |    2 
 drivers/tty/serial/fsl_lpuart.c                               |   28 -
 drivers/tty/serial/stm32-usart.c                              |  123 ++++----
 drivers/tty/serial/stm32-usart.h                              |   10 
 drivers/uio/uio.c                                             |   10 
 drivers/usb/class/cdc-wdm.c                                   |    2 
 drivers/usb/dwc2/gadget.c                                     |    1 
 drivers/usb/host/xhci-hub.c                                   |    2 
 drivers/usb/phy/Kconfig                                       |    2 
 drivers/usb/phy/phy-twl6030-usb.c                             |    2 
 drivers/vfio/mdev/mdev_core.c                                 |   11 
 drivers/vfio/pci/vfio_pci.c                                   |   19 -
 drivers/video/backlight/lm3630a_bl.c                          |    4 
 drivers/video/fbdev/chipsfb.c                                 |    3 
 drivers/xen/cpu_hotplug.c                                     |    2 
 drivers/xen/pvcalls-back.c                                    |    2 
 fs/affs/super.c                                               |    6 
 fs/afs/super.c                                                |    1 
 fs/afs/xattr.c                                                |    4 
 fs/btrfs/file.c                                               |    3 
 fs/btrfs/inode-map.c                                          |   28 +
 fs/cifs/connect.c                                             |    3 
 fs/exportfs/expfs.c                                           |    1 
 fs/ext4/inline.c                                              |    2 
 fs/jfs/jfs_txnmgr.c                                           |    3 
 fs/nfs/delegation.c                                           |   20 -
 fs/nfs/delegation.h                                           |    1 
 fs/nfs/flexfilelayout/flexfilelayout.h                        |   32 +-
 fs/nfs/pnfs.c                                                 |   33 +-
 fs/nfs/pnfs.h                                                 |    1 
 fs/nfs/super.c                                                |    2 
 fs/nfs/write.c                                                |    2 
 fs/xfs/xfs_quotaops.c                                         |    3 
 include/linux/device.h                                        |    3 
 include/linux/irqchip/arm-gic-v3.h                            |   12 
 include/linux/mlx5/mlx5_ifc.h                                 |    2 
 include/linux/mmc/sdio_ids.h                                  |    2 
 include/linux/platform_data/dma-imx-sdma.h                    |    3 
 include/linux/signal.h                                        |   15 -
 include/media/davinci/vpbe.h                                  |    2 
 include/net/request_sock.h                                    |    4 
 include/net/tcp.h                                             |    2 
 kernel/debug/kdb/kdb_main.c                                   |    2 
 kernel/events/core.c                                          |    3 
 kernel/irq/irqdomain.c                                        |    1 
 kernel/signal.c                                               |    5 
 lib/devres.c                                                  |    3 
 lib/kfifo.c                                                   |    3 
 net/6lowpan/nhc.c                                             |    2 
 net/bridge/netfilter/ebtables.c                               |    4 
 net/core/neighbour.c                                          |    4 
 net/core/sock.c                                               |    4 
 net/ieee802154/6lowpan/reassembly.c                           |    2 
 net/ipv4/inet_connection_sock.c                               |    2 
 net/ipv4/tcp.c                                                |    4 
 net/ipv6/reassembly.c                                         |    2 
 net/iucv/af_iucv.c                                            |   27 +
 net/l2tp/l2tp_core.c                                          |    3 
 net/llc/af_llc.c                                              |   34 +-
 net/llc/llc_conn.c                                            |   35 --
 net/llc/llc_if.c                                              |   12 
 net/mac80211/rc80211_minstrel_ht.c                            |    2 
 net/mac80211/rx.c                                             |   11 
 net/mpls/mpls_iptunnel.c                                      |    2 
 net/netfilter/nft_set_hash.c                                  |   23 +
 net/packet/af_packet.c                                        |   25 +
 net/rds/ib_stats.c                                            |    2 
 net/rds/stats.c                                               |    2 
 net/rxrpc/output.c                                            |    3 
 net/sched/act_mirred.c                                        |    6 
 net/sched/sch_netem.c                                         |   18 -
 net/tipc/link.c                                               |   29 +-
 net/tipc/node.c                                               |    7 
 net/tipc/socket.c                                             |    2 
 net/tipc/sysctl.c                                             |    8 
 security/apparmor/include/context.h                           |    2 
 security/apparmor/lsm.c                                       |    4 
 security/keys/key.c                                           |    1 
 sound/aoa/codecs/onyx.c                                       |    4 
 sound/pci/hda/hda_controller.h                                |    9 
 sound/soc/codecs/cs4349.c                                     |    1 
 sound/soc/codecs/es8328.c                                     |    2 
 sound/soc/codecs/wm8737.c                                     |    2 
 sound/soc/davinci/davinci-mcasp.c                             |   13 
 sound/soc/fsl/imx-sgtl5000.c                                  |    3 
 sound/soc/qcom/apq8016_sbc.c                                  |   21 +
 sound/soc/soc-pcm.c                                           |    4 
 sound/soc/sunxi/sun4i-i2s.c                                   |    4 
 sound/usb/mixer.c                                             |    4 
 sound/usb/quirks-table.h                                      |    9 
 tools/testing/selftests/ipc/msgque.c                          |   11 
 340 files changed, 1946 insertions(+), 1258 deletions(-)

Akinobu Mita (1):
media: ov2659: fix unbalanced mutex_lock/unlock

Alex Estrin (1):
IB/hfi1: Add mtu check for operational data VLs

Alexandre Kroupski (1):
media: atmel: atmel-isi: fix timeout value for stop streaming

Alexandru Ardelean (1):
dmaengine: axi-dmac: Don't check the number of frames for alignment

Alexey Kardashevskiy (1):
KVM: PPC: Release all hardware TCE tables attached to a group

Anders Roxell (1):
ALSA: hda: fix unused variable warning

Andre Przywara (1):
arm64: dts: juno: Fix UART frequency

Andrey Smirnov (1):
tty: serial: fsl_lpuart: Use appropriate lpuart32_* I/O funcs

Andy Shevchenko (4):
dmaengine: hsu: Revert "set HSU_CH_MTSR to memory width"
mfd: intel-lpss: Release IDA resources
dmaengine: dw: platform: Switch to acpi_dma_controller_register()
ahci: Do not export local variable ahci_em_messages

Antonio Borneo (1):
net: stmmac: fix length of PTP clock's name string

Ard Biesheuvel (2):
powerpc/archrandom: fix arch_get_random_seed_int()
nvme: retain split access workaround for capability reads

Arnd Bergmann (7):
jfs: fix bogus variable self-initialization
media: davinci-isif: avoid uninitialized variable use
usb: gadget: fsl: fix link error against usb-gadget module
devres: allow const resource arguments
qed: reduce maximum stack frame size
mic: avoid statically declaring a 'struct device'.
crypto: ccp - Reduce maximum stack usage

Axel Lin (6):
regulator: pv88060: Fix array out-of-bounds access
regulator: pv88080: Fix array out-of-bounds access
regulator: pv88090: Fix array out-of-bounds access
regulator: wm831x-dcdc: Fix list of wm831x_dcdc_ilim from mA to uA
regulator: lp87565: Fix missing register for LP87565_BUCK_0
regulator: tps65086: Fix tps65086_ldoa1_ranges for selector 0xB

Bart Van Assche (4):
scsi: qla2xxx: Unregister chrdev if module initialization fails
scsi: target/core: Fix a race condition in the LUN lookup code
scsi: qla2xxx: Fix a format specifier
scsi: qla2xxx: Avoid that qlt_send_resp_ctio() corrupts memory

Ben Hutchings (1):
powerpc: vdso: Make vdso32 installation conditional in vdso_install

Bichao Zheng (1):
pwm: meson: Don't disable PWM when setting duty repeatedly

Brian Masney (1):
backlight: lm3630a: Return 0 on success in update_status functions

Bruno Thomsen (1):
rtc: pcf2127: bugfix: read rtc disables watchdog

Bryan O'Donoghue (1):
nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing

Charles Keepax (1):
spi: cadence: Correct initialisation of runtime PM

Chen-Yu Tsai (4):
clk: sunxi-ng: sun8i-a23: Enable PLL-MIPI LDOs when ungating it clocksource/drivers/sun5i: Fail gracefully when clock rate is unavailable
rtc: pcf8563: Fix interrupt trigger method
rtc: pcf8563: Clear event flags and disable interrupts before requesting irq

Christophe Leroy (1):
spi: spi-fsl-spi: call spi_finalize_current_message() at the end

Chuhong Yuan (1):
dmaengine: ti: edma: fix missed failure handling

Colin Ian King (14):
pcrypt: use format specifier in kobject_add
staging: most: cdev: add missing check for cdev_add failure
rtc: ds1672: fix unintended sign extension
rtc: 88pm860x: fix unintended sign extension
rtc: 88pm80x: fix unintended sign extension
rtc: pm8xxx: fix unintended sign extension drm/nouveau/bios/ramcfg: fix missing parentheses when calculating RON drm/nouveau/pmu: don't print reply values if exec is false platform/x86: alienware-wmi: fix kfree on potentially uninitialized pointer
media: vivid: fix incorrect assignment operation when setting video mode
scsi: libfc: fix null pointer dereference on a null lport
ext4: set error return correctly when ext4_htree_store_dirent fails
bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA
iio: dac: ad5380: fix incorrect assignment to val

Corentin Labbe (2):
crypto: sun4i-ss - fix big endian issues
crypto: crypto4xx - Fix wrong ppc4xx_trng_probe()/ppc4xx_trng_remove() arguments

Dan Carpenter (23):
drm/virtio: fix bounds check in virtio_gpu_cmd_get_capset()
Input: nomadik-ske-keypad - fix a loop timeout test drm/etnaviv: NULL vs IS_ERR() buf in etnaviv_core_dump() drm/etnaviv: potential NULL dereference drivers/rapidio/rio_cm.c: fix potential oops in riocm_ch_listen() xen, cpu_hotplug: Prevent an out of bounds access
media: ivtv: update *pos correctly in ivtv_read_pos()
media: cx18: update *pos correctly in cx18_read_pos()
media: wl128x: Fix an error code in fm_download_firmware() soc/fsl/qe: Fix an error code in qe_pin_request() 6lowpan: Off by one handling ->nexthdr
media: omap_vout: potential buffer overflow in vidioc_dqbuf()
media: davinci/vpbe: array underflow in vpbe_enum_outputs() platform/x86: alienware-wmi: printing the wrong error code
kdb: do a sanity check on the cpu in kdb_per_cpu()
staging: greybus: light: fix a couple double frees
net: aquantia: Fix aq_vec_isr_legacy() return value
net: hisilicon: Fix signedness bug in hix5hd2_dev_probe()
net: broadcom/bcmsysport: Fix signedness in bcm_sysport_probe()
net: stmmac: dwmac-meson8b: Fix signedness bug in probe
net: axienet: fix a signedness bug in probe
of: mdio: Fix a signedness bug in of_phy_get_and_connect()
net: ethernet: stmmac: Fix signedness bug in ipq806x_gmac_of_parse()

Dan Robertson (1):
hwmon: (shtc1) fix shtc1 and shtw1 id mask

David Howells (3):
keys: Timestamp new keys
afs: Fix the afs.cell and afs.volume xattr handlers
rxrpc: Fix uninitialized error code in rxrpc_send_data_packet()

Dexuan Cui (1):

      irqdomain: Add the missing assignment of domain->fwnode for named fwnode

Eric Auger (2):
vfio_pci: Enable memory accesses before calling pci_map_rom iommu/vt-d: Duplicate iommu_resv_region objects per device list

Eric Biggers (3):
crypto: tgr192 - fix unaligned memory access
llc: fix another potential sk_buff leak in llc_ui_sendmsg()
llc: fix sk_buff refcounting in llc_conn_state_process()

Eric Dumazet (6):
inet: frags: call inet_frags_fini() after unregister_pernet_subsys()
net: avoid possible false sharing in sk_leave_memory_pressure()
net: add {READ|WRITE}_ONCE() annotations on ->rskq_accept_head
tcp: annotate lockless access to tcp_memory_pressure
net: neigh: use long type to store jiffies delta
packet: fix data-race in fanout_flow_is_huge()

Eric W. Biederman (3):
fs/nfs: Fix nfs_parse_devname to not modify it's argument signal/cifs: Fix cifs_put_tcp_session to call send_sig instead of force_sig
signal: Allow cifs and drbd to receive their terminating signals

Eric Wong (1):
rtc: cmos: ignore bogus century byte

Erwan Le Ray (4):
serial: stm32: fix rx error handling
serial: stm32: fix transmit_chars when tx is stopped
serial: stm32: Add support of TC bit status check
serial: stm32: fix wakeup source initialization

Fabrice Gasnier (2):
ARM: dts: stm32: add missing vdda-supply to adc on stm32h743i-eval
serial: stm32: fix clearing interrupt error flags

Felix Fietkau (1):
mac80211: minstrel_ht: fix per-group max throughput rate initialization

Filipe Manana (3):
Btrfs: fix hang when loading existing inode cache off disk
Btrfs: fix inode cache waiters hanging on failure to start caching thread
Btrfs: fix inode cache waiters hanging on path allocation failure

Filippo Sironi (1):
iommu/amd: Wait for completion of IOTLB flush in attach_device

Finn Thain (2):
m68k: mac: Fix VIA timer counter accesses
m68k: Call timer_interrupt() with interrupts disabled

Firo Yang (1):
ixgbe: sync the first fragment unconditionally

Florian Fainelli (2):
cpufreq: brcmstb-avs-cpufreq: Fix initial command check
cpufreq: brcmstb-avs-cpufreq: Fix types for voltage/frequency

Florian Westphal (1):
netfilter: ebtables: CONFIG_COMPAT: reject trailing data after last rule

Gal Pressman (3):
IB/usnic: Fix out of bounds index check in query pkey RDMA/ocrdma: Fix out of bounds index check in query pkey RDMA/qedr: Fix out of bounds index check in query pkey

Geert Uytterhoeven (14):
pinctrl: sh-pfc: r8a7740: Add missing REF125CK pin to gether_gmii group
pinctrl: sh-pfc: r8a7740: Add missing LCD0 marks to lcd0_data24_1 group
pinctrl: sh-pfc: r8a7791: Remove bogus ctrl marks from qspi_data4_b group
pinctrl: sh-pfc: r8a7791: Remove bogus marks from vin1_b_data18 group
pinctrl: sh-pfc: sh73a0: Add missing TO pin to tpu4_to3 group
pinctrl: sh-pfc: r8a7794: Remove bogus IPSR9 field
pinctrl: sh-pfc: sh7734: Add missing IPSR11 field
pinctrl: sh-pfc: r8a77995: Remove bogus SEL_PWM[0-3]_3 configurations
pinctrl: sh-pfc: sh7269: Add missing PCIOR0 field
pinctrl: sh-pfc: sh7734: Remove bogus IPSR10 value
pinctrl: sh-pfc: emev2: Add missing pinmux functions
pinctrl: sh-pfc: r8a7791: Fix scifb2_data_c pin group
pinctrl: sh-pfc: r8a7792: Fix vin1_data18_b pin group
pinctrl: sh-pfc: sh73a0: Fix fsic_spdif pin groups

George Wilkie (1):
mpls: fix warning with multi-label encap

Gerd Rausch (2):
net/rds: Add a few missing rds_stat_names entries net/rds: Fix 'ib_evt_handler_call' element in 'rds_ib_stat_names'

Govindarajulu Varadarajan (1):
scsi: fnic: fix msix interrupt allocation

Greg Kroah-Hartman (1):

      Linux 4.14.168

Guenter Roeck (3):
nios2: ksyms: Add missing symbol exports
hwmon: (w83627hf) Use request_muxed_region for Super-IO accesses
hwmon: (lm75) Fix write operations for negative temperatures

Gustavo A. R. Silva (1):
NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks

H. Nikolaus Schaller (2):
mmc: sdio: fix wl1251 vendor id
mmc: core: fix wl1251 sdio quirks

Hans de Goede (1):
pwm: lpss: Release runtime-pm reference from the driver's remove callback

Hongbo Yao (1):
irqchip/gic-v3-its: fix some definitions of inner cacheability attributes

Hook, Gary (2):
crypto: ccp - fix AES CFB error exposed by new test vectors
crypto: ccp - Fix 3DES complaint from ccp-crypto module

Håkon Bugge (1):
RDMA/cma: Fix false error message

Icenowy Zheng (1):
clk: sunxi-ng: v3s: add the missing PLL_DDR1

Igor Konopko (1):
lightnvm: pblk: fix lock order in pblk_rb_tear_down_check

Igor Russkikh (1):
net: aquantia: fixed instack structure overflow

Israel Rukshin (1):
IB/iser: Pass the correct number of entries for dma mapped SGL

Iuliana Prodan (2):
crypto: caam - fix caam_dump_sg that iterates through scatterlist
crypto: caam - free resources in case caam_rng registration failed

Jack Morgenstein (1):
IB/mlx5: Add missing XRC options to QP optional params mask

Jakub Kicinski (3):
net: netem: fix backlog accounting for corrupted GSO frames
net: netem: fix error path for corrupted GSO frames
net: netem: correct the parent's backlog when corrupted packet was dropped

Jan Kara (1):
xfs: Sanity check flags of Q_XQUOTARM call

Jann Horn (1):
apparmor: don't try to replace stale label in ptrace access check

Jarkko Nikula (1):
mfd: intel-lpss: Add default I2C device properties for Gemini Lake

Jeffrey Hugo (2):
drm/msm/mdp5: Fix mdp5_cfg_init error return drm/msm/dsi: Implement reset correctly

Jernej Skrabec (1):
ARM: dts: sun8i-h3: Fix wifi in Beelink X2 DT

Jerome Brunet (2):
ASoC: fix valid stream condition
arm64: dts: meson: libretech-cc: set eMMC as removable

Jie Liu (1):
tipc: set sysctl_tipc_rmem and named_timeout right range

Jitendra Bhivare (1):
PCI: iproc: Remove PAXC slot check to allow VF support

Johannes Berg (3):
iwlwifi: mvm: fix A-MPDU reference assignment
ALSA: aoa: onyx: always initialize register read value
mac80211: accept deauth frames in IBSS mode

John Garry (1):
drm/hisilicon: hibmc: Don't overwrite fb helper surface depth

Jon Hunter (1):
dmaengine: tegra210-adma: Fix crash during probe

Jon Maloy (2):
tipc: tipc clang warning
tipc: reduce risk of wakeup queue starvation

Jonas Gorski (1):
MIPS: BCM63XX: drop unused and broken DSP platform device

Jose Abreu (1):
net: stmmac: gmac4+: Not all Unicast addresses may be available

Julian Wiedmann (1):
net/af_iucv: always register net_device notifier

Kangjie Lu (1):
net: sh_eth: fix a missing check of of_get_phy_mode

Kees Cook (1):
selftests/ipc: Fix msgque compiler warnings

Kelvin Cao (1):
switchtec: Remove immediate status check after submitting MRPC command

Kevin Mitchell (1):
iommu/amd: Make iommu_disable safer

Li Jin (1):
pinctrl: iproc-gpio: Fix incorrect pinconf configurations

Linus Torvalds (1):
Partially revert "kfifo: fix kfifo_alloc() and kfifo_init()"

Liu Jian (2):
driver: uio: fix possible memory leak in __uio_register_device
driver: uio: fix possible use-after-free in __uio_register_device

Loic Poulain (1):
arm64: dts: apq8016-sbc: Increase load on l11 for SDCARD

Lorenzo Bianconi (2):
mt7601u: fix bbp version check in mt7601u_wait_bbp_ready
ath9k: dynack: fix possible deadlock in ath_dynack_node_{de}init

Lu Baolu (2):
iommu/vt-d: Make kernel parameter igfx_off work with vIOMMU
iommu: Use right function to get group for device

Lyude Paul (1):
drm/dp_mst: Skip validating ports during destruction, just ref

Mao Wenan (2):
net: sonic: return NETDEV_TX_OK if failed to map buffer
net: sonic: replace dev_kfree_skb in sonic_send_packet

Marc Dionne (1):
afs: Fix large file support

Marek Szyprowski (2):
clocksource/drivers/exynos_mct: Fix error path in timer resources initialization
ARM: 8847/1: pm: fix HYP/SVC mode mismatch when MCPM is used

Mark Zhang (1):
net/mlx5: Fix mlx5_ifc_query_lag_out_bits

Martin Blumenstingl (1):
pwm: meson: Consider 128 a valid pre-divider

Martin Sperl (1):

      spi: bcm2835aux: fix driver to not allow 65535 (=-1) cs-gpios

Masahiro Yamada (1):
kbuild: mark prepare0 as PHONY to fix external module build

Masami Hiramatsu (1):
x86, perf: Fix the dependency of the x86 insn decoder selftest

Matthias Kaehlcke (1):
thermal: cpu_cooling: Actually trace CPU load in thermal_power_cpu_get_power

Mattias Jacobsson (1):
platform/x86: wmi: fix potential null pointer dereference

Max Gurtovoy (1):
IB/iser: Fix dma_nents type definition

Maxime Ripard (3):
drm/sun4i: hdmi: Fix double flag assignation
arm64: dts: allwinner: a64: Add missing PIO clocks
ASoC: sun4i-i2s: RX and TX counter registers are swapped

Michael Chan (1):
bnxt_en: Fix ethtool selftest crash under error conditions.

Michael Ellerman (1):
powerpc/64s: Fix logic when handling unknown CPU features

Michael Kao (1):
thermal: mediatek: fix register index error

Michal Kalderon (1):

      qed: iWARP - Use READ_ONCE and smp_store_release to access ep->state

Minas Harutyunyan (1):
dwc2: gadget: Fix completed transfer size calculation in DDMA

Ming Lei (1):

      block: don't use bio->bi_vcnt to figure out segment number

Moni Shoua (1):
net/mlx5: Take lock with IRQs disabled to avoid deadlock

Mordechay Goodstein (1):
iwlwifi: mvm: avoid possible access out of array.

Moritz Fischer (1):
net: phy: fixed_phy: Fix fixed_phy not checking GPIO

Nathan Chancellor (2):
staging: rtlwifi: Use proper enum for return in halmac_parse_psd_data_88xx
misc: sgi-xp: Properly initialize buf in xpc_get_rsvd_page_pa

Nathan Huckleberry (1):
clk: qcom: Fix -Wunused-const-variable

Nathan Lynch (2):
powerpc/cacheinfo: add cacheinfo_teardown, cacheinfo_rebuild powerpc/pseries/mobility: rebuild cacheinfo hierarchy post-migration

Navid Emamdoost (1):
affs: fix a memory leak in affs_remount

Nicholas Mc Guire (2):
staging: r8822be: check kzalloc return or bail
media: cx23885: check allocation return

Nick Desaulniers (1):
mips: avoid explicit UB in assignment of mips_io_port_base

Nicolas Boichat (1):
ath10k: adjust skb length in ath10k_sdio_mbox_rx_packet

Nicolas Huaman (1):
ALSA: usb-audio: update quirk for B&W PX to remove microphone

Omar Sandoval (1):
btrfs: use correct count in btrfs_file_write_iter()

Pablo Neira Ayuso (1):
netfilter: nft_set_hash: fix lookups with fixed size hash on big endian

Pan Bian (1):
mmc: core: fix possible use after free of host

Parav Pandit (2):
vfio/mdev: Avoid release parent reference during error path vfio/mdev: Fix aborting mdev child device removal if one fails

Pawe? Chmiel (1):
media: s5p-jpeg: Correct step and max values for V4L2_CID_JPEG_RESTART_INTERVAL

Peter Rosin (1):
drm/sti: do not remove the drm_bridge that was never added

Peter Ujfalusi (1):
ASoC: ti: davinci-mcasp: Fix slot mask settings when using multiple AXRs

Petr Machata (2):
mlxsw: reg: QEEC: Add minimum shaper fields
vxlan: changelink: Fix handling of default remotes

Qian Cai (1):
x86/mm: Remove unused variable 'cpu'

Rafael J. Wysocki (2):
driver core: Do not resume suppliers under device_links_write_lock()
PM: sleep: Fix possible overflow in pm_system_cancel_wakeup()

Raju Rangoju (1):
RDMA/iw_cxgb4: Fix the unchecked ep dereference

Rashmica Gupta (1):
powerpc/mm: Check secondary hash page table

Ravi Bangoria (1):
perf/ioctl: Add check for the sample_period value

Rob Clark (1):
drm/msm/a3xx: remove TPL1 regs from snapshot

Robert Richter (1):
EDAC/mc: Fix edac_mc_find() in case no device is found

Robin Gong (1):
dmaengine: imx-sdma: fix size check for sdma script_number

Robin Murphy (1):
dmaengine: mv_xor: Use correct device for DMA API

Ruslan Bilovol (1):
usb: host: xhci-hub: fix extra endianness conversion

Russell King (1):
ARM: riscpc: fix lack of keyboard interrupts after irq conversion

Sagiv Ozeri (1):
RDMA/qedr: Fix incorrect device rate.

Sam Bobroff (1):
drm/radeon: fix bad DMA from INTERRUPT_CNTL2

Sameeh Jubran (4):
net: ena: fix swapped parameters when calling ena_com_indirect_table_fill_entry
net: ena: fix: Free napi resources when ena_up() fails
net: ena: fix incorrect test of supported hash function
net: ena: fix ena_com_fill_hash_function() implementation

Sameer Pujar (1):
dmaengine: tegra210-adma: restore channel status

Sara Sharon (1):
iwlwifi: mvm: fix RSS config command

Sowjanya Komatineni (5):
spi: tegra114: clear packed bit for unpacked mode
spi: tegra114: fix for unpacked mode transfers
spi: tegra114: terminate dma and reset on transfer timeout
spi: tegra114: flush fifos
spi: tegra114: configure dma burst size to fifo trig level

Spencer E. Olson (1):
staging: comedi: ni_mio_common: protect register write overflow

Stefan Agner (1):
ASoC: imx-sgtl5000: put of nodes if finding codec fails

Stefan Wahren (3):
staging: bcm2835-camera: Abort probe if there is no camera
mmc: sdhci-brcmstb: handle mmc_of_parse() errors during probe
net: qca_spi: Move reset_count to struct qcaspi

Stephen Boyd (1):
power: supply: Init device wakeup after device_add()

Stephen Hemminger (2):
netvsc: unshare skb in VF rx handler
hv_netvsc: flag software created hash value

Steve French (1):
cifs: fix rmmod regression in cifs.ko caused by force_sig changes

Steve Sistare (1):
scsi: megaraid_sas: reduce module load time

Steve Wise (2):
iw_cxgb4: use tos when importing the endpoint
iw_cxgb4: use tos when finding ipv6 routes

Sven Van Asbroeck (1):
usb: phy: twl6030-usb: fix possible use-after-free on remove

Takashi Iwai (2):
ASoC: qcom: Fix of-node refcount unbalance in apq8016_sbc_parse_of()
ALSA: usb-audio: Handle the error from snd_usb_mixer_apply_create_quirk()

Thomas Gleixner (1):
x86/kgbd: Use NMI_VECTOR not APIC_DM_NMI

Tiezhu Yang (1):
MIPS: Loongson: Fix return value of loongson_hwmon_init

Tony Lindgren (1):
ARM: OMAP2+: Fix potentially uninitialized return value for _setup_reset()

Trond Myklebust (4):
NFS: Fix a soft lockup in the delegation recovery code NFS/pnfs: Bulk destroy of layouts needs to be safe w.r.t. umount NFSv4/flexfiles: Fix invalid deref in FF_LAYOUT_DEVID_NODE()
NFS: Don't interrupt file writeout due to fatal errors

Tung Nguyen (1):
tipc: fix wrong timeout input for tipc_wait_for_cond()

Uwe Kleine-König (1):

      rtc: ds1307: rx8130: Fix alarm handling

Vadim Pasternak (1):
hwmon: (pmbus/tps53679) Fix driver info initialization in probe routine

Vasundhara Volam (1):
bnxt_en: Fix handling FRAG_ERR when NVM_INSTALL_UPDATE cmd fails

Vinod Koul (1):
net: dsa: qca8k: Enable delay for RGMII_ID mode

Vladimir Murzin (1):
ARM: 8848/1: virt: Align GIC version check with arm64 counterpart

Vladimir Oltean (1):
ARM: dts: ls1021: Fix SGMII PCS link remaining down after PHY disconnect

Vladimir Zapolskiy (5):
ARM: dts: lpc32xx: add required clocks property to keypad device node
ARM: dts: lpc32xx: reparent keypad controller to SIC1
ARM: dts: lpc32xx: fix ARM PrimeCell LCD controller variant
ARM: dts: lpc32xx: fix ARM PrimeCell LCD controller clocks property
ARM: dts: lpc32xx: phy3250: fix SD card regulator voltage

Wen Yang (2):
PCI: endpoint: functions: Use memcpy_fromio()/memcpy_toio()
net: pasemi: fix an use-after-free in pasemi_mac_phy_init()

Willem de Bruijn (1):
packet: in recvmsg msg_name return at least sizeof sockaddr_ll

Xi Wang (1):
RDMA/hns: Fixs hw access invalid dma memory error

Yangtao Li (13):
clk: highbank: fix refcount leak in hb_clk_init()
clk: qoriq: fix refcount leak in clockgen_init()
clk: socfpga: fix refcount leak
clk: samsung: exynos4: fix refcount leak in exynos4_get_xom()
clk: imx6q: fix refcount leak in imx6q_clocks_init()
clk: imx6sx: fix refcount leak in imx6sx_clocks_init()
clk: imx7d: fix refcount leak in imx7d_clocks_init()
clk: vf610: fix refcount leak in vf610_clocks_init()
clk: armada-370: fix refcount leak in a370_clk_init()
clk: kirkwood: fix refcount leak in kirkwood_clk_init()
clk: armada-xp: fix refcount leak in axp_clk_init()
clk: mv98dx3236: fix refcount leak in mv98dx3236_clk_init()
clk: dove: fix refcount leak in dove_clk_init()

Yong Wu (1):
iommu/mediatek: Fix iova_to_phys PA start for 4GB mode

Yoshihiro Shimoda (1):
net: phy: Fix not to call phy_resume() if PHY is not attached

YueHaibing (16):
exportfs: fix 'passing zero to ERR_PTR()' warning
drm/shmob: Fix return value check in shmob_drm_probe
crypto: brcm - Fix some set-but-not-used warning spi/topcliff_pch: Fix potential NULL dereference on allocation error
tty: ipwireless: Fix potential NULL pointer dereference
fbdev: chipsfb: remove set but not used variable 'size'
cdc-wdm: pass return value of recover_from_urb_loss
media: tw5864: Fix possible NULL pointer dereference in tw5864_handle_frame
ehea: Fix a copy-paste err in ehea_init_port_res
ARM: pxa: ssp: Fix "WARNING: invalid free of devm_ allocated data"
l2tp: Fix possible NULL pointer dereference
libertas_tf: Use correct channel range in lbtf_geo_init
ASoC: es8328: Fix copy-paste error in es8328_right_line_controls
ASoC: cs4349: Use PM ops 'cs4349_runtime_pm'
ASoC: wm8737: Fix copy-paste error in wm8737_snd_controls
act_mirred: Fix mirred_init_module error handling

Yunsheng Lin (1):

      net: hns3: fix for vport->bw_limit overflow problem

Yuval Shaia (1):
IB/rxe: Fix incorrect cache cleanup in error flow

Zhu Yanjun (1):
IB/rxe: replace kvfree with vfree

author maintainer
#1 lore raw
Makefile +3 -3
index 3e8eaabf2bcb..1e74ba09cdda 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 14
-SUBLEVEL = 167
+SUBLEVEL = 168
 EXTRAVERSION =
 NAME = Petit Gorille
 
@@ -971,6 +971,7 @@ ifdef CONFIG_STACK_VALIDATION
   endif
 endif
 
+PHONY += prepare0
 
 ifeq ($(KBUILD_EXTMOD),)
 core-y		+= kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/
@@ -1065,8 +1066,7 @@ include/config/kernel.release: include/config/auto.conf FORCE
 # archprepare is used in arch Makefiles and when processed asm symlink,
 # version.h and scripts_basic is processed / created.
 
-# Listed in dependency order
-PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3
+PHONY += prepare archprepare prepare1 prepare2 prepare3
 
 # prepare3 is used to check if we are building in a separate output directory,
 # and if so do:
arch/arm/boot/dts/lpc3250-phy3250.dts +2 -2
index b7bd3a110a8d..dd0bdf765599 100644
@@ -49,8 +49,8 @@
 		sd_reg: regulator@2 {
 			compatible = "regulator-fixed";
 			regulator-name = "sd_reg";
-			regulator-min-microvolt = <1800000>;
-			regulator-max-microvolt = <1800000>;
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
 			gpio = <&gpio 5 5 0>;
 			enable-active-high;
 		};
arch/arm/boot/dts/lpc32xx.dtsi +6 -4
index d077bd2b9583..c5b119ddb70b 100644
@@ -139,11 +139,11 @@
 		};
 
 		clcd: clcd@31040000 {
-			compatible = "arm,pl110", "arm,primecell";
+			compatible = "arm,pl111", "arm,primecell";
 			reg = <0x31040000 0x1000>;
 			interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&clk LPC32XX_CLK_LCD>;
-			clock-names = "apb_pclk";
+			clocks = <&clk LPC32XX_CLK_LCD>, <&clk LPC32XX_CLK_LCD>;
+			clock-names = "clcdclk", "apb_pclk";
 			status = "disabled";
 		};
 
@@ -462,7 +462,9 @@
 			key: key@40050000 {
 				compatible = "nxp,lpc3220-key";
 				reg = <0x40050000 0x1000>;
-				interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&clk LPC32XX_CLK_KEY>;
+				interrupt-parent = <&sic1>;
+				interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 			};
 
arch/arm/boot/dts/ls1021a-twr.dts +8 -1
index 44715c8ef756..72a3fc63d0ec 100644
@@ -143,7 +143,7 @@
 };
 
 &enet0 {
-	tbi-handle = <&tbi1>;
+	tbi-handle = <&tbi0>;
 	phy-handle = <&sgmii_phy2>;
 	phy-connection-type = "sgmii";
 	status = "okay";
@@ -222,6 +222,13 @@
 	sgmii_phy2: ethernet-phy@2 {
 		reg = <0x2>;
 	};
+	tbi0: tbi-phy@1f {
+		reg = <0x1f>;
+		device_type = "tbi-phy";
+	};
+};
+
+&mdio1 {
 	tbi1: tbi-phy@1f {
 		reg = <0x1f>;
 		device_type = "tbi-phy";
arch/arm/boot/dts/ls1021a.dtsi +10 -1
index 2d20f60947b9..1343c86988c5 100644
@@ -562,13 +562,22 @@
 		};
 
 		mdio0: mdio@2d24000 {
-			compatible = "gianfar";
+			compatible = "fsl,etsec2-mdio";
 			device_type = "mdio";
 			#address-cells = <1>;
 			#size-cells = <0>;
 			reg = <0x0 0x2d24000 0x0 0x4000>;
 		};
 
+		mdio1: mdio@2d64000 {
+			compatible = "fsl,etsec2-mdio";
+			device_type = "mdio";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x0 0x2d64000 0x0 0x4000>,
+			      <0x0 0x2d50030 0x0 0x4>;
+		};
+
 		ptp_clock@2d10e00 {
 			compatible = "fsl,etsec-ptp";
 			reg = <0x0 0x2d10e00 0x0 0xb0>;
arch/arm/boot/dts/stm32h743i-eval.dts +1 -0
index 6c07786e7ddb..0d98b2865bd7 100644
@@ -71,6 +71,7 @@
 };
 
 &adc_12 {
+	vdda-supply = <&vdda>;
 	vref-supply = <&vdda>;
 	status = "okay";
 	adc1: adc@0 {
arch/arm/boot/dts/sun8i-h3-beelink-x2.dts +4 -0
index 10da56e86ab8..21b38c386f1b 100644
@@ -79,6 +79,8 @@
 	wifi_pwrseq: wifi_pwrseq {
 		compatible = "mmc-pwrseq-simple";
 		reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
+		clocks = <&rtc 1>;
+		clock-names = "ext_clock";
 	};
 
 	sound_spdif {
@@ -128,6 +130,8 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc1_pins_a>;
 	vmmc-supply = <&reg_vcc3v3>;
+	vqmmc-supply = <&reg_vcc3v3>;
+	mmc-pwrseq = <&wifi_pwrseq>;
 	bus-width = <4>;
 	non-removable;
 	status = "okay";
arch/arm/common/mcpm_entry.c +1 -1
index 2b913f17d50f..c24a55b0deac 100644
@@ -379,7 +379,7 @@ static int __init nocache_trampoline(unsigned long _arg)
 	unsigned int cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
 	phys_reset_t phys_reset;
 
-	mcpm_set_entry_vector(cpu, cluster, cpu_resume);
+	mcpm_set_entry_vector(cpu, cluster, cpu_resume_no_hyp);
 	setup_mm_for_reboot();
 
 	__mcpm_cpu_going_down(cpu, cluster);
arch/arm/include/asm/suspend.h +1 -0
index 452bbdcbcc83..506314265c6f 100644
@@ -10,6 +10,7 @@ struct sleep_save_sp {
 };
 
 extern void cpu_resume(void);
+extern void cpu_resume_no_hyp(void);
 extern void cpu_resume_arm(void);
 extern int cpu_suspend(unsigned long, int (*)(unsigned long));
 
arch/arm/kernel/hyp-stub.S +2 -2
index 60146e32619a..82a942894fc0 100644
@@ -180,8 +180,8 @@ ARM_BE8(orr	r7, r7, #(1 << 25))     @ HSCTLR.EE
 	@ Check whether GICv3 system registers are available
 	mrc	p15, 0, r7, c0, c1, 1	@ ID_PFR1
 	ubfx	r7, r7, #28, #4
-	cmp	r7, #1
-	bne	2f
+	teq	r7, #0
+	beq	2f
 
 	@ Enable system register accesses
 	mrc	p15, 4, r7, c12, c9, 5	@ ICC_HSRE
arch/arm/kernel/sleep.S +12 -0
index a8257fc9cf2a..5dc8b80bb693 100644
@@ -120,6 +120,14 @@ ENDPROC(cpu_resume_after_mmu)
 	.text
 	.align
 
+#ifdef CONFIG_MCPM
+	.arm
+THUMB(	.thumb			)
+ENTRY(cpu_resume_no_hyp)
+ARM_BE8(setend be)			@ ensure we are in BE mode
+	b	no_hyp
+#endif
+
 #ifdef CONFIG_MMU
 	.arm
 ENTRY(cpu_resume_arm)
@@ -135,6 +143,7 @@ ARM_BE8(setend be)			@ ensure we are in BE mode
 	bl	__hyp_stub_install_secondary
 #endif
 	safe_svcmode_maskall r1
+no_hyp:
 	mov	r1, #0
 	ALT_SMP(mrc p15, 0, r0, c0, c0, 5)
 	ALT_UP_B(1f)
@@ -163,6 +172,9 @@ ENDPROC(cpu_resume)
 
 #ifdef CONFIG_MMU
 ENDPROC(cpu_resume_arm)
+#endif
+#ifdef CONFIG_MCPM
+ENDPROC(cpu_resume_no_hyp)
 #endif
 
 	.align 2
arch/arm/mach-omap2/omap_hwmod.c +1 -1
index 45c8f2ef4e23..9274a484c6a3 100644
@@ -2530,7 +2530,7 @@ static void _setup_iclk_autoidle(struct omap_hwmod *oh)
  */
 static int _setup_reset(struct omap_hwmod *oh)
 {
-	int r;
+	int r = 0;
 
 	if (oh->_state != _HWMOD_STATE_INITIALIZED)
 		return -EINVAL;
arch/arm/mach-rpc/irq.c +2 -1
index b8a61cb11207..7f0f40178634 100644
@@ -118,7 +118,7 @@ extern unsigned char rpc_default_fiq_start, rpc_default_fiq_end;
 
 void __init rpc_init_irq(void)
 {
-	unsigned int irq, clr, set = 0;
+	unsigned int irq, clr, set;
 
 	iomd_writeb(0, IOMD_IRQMASKA);
 	iomd_writeb(0, IOMD_IRQMASKB);
@@ -130,6 +130,7 @@ void __init rpc_init_irq(void)
 
 	for (irq = 0; irq < NR_IRQS; irq++) {
 		clr = IRQ_NOREQUEST;
+		set = 0;
 
 		if (irq <= 6 || (irq >= 9 && irq <= 15))
 			clr |= IRQ_NOPROBE;
arch/arm/plat-pxa/ssp.c +0 -6
index b92673efffff..97bd43c16cd8 100644
@@ -230,18 +230,12 @@ static int pxa_ssp_probe(struct platform_device *pdev)
 
 static int pxa_ssp_remove(struct platform_device *pdev)
 {
-	struct resource *res;
 	struct ssp_device *ssp;
 
 	ssp = platform_get_drvdata(pdev);
 	if (ssp == NULL)
 		return -ENODEV;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	release_mem_region(res->start, resource_size(res));
-
-	clk_put(ssp->clk);
-
 	mutex_lock(&ssp_lock);
 	list_del(&ssp->node);
 	mutex_unlock(&ssp_lock);
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +2 -1
index 8c8db1b057df..788a6f8c5994 100644
@@ -274,7 +274,8 @@
 			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
 				     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
 				     <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&ccu 58>;
+			clocks = <&ccu 58>, <&osc24M>, <&rtc 0>;
+			clock-names = "apb", "hosc", "losc";
 			gpio-controller;
 			#gpio-cells = <3>;
 			interrupt-controller;
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts +0 -1
index e2c71753e327..407d32f4fe73 100644
@@ -226,7 +226,6 @@
 	cap-mmc-highspeed;
 	mmc-ddr-3_3v;
 	max-frequency = <50000000>;
-	non-removable;
 	disable-wp;
 
 	mmc-pwrseq = <&emmc_pwrseq>;
arch/arm64/boot/dts/arm/juno-clocks.dtsi +2 -2
index e5e265dfa902..2870b5eeb198 100644
@@ -8,10 +8,10 @@
  */
 / {
 	/* SoC fixed clocks */
-	soc_uartclk: refclk7273800hz {
+	soc_uartclk: refclk7372800hz {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
-		clock-frequency = <7273800>;
+		clock-frequency = <7372800>;
 		clock-output-names = "juno:uartclk";
 	};
 
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +2 -0
index b6b44fdf7fac..c1028b47edde 100644
@@ -458,6 +458,8 @@
 	l11 {
 		regulator-min-microvolt = <1750000>;
 		regulator-max-microvolt = <3337000>;
+		regulator-allow-set-load;
+		regulator-system-load = <200000>;
 	};
 
 	l12 {
arch/m68k/amiga/cia.c +9 -0
index 2081b8cd5591..b9aee983e6f4 100644
@@ -88,10 +88,19 @@ static irqreturn_t cia_handler(int irq, void *dev_id)
 	struct ciabase *base = dev_id;
 	int mach_irq;
 	unsigned char ints;
+	unsigned long flags;
 
+	/* Interrupts get disabled while the timer irq flag is cleared and
+	 * the timer interrupt serviced.
+	 */
 	mach_irq = base->cia_irq;
+	local_irq_save(flags);
 	ints = cia_set_irq(base, CIA_ICR_ALL);
 	amiga_custom.intreq = base->int_mask;
+	if (ints & 1)
+		generic_handle_irq(mach_irq);
+	local_irq_restore(flags);
+	mach_irq++, ints >>= 1;
 	for (; ints; mach_irq++, ints >>= 1) {
 		if (ints & 1)
 			generic_handle_irq(mach_irq);
arch/m68k/atari/ataints.c +2 -2
index 3d2b63bedf05..56f02ea2c248 100644
@@ -142,7 +142,7 @@ struct mfptimerbase {
 	.name		= "MFP Timer D"
 };
 
-static irqreturn_t mfptimer_handler(int irq, void *dev_id)
+static irqreturn_t mfp_timer_d_handler(int irq, void *dev_id)
 {
 	struct mfptimerbase *base = dev_id;
 	int mach_irq;
@@ -344,7 +344,7 @@ void __init atari_init_IRQ(void)
 	st_mfp.tim_ct_cd = (st_mfp.tim_ct_cd & 0xf0) | 0x6;
 
 	/* request timer D dispatch handler */
-	if (request_irq(IRQ_MFP_TIMD, mfptimer_handler, IRQF_SHARED,
+	if (request_irq(IRQ_MFP_TIMD, mfp_timer_d_handler, IRQF_SHARED,
 			stmfp_base.name, &stmfp_base))
 		pr_err("Couldn't register %s interrupt\n", stmfp_base.name);
 
arch/m68k/atari/time.c +14 -1
index c549b48174ec..972181c1fe4b 100644
@@ -24,6 +24,18 @@
 DEFINE_SPINLOCK(rtc_lock);
 EXPORT_SYMBOL_GPL(rtc_lock);
 
+static irqreturn_t mfp_timer_c_handler(int irq, void *dev_id)
+{
+	irq_handler_t timer_routine = dev_id;
+	unsigned long flags;
+
+	local_irq_save(flags);
+	timer_routine(0, NULL);
+	local_irq_restore(flags);
+
+	return IRQ_HANDLED;
+}
+
 void __init
 atari_sched_init(irq_handler_t timer_routine)
 {
@@ -32,7 +44,8 @@ atari_sched_init(irq_handler_t timer_routine)
     /* start timer C, div = 1:100 */
     st_mfp.tim_ct_cd = (st_mfp.tim_ct_cd & 15) | 0x60;
     /* install interrupt service routine for MFP Timer C */
-    if (request_irq(IRQ_MFP_TIMC, timer_routine, 0, "timer", timer_routine))
+    if (request_irq(IRQ_MFP_TIMC, mfp_timer_c_handler, 0, "timer",
+                    timer_routine))
 	pr_err("Couldn't register timer interrupt\n");
 }
 
arch/m68k/bvme6000/config.c +10 -10
index 2cfff4765040..0e602c32b246 100644
@@ -45,11 +45,6 @@ extern int bvme6000_set_clock_mmss (unsigned long);
 extern void bvme6000_reset (void);
 void bvme6000_set_vectors (void);
 
-/* Save tick handler routine pointer, will point to xtime_update() in
- * kernel/timer/timekeeping.c, called via bvme6000_process_int() */
-
-static irq_handler_t tick_handler;
-
 
 int __init bvme6000_parse_bootinfo(const struct bi_record *bi)
 {
@@ -159,12 +154,18 @@ irqreturn_t bvme6000_abort_int (int irq, void *dev_id)
 
 static irqreturn_t bvme6000_timer_int (int irq, void *dev_id)
 {
+    irq_handler_t timer_routine = dev_id;
+    unsigned long flags;
     volatile RtcPtr_t rtc = (RtcPtr_t)BVME_RTC_BASE;
-    unsigned char msr = rtc->msr & 0xc0;
+    unsigned char msr;
 
+    local_irq_save(flags);
+    msr = rtc->msr & 0xc0;
     rtc->msr = msr | 0x20;		/* Ack the interrupt */
+    timer_routine(0, NULL);
+    local_irq_restore(flags);
 
-    return tick_handler(irq, dev_id);
+    return IRQ_HANDLED;
 }
 
 /*
@@ -183,9 +184,8 @@ void bvme6000_sched_init (irq_handler_t timer_routine)
 
     rtc->msr = 0;	/* Ensure timer registers accessible */
 
-    tick_handler = timer_routine;
-    if (request_irq(BVME_IRQ_RTC, bvme6000_timer_int, 0,
-				"timer", bvme6000_timer_int))
+    if (request_irq(BVME_IRQ_RTC, bvme6000_timer_int, 0, "timer",
+                    timer_routine))
 	panic ("Couldn't register timer int");
 
     rtc->t1cr_omr = 0x04;	/* Mode 2, ext clk */
arch/m68k/hp300/time.c +8 -2
index 289d928a46cb..d30b03ea93a2 100644
@@ -38,13 +38,19 @@
 
 static irqreturn_t hp300_tick(int irq, void *dev_id)
 {
+	irq_handler_t timer_routine = dev_id;
+	unsigned long flags;
 	unsigned long tmp;
-	irq_handler_t vector = dev_id;
+
+	local_irq_save(flags);
 	in_8(CLOCKBASE + CLKSR);
 	asm volatile ("movpw %1@(5),%0" : "=d" (tmp) : "a" (CLOCKBASE));
+	timer_routine(0, NULL);
+	local_irq_restore(flags);
+
 	/* Turn off the network and SCSI leds */
 	blinken_leds(0, 0xe0);
-	return vector(irq, NULL);
+	return IRQ_HANDLED;
 }
 
 u32 hp300_gettimeoffset(void)
arch/m68k/mac/via.c +70 -49

152 lines not on this page · raw message

arch/m68k/mvme147/config.c +10 -8
index 8778612d1f31..78ae803c833e 100644
@@ -46,11 +46,6 @@ extern void mvme147_reset (void);
 
 static int bcd2int (unsigned char b);
 
-/* Save tick handler routine pointer, will point to xtime_update() in
- * kernel/time/timekeeping.c, called via mvme147_process_int() */
-
-irq_handler_t tick_handler;
-
 
 int __init mvme147_parse_bootinfo(const struct bi_record *bi)
 {
@@ -106,16 +101,23 @@ void __init config_mvme147(void)
 
 static irqreturn_t mvme147_timer_int (int irq, void *dev_id)
 {
+	irq_handler_t timer_routine = dev_id;
+	unsigned long flags;
+
+	local_irq_save(flags);
 	m147_pcc->t1_int_cntrl = PCC_TIMER_INT_CLR;
 	m147_pcc->t1_int_cntrl = PCC_INT_ENAB|PCC_LEVEL_TIMER1;
-	return tick_handler(irq, dev_id);
+	timer_routine(0, NULL);
+	local_irq_restore(flags);
+
+	return IRQ_HANDLED;
 }
 
 
 void mvme147_sched_init (irq_handler_t timer_routine)
 {
-	tick_handler = timer_routine;
-	if (request_irq(PCC_IRQ_TIMER1, mvme147_timer_int, 0, "timer 1", NULL))
+	if (request_irq(PCC_IRQ_TIMER1, mvme147_timer_int, 0, "timer 1",
+			timer_routine))
 		pr_err("Couldn't register timer interrupt\n");
 
 	/* Init the clock with a value */
arch/m68k/mvme16x/config.c +11 -10
index 6fa06d4d16bf..3116dd576bb3 100644
@@ -51,11 +51,6 @@ extern void mvme16x_reset (void);
 
 int bcd2int (unsigned char b);
 
-/* Save tick handler routine pointer, will point to xtime_update() in
- * kernel/time/timekeeping.c, called via mvme16x_process_int() */
-
-static irq_handler_t tick_handler;
-
 
 unsigned short mvme16x_config;
 EXPORT_SYMBOL(mvme16x_config);
@@ -354,8 +349,15 @@ static irqreturn_t mvme16x_abort_int (int irq, void *dev_id)
 
 static irqreturn_t mvme16x_timer_int (int irq, void *dev_id)
 {
-    *(volatile unsigned char *)0xfff4201b |= 8;
-    return tick_handler(irq, dev_id);
+	irq_handler_t timer_routine = dev_id;
+	unsigned long flags;
+
+	local_irq_save(flags);
+	*(volatile unsigned char *)0xfff4201b |= 8;
+	timer_routine(0, NULL);
+	local_irq_restore(flags);
+
+	return IRQ_HANDLED;
 }
 
 void mvme16x_sched_init (irq_handler_t timer_routine)
@@ -363,14 +365,13 @@ void mvme16x_sched_init (irq_handler_t timer_routine)
     uint16_t brdno = be16_to_cpu(mvme_bdid.brdno);
     int irq;
 
-    tick_handler = timer_routine;
     /* Using PCCchip2 or MC2 chip tick timer 1 */
     *(volatile unsigned long *)0xfff42008 = 0;
     *(volatile unsigned long *)0xfff42004 = 10000;	/* 10ms */
     *(volatile unsigned char *)0xfff42017 |= 3;
     *(volatile unsigned char *)0xfff4201b = 0x16;
-    if (request_irq(MVME16x_IRQ_TIMER, mvme16x_timer_int, 0,
-				"timer", mvme16x_timer_int))
+    if (request_irq(MVME16x_IRQ_TIMER, mvme16x_timer_int, 0, "timer",
+                    timer_routine))
 	panic ("Couldn't register timer int");
 
     if (brdno == 0x0162 || brdno == 0x172)
arch/m68k/q40/q40ints.c +11 -8
index 3e7603202977..1c696906c159 100644
@@ -127,10 +127,10 @@ void q40_mksound(unsigned int hz, unsigned int ticks)
 	sound_ticks = ticks << 1;
 }
 
-static irq_handler_t q40_timer_routine;
-
-static irqreturn_t q40_timer_int (int irq, void * dev)
+static irqreturn_t q40_timer_int(int irq, void *dev_id)
 {
+	irq_handler_t timer_routine = dev_id;
+
 	ql_ticks = ql_ticks ? 0 : 1;
 	if (sound_ticks) {
 		unsigned char sval=(sound_ticks & 1) ? 128-SVOL : 128+SVOL;
@@ -139,8 +139,13 @@ static irqreturn_t q40_timer_int (int irq, void * dev)
 		*DAC_RIGHT=sval;
 	}
 
-	if (!ql_ticks)
-		q40_timer_routine(irq, dev);
+	if (!ql_ticks) {
+		unsigned long flags;
+
+		local_irq_save(flags);
+		timer_routine(0, NULL);
+		local_irq_restore(flags);
+	}
 	return IRQ_HANDLED;
 }
 
@@ -148,11 +153,9 @@ void q40_sched_init (irq_handler_t timer_routine)
 {
 	int timer_irq;
 
-	q40_timer_routine = timer_routine;
 	timer_irq = Q40_IRQ_FRAME;
 
-	if (request_irq(timer_irq, q40_timer_int, 0,
-				"timer", q40_timer_int))
+	if (request_irq(timer_irq, q40_timer_int, 0, "timer", timer_routine))
 		panic("Couldn't register timer int");
 
 	master_outb(-1, FRAME_CLEAR_REG);
arch/m68k/sun3/sun3ints.c +3 -0
index 6bbca30c9188..a5824abb4a39 100644
@@ -61,8 +61,10 @@ static irqreturn_t sun3_int7(int irq, void *dev_id)
 
 static irqreturn_t sun3_int5(int irq, void *dev_id)
 {
+	unsigned long flags;
 	unsigned int cnt;
 
+	local_irq_save(flags);
 #ifdef CONFIG_SUN3
 	intersil_clear();
 #endif
@@ -76,6 +78,7 @@ static irqreturn_t sun3_int5(int irq, void *dev_id)
 	cnt = kstat_irqs_cpu(irq, 0);
 	if (!(cnt % 20))
 		sun3_leds(led_pattern[cnt % 160 / 20]);
+	local_irq_restore(flags);
 	return IRQ_HANDLED;
 }
 
arch/m68k/sun3x/time.c +10 -6
index 7a2c53d9f779..48b43903253e 100644
@@ -78,15 +78,19 @@ u32 sun3x_gettimeoffset(void)
 }
 
 #if 0
-static void sun3x_timer_tick(int irq, void *dev_id, struct pt_regs *regs)
+static irqreturn_t sun3x_timer_tick(int irq, void *dev_id)
 {
-    void (*vector)(int, void *, struct pt_regs *) = dev_id;
+	irq_handler_t timer_routine = dev_id;
+	unsigned long flags;
 
-    /* Clear the pending interrupt - pulse the enable line low */
-    disable_irq(5);
-    enable_irq(5);
+	local_irq_save(flags);
+	/* Clear the pending interrupt - pulse the enable line low */
+	disable_irq(5);
+	enable_irq(5);
+	timer_routine(0, NULL);
+	local_irq_restore(flags);
 
-    vector(irq, NULL, regs);
+	return IRQ_HANDLED;
 }
 #endif
 
arch/mips/bcm63xx/Makefile +3 -3
index c69f297fc1df..d89651e538f6 100644
@@ -1,8 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0
 obj-y		+= clk.o cpu.o cs.o gpio.o irq.o nvram.o prom.o reset.o \
-		   setup.o timer.o dev-dsp.o dev-enet.o dev-flash.o \
-		   dev-pcmcia.o dev-rng.o dev-spi.o dev-hsspi.o dev-uart.o \
-		   dev-wdt.o dev-usb-usbd.o
+		   setup.o timer.o dev-enet.o dev-flash.o dev-pcmcia.o \
+		   dev-rng.o dev-spi.o dev-hsspi.o dev-uart.o dev-wdt.o \
+		   dev-usb-usbd.o
 obj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
 
 obj-y		+= boards/
arch/mips/bcm63xx/boards/board_bcm963xx.c +0 -20
index b2097c0d2ed7..36ec3dc2c999 100644
@@ -23,7 +23,6 @@
 #include <bcm63xx_nvram.h>
 #include <bcm63xx_dev_pci.h>
 #include <bcm63xx_dev_enet.h>
-#include <bcm63xx_dev_dsp.h>
 #include <bcm63xx_dev_flash.h>
 #include <bcm63xx_dev_hsspi.h>
 #include <bcm63xx_dev_pcmcia.h>
@@ -289,14 +288,6 @@ static struct board_info __initdata board_96348gw_10 = {
 	.has_pccard			= 1,
 	.has_ehci0			= 1,
 
-	.has_dsp			= 1,
-	.dsp = {
-		.gpio_rst		= 6,
-		.gpio_int		= 34,
-		.cs			= 2,
-		.ext_irq		= 2,
-	},
-
 	.leds = {
 		{
 			.name		= "adsl-fail",
@@ -401,14 +392,6 @@ static struct board_info __initdata board_96348gw = {
 
 	.has_ohci0 = 1,
 
-	.has_dsp			= 1,
-	.dsp = {
-		.gpio_rst		= 6,
-		.gpio_int		= 34,
-		.ext_irq		= 2,
-		.cs			= 2,
-	},
-
 	.leds = {
 		{
 			.name		= "adsl-fail",
@@ -898,9 +881,6 @@ int __init board_register_devices(void)
 	if (board.has_usbd)
 		bcm63xx_usbd_register(&board.usbd);
 
-	if (board.has_dsp)
-		bcm63xx_dsp_register(&board.dsp);
-
 	/* Generate MAC address for WLAN and register our SPROM,
 	 * do this after registering enet devices
 	 */
arch/mips/bcm63xx/dev-dsp.c deleted +0 -56

56 lines not on this page · raw message

arch/mips/include/asm/io.h +2 -12
index 57b34257be2b..98eb15b0524c 100644
@@ -60,21 +60,11 @@
  * instruction, so the lower 16 bits must be zero.  Should be true on
  * on any sane architecture; generic code does not use this assumption.
  */
-extern const unsigned long mips_io_port_base;
+extern unsigned long mips_io_port_base;
 
-/*
- * Gcc will generate code to load the value of mips_io_port_base after each
- * function call which may be fairly wasteful in some cases.  So we don't
- * play quite by the book.  We tell gcc mips_io_port_base is a long variable
- * which solves the code generation issue.  Now we need to violate the
- * aliasing rules a little to make initialization possible and finally we
- * will need the barrier() to fight side effects of the aliasing chat.
- * This trickery will eventually collapse under gcc's optimizer.  Oh well.
- */
 static inline void set_io_port_base(unsigned long base)
 {
-	* (unsigned long *) &mips_io_port_base = base;
-	barrier();
+	mips_io_port_base = base;
 }
 
 /*
arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_dsp.h deleted +0 -14
deleted file mode 100644
index 4e4970787371..000000000000
@@ -1,14 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __BCM63XX_DSP_H
-#define __BCM63XX_DSP_H
-
-struct bcm63xx_dsp_platform_data {
-	unsigned gpio_rst;
-	unsigned gpio_int;
-	unsigned cs;
-	unsigned ext_irq;
-};
-
-int __init bcm63xx_dsp_register(const struct bcm63xx_dsp_platform_data *pd);
-
-#endif /* __BCM63XX_DSP_H */
arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h +0 -5
index 5e5b1bc4a324..830f53f28e3f 100644
@@ -7,7 +7,6 @@
 #include <linux/leds.h>
 #include <bcm63xx_dev_enet.h>
 #include <bcm63xx_dev_usb_usbd.h>
-#include <bcm63xx_dev_dsp.h>
 
 /*
  * flash mapping
@@ -31,7 +30,6 @@ struct board_info {
 	unsigned int	has_ohci0:1;
 	unsigned int	has_ehci0:1;
 	unsigned int	has_usbd:1;
-	unsigned int	has_dsp:1;
 	unsigned int	has_uart0:1;
 	unsigned int	has_uart1:1;
 
@@ -43,9 +41,6 @@ struct board_info {
 	/* USB config */
 	struct bcm63xx_usbd_platform_data usbd;
 
-	/* DSP config */
-	struct bcm63xx_dsp_platform_data dsp;
-
 	/* GPIO LEDs */
 	struct gpio_led leds[5];
 
arch/mips/kernel/setup.c +1 -1
index 795caa763da3..05ed4ed411c7 100644
@@ -75,7 +75,7 @@ static char __initdata builtin_cmdline[COMMAND_LINE_SIZE] = CONFIG_CMDLINE;
  * mips_io_port_base is the begin of the address space to which x86 style
  * I/O ports are mapped.
  */
-const unsigned long mips_io_port_base = -1;
+unsigned long mips_io_port_base = -1;
 EXPORT_SYMBOL(mips_io_port_base);
 
 static struct resource code_resource = { .name = "Kernel code", };
arch/nios2/kernel/nios2_ksyms.c +12 -0
index bf2f55d10a4d..4e704046a150 100644
@@ -9,12 +9,20 @@
 #include <linux/export.h>
 #include <linux/string.h>
 
+#include <asm/cacheflush.h>
+#include <asm/pgtable.h>
+
 /* string functions */
 
 EXPORT_SYMBOL(memcpy);
 EXPORT_SYMBOL(memset);
 EXPORT_SYMBOL(memmove);
 
+/* memory management */
+
+EXPORT_SYMBOL(empty_zero_page);
+EXPORT_SYMBOL(flush_icache_range);
+
 /*
  * libgcc functions - functions that are used internally by the
  * compiler...  (prototypes are not correct though, but that
@@ -31,3 +39,7 @@ DECLARE_EXPORT(__udivsi3);
 DECLARE_EXPORT(__umoddi3);
 DECLARE_EXPORT(__umodsi3);
 DECLARE_EXPORT(__muldi3);
+DECLARE_EXPORT(__ucmpdi2);
+DECLARE_EXPORT(__lshrdi3);
+DECLARE_EXPORT(__ashldi3);
+DECLARE_EXPORT(__ashrdi3);
arch/powerpc/Makefile +2 -0
index 0f04c878113e..9c78ef298257 100644
@@ -385,7 +385,9 @@ vdso_install:
 ifeq ($(CONFIG_PPC64),y)
 	$(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso64 $@
 endif
+ifdef CONFIG_VDSO32
 	$(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso32 $@
+endif
 
 archclean:
 	$(Q)$(MAKE) $(clean)=$(boot)
arch/powerpc/include/asm/archrandom.h +1 -1
index 9c63b596e6ce..a09595f00cab 100644
@@ -28,7 +28,7 @@ static inline int arch_get_random_seed_int(unsigned int *v)
 	unsigned long val;
 	int rc;
 
-	rc = arch_get_random_long(&val);
+	rc = arch_get_random_seed_long(&val);
 	if (rc)
 		*v = val;
 
arch/powerpc/kernel/cacheinfo.c +21 -0
index a8f20e5928e1..9edb45430133 100644
@@ -865,4 +865,25 @@ void cacheinfo_cpu_offline(unsigned int cpu_id)
 	if (cache)
 		cache_cpu_clear(cache, cpu_id);
 }
+
+void cacheinfo_teardown(void)
+{
+	unsigned int cpu;
+
+	lockdep_assert_cpus_held();
+
+	for_each_online_cpu(cpu)
+		cacheinfo_cpu_offline(cpu);
+}
+
+void cacheinfo_rebuild(void)
+{
+	unsigned int cpu;
+
+	lockdep_assert_cpus_held();
+
+	for_each_online_cpu(cpu)
+		cacheinfo_cpu_online(cpu);
+}
+
 #endif /* (CONFIG_PPC_PSERIES && CONFIG_SUSPEND) || CONFIG_HOTPLUG_CPU */
arch/powerpc/kernel/cacheinfo.h +4 -0
index 955f5e999f1b..52bd3fc6642d 100644
@@ -6,4 +6,8 @@
 extern void cacheinfo_cpu_online(unsigned int cpu_id);
 extern void cacheinfo_cpu_offline(unsigned int cpu_id);
 
+/* Allow migration/suspend to tear down and rebuild the hierarchy. */
+extern void cacheinfo_teardown(void);
+extern void cacheinfo_rebuild(void);
+
 #endif /* _PPC_CACHEINFO_H */
arch/powerpc/kernel/dt_cpu_ftrs.c +7 -10
index 2357df60de95..7ed2b1b6643c 100644
@@ -705,8 +705,10 @@ static bool __init cpufeatures_process_feature(struct dt_cpu_feature *f)
 		m = &dt_cpu_feature_match_table[i];
 		if (!strcmp(f->name, m->name)) {
 			known = true;
-			if (m->enable(f))
+			if (m->enable(f)) {
+				cur_cpu_spec->cpu_features |= m->cpu_ftr_bit_mask;
 				break;
+			}
 
 			pr_info("not enabling: %s (disabled or unsupported by kernel)\n",
 				f->name);
@@ -714,17 +716,12 @@ static bool __init cpufeatures_process_feature(struct dt_cpu_feature *f)
 		}
 	}
 
-	if (!known && enable_unknown) {
-		if (!feat_try_enable_unknown(f)) {
-			pr_info("not enabling: %s (unknown and unsupported by kernel)\n",
-				f->name);
-			return false;
-		}
+	if (!known && (!enable_unknown || !feat_try_enable_unknown(f))) {
+		pr_info("not enabling: %s (unknown and unsupported by kernel)\n",
+			f->name);
+		return false;
 	}
 
-	if (m->cpu_ftr_bit_mask)
-		cur_cpu_spec->cpu_features |= m->cpu_ftr_bit_mask;
-
 	if (known)
 		pr_debug("enabling: %s\n", f->name);
 	else
arch/powerpc/kvm/book3s_64_vio.c +0 -1
index 5e4446296021..ef6a58838e7c 100644
@@ -134,7 +134,6 @@ extern void kvm_spapr_tce_release_iommu_group(struct kvm *kvm,
 					continue;
 
 				kref_put(&stit->kref, kvm_spapr_tce_liobn_put);
-				return;
 			}
 		}
 	}
arch/powerpc/mm/dump_hashpagetable.c +1 -1
index 5c4c93dcff19..f666d74f05f5 100644
@@ -343,7 +343,7 @@ static unsigned long hpte_find(struct pg_state *st, unsigned long ea, int psize)
 
 	/* Look in secondary table */
 	if (slot == -1)
-		slot = base_hpte_find(ea, psize, true, &v, &r);
+		slot = base_hpte_find(ea, psize, false, &v, &r);
 
 	/* No entry found */
 	if (slot == -1)
arch/powerpc/platforms/pseries/mobility.c +10 -0
index 9739a055e5f7..2d3668acb6ef 100644
@@ -23,6 +23,7 @@
 #include <asm/machdep.h>
 #include <asm/rtas.h>
 #include "pseries.h"
+#include "../../kernel/cacheinfo.h"
 
 static struct kobject *mobility_kobj;
 
@@ -359,11 +360,20 @@ void post_mobility_fixup(void)
 	 */
 	cpus_read_lock();
 
+	/*
+	 * It's common for the destination firmware to replace cache
+	 * nodes.  Release all of the cacheinfo hierarchy's references
+	 * before updating the device tree.
+	 */
+	cacheinfo_teardown();
+
 	rc = pseries_devicetree_update(MIGRATION_SCOPE);
 	if (rc)
 		printk(KERN_ERR "Post-mobility device tree update "
 			"failed: %d\n", rc);
 
+	cacheinfo_rebuild();
+
 	cpus_read_unlock();
 
 	/* Possibly switch to a new RFI flush type */
arch/x86/Kconfig.debug +1 -1
index 6293a8768a91..bec0952c5595 100644
@@ -189,7 +189,7 @@ config HAVE_MMIOTRACE_SUPPORT
 
 config X86_DECODER_SELFTEST
 	bool "x86 instruction decoder selftest"
-	depends on DEBUG_KERNEL && KPROBES
+	depends on DEBUG_KERNEL && INSTRUCTION_DECODER
 	depends on !COMPILE_TEST
 	---help---
 	 Perform x86 instruction decoder selftests at build time.
arch/x86/kernel/kgdb.c +1 -1
index 8e36f249646e..904e18bb38c5 100644
@@ -438,7 +438,7 @@ static void kgdb_disable_hw_debug(struct pt_regs *regs)
  */
 void kgdb_roundup_cpus(unsigned long flags)
 {
-	apic->send_IPI_allbutself(APIC_DM_NMI);
+	apic->send_IPI_allbutself(NMI_VECTOR);
 }
 #endif
 
arch/x86/mm/tlb.c +0 -3
index 5400a24e1a8c..c5d7b4ae17ca 100644
@@ -651,9 +651,6 @@ void native_flush_tlb_others(const struct cpumask *cpumask,
 		 * that UV should be updated so that smp_call_function_many(),
 		 * etc, are optimal on UV.
 		 */
-		unsigned int cpu;
-
-		cpu = smp_processor_id();
 		cpumask = uv_flush_tlb_others(cpumask, info);
 		if (cpumask)
 			smp_call_function_many(cpumask, flush_tlb_func_remote,
block/blk-merge.c +1 -7
index f61b50a01bc7..415b5dafd9e6 100644
@@ -299,13 +299,7 @@ void blk_recalc_rq_segments(struct request *rq)
 
 void blk_recount_segments(struct request_queue *q, struct bio *bio)
 {
-	unsigned short seg_cnt;
-
-	/* estimate segment number by bi_vcnt for non-cloned bio */
-	if (bio_flagged(bio, BIO_CLONED))
-		seg_cnt = bio_segments(bio);
-	else
-		seg_cnt = bio->bi_vcnt;
+	unsigned short seg_cnt = bio_segments(bio);
 
 	if (test_bit(QUEUE_FLAG_NO_SG_MERGE, &q->queue_flags) &&
 			(seg_cnt < queue_max_segments(q)))
crypto/pcrypt.c +1 -1
index f8ec3d4ba4a8..a5718c0a3dc4 100644
@@ -394,7 +394,7 @@ static int pcrypt_sysfs_add(struct padata_instance *pinst, const char *name)
 	int ret;
 
 	pinst->kobj.kset = pcrypt_kset;
-	ret = kobject_add(&pinst->kobj, NULL, name);
+	ret = kobject_add(&pinst->kobj, NULL, "%s", name);
 	if (!ret)
 		kobject_uevent(&pinst->kobj, KOBJ_ADD);
 
crypto/tgr192.c +3 -3
index 321bc6ff2a9d..904c8444aa0a 100644
@@ -25,8 +25,9 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/mm.h>
-#include <asm/byteorder.h>
 #include <linux/types.h>
+#include <asm/byteorder.h>
+#include <asm/unaligned.h>
 
 #define TGR192_DIGEST_SIZE 24
 #define TGR160_DIGEST_SIZE 20
@@ -468,10 +469,9 @@ static void tgr192_transform(struct tgr192_ctx *tctx, const u8 * data)
 	u64 a, b, c, aa, bb, cc;
 	u64 x[8];
 	int i;
-	const __le64 *ptr = (const __le64 *)data;
 
 	for (i = 0; i < 8; i++)
-		x[i] = le64_to_cpu(ptr[i]);
+		x[i] = get_unaligned_le64(data + i * sizeof(__le64));
 
 	/* save */
 	a = aa = tctx->a;
drivers/ata/libahci.c +0 -1
index cda9a0b5bdaa..7473ff46de66 100644
@@ -191,7 +191,6 @@ struct ata_port_operations ahci_pmp_retry_srst_ops = {
 EXPORT_SYMBOL_GPL(ahci_pmp_retry_srst_ops);
 
 static bool ahci_em_messages __read_mostly = true;
-EXPORT_SYMBOL_GPL(ahci_em_messages);
 module_param(ahci_em_messages, bool, 0444);
 /* add other LED protocol types when they become supported */
 MODULE_PARM_DESC(ahci_em_messages,
drivers/base/core.c +14 -6
index 2b0a1054535c..93c2fc58013e 100644
@@ -180,11 +180,20 @@ struct device_link *device_link_add(struct device *consumer,
 				    struct device *supplier, u32 flags)
 {
 	struct device_link *link;
+	bool rpm_put_supplier = false;
 
 	if (!consumer || !supplier ||
 	    ((flags & DL_FLAG_STATELESS) && (flags & DL_FLAG_AUTOREMOVE)))
 		return NULL;
 
+	if (flags & DL_FLAG_PM_RUNTIME && flags & DL_FLAG_RPM_ACTIVE) {
+		if (pm_runtime_get_sync(supplier) < 0) {
+			pm_runtime_put_noidle(supplier);
+			return NULL;
+		}
+		rpm_put_supplier = true;
+	}
+
 	device_links_write_lock();
 	device_pm_lock();
 
@@ -209,13 +218,8 @@ struct device_link *device_link_add(struct device *consumer,
 
 	if (flags & DL_FLAG_PM_RUNTIME) {
 		if (flags & DL_FLAG_RPM_ACTIVE) {
-			if (pm_runtime_get_sync(supplier) < 0) {
-				pm_runtime_put_noidle(supplier);
-				kfree(link);
-				link = NULL;
-				goto out;
-			}
 			link->rpm_active = true;
+			rpm_put_supplier = false;
 		}
 		pm_runtime_new_link(consumer);
 		/*
@@ -286,6 +290,10 @@ struct device_link *device_link_add(struct device *consumer,
  out:
 	device_pm_unlock();
 	device_links_write_unlock();
+
+	if (rpm_put_supplier)
+		pm_runtime_put(supplier);
+
 	return link;
 }
 EXPORT_SYMBOL_GPL(device_link_add);
drivers/base/power/wakeup.c +1 -1
index df53e2b3296b..877b2a1767a5 100644
@@ -877,7 +877,7 @@ EXPORT_SYMBOL_GPL(pm_system_wakeup);
 
 void pm_system_cancel_wakeup(void)
 {
-	atomic_dec(&pm_abort_suspend);
+	atomic_dec_if_positive(&pm_abort_suspend);
 }
 
 void pm_wakeup_clear(bool reset)
drivers/bcma/driver_pci.c +2 -2
index f499a469e66d..12b2cc9a3fbe 100644
@@ -78,7 +78,7 @@ static u16 bcma_pcie_mdio_read(struct bcma_drv_pci *pc, u16 device, u8 address)
 		v |= (address << BCMA_CORE_PCI_MDIODATA_REGADDR_SHF_OLD);
 	}
 
-	v = BCMA_CORE_PCI_MDIODATA_START;
+	v |= BCMA_CORE_PCI_MDIODATA_START;
 	v |= BCMA_CORE_PCI_MDIODATA_READ;
 	v |= BCMA_CORE_PCI_MDIODATA_TA;
 
@@ -121,7 +121,7 @@ static void bcma_pcie_mdio_write(struct bcma_drv_pci *pc, u16 device,
 		v |= (address << BCMA_CORE_PCI_MDIODATA_REGADDR_SHF_OLD);
 	}
 
-	v = BCMA_CORE_PCI_MDIODATA_START;
+	v |= BCMA_CORE_PCI_MDIODATA_START;
 	v |= BCMA_CORE_PCI_MDIODATA_WRITE;
 	v |= BCMA_CORE_PCI_MDIODATA_TA;
 	v |= data;
drivers/block/drbd/drbd_main.c +2 -0
index 7ea13b5497fd..b998e3abca7a 100644
@@ -334,6 +334,8 @@ static int drbd_thread_setup(void *arg)
 		 thi->name[0],
 		 resource->name);
 
+	allow_kernel_signal(DRBD_SIGKILL);
+	allow_kernel_signal(SIGXCPU);
 restart:
 	retval = thi->function(thi);
 
drivers/clk/clk-highbank.c +1 -0
index 727ed8e1bb72..8e4581004695 100644
@@ -293,6 +293,7 @@ static __init struct clk *hb_clk_init(struct device_node *node, const struct clk
 	/* Map system registers */
 	srnp = of_find_compatible_node(NULL, NULL, "calxeda,hb-sregs");
 	hb_clk->reg = of_iomap(srnp, 0);
+	of_node_put(srnp);
 	BUG_ON(!hb_clk->reg);
 	hb_clk->reg += reg;
 
drivers/clk/clk-qoriq.c +1 -0
index 1a292519d84f..999a90a16609 100644
@@ -1382,6 +1382,7 @@ static void __init clockgen_init(struct device_node *np)
 				pr_err("%s: Couldn't map %pOF regs\n", __func__,
 				       guts);
 			}
+			of_node_put(guts);
 		}
 
 	}
drivers/clk/imx/clk-imx6q.c +1 -0
index 8eb93eb2f857..e0547654cb7b 100644
@@ -431,6 +431,7 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node)
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-anatop");
 	anatop_base = base = of_iomap(np, 0);
 	WARN_ON(!base);
+	of_node_put(np);
 
 	/* Audio/video PLL post dividers do not work on i.MX6q revision 1.0 */
 	if (clk_on_imx6q() && imx_get_soc_revision() == IMX_CHIP_REVISION_1_0) {
drivers/clk/imx/clk-imx6sx.c +1 -0
index e6d389e333d7..baa07553a0dd 100644
@@ -164,6 +164,7 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node)
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx6sx-anatop");
 	base = of_iomap(np, 0);
 	WARN_ON(!base);
+	of_node_put(np);
 
 	clks[IMX6SX_PLL1_BYPASS_SRC] = imx_clk_mux("pll1_bypass_src", base + 0x00, 14, 1, pll_bypass_src_sels, ARRAY_SIZE(pll_bypass_src_sels));
 	clks[IMX6SX_PLL2_BYPASS_SRC] = imx_clk_mux("pll2_bypass_src", base + 0x30, 14, 1, pll_bypass_src_sels, ARRAY_SIZE(pll_bypass_src_sels));
drivers/clk/imx/clk-imx7d.c +1 -0
index 0ac9b30c8b90..9f5e5b9d4a25 100644
@@ -416,6 +416,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node)
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx7d-anatop");
 	base = of_iomap(np, 0);
 	WARN_ON(!base);
+	of_node_put(np);
 
 	clks[IMX7D_PLL_ARM_MAIN_SRC]  = imx_clk_mux("pll_arm_main_src", base + 0x60, 14, 2, pll_bypass_src_sel, ARRAY_SIZE(pll_bypass_src_sel));
 	clks[IMX7D_PLL_DRAM_MAIN_SRC] = imx_clk_mux("pll_dram_main_src", base + 0x70, 14, 2, pll_bypass_src_sel, ARRAY_SIZE(pll_bypass_src_sel));
drivers/clk/imx/clk-vf610.c +1 -0
index 6dae54325a91..a334667c450a 100644
@@ -203,6 +203,7 @@ static void __init vf610_clocks_init(struct device_node *ccm_node)
 	np = of_find_compatible_node(NULL, NULL, "fsl,vf610-anatop");
 	anatop_base = of_iomap(np, 0);
 	BUG_ON(!anatop_base);
+	of_node_put(np);
 
 	np = ccm_node;
 	ccm_base = of_iomap(np, 0);
drivers/clk/mvebu/armada-370.c +3 -1
index 2c7c1085f883..8fdfa97900cd 100644
@@ -177,8 +177,10 @@ static void __init a370_clk_init(struct device_node *np)
 
 	mvebu_coreclk_setup(np, &a370_coreclks);
 
-	if (cgnp)
+	if (cgnp) {
 		mvebu_clk_gating_setup(cgnp, a370_gating_desc);
+		of_node_put(cgnp);
+	}
 }
 CLK_OF_DECLARE(a370_clk, "marvell,armada-370-core-clock", a370_clk_init);
 
drivers/clk/mvebu/armada-xp.c +3 -1
index 0ec44ae9a2a2..df529982adc9 100644
@@ -228,7 +228,9 @@ static void __init axp_clk_init(struct device_node *np)
 
 	mvebu_coreclk_setup(np, &axp_coreclks);
 
-	if (cgnp)
+	if (cgnp) {
 		mvebu_clk_gating_setup(cgnp, axp_gating_desc);
+		of_node_put(cgnp);
+	}
 }
 CLK_OF_DECLARE(axp_clk, "marvell,armada-xp-core-clock", axp_clk_init);
drivers/clk/mvebu/dove.c +6 -2
index 59fad9546c84..5f258c9bb68b 100644
@@ -190,10 +190,14 @@ static void __init dove_clk_init(struct device_node *np)
 
 	mvebu_coreclk_setup(np, &dove_coreclks);
 
-	if (ddnp)
+	if (ddnp) {
 		dove_divider_clk_init(ddnp);
+		of_node_put(ddnp);
+	}
 
-	if (cgnp)
+	if (cgnp) {
 		mvebu_clk_gating_setup(cgnp, dove_gating_desc);
+		of_node_put(cgnp);
+	}
 }
 CLK_OF_DECLARE(dove_clk, "marvell,dove-core-clock", dove_clk_init);
drivers/clk/mvebu/kirkwood.c +2 -0
index a2a8d614039d..890ebf623261 100644
@@ -333,6 +333,8 @@ static void __init kirkwood_clk_init(struct device_node *np)
 	if (cgnp) {
 		mvebu_clk_gating_setup(cgnp, kirkwood_gating_desc);
 		kirkwood_clk_muxing_setup(cgnp, kirkwood_mux_desc);
+
+		of_node_put(cgnp);
 	}
 }
 CLK_OF_DECLARE(kirkwood_clk, "marvell,kirkwood-core-clock",
drivers/clk/mvebu/mv98dx3236.c +3 -1
index 6e203af73cac..c8a0d03d2cd6 100644
@@ -174,7 +174,9 @@ static void __init mv98dx3236_clk_init(struct device_node *np)
 
 	mvebu_coreclk_setup(np, &mv98dx3236_core_clocks);
 
-	if (cgnp)
+	if (cgnp) {
 		mvebu_clk_gating_setup(cgnp, mv98dx3236_gating_desc);
+		of_node_put(cgnp);
+	}
 }
 CLK_OF_DECLARE(mv98dx3236_clk, "marvell,mv98dx3236-core-clock", mv98dx3236_clk_init);
drivers/clk/qcom/gcc-msm8996.c +0 -36
index 7ddec886fcd3..c0b043b1bd24 100644
@@ -140,22 +140,6 @@ static const char * const gcc_xo_gpll0_gpll4_gpll0_early_div[] = {
 	"gpll0_early_div"
 };
 
-static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map[] = {
-	{ P_XO, 0 },
-	{ P_GPLL0, 1 },
-	{ P_GPLL2, 2 },
-	{ P_GPLL3, 3 },
-	{ P_GPLL0_EARLY_DIV, 6 }
-};
-
-static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div[] = {
-	"xo",
-	"gpll0",
-	"gpll2",
-	"gpll3",
-	"gpll0_early_div"
-};
-
 static const struct parent_map gcc_xo_gpll0_gpll1_early_div_gpll1_gpll4_gpll0_early_div_map[] = {
 	{ P_XO, 0 },
 	{ P_GPLL0, 1 },
@@ -194,26 +178,6 @@ static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll2_early_gpll0_early
 	"gpll0_early_div"
 };
 
-static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div_map[] = {
-	{ P_XO, 0 },
-	{ P_GPLL0, 1 },
-	{ P_GPLL2, 2 },
-	{ P_GPLL3, 3 },
-	{ P_GPLL1, 4 },
-	{ P_GPLL4, 5 },
-	{ P_GPLL0_EARLY_DIV, 6 }
-};
-
-static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div[] = {
-	"xo",
-	"gpll0",
-	"gpll2",
-	"gpll3",
-	"gpll1",
-	"gpll4",
-	"gpll0_early_div"
-};
-
 static struct clk_fixed_factor xo = {
 	.mult = 1,
 	.div = 1,
drivers/clk/samsung/clk-exynos4.c +1 -0
index d8d3cb67b402..3d3026221927 100644
@@ -1240,6 +1240,7 @@ static unsigned long __init exynos4_get_xom(void)
 			xom = readl(chipid_base + 8);
 
 		iounmap(chipid_base);
+		of_node_put(np);
 	}
 
 	return xom;
drivers/clk/socfpga/clk-pll-a10.c +1 -0
index 35fabe1a32c3..269467e8e07e 100644
@@ -95,6 +95,7 @@ static struct clk * __init __socfpga_pll_init(struct device_node *node,
 
 	clkmgr_np = of_find_compatible_node(NULL, NULL, "altr,clk-mgr");
 	clk_mgr_a10_base_addr = of_iomap(clkmgr_np, 0);
+	of_node_put(clkmgr_np);
 	BUG_ON(!clk_mgr_a10_base_addr);
 	pll_clk->hw.reg = clk_mgr_a10_base_addr + reg;
 
drivers/clk/socfpga/clk-pll.c +1 -0
index c7f463172e4b..b4b44e9b5901 100644
@@ -100,6 +100,7 @@ static __init struct clk *__socfpga_pll_init(struct device_node *node,
 
 	clkmgr_np = of_find_compatible_node(NULL, NULL, "altr,clk-mgr");
 	clk_mgr_base_addr = of_iomap(clkmgr_np, 0);
+	of_node_put(clkmgr_np);
 	BUG_ON(!clk_mgr_base_addr);
 	pll_clk->hw.reg = clk_mgr_base_addr + reg;
 
drivers/clk/sunxi-ng/ccu-sun8i-a23.c +1 -1
index d93b452f0df9..1cef040ebe82 100644
@@ -132,7 +132,7 @@ static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_mipi_clk, "pll-mipi",
 				    8, 4,		/* N */
 				    4, 2,		/* K */
 				    0, 4,		/* M */
-				    BIT(31),		/* gate */
+				    BIT(31) | BIT(23) | BIT(22), /* gate */
 				    BIT(28),		/* lock */
 				    CLK_SET_RATE_UNGATE);
 
drivers/clk/sunxi-ng/ccu-sun8i-v3s.c +15 -4
index 9e3f4088724b..c7f9d974b10d 100644
@@ -84,7 +84,7 @@ static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_ve_clk, "pll-ve",
 					BIT(28),	/* lock */
 					0);
 
-static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_ddr_clk, "pll-ddr",
+static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_ddr0_clk, "pll-ddr0",
 				    "osc24M", 0x020,
 				    8, 5,	/* N */
 				    4, 2,	/* K */
@@ -123,6 +123,14 @@ static SUNXI_CCU_NK_WITH_GATE_LOCK_POSTDIV(pll_periph1_clk, "pll-periph1",
 					   2,		/* post-div */
 					   0);
 
+static SUNXI_CCU_NM_WITH_GATE_LOCK(pll_ddr1_clk, "pll-ddr1",
+				   "osc24M", 0x04c,
+				   8, 7,	/* N */
+				   0, 2,	/* M */
+				   BIT(31),	/* gate */
+				   BIT(28),	/* lock */
+				   0);
+
 static const char * const cpu_parents[] = { "osc32k", "osc24M",
 					     "pll-cpu", "pll-cpu" };
 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpu_parents,
@@ -310,7 +318,8 @@ static SUNXI_CCU_GATE(usb_phy0_clk,	"usb-phy0",	"osc24M",
 static SUNXI_CCU_GATE(usb_ohci0_clk,	"usb-ohci0",	"osc24M",
 		      0x0cc, BIT(16), 0);
 
-static const char * const dram_parents[] = { "pll-ddr", "pll-periph0-2x" };
+static const char * const dram_parents[] = { "pll-ddr0", "pll-ddr1",
+					     "pll-periph0-2x" };
 static SUNXI_CCU_M_WITH_MUX(dram_clk, "dram", dram_parents,
 			    0x0f4, 0, 4, 20, 2, CLK_IS_CRITICAL);
 
@@ -369,10 +378,11 @@ static struct ccu_common *sun8i_v3s_ccu_clks[] = {
 	&pll_audio_base_clk.common,
 	&pll_video_clk.common,
 	&pll_ve_clk.common,
-	&pll_ddr_clk.common,
+	&pll_ddr0_clk.common,
 	&pll_periph0_clk.common,
 	&pll_isp_clk.common,
 	&pll_periph1_clk.common,
+	&pll_ddr1_clk.common,
 	&cpu_clk.common,
 	&axi_clk.common,
 	&ahb1_clk.common,
@@ -457,11 +467,12 @@ static struct clk_hw_onecell_data sun8i_v3s_hw_clks = {
 		[CLK_PLL_AUDIO_8X]	= &pll_audio_8x_clk.hw,
 		[CLK_PLL_VIDEO]		= &pll_video_clk.common.hw,
 		[CLK_PLL_VE]		= &pll_ve_clk.common.hw,
-		[CLK_PLL_DDR]		= &pll_ddr_clk.common.hw,
+		[CLK_PLL_DDR0]		= &pll_ddr0_clk.common.hw,
 		[CLK_PLL_PERIPH0]	= &pll_periph0_clk.common.hw,
 		[CLK_PLL_PERIPH0_2X]	= &pll_periph0_2x_clk.hw,
 		[CLK_PLL_ISP]		= &pll_isp_clk.common.hw,
 		[CLK_PLL_PERIPH1]	= &pll_periph1_clk.common.hw,
+		[CLK_PLL_DDR1]		= &pll_ddr1_clk.common.hw,
 		[CLK_CPU]		= &cpu_clk.common.hw,
 		[CLK_AXI]		= &axi_clk.common.hw,
 		[CLK_AHB1]		= &ahb1_clk.common.hw,
drivers/clk/sunxi-ng/ccu-sun8i-v3s.h +4 -2
index 4a4d36fdad96..a091b7217dfd 100644
@@ -29,7 +29,7 @@
 #define CLK_PLL_AUDIO_8X	5
 #define CLK_PLL_VIDEO		6
 #define CLK_PLL_VE		7
-#define CLK_PLL_DDR		8
+#define CLK_PLL_DDR0		8
 #define CLK_PLL_PERIPH0		9
 #define CLK_PLL_PERIPH0_2X	10
 #define CLK_PLL_ISP		11
@@ -58,6 +58,8 @@
 
 /* And the GPU module clock is exported */
 
-#define CLK_NUMBER		(CLK_MIPI_CSI + 1)
+#define CLK_PLL_DDR1		74
+
+#define CLK_NUMBER		(CLK_PLL_DDR1 + 1)
 
 #endif /* _CCU_SUN8I_H3_H_ */
drivers/clocksource/exynos_mct.c +13 -1
index aaf5bfa9bd9c..e3ae041ac30e 100644
@@ -563,7 +563,19 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem *
 	return 0;
 
 out_irq:
-	free_percpu_irq(mct_irqs[MCT_L0_IRQ], &percpu_mct_tick);
+	if (mct_int_type == MCT_INT_PPI) {
+		free_percpu_irq(mct_irqs[MCT_L0_IRQ], &percpu_mct_tick);
+	} else {
+		for_each_possible_cpu(cpu) {
+			struct mct_clock_event_device *pcpu_mevt =
+				per_cpu_ptr(&percpu_mct_tick, cpu);
+
+			if (pcpu_mevt->evt.irq != -1) {
+				free_irq(pcpu_mevt->evt.irq, pcpu_mevt);
+				pcpu_mevt->evt.irq = -1;
+			}
+		}
+	}
 	return err;
 }
 
drivers/clocksource/timer-sun5i.c +10 -0
index 2a3fe83ec337..6f4a9a8faccc 100644
@@ -202,6 +202,11 @@ static int __init sun5i_setup_clocksource(struct device_node *node,
 	}
 
 	rate = clk_get_rate(clk);
+	if (!rate) {
+		pr_err("Couldn't get parent clock rate\n");
+		ret = -EINVAL;
+		goto err_disable_clk;
+	}
 
 	cs->timer.base = base;
 	cs->timer.clk = clk;
@@ -275,6 +280,11 @@ static int __init sun5i_setup_clockevent(struct device_node *node, void __iomem
 	}
 
 	rate = clk_get_rate(clk);
+	if (!rate) {
+		pr_err("Couldn't get parent clock rate\n");
+		ret = -EINVAL;
+		goto err_disable_clk;
+	}
 
 	ce->timer.base = base;
 	ce->timer.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ);
drivers/cpufreq/brcmstb-avs-cpufreq.c +6 -6
index 7281a2c19c36..39c462711eae 100644
@@ -468,12 +468,12 @@ static int brcm_avs_set_pstate(struct private_data *priv, unsigned int pstate)
 	return __issue_avs_command(priv, AVS_CMD_SET_PSTATE, true, args);
 }
 
-static unsigned long brcm_avs_get_voltage(void __iomem *base)
+static u32 brcm_avs_get_voltage(void __iomem *base)
 {
 	return readl(base + AVS_MBOX_VOLTAGE1);
 }
 
-static unsigned long brcm_avs_get_frequency(void __iomem *base)
+static u32 brcm_avs_get_frequency(void __iomem *base)
 {
 	return readl(base + AVS_MBOX_FREQUENCY) * 1000;	/* in kHz */
 }
@@ -762,8 +762,8 @@ static bool brcm_avs_is_firmware_loaded(struct private_data *priv)
 	rc = brcm_avs_get_pmap(priv, NULL);
 	magic = readl(priv->base + AVS_MBOX_MAGIC);
 
-	return (magic == AVS_FIRMWARE_MAGIC) && (rc != -ENOTSUPP) &&
-		(rc != -EINVAL);
+	return (magic == AVS_FIRMWARE_MAGIC) && ((rc != -ENOTSUPP) ||
+		(rc != -EINVAL));
 }
 
 static unsigned int brcm_avs_cpufreq_get(unsigned int cpu)
@@ -973,14 +973,14 @@ static ssize_t show_brcm_avs_voltage(struct cpufreq_policy *policy, char *buf)
 {
 	struct private_data *priv = policy->driver_data;
 
-	return sprintf(buf, "0x%08lx\n", brcm_avs_get_voltage(priv->base));
+	return sprintf(buf, "0x%08x\n", brcm_avs_get_voltage(priv->base));
 }
 
 static ssize_t show_brcm_avs_frequency(struct cpufreq_policy *policy, char *buf)
 {
 	struct private_data *priv = policy->driver_data;
 
-	return sprintf(buf, "0x%08lx\n", brcm_avs_get_frequency(priv->base));
+	return sprintf(buf, "0x%08x\n", brcm_avs_get_frequency(priv->base));
 }
 
 cpufreq_freq_attr_ro(brcm_avs_pstate);
drivers/crypto/amcc/crypto4xx_trng.h +2 -2
index 931d22531f51..7bbda51b7337 100644
@@ -26,9 +26,9 @@ void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev);
 void ppc4xx_trng_remove(struct crypto4xx_core_device *core_dev);
 #else
 static inline void ppc4xx_trng_probe(
-	struct crypto4xx_device *dev __maybe_unused) { }
+	struct crypto4xx_core_device *dev __maybe_unused) { }
 static inline void ppc4xx_trng_remove(
-	struct crypto4xx_device *dev __maybe_unused) { }
+	struct crypto4xx_core_device *dev __maybe_unused) { }
 #endif
 
 #endif
drivers/crypto/bcm/cipher.c +1 -5
index 84422435f39b..279e907590e9 100644
@@ -718,7 +718,7 @@ static int handle_ahash_req(struct iproc_reqctx_s *rctx)
 	 */
 	unsigned int new_data_len;
 
-	unsigned int chunk_start = 0;
+	unsigned int __maybe_unused chunk_start = 0;
 	u32 db_size;	 /* Length of data field, incl gcm and hash padding */
 	int pad_len = 0; /* total pad len, including gcm, hash, stat padding */
 	u32 data_pad_len = 0;	/* length of GCM/CCM padding */
@@ -1676,8 +1676,6 @@ static void spu_rx_callback(struct mbox_client *cl, void *msg)
 	struct spu_hw *spu = &iproc_priv.spu;
 	struct brcm_message *mssg = msg;
 	struct iproc_reqctx_s *rctx;
-	struct iproc_ctx_s *ctx;
-	struct crypto_async_request *areq;
 	int err = 0;
 
 	rctx = mssg->ctx;
@@ -1687,8 +1685,6 @@ static void spu_rx_callback(struct mbox_client *cl, void *msg)
 		err = -EFAULT;
 		goto cb_finish;
 	}
-	areq = rctx->parent;
-	ctx = rctx->ctx;
 
 	/* process the SPU status */
 	err = spu->spu_status_process(rctx->msg_buf.rx_stat);
drivers/crypto/caam/caamrng.c +4 -1
index fde07d4ff019..ff6718a11e9e 100644
@@ -353,7 +353,10 @@ static int __init caam_rng_init(void)
 		goto free_rng_ctx;
 
 	dev_info(dev, "registering rng-caam\n");
-	return hwrng_register(&caam_rng);
+
+	err = hwrng_register(&caam_rng);
+	if (!err)
+		return err;
 
 free_rng_ctx:
 	kfree(rng_ctx);
drivers/crypto/caam/error.c +1 -1
index 8da88beb1abb..832ba2afdcd5 100644
@@ -22,7 +22,7 @@ void caam_dump_sg(const char *level, const char *prefix_str, int prefix_type,
 	size_t len;
 	void *buf;
 
-	for (it = sg; it && tlen > 0 ; it = sg_next(sg)) {
+	for (it = sg; it && tlen > 0 ; it = sg_next(it)) {
 		/*
 		 * make sure the scatterlist's page
 		 * has a valid virtual memory mapping
drivers/crypto/ccp/ccp-crypto-aes.c +4 -4
index 89291c15015c..3f768699332b 100644
@@ -1,7 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * AMD Cryptographic Coprocessor (CCP) AES crypto API support
  *
- * Copyright (C) 2013,2016 Advanced Micro Devices, Inc.
+ * Copyright (C) 2013-2019 Advanced Micro Devices, Inc.
  *
  * Author: Tom Lendacky <[email protected]>
  *
@@ -79,8 +80,7 @@ static int ccp_aes_crypt(struct ablkcipher_request *req, bool encrypt)
 		return -EINVAL;
 
 	if (((ctx->u.aes.mode == CCP_AES_MODE_ECB) ||
-	     (ctx->u.aes.mode == CCP_AES_MODE_CBC) ||
-	     (ctx->u.aes.mode == CCP_AES_MODE_CFB)) &&
+	     (ctx->u.aes.mode == CCP_AES_MODE_CBC)) &&
 	    (req->nbytes & (AES_BLOCK_SIZE - 1)))
 		return -EINVAL;
 
@@ -291,7 +291,7 @@ static struct ccp_aes_def aes_algs[] = {
 		.version	= CCP_VERSION(3, 0),
 		.name		= "cfb(aes)",
 		.driver_name	= "cfb-aes-ccp",
-		.blocksize	= AES_BLOCK_SIZE,
+		.blocksize	= 1,
 		.ivsize		= AES_BLOCK_SIZE,
 		.alg_defaults	= &ccp_aes_defaults,
 	},
drivers/crypto/ccp/ccp-ops.c +35 -32

164 lines not on this page · raw message

drivers/crypto/sunxi-ss/sun4i-ss-hash.c +11 -10
index 1a724263761b..2d178e013535 100644
@@ -179,7 +179,7 @@ static int sun4i_hash(struct ahash_request *areq)
 	 */
 	unsigned int i = 0, end, fill, min_fill, nwait, nbw = 0, j = 0, todo;
 	unsigned int in_i = 0;
-	u32 spaces, rx_cnt = SS_RX_DEFAULT, bf[32] = {0}, wb = 0, v, ivmode = 0;
+	u32 spaces, rx_cnt = SS_RX_DEFAULT, bf[32] = {0}, v, ivmode = 0;
 	struct sun4i_req_ctx *op = ahash_request_ctx(areq);
 	struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
 	struct sun4i_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm);
@@ -188,6 +188,7 @@ static int sun4i_hash(struct ahash_request *areq)
 	struct sg_mapping_iter mi;
 	int in_r, err = 0;
 	size_t copied = 0;
+	__le32 wb = 0;
 
 	dev_dbg(ss->dev, "%s %s bc=%llu len=%u mode=%x wl=%u h0=%0x",
 		__func__, crypto_tfm_alg_name(areq->base.tfm),
@@ -399,7 +400,7 @@ static int sun4i_hash(struct ahash_request *areq)
 
 		nbw = op->len - 4 * nwait;
 		if (nbw) {
-			wb = *(u32 *)(op->buf + nwait * 4);
+			wb = cpu_to_le32(*(u32 *)(op->buf + nwait * 4));
 			wb &= GENMASK((nbw * 8) - 1, 0);
 
 			op->byte_count += nbw;
@@ -408,7 +409,7 @@ static int sun4i_hash(struct ahash_request *areq)
 
 	/* write the remaining bytes of the nbw buffer */
 	wb |= ((1 << 7) << (nbw * 8));
-	bf[j++] = wb;
+	bf[j++] = le32_to_cpu(wb);
 
 	/*
 	 * number of space to pad to obtain 64o minus 8(size) minus 4 (final 1)
@@ -427,13 +428,13 @@ static int sun4i_hash(struct ahash_request *areq)
 
 	/* write the length of data */
 	if (op->mode == SS_OP_SHA1) {
-		__be64 bits = cpu_to_be64(op->byte_count << 3);
-		bf[j++] = lower_32_bits(bits);
-		bf[j++] = upper_32_bits(bits);
+		__be64 *bits = (__be64 *)&bf[j];
+		*bits = cpu_to_be64(op->byte_count << 3);
+		j += 2;
 	} else {
-		__le64 bits = op->byte_count << 3;
-		bf[j++] = lower_32_bits(bits);
-		bf[j++] = upper_32_bits(bits);
+		__le64 *bits = (__le64 *)&bf[j];
+		*bits = cpu_to_le64(op->byte_count << 3);
+		j += 2;
 	}
 	writesl(ss->base + SS_RXFIFO, bf, j);
 
@@ -475,7 +476,7 @@ static int sun4i_hash(struct ahash_request *areq)
 		}
 	} else {
 		for (i = 0; i < 4; i++) {
-			v = readl(ss->base + SS_MD0 + i * 4);
+			v = cpu_to_le32(readl(ss->base + SS_MD0 + i * 4));
 			memcpy(areq->result + i * 4, &v, 4);
 		}
 	}
drivers/dma/dma-axi-dmac.c +1 -1
index 7f0b9aa15867..9887f2a14aa9 100644
@@ -451,7 +451,7 @@ static struct dma_async_tx_descriptor *axi_dmac_prep_interleaved(
 
 	if (chan->hw_2d) {
 		if (!axi_dmac_check_len(chan, xt->sgl[0].size) ||
-		    !axi_dmac_check_len(chan, xt->numf))
+		    xt->numf == 0)
 			return NULL;
 		if (xt->sgl[0].size + dst_icg > chan->max_length ||
 		    xt->sgl[0].size + src_icg > chan->max_length)
drivers/dma/dw/platform.c +12 -2
index 46a519e07195..b408c07662f5 100644
@@ -87,13 +87,20 @@ static void dw_dma_acpi_controller_register(struct dw_dma *dw)
 	dma_cap_set(DMA_SLAVE, info->dma_cap);
 	info->filter_fn = dw_dma_acpi_filter;
 
-	ret = devm_acpi_dma_controller_register(dev, acpi_dma_simple_xlate,
-						info);
+	ret = acpi_dma_controller_register(dev, acpi_dma_simple_xlate, info);
 	if (ret)
 		dev_err(dev, "could not register acpi_dma_controller\n");
 }
+
+static void dw_dma_acpi_controller_free(struct dw_dma *dw)
+{
+	struct device *dev = dw->dma.dev;
+
+	acpi_dma_controller_free(dev);
+}
 #else /* !CONFIG_ACPI */
 static inline void dw_dma_acpi_controller_register(struct dw_dma *dw) {}
+static inline void dw_dma_acpi_controller_free(struct dw_dma *dw) {}
 #endif /* !CONFIG_ACPI */
 
 #ifdef CONFIG_OF
@@ -249,6 +256,9 @@ static int dw_remove(struct platform_device *pdev)
 {
 	struct dw_dma_chip *chip = platform_get_drvdata(pdev);
 
+	if (ACPI_HANDLE(&pdev->dev))
+		dw_dma_acpi_controller_free(chip->dw);
+
 	if (pdev->dev.of_node)
 		of_dma_controller_free(pdev->dev.of_node);
 
drivers/dma/edma.c +4 -2
index 519c24465dea..57a49fe713fd 100644
@@ -2340,8 +2340,10 @@ static int edma_probe(struct platform_device *pdev)
 
 		ecc->tc_list = devm_kcalloc(dev, ecc->num_tc,
 					    sizeof(*ecc->tc_list), GFP_KERNEL);
-		if (!ecc->tc_list)
-			return -ENOMEM;
+		if (!ecc->tc_list) {
+			ret = -ENOMEM;
+			goto err_reg1;
+		}
 
 		for (i = 0;; i++) {
 			ret = of_parse_phandle_with_fixed_args(node, "ti,tptcs",
drivers/dma/hsu/hsu.c +2 -2
index 29d04ca71d52..15525a2b8ebd 100644
@@ -64,10 +64,10 @@ static void hsu_dma_chan_start(struct hsu_dma_chan *hsuc)
 
 	if (hsuc->direction == DMA_MEM_TO_DEV) {
 		bsr = config->dst_maxburst;
-		mtsr = config->src_addr_width;
+		mtsr = config->dst_addr_width;
 	} else if (hsuc->direction == DMA_DEV_TO_MEM) {
 		bsr = config->src_maxburst;
-		mtsr = config->dst_addr_width;
+		mtsr = config->src_addr_width;
 	}
 
 	hsu_chan_disable(hsuc);
drivers/dma/imx-sdma.c +8 -0
index 0fc12a8783e3..99f3f22ed647 100644
@@ -1441,6 +1441,14 @@ static void sdma_add_scripts(struct sdma_engine *sdma,
 	if (!sdma->script_number)
 		sdma->script_number = SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1;
 
+	if (sdma->script_number > sizeof(struct sdma_script_start_addrs)
+				  / sizeof(s32)) {
+		dev_err(sdma->dev,
+			"SDMA script number %d not match with firmware.\n",
+			sdma->script_number);
+		return;
+	}
+
 	for (i = 0; i < sdma->script_number; i++)
 		if (addr_arr[i] > 0)
 			saddr_arr[i] = addr_arr[i];
drivers/dma/mv_xor.c +1 -1
index 1993889003fd..1c57577f49fe 100644
@@ -1059,6 +1059,7 @@ mv_xor_channel_add(struct mv_xor_device *xordev,
 		mv_chan->op_in_desc = XOR_MODE_IN_DESC;
 
 	dma_dev = &mv_chan->dmadev;
+	dma_dev->dev = &pdev->dev;
 	mv_chan->xordev = xordev;
 
 	/*
@@ -1091,7 +1092,6 @@ mv_xor_channel_add(struct mv_xor_device *xordev,
 	dma_dev->device_free_chan_resources = mv_xor_free_chan_resources;
 	dma_dev->device_tx_status = mv_xor_status;
 	dma_dev->device_issue_pending = mv_xor_issue_pending;
-	dma_dev->dev = &pdev->dev;
 
 	/* set prep routines based on capability */
 	if (dma_has_cap(DMA_INTERRUPT, dma_dev->cap_mask))
drivers/dma/tegra210-adma.c +58 -14

126 lines not on this page · raw message

drivers/edac/edac_mc.c +4 -8
index f7fa05fee45a..329021189c38 100644
@@ -680,22 +680,18 @@ static int del_mc_from_global_list(struct mem_ctl_info *mci)
 
 struct mem_ctl_info *edac_mc_find(int idx)
 {
-	struct mem_ctl_info *mci = NULL;
+	struct mem_ctl_info *mci;
 	struct list_head *item;
 
 	mutex_lock(&mem_ctls_mutex);
 
 	list_for_each(item, &mc_devices) {
 		mci = list_entry(item, struct mem_ctl_info, link);
-
-		if (mci->mc_idx >= idx) {
-			if (mci->mc_idx == idx) {
-				goto unlock;
-			}
-			break;
-		}
+		if (mci->mc_idx == idx)
+			goto unlock;
 	}
 
+	mci = NULL;
 unlock:
 	mutex_unlock(&mem_ctls_mutex);
 	return mci;
drivers/gpu/drm/drm_dp_mst_topology.c +13 -2
index c8c83f84aced..9d94c306c8ca 100644
@@ -982,9 +982,20 @@ static struct drm_dp_mst_port *drm_dp_mst_get_port_ref_locked(struct drm_dp_mst_
 static struct drm_dp_mst_port *drm_dp_get_validated_port_ref(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port)
 {
 	struct drm_dp_mst_port *rport = NULL;
+
 	mutex_lock(&mgr->lock);
-	if (mgr->mst_primary)
-		rport = drm_dp_mst_get_port_ref_locked(mgr->mst_primary, port);
+	/*
+	 * Port may or may not be 'valid' but we don't care about that when
+	 * destroying the port and we are guaranteed that the port pointer
+	 * will be valid until we've finished
+	 */
+	if (current_work() == &mgr->destroy_connector_work) {
+		kref_get(&port->kref);
+		rport = port;
+	} else if (mgr->mst_primary) {
+		rport = drm_dp_mst_get_port_ref_locked(mgr->mst_primary,
+						       port);
+	}
 	mutex_unlock(&mgr->lock);
 	return rport;
 }
drivers/gpu/drm/etnaviv/etnaviv_dump.c +1 -1
index 2d955d7d7b6d..e154e6fb64da 100644
@@ -207,7 +207,7 @@ void etnaviv_core_dump(struct etnaviv_gpu *gpu)
 		mutex_lock(&obj->lock);
 		pages = etnaviv_gem_get_pages(obj);
 		mutex_unlock(&obj->lock);
-		if (pages) {
+		if (!IS_ERR(pages)) {
 			int j;
 
 			iter.hdr->data[0] = bomap - bomap_start;
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c +1 -1
index ae884723e9b1..880b95511b98 100644
@@ -26,7 +26,7 @@ struct sg_table *etnaviv_gem_prime_get_sg_table(struct drm_gem_object *obj)
 	int npages = obj->size >> PAGE_SHIFT;
 
 	if (WARN_ON(!etnaviv_obj->pages))  /* should have already pinned! */
-		return NULL;
+		return ERR_PTR(-EINVAL);
 
 	return drm_prime_pages_to_sg(etnaviv_obj->pages, npages);
 }
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c +0 -1
index 8bd29075ae4e..edcca1761500 100644
@@ -71,7 +71,6 @@ static int hibmc_drm_fb_create(struct drm_fb_helper *helper,
 	DRM_DEBUG_DRIVER("surface width(%d), height(%d) and bpp(%d)\n",
 			 sizes->surface_width, sizes->surface_height,
 			 sizes->surface_bpp);
-	sizes->surface_depth = 32;
 
 	bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8);
 
drivers/gpu/drm/msm/adreno/a3xx_gpu.c +11 -13
index 7791313405b5..c8671b1578c6 100644
@@ -394,19 +394,17 @@ static const unsigned int a3xx_registers[] = {
 	0x2200, 0x2212, 0x2214, 0x2217, 0x221a, 0x221a, 0x2240, 0x227e,
 	0x2280, 0x228b, 0x22c0, 0x22c0, 0x22c4, 0x22ce, 0x22d0, 0x22d8,
 	0x22df, 0x22e6, 0x22e8, 0x22e9, 0x22ec, 0x22ec, 0x22f0, 0x22f7,
-	0x22ff, 0x22ff, 0x2340, 0x2343, 0x2348, 0x2349, 0x2350, 0x2356,
-	0x2360, 0x2360, 0x2440, 0x2440, 0x2444, 0x2444, 0x2448, 0x244d,
-	0x2468, 0x2469, 0x246c, 0x246d, 0x2470, 0x2470, 0x2472, 0x2472,
-	0x2474, 0x2475, 0x2479, 0x247a, 0x24c0, 0x24d3, 0x24e4, 0x24ef,
-	0x2500, 0x2509, 0x250c, 0x250c, 0x250e, 0x250e, 0x2510, 0x2511,
-	0x2514, 0x2515, 0x25e4, 0x25e4, 0x25ea, 0x25ea, 0x25ec, 0x25ed,
-	0x25f0, 0x25f0, 0x2600, 0x2612, 0x2614, 0x2617, 0x261a, 0x261a,
-	0x2640, 0x267e, 0x2680, 0x268b, 0x26c0, 0x26c0, 0x26c4, 0x26ce,
-	0x26d0, 0x26d8, 0x26df, 0x26e6, 0x26e8, 0x26e9, 0x26ec, 0x26ec,
-	0x26f0, 0x26f7, 0x26ff, 0x26ff, 0x2740, 0x2743, 0x2748, 0x2749,
-	0x2750, 0x2756, 0x2760, 0x2760, 0x300c, 0x300e, 0x301c, 0x301d,
-	0x302a, 0x302a, 0x302c, 0x302d, 0x3030, 0x3031, 0x3034, 0x3036,
-	0x303c, 0x303c, 0x305e, 0x305f,
+	0x22ff, 0x22ff, 0x2340, 0x2343, 0x2440, 0x2440, 0x2444, 0x2444,
+	0x2448, 0x244d, 0x2468, 0x2469, 0x246c, 0x246d, 0x2470, 0x2470,
+	0x2472, 0x2472, 0x2474, 0x2475, 0x2479, 0x247a, 0x24c0, 0x24d3,
+	0x24e4, 0x24ef, 0x2500, 0x2509, 0x250c, 0x250c, 0x250e, 0x250e,
+	0x2510, 0x2511, 0x2514, 0x2515, 0x25e4, 0x25e4, 0x25ea, 0x25ea,
+	0x25ec, 0x25ed, 0x25f0, 0x25f0, 0x2600, 0x2612, 0x2614, 0x2617,
+	0x261a, 0x261a, 0x2640, 0x267e, 0x2680, 0x268b, 0x26c0, 0x26c0,
+	0x26c4, 0x26ce, 0x26d0, 0x26d8, 0x26df, 0x26e6, 0x26e8, 0x26e9,
+	0x26ec, 0x26ec, 0x26f0, 0x26f7, 0x26ff, 0x26ff, 0x2740, 0x2743,
+	0x300c, 0x300e, 0x301c, 0x301d, 0x302a, 0x302a, 0x302c, 0x302d,
+	0x3030, 0x3031, 0x3034, 0x3036, 0x303c, 0x303c, 0x305e, 0x305f,
 	~0   /* sentinel */
 };
 
drivers/gpu/drm/msm/dsi/dsi_host.c +4 -2
index a9a0b56f1fbc..b9cb7c09e05a 100644
@@ -34,6 +34,8 @@
 #include "dsi_cfg.h"
 #include "msm_kms.h"
 
+#define DSI_RESET_TOGGLE_DELAY_MS 20
+
 static int dsi_get_version(const void __iomem *base, u32 *major, u32 *minor)
 {
 	u32 ver;
@@ -906,7 +908,7 @@ static void dsi_sw_reset(struct msm_dsi_host *msm_host)
 	wmb(); /* clocks need to be enabled before reset */
 
 	dsi_write(msm_host, REG_DSI_RESET, 1);
-	wmb(); /* make sure reset happen */
+	msleep(DSI_RESET_TOGGLE_DELAY_MS); /* make sure reset happen */
 	dsi_write(msm_host, REG_DSI_RESET, 0);
 }
 
@@ -1288,7 +1290,7 @@ static void dsi_sw_reset_restore(struct msm_dsi_host *msm_host)
 
 	/* dsi controller can only be reset while clocks are running */
 	dsi_write(msm_host, REG_DSI_RESET, 1);
-	wmb();	/* make sure reset happen */
+	msleep(DSI_RESET_TOGGLE_DELAY_MS); /* make sure reset happen */
 	dsi_write(msm_host, REG_DSI_RESET, 0);
 	wmb();	/* controller out of reset */
 	dsi_write(msm_host, REG_DSI_CTRL, data0);
drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c +1 -1
index 824067d2d427..42f0ecb0cf35 100644
@@ -635,7 +635,7 @@ struct mdp5_cfg_handler *mdp5_cfg_init(struct mdp5_kms *mdp5_kms,
 	if (cfg_handler)
 		mdp5_cfg_destroy(cfg_handler);
 
-	return NULL;
+	return ERR_PTR(ret);
 }
 
 static struct mdp5_cfg_platform *mdp5_get_config(struct platform_device *dev)
drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c +1 -1
index 60ece0a8a2e1..1d2d6bae73cd 100644
@@ -87,7 +87,7 @@ nvkm_gddr3_calc(struct nvkm_ram *ram)
 		WR  = (ram->next->bios.timing[2] & 0x007f0000) >> 16;
 		/* XXX: Get these values from the VBIOS instead */
 		DLL = !(ram->mr[1] & 0x1);
-		RON = !(ram->mr[1] & 0x300) >> 8;
+		RON = !((ram->mr[1] & 0x300) >> 8);
 		break;
 	default:
 		return -ENOSYS;
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/memx.c +2 -2
index 11b28b086a06..7b052879af72 100644
@@ -88,10 +88,10 @@ nvkm_memx_fini(struct nvkm_memx **pmemx, bool exec)
 	if (exec) {
 		nvkm_pmu_send(pmu, reply, PROC_MEMX, MEMX_MSG_EXEC,
 			      memx->base, finish);
+		nvkm_debug(subdev, "Exec took %uns, PMU_IN %08x\n",
+			   reply[0], reply[1]);
 	}
 
-	nvkm_debug(subdev, "Exec took %uns, PMU_IN %08x\n",
-		   reply[0], reply[1]);
 	kfree(memx);
 	return 0;
 }
drivers/gpu/drm/radeon/cik.c +2 -2
index ce8b353b5753..ba31c7674fcd 100644
@@ -7012,8 +7012,8 @@ static int cik_irq_init(struct radeon_device *rdev)
 	}
 
 	/* setup interrupt control */
-	/* XXX this should actually be a bus address, not an MC address. same on older asics */
-	WREG32(INTERRUPT_CNTL2, rdev->ih.gpu_addr >> 8);
+	/* set dummy read address to dummy page address */
+	WREG32(INTERRUPT_CNTL2, rdev->dummy_page.addr >> 8);
 	interrupt_cntl = RREG32(INTERRUPT_CNTL);
 	/* IH_DUMMY_RD_OVERRIDE=0 - dummy read disabled with msi, enabled without msi
 	 * IH_DUMMY_RD_OVERRIDE=1 - dummy read controlled by IH_DUMMY_RD_EN
drivers/gpu/drm/radeon/r600.c +2 -2
index e06e2d8feab3..a724bb87cfad 100644
@@ -3690,8 +3690,8 @@ int r600_irq_init(struct radeon_device *rdev)
 	}
 
 	/* setup interrupt control */
-	/* set dummy read address to ring address */
-	WREG32(INTERRUPT_CNTL2, rdev->ih.gpu_addr >> 8);
+	/* set dummy read address to dummy page address */
+	WREG32(INTERRUPT_CNTL2, rdev->dummy_page.addr >> 8);
 	interrupt_cntl = RREG32(INTERRUPT_CNTL);
 	/* IH_DUMMY_RD_OVERRIDE=0 - dummy read disabled with msi, enabled without msi
 	 * IH_DUMMY_RD_OVERRIDE=1 - dummy read controlled by IH_DUMMY_RD_EN
drivers/gpu/drm/radeon/si.c +2 -2
index 1907c950d76f..1144cafea9ac 100644
@@ -5993,8 +5993,8 @@ static int si_irq_init(struct radeon_device *rdev)
 	}
 
 	/* setup interrupt control */
-	/* set dummy read address to ring address */
-	WREG32(INTERRUPT_CNTL2, rdev->ih.gpu_addr >> 8);
+	/* set dummy read address to dummy page address */
+	WREG32(INTERRUPT_CNTL2, rdev->dummy_page.addr >> 8);
 	interrupt_cntl = RREG32(INTERRUPT_CNTL);
 	/* IH_DUMMY_RD_OVERRIDE=0 - dummy read disabled with msi, enabled without msi
 	 * IH_DUMMY_RD_OVERRIDE=1 - dummy read controlled by IH_DUMMY_RD_EN
drivers/gpu/drm/shmobile/shmob_drm_drv.c +2 -2
index 592572554eb0..58d8a98c749b 100644
@@ -233,8 +233,8 @@ static int shmob_drm_probe(struct platform_device *pdev)
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	sdev->mmio = devm_ioremap_resource(&pdev->dev, res);
-	if (sdev->mmio == NULL)
-		return -ENOMEM;
+	if (IS_ERR(sdev->mmio))
+		return PTR_ERR(sdev->mmio);
 
 	ret = shmob_drm_setup_clocks(sdev, pdata->clk_source);
 	if (ret < 0)
drivers/gpu/drm/sti/sti_hda.c +0 -1
index cf65e32b5090..0399bb18d387 100644
@@ -721,7 +721,6 @@ static int sti_hda_bind(struct device *dev, struct device *master, void *data)
 	return 0;
 
 err_sysfs:
-	drm_bridge_remove(bridge);
 	return -EINVAL;
 }
 
drivers/gpu/drm/sti/sti_hdmi.c +0 -1
index 30f02d2fdd03..bbb195a92e93 100644
@@ -1314,7 +1314,6 @@ static int sti_hdmi_bind(struct device *dev, struct device *master, void *data)
 	return 0;
 
 err_sysfs:
-	drm_bridge_remove(bridge);
 	hdmi->drm_connector = NULL;
 	return -EINVAL;
 }
drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c +1 -1
index 5cf2527bffc8..d7a8fea94557 100644
@@ -50,7 +50,7 @@ static unsigned long sun4i_tmds_calc_divider(unsigned long rate,
 			    (rate - tmp_rate) < (rate - best_rate)) {
 				best_rate = tmp_rate;
 				best_m = m;
-				is_double = d;
+				is_double = (d == 2) ? true : false;
 			}
 		}
 	}
drivers/gpu/drm/virtio/virtgpu_vq.c +3 -2
index 21c2de81f3e3..a3be65e689fd 100644
@@ -648,11 +648,11 @@ int virtio_gpu_cmd_get_capset(struct virtio_gpu_device *vgdev,
 {
 	struct virtio_gpu_get_capset *cmd_p;
 	struct virtio_gpu_vbuffer *vbuf;
-	int max_size = vgdev->capsets[idx].max_size;
+	int max_size;
 	struct virtio_gpu_drv_cap_cache *cache_ent;
 	void *resp_buf;
 
-	if (idx > vgdev->num_capsets)
+	if (idx >= vgdev->num_capsets)
 		return -EINVAL;
 
 	if (version > vgdev->capsets[idx].max_version)
@@ -662,6 +662,7 @@ int virtio_gpu_cmd_get_capset(struct virtio_gpu_device *vgdev,
 	if (!cache_ent)
 		return -ENOMEM;
 
+	max_size = vgdev->capsets[idx].max_size;
 	cache_ent->caps_cache = kmalloc(max_size, GFP_KERNEL);
 	if (!cache_ent->caps_cache) {
 		kfree(cache_ent);
drivers/hwmon/lm75.c +1 -1
index 005ffb5ffa92..1737bb5fbaaf 100644
@@ -165,7 +165,7 @@ static int lm75_write(struct device *dev, enum hwmon_sensor_types type,
 	temp = DIV_ROUND_CLOSEST(temp  << (resolution - 8),
 				 1000) << (16 - resolution);
 
-	return regmap_write(data->regmap, reg, temp);
+	return regmap_write(data->regmap, reg, (u16)temp);
 }
 
 static umode_t lm75_is_visible(const void *data, enum hwmon_sensor_types type,
drivers/hwmon/pmbus/tps53679.c +8 -1
index 85b515cd9df0..2bc352c5357f 100644
@@ -80,7 +80,14 @@ static struct pmbus_driver_info tps53679_info = {
 static int tps53679_probe(struct i2c_client *client,
 			  const struct i2c_device_id *id)
 {
-	return pmbus_do_probe(client, id, &tps53679_info);
+	struct pmbus_driver_info *info;
+
+	info = devm_kmemdup(&client->dev, &tps53679_info, sizeof(*info),
+			    GFP_KERNEL);
+	if (!info)
+		return -ENOMEM;
+
+	return pmbus_do_probe(client, id, info);
 }
 
 static const struct i2c_device_id tps53679_id[] = {
drivers/hwmon/shtc1.c +1 -1
index decd7df995ab..2a18539591ea 100644
@@ -38,7 +38,7 @@ static const unsigned char shtc1_cmd_read_id_reg[]	       = { 0xef, 0xc8 };
 
 /* constants for reading the ID register */
 #define SHTC1_ID	  0x07
-#define SHTC1_ID_REG_MASK 0x1f
+#define SHTC1_ID_REG_MASK 0x3f
 
 /* delays for non-blocking i2c commands, both in us */
 #define SHTC1_NONBLOCKING_WAIT_TIME_HPM  14400
drivers/hwmon/w83627hf.c +37 -5

84 lines not on this page · raw message

drivers/iio/dac/ad5380.c +1 -1
index 97d2c5111f43..8bf7fc626a9d 100644
@@ -221,7 +221,7 @@ static int ad5380_read_raw(struct iio_dev *indio_dev,
 		if (ret)
 			return ret;
 		*val >>= chan->scan_type.shift;
-		val -= (1 << chan->scan_type.realbits) / 2;
+		*val -= (1 << chan->scan_type.realbits) / 2;
 		return IIO_VAL_INT;
 	case IIO_CHAN_INFO_SCALE:
 		*val = 2 * st->vref;
drivers/infiniband/core/cma.c +1 -1
index fc4630e4acdd..1614f6f3677c 100644
@@ -2789,7 +2789,7 @@ static void addr_handler(int status, struct sockaddr *src_addr,
 		if (status)
 			pr_debug_ratelimited("RDMA CM: ADDR_ERROR: failed to acquire device. status %d\n",
 					     status);
-	} else {
+	} else if (status) {
 		pr_debug_ratelimited("RDMA CM: ADDR_ERROR: failed to resolve IP. status %d\n", status);
 	}
 
drivers/infiniband/hw/cxgb4/cm.c +14 -10
index bb36cdf82a8d..7eb1cc1b1aa0 100644
@@ -2056,7 +2056,7 @@ static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip,
 	} else {
 		pdev = get_real_dev(n->dev);
 		ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t,
-					n, pdev, 0);
+					n, pdev, rt_tos2priority(tos));
 		if (!ep->l2t)
 			goto out;
 		ep->mtu = dst_mtu(dst);
@@ -2147,7 +2147,8 @@ static int c4iw_reconnect(struct c4iw_ep *ep)
 					   laddr6->sin6_addr.s6_addr,
 					   raddr6->sin6_addr.s6_addr,
 					   laddr6->sin6_port,
-					   raddr6->sin6_port, 0,
+					   raddr6->sin6_port,
+					   ep->com.cm_id->tos,
 					   raddr6->sin6_scope_id);
 		iptype = 6;
 		ra = (__u8 *)&raddr6->sin6_addr;
@@ -2923,15 +2924,18 @@ static int terminate(struct c4iw_dev *dev, struct sk_buff *skb)
 	ep = get_ep_from_tid(dev, tid);
 	BUG_ON(!ep);
 
-	if (ep && ep->com.qp) {
-		pr_warn("TERM received tid %u qpid %u\n",
-			tid, ep->com.qp->wq.sq.qid);
-		attrs.next_state = C4IW_QP_STATE_TERMINATE;
-		c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp,
-			       C4IW_QP_ATTR_NEXT_STATE, &attrs, 1);
+	if (ep) {
+		if (ep->com.qp) {
+			pr_warn("TERM received tid %u qpid %u\n", tid,
+				ep->com.qp->wq.sq.qid);
+			attrs.next_state = C4IW_QP_STATE_TERMINATE;
+			c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp,
+				       C4IW_QP_ATTR_NEXT_STATE, &attrs, 1);
+		}
+
+		c4iw_put_ep(&ep->com);
 	} else
 		pr_warn("TERM received tid %u no ep/qp\n", tid);
-	c4iw_put_ep(&ep->com);
 
 	return 0;
 }
@@ -3295,7 +3299,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
 					   laddr6->sin6_addr.s6_addr,
 					   raddr6->sin6_addr.s6_addr,
 					   laddr6->sin6_port,
-					   raddr6->sin6_port, 0,
+					   raddr6->sin6_port, cm_id->tos,
 					   raddr6->sin6_scope_id);
 	}
 	if (!ep->dst) {
drivers/infiniband/hw/hfi1/chip.c +22 -4
index 9f78bb07744c..4a0b7c003477 100644
@@ -10552,12 +10552,29 @@ void set_link_down_reason(struct hfi1_pportdata *ppd, u8 lcl_reason,
 	}
 }
 
-/*
- * Verify if BCT for data VLs is non-zero.
+/**
+ * data_vls_operational() - Verify if data VL BCT credits and MTU
+ *			    are both set.
+ * @ppd: pointer to hfi1_pportdata structure
+ *
+ * Return: true - Ok, false -otherwise.
  */
 static inline bool data_vls_operational(struct hfi1_pportdata *ppd)
 {
-	return !!ppd->actual_vls_operational;
+	int i;
+	u64 reg;
+
+	if (!ppd->actual_vls_operational)
+		return false;
+
+	for (i = 0; i < ppd->vls_supported; i++) {
+		reg = read_csr(ppd->dd, SEND_CM_CREDIT_VL + (8 * i));
+		if ((reg && !ppd->dd->vld[i].mtu) ||
+		    (!reg && ppd->dd->vld[i].mtu))
+			return false;
+	}
+
+	return true;
 }
 
 /*
@@ -10662,7 +10679,8 @@ int set_link_state(struct hfi1_pportdata *ppd, u32 state)
 
 		if (!data_vls_operational(ppd)) {
 			dd_dev_err(dd,
-				   "%s: data VLs not operational\n", __func__);
+				   "%s: Invalid data VL credits or mtu\n",
+				   __func__);
 			ret = -EINVAL;
 			break;
 		}
drivers/infiniband/hw/hns/hns_roce_qp.c +0 -1
index 3a37d26889df..281e9987ffc8 100644
@@ -241,7 +241,6 @@ void hns_roce_qp_free(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp)
 
 	if ((hr_qp->ibqp.qp_type) != IB_QPT_GSI) {
 		hns_roce_table_put(hr_dev, &qp_table->irrl_table, hr_qp->qpn);
-		hns_roce_table_put(hr_dev, &qp_table->qp_table, hr_qp->qpn);
 	}
 }
 
drivers/infiniband/hw/mlx5/qp.c +21 -0
index 5a7dcb5afe6e..84c962820aa2 100644
@@ -2357,6 +2357,11 @@ static enum mlx5_qp_optpar opt_mask[MLX5_QP_NUM_STATE][MLX5_QP_NUM_STATE][MLX5_Q
 			[MLX5_QP_ST_UD] = MLX5_QP_OPTPAR_PKEY_INDEX	|
 					  MLX5_QP_OPTPAR_Q_KEY		|
 					  MLX5_QP_OPTPAR_PRI_PORT,
+			[MLX5_QP_ST_XRC] = MLX5_QP_OPTPAR_RRE		|
+					  MLX5_QP_OPTPAR_RAE		|
+					  MLX5_QP_OPTPAR_RWE		|
+					  MLX5_QP_OPTPAR_PKEY_INDEX	|
+					  MLX5_QP_OPTPAR_PRI_PORT,
 		},
 		[MLX5_QP_STATE_RTR] = {
 			[MLX5_QP_ST_RC] = MLX5_QP_OPTPAR_ALT_ADDR_PATH  |
@@ -2390,6 +2395,12 @@ static enum mlx5_qp_optpar opt_mask[MLX5_QP_NUM_STATE][MLX5_QP_NUM_STATE][MLX5_Q
 					  MLX5_QP_OPTPAR_RWE		|
 					  MLX5_QP_OPTPAR_PM_STATE,
 			[MLX5_QP_ST_UD] = MLX5_QP_OPTPAR_Q_KEY,
+			[MLX5_QP_ST_XRC] = MLX5_QP_OPTPAR_ALT_ADDR_PATH	|
+					  MLX5_QP_OPTPAR_RRE		|
+					  MLX5_QP_OPTPAR_RAE		|
+					  MLX5_QP_OPTPAR_RWE		|
+					  MLX5_QP_OPTPAR_PM_STATE	|
+					  MLX5_QP_OPTPAR_RNR_TIMEOUT,
 		},
 	},
 	[MLX5_QP_STATE_RTS] = {
@@ -2406,6 +2417,12 @@ static enum mlx5_qp_optpar opt_mask[MLX5_QP_NUM_STATE][MLX5_QP_NUM_STATE][MLX5_Q
 			[MLX5_QP_ST_UD] = MLX5_QP_OPTPAR_Q_KEY		|
 					  MLX5_QP_OPTPAR_SRQN		|
 					  MLX5_QP_OPTPAR_CQN_RCV,
+			[MLX5_QP_ST_XRC] = MLX5_QP_OPTPAR_RRE		|
+					  MLX5_QP_OPTPAR_RAE		|
+					  MLX5_QP_OPTPAR_RWE		|
+					  MLX5_QP_OPTPAR_RNR_TIMEOUT	|
+					  MLX5_QP_OPTPAR_PM_STATE	|
+					  MLX5_QP_OPTPAR_ALT_ADDR_PATH,
 		},
 	},
 	[MLX5_QP_STATE_SQER] = {
@@ -2417,6 +2434,10 @@ static enum mlx5_qp_optpar opt_mask[MLX5_QP_NUM_STATE][MLX5_QP_NUM_STATE][MLX5_Q
 					   MLX5_QP_OPTPAR_RWE		|
 					   MLX5_QP_OPTPAR_RAE		|
 					   MLX5_QP_OPTPAR_RRE,
+			[MLX5_QP_ST_XRC]  = MLX5_QP_OPTPAR_RNR_TIMEOUT	|
+					   MLX5_QP_OPTPAR_RWE		|
+					   MLX5_QP_OPTPAR_RAE		|
+					   MLX5_QP_OPTPAR_RRE,
 		},
 	},
 };
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +1 -1
index 27d5e8d9f08d..7683d13dad3d 100644
@@ -55,7 +55,7 @@
 
 int ocrdma_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey)
 {
-	if (index > 1)
+	if (index > 0)
 		return -EINVAL;
 
 	*pkey = 0xffff;
drivers/infiniband/hw/qedr/verbs.c +10 -17
index 656e7c1a4449..6ae72accae3d 100644
@@ -63,7 +63,7 @@ static inline int qedr_ib_copy_to_udata(struct ib_udata *udata, void *src,
 
 int qedr_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey)
 {
-	if (index > QEDR_ROCE_PKEY_TABLE_LEN)
+	if (index >= QEDR_ROCE_PKEY_TABLE_LEN)
 		return -EINVAL;
 
 	*pkey = QEDR_ROCE_PKEY_DEFAULT;
@@ -178,54 +178,47 @@ int qedr_query_device(struct ib_device *ibdev,
 	return 0;
 }
 
-#define QEDR_SPEED_SDR		(1)
-#define QEDR_SPEED_DDR		(2)
-#define QEDR_SPEED_QDR		(4)
-#define QEDR_SPEED_FDR10	(8)
-#define QEDR_SPEED_FDR		(16)
-#define QEDR_SPEED_EDR		(32)
-
 static inline void get_link_speed_and_width(int speed, u8 *ib_speed,
 					    u8 *ib_width)
 {
 	switch (speed) {
 	case 1000:
-		*ib_speed = QEDR_SPEED_SDR;
+		*ib_speed = IB_SPEED_SDR;
 		*ib_width = IB_WIDTH_1X;
 		break;
 	case 10000:
-		*ib_speed = QEDR_SPEED_QDR;
+		*ib_speed = IB_SPEED_QDR;
 		*ib_width = IB_WIDTH_1X;
 		break;
 
 	case 20000:
-		*ib_speed = QEDR_SPEED_DDR;
+		*ib_speed = IB_SPEED_DDR;
 		*ib_width = IB_WIDTH_4X;
 		break;
 
 	case 25000:
-		*ib_speed = QEDR_SPEED_EDR;
+		*ib_speed = IB_SPEED_EDR;
 		*ib_width = IB_WIDTH_1X;
 		break;
 
 	case 40000:
-		*ib_speed = QEDR_SPEED_QDR;
+		*ib_speed = IB_SPEED_QDR;
 		*ib_width = IB_WIDTH_4X;
 		break;
 
 	case 50000:
-		*ib_speed = QEDR_SPEED_QDR;
-		*ib_width = IB_WIDTH_4X;
+		*ib_speed = IB_SPEED_HDR;
+		*ib_width = IB_WIDTH_1X;
 		break;
 
 	case 100000:
-		*ib_speed = QEDR_SPEED_EDR;
+		*ib_speed = IB_SPEED_EDR;
 		*ib_width = IB_WIDTH_4X;
 		break;
 
 	default:
 		/* Unsupported */
-		*ib_speed = QEDR_SPEED_SDR;
+		*ib_speed = IB_SPEED_SDR;
 		*ib_width = IB_WIDTH_1X;
 	}
 }
drivers/infiniband/hw/usnic/usnic_ib_verbs.c +1 -1
index fdfa25059723..2602c7375d58 100644
@@ -423,7 +423,7 @@ struct net_device *usnic_get_netdev(struct ib_device *device, u8 port_num)
 int usnic_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index,
 				u16 *pkey)
 {
-	if (index > 1)
+	if (index > 0)
 		return -EINVAL;
 
 	*pkey = 0xffff;
drivers/infiniband/sw/rxe/rxe_cq.c +2 -2
index c4aabf78dc90..f6e036ded046 100644
@@ -30,7 +30,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  * SOFTWARE.
  */
-
+#include <linux/vmalloc.h>
 #include "rxe.h"
 #include "rxe_loc.h"
 #include "rxe_queue.h"
@@ -97,7 +97,7 @@ int rxe_cq_from_init(struct rxe_dev *rxe, struct rxe_cq *cq, int cqe,
 	err = do_mmap_info(rxe, udata, false, context, cq->queue->buf,
 			   cq->queue->buf_size, &cq->queue->ip);
 	if (err) {
-		kvfree(cq->queue->buf);
+		vfree(cq->queue->buf);
 		kfree(cq->queue);
 		return err;
 	}
drivers/infiniband/sw/rxe/rxe_pool.c +14 -12
index b4a8acc7bb7d..0e2425f28233 100644
@@ -112,6 +112,18 @@ static inline struct kmem_cache *pool_cache(struct rxe_pool *pool)
 	return rxe_type_info[pool->type].cache;
 }
 
+static void rxe_cache_clean(size_t cnt)
+{
+	int i;
+	struct rxe_type_info *type;
+
+	for (i = 0; i < cnt; i++) {
+		type = &rxe_type_info[i];
+		kmem_cache_destroy(type->cache);
+		type->cache = NULL;
+	}
+}
+
 int rxe_cache_init(void)
 {
 	int err;
@@ -136,24 +148,14 @@ int rxe_cache_init(void)
 	return 0;
 
 err1:
-	while (--i >= 0) {
-		kmem_cache_destroy(type->cache);
-		type->cache = NULL;
-	}
+	rxe_cache_clean(i);
 
 	return err;
 }
 
 void rxe_cache_exit(void)
 {
-	int i;
-	struct rxe_type_info *type;
-
-	for (i = 0; i < RXE_NUM_TYPES; i++) {
-		type = &rxe_type_info[i];
-		kmem_cache_destroy(type->cache);
-		type->cache = NULL;
-	}
+	rxe_cache_clean(RXE_NUM_TYPES);
 }
 
 static int rxe_pool_init_index(struct rxe_pool *pool, u32 max, u32 min)
drivers/infiniband/sw/rxe/rxe_qp.c +3 -2
index aeea994b04c4..25055a68a2c0 100644
@@ -34,6 +34,7 @@
 #include <linux/skbuff.h>
 #include <linux/delay.h>
 #include <linux/sched.h>
+#include <linux/vmalloc.h>
 
 #include "rxe.h"
 #include "rxe_loc.h"
@@ -255,7 +256,7 @@ static int rxe_qp_init_req(struct rxe_dev *rxe, struct rxe_qp *qp,
 			   qp->sq.queue->buf_size, &qp->sq.queue->ip);
 
 	if (err) {
-		kvfree(qp->sq.queue->buf);
+		vfree(qp->sq.queue->buf);
 		kfree(qp->sq.queue);
 		return err;
 	}
@@ -308,7 +309,7 @@ static int rxe_qp_init_resp(struct rxe_dev *rxe, struct rxe_qp *qp,
 				   qp->rq.queue->buf_size,
 				   &qp->rq.queue->ip);
 		if (err) {
-			kvfree(qp->rq.queue->buf);
+			vfree(qp->rq.queue->buf);
 			kfree(qp->rq.queue);
 			return err;
 		}
drivers/infiniband/ulp/iser/iscsi_iser.h +1 -1
index c1ae4aeae2f9..46dfc6ae9d1c 100644
@@ -197,7 +197,7 @@ struct iser_data_buf {
 	struct scatterlist *sg;
 	int                size;
 	unsigned long      data_len;
-	unsigned int       dma_nents;
+	int                dma_nents;
 };
 
 /* fwd declarations */
drivers/infiniband/ulp/iser/iser_memory.c +5 -5
index 322209d5ff58..19883169e7b7 100644
@@ -240,8 +240,8 @@ int iser_fast_reg_fmr(struct iscsi_iser_task *iser_task,
 	page_vec->npages = 0;
 	page_vec->fake_mr.page_size = SIZE_4K;
 	plen = ib_sg_to_pages(&page_vec->fake_mr, mem->sg,
-			      mem->size, NULL, iser_set_page);
-	if (unlikely(plen < mem->size)) {
+			      mem->dma_nents, NULL, iser_set_page);
+	if (unlikely(plen < mem->dma_nents)) {
 		iser_err("page vec too short to hold this SG\n");
 		iser_data_buf_dump(mem, device->ib_device);
 		iser_dump_page_vec(page_vec);
@@ -450,10 +450,10 @@ static int iser_fast_reg_mr(struct iscsi_iser_task *iser_task,
 
 	ib_update_fast_reg_key(mr, ib_inc_rkey(mr->rkey));
 
-	n = ib_map_mr_sg(mr, mem->sg, mem->size, NULL, SIZE_4K);
-	if (unlikely(n != mem->size)) {
+	n = ib_map_mr_sg(mr, mem->sg, mem->dma_nents, NULL, SIZE_4K);
+	if (unlikely(n != mem->dma_nents)) {
 		iser_err("failed to map sg (%d/%d)\n",
-			 n, mem->size);
+			 n, mem->dma_nents);
 		return n < 0 ? n : -EINVAL;
 	}
 
drivers/input/keyboard/nomadik-ske-keypad.c +1 -1
index 8567ee47761e..ae3b04557074 100644
@@ -100,7 +100,7 @@ static int __init ske_keypad_chip_init(struct ske_keypad *keypad)
 	while ((readl(keypad->reg_base + SKE_RIS) != 0x00000000) && timeout--)
 		cpu_relax();
 
-	if (!timeout)
+	if (timeout == -1)
 		return -EINVAL;
 
 	/*
drivers/iommu/amd_iommu.c +2 -0
index d09c24825734..778f167be2d3 100644
@@ -2160,6 +2160,8 @@ static int attach_device(struct device *dev,
 	 */
 	domain_flush_tlb_pde(domain);
 
+	domain_flush_complete(domain);
+
 	return ret;
 }
 
drivers/iommu/amd_iommu_init.c +3 -0
index 6a3cf4d0bd5e..4d2920988d60 100644
@@ -420,6 +420,9 @@ static void iommu_enable(struct amd_iommu *iommu)
 
 static void iommu_disable(struct amd_iommu *iommu)
 {
+	if (!iommu->mmio_base)
+		return;
+
 	/* Disable command buffer */
 	iommu_feature_disable(iommu, CONTROL_CMDBUF_EN);
 
drivers/iommu/intel-iommu.c +21 -18
index 523d0889c2a4..b48666849dbe 100644
@@ -442,7 +442,6 @@ struct dmar_rmrr_unit {
 	u64	end_address;		/* reserved end address */
 	struct dmar_dev_scope *devices;	/* target devices */
 	int	devices_cnt;		/* target device count */
-	struct iommu_resv_region *resv; /* reserved region handle */
 };
 
 struct dmar_atsr_unit {
@@ -3361,9 +3360,12 @@ static int __init init_dmars(void)
 		iommu_identity_mapping |= IDENTMAP_ALL;
 
 #ifdef CONFIG_INTEL_IOMMU_BROKEN_GFX_WA
-	iommu_identity_mapping |= IDENTMAP_GFX;
+	dmar_map_gfx = 0;
 #endif
 
+	if (!dmar_map_gfx)
+		iommu_identity_mapping |= IDENTMAP_GFX;
+
 	check_tylersburg_isoch();
 
 	if (iommu_identity_mapping) {
@@ -4168,7 +4170,6 @@ static inline void init_iommu_pm_ops(void) {}
 int __init dmar_parse_one_rmrr(struct acpi_dmar_header *header, void *arg)
 {
 	struct acpi_dmar_reserved_memory *rmrr;
-	int prot = DMA_PTE_READ|DMA_PTE_WRITE;
 	struct dmar_rmrr_unit *rmrru;
 	size_t length;
 
@@ -4182,22 +4183,16 @@ int __init dmar_parse_one_rmrr(struct acpi_dmar_header *header, void *arg)
 	rmrru->end_address = rmrr->end_address;
 
 	length = rmrr->end_address - rmrr->base_address + 1;
-	rmrru->resv = iommu_alloc_resv_region(rmrr->base_address, length, prot,
-					      IOMMU_RESV_DIRECT);
-	if (!rmrru->resv)
-		goto free_rmrru;
 
 	rmrru->devices = dmar_alloc_dev_scope((void *)(rmrr + 1),
 				((void *)rmrr) + rmrr->header.length,
 				&rmrru->devices_cnt);
 	if (rmrru->devices_cnt && rmrru->devices == NULL)
-		goto free_all;
+		goto free_rmrru;
 
 	list_add(&rmrru->list, &dmar_rmrr_units);
 
 	return 0;
-free_all:
-	kfree(rmrru->resv);
 free_rmrru:
 	kfree(rmrru);
 out:
@@ -4415,7 +4410,6 @@ static void intel_iommu_free_dmars(void)
 	list_for_each_entry_safe(rmrru, rmrr_n, &dmar_rmrr_units, list) {
 		list_del(&rmrru->list);
 		dmar_free_dev_scope(&rmrru->devices, &rmrru->devices_cnt);
-		kfree(rmrru->resv);
 		kfree(rmrru);
 	}
 
@@ -5183,22 +5177,33 @@ static void intel_iommu_remove_device(struct device *dev)
 static void intel_iommu_get_resv_regions(struct device *device,
 					 struct list_head *head)
 {
+	int prot = DMA_PTE_READ | DMA_PTE_WRITE;
 	struct iommu_resv_region *reg;
 	struct dmar_rmrr_unit *rmrr;
 	struct device *i_dev;
 	int i;
 
-	rcu_read_lock();
+	down_read(&dmar_global_lock);
 	for_each_rmrr_units(rmrr) {
 		for_each_active_dev_scope(rmrr->devices, rmrr->devices_cnt,
 					  i, i_dev) {
+			struct iommu_resv_region *resv;
+			size_t length;
+
 			if (i_dev != device)
 				continue;
 
-			list_add_tail(&rmrr->resv->list, head);
+			length = rmrr->end_address - rmrr->base_address + 1;
+			resv = iommu_alloc_resv_region(rmrr->base_address,
+						       length, prot,
+						       IOMMU_RESV_DIRECT);
+			if (!resv)
+				break;
+
+			list_add_tail(&resv->list, head);
 		}
 	}
-	rcu_read_unlock();
+	up_read(&dmar_global_lock);
 
 	reg = iommu_alloc_resv_region(IOAPIC_RANGE_START,
 				      IOAPIC_RANGE_END - IOAPIC_RANGE_START + 1,
@@ -5213,10 +5218,8 @@ static void intel_iommu_put_resv_regions(struct device *dev,
 {
 	struct iommu_resv_region *entry, *next;
 
-	list_for_each_entry_safe(entry, next, head, list) {
-		if (entry->type == IOMMU_RESV_MSI)
-			kfree(entry);
-	}
+	list_for_each_entry_safe(entry, next, head, list)
+		kfree(entry);
 }
 
 #ifdef CONFIG_INTEL_IOMMU_SVM
drivers/iommu/iommu.c +3 -3
index 4b761678a18b..2c48a9d6d91e 100644
@@ -1856,9 +1856,9 @@ int iommu_request_dm_for_dev(struct device *dev)
 	int ret;
 
 	/* Device must already be in a group before calling this function */
-	group = iommu_group_get_for_dev(dev);
-	if (IS_ERR(group))
-		return PTR_ERR(group);
+	group = iommu_group_get(dev);
+	if (!group)
+		return -EINVAL;
 
 	mutex_lock(&group->mutex);
 
drivers/iommu/mtk_iommu.c +25 -1
index c30f62700431..0f99e95a1a73 100644
@@ -115,6 +115,30 @@ struct mtk_iommu_domain {
 
 static struct iommu_ops mtk_iommu_ops;
 
+/*
+ * In M4U 4GB mode, the physical address is remapped as below:
+ *
+ * CPU Physical address:
+ * ====================
+ *
+ * 0      1G       2G     3G       4G     5G
+ * |---A---|---B---|---C---|---D---|---E---|
+ * +--I/O--+------------Memory-------------+
+ *
+ * IOMMU output physical address:
+ *  =============================
+ *
+ *                                 4G      5G     6G      7G      8G
+ *                                 |---E---|---B---|---C---|---D---|
+ *                                 +------------Memory-------------+
+ *
+ * The Region 'A'(I/O) can NOT be mapped by M4U; For Region 'B'/'C'/'D', the
+ * bit32 of the CPU physical address always is needed to set, and for Region
+ * 'E', the CPU physical address keep as is.
+ * Additionally, The iommu consumers always use the CPU phyiscal address.
+ */
+#define MTK_IOMMU_4GB_MODE_REMAP_BASE	 0x40000000
+
 static LIST_HEAD(m4ulist);	/* List all the M4U HWs */
 
 #define for_each_m4u(data)	list_for_each_entry(data, &m4ulist, list)
@@ -404,7 +428,7 @@ static phys_addr_t mtk_iommu_iova_to_phys(struct iommu_domain *domain,
 	pa = dom->iop->iova_to_phys(dom->iop, iova);
 	spin_unlock_irqrestore(&dom->pgtlock, flags);
 
-	if (data->enable_4GB)
+	if (data->enable_4GB && pa < MTK_IOMMU_4GB_MODE_REMAP_BASE)
 		pa |= BIT_ULL(32);
 
 	return pa;
drivers/lightnvm/pblk-rb.c +1 -1
index c0dd17a82170..73de2deaba67 100644
@@ -825,8 +825,8 @@ int pblk_rb_tear_down_check(struct pblk_rb *rb)
 	}
 
 out:
-	spin_unlock(&rb->w_lock);
 	spin_unlock_irq(&rb->s_lock);
+	spin_unlock(&rb->w_lock);
 
 	return ret;
 }
drivers/media/i2c/ov2659.c +1 -1
index 44b0584eb8a6..e7768ed1ff9c 100644
@@ -1136,7 +1136,7 @@ static int ov2659_set_fmt(struct v4l2_subdev *sd,
 		mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad);
 		*mf = fmt->format;
 #else
-		return -ENOTTY;
+		ret = -ENOTTY;
 #endif
 	} else {
 		s64 val;
drivers/media/pci/cx18/cx18-fileops.c +1 -1
index 98467b2089fa..099d59b992c1 100644
@@ -484,7 +484,7 @@ static ssize_t cx18_read_pos(struct cx18_stream *s, char __user *ubuf,
 
 	CX18_DEBUG_HI_FILE("read %zd from %s, got %zd\n", count, s->name, rc);
 	if (rc > 0)
-		pos += rc;
+		*pos += rc;
 	return rc;
 }
 
drivers/media/pci/cx23885/cx23885-dvb.c +3 -2
index e795ddeb7fe2..60f122edaefb 100644
@@ -1460,8 +1460,9 @@ static int dvb_register(struct cx23885_tsport *port)
 		if (fe0->dvb.frontend != NULL) {
 			struct i2c_adapter *tun_i2c;
 
-			fe0->dvb.frontend->sec_priv = kmalloc(sizeof(dib7000p_ops), GFP_KERNEL);
-			memcpy(fe0->dvb.frontend->sec_priv, &dib7000p_ops, sizeof(dib7000p_ops));
+			fe0->dvb.frontend->sec_priv = kmemdup(&dib7000p_ops, sizeof(dib7000p_ops), GFP_KERNEL);
+			if (!fe0->dvb.frontend->sec_priv)
+				return -ENOMEM;
 			tun_i2c = dib7000p_ops.get_i2c_master(fe0->dvb.frontend, DIBX000_I2C_INTERFACE_TUNER, 1);
 			if (!dvb_attach(dib0070_attach, fe0->dvb.frontend, tun_i2c, &dib7070p_dib0070_config))
 				return -ENODEV;
drivers/media/pci/ivtv/ivtv-fileops.c +1 -1
index c9bd018e53de..e2b19c3eaa87 100644
@@ -420,7 +420,7 @@ static ssize_t ivtv_read_pos(struct ivtv_stream *s, char __user *ubuf, size_t co
 
 	IVTV_DEBUG_HI_FILE("read %zd from %s, got %zd\n", count, s->name, rc);
 	if (rc > 0)
-		pos += rc;
+		*pos += rc;
 	return rc;
 }
 
drivers/media/pci/tw5864/tw5864-video.c +2 -2
index e7bd2b8484e3..ee1230440b39 100644
@@ -1395,13 +1395,13 @@ static void tw5864_handle_frame(struct tw5864_h264_frame *frame)
 	input->vb = NULL;
 	spin_unlock_irqrestore(&input->slock, flags);
 
-	v4l2_buf = to_vb2_v4l2_buffer(&vb->vb.vb2_buf);
-
 	if (!vb) { /* Gone because of disabling */
 		dev_dbg(&dev->pci->dev, "vb is empty, dropping frame\n");
 		return;
 	}
 
+	v4l2_buf = to_vb2_v4l2_buffer(&vb->vb.vb2_buf);
+
 	/*
 	 * Check for space.
 	 * Mind the overhead of startcode emulation prevention.
drivers/media/platform/atmel/atmel-isi.c +1 -1
index 891fa2505efa..2f962a3418f6 100644
@@ -496,7 +496,7 @@ static void stop_streaming(struct vb2_queue *vq)
 	spin_unlock_irq(&isi->irqlock);
 
 	if (!isi->enable_preview_path) {
-		timeout = jiffies + FRAME_INTERVAL_MILLI_SEC * HZ;
+		timeout = jiffies + (FRAME_INTERVAL_MILLI_SEC * HZ) / 1000;
 		/* Wait until the end of the current frame. */
 		while ((isi_readl(isi, ISI_STATUS) & ISI_CTRL_CDC) &&
 				time_before(jiffies, timeout))
drivers/media/platform/davinci/isif.c +0 -9
index 90d0f13283ae..12065ad1ac45 100644
@@ -886,9 +886,7 @@ static int isif_set_hw_if_params(struct vpfe_hw_if_param *params)
 static int isif_config_ycbcr(void)
 {
 	struct isif_ycbcr_config *params = &isif_cfg.ycbcr;
-	struct vpss_pg_frame_size frame_size;
 	u32 modeset = 0, ccdcfg = 0;
-	struct vpss_sync_pol sync;
 
 	dev_dbg(isif_cfg.dev, "\nStarting isif_config_ycbcr...");
 
@@ -976,13 +974,6 @@ static int isif_config_ycbcr(void)
 		/* two fields are interleaved in memory */
 		regw(0x00000249, SDOFST);
 
-	/* Setup test pattern if enabled */
-	if (isif_cfg.bayer.config_params.test_pat_gen) {
-		sync.ccdpg_hdpol = params->hd_pol;
-		sync.ccdpg_vdpol = params->vd_pol;
-		dm365_vpss_set_sync_pol(sync);
[… more lines in the raw message]

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

drivers/media/platform/davinci/vpbe.c +1 -1
index 1d3c13e36904..915af9ca4711 100644

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

drivers/media/platform/omap/omap_vout.c +6 -9
index 4d29860d27b4..18604b608ab2 100644

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

drivers/media/platform/s5p-jpeg/jpeg-core.c +1 -1
index 4568e68e15fa..85a5e33600c0 100644

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

drivers/media/platform/vivid/vivid-osd.c +1 -1
index bdc380b14e0c..a95b7c56569e 100644

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

drivers/media/radio/wl128x/fmdrv_common.c +3 -2
index 26895ae42fcf..2d20d908e280 100644

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

drivers/mfd/intel-lpss-pci.c +20 -8
index 2b7e8eeaa59e..0504761516f7 100644

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

drivers/mfd/intel-lpss.c +1 -0
index b5c4f8f974aa..9ed573e232c0 100644

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

drivers/misc/mic/card/mic_x100.c +12 -16
index b9f0710ffa6b..4007adc666f3 100644

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

drivers/misc/sgi-xp/xpc_partition.c +1 -1
index 6956f7e7d439..ca5f0102daef 100644

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

drivers/mmc/core/host.c +0 -2
index ad88deb2e8f3..3740fb0052a4 100644

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

drivers/mmc/core/quirks.h +7 -0
index 5153577754f0..09897abb79ed 100644

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

drivers/mmc/host/sdhci-brcmstb.c +3 -1
index 552bddc5096c..1cd10356fc14 100644

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

drivers/net/dsa/qca8k.c +12 -0
index 8e49974ffa0e..8ee59b20b47a 100644

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

drivers/net/dsa/qca8k.h +1 -0
index 613fe5c50236..d146e54c8a6c 100644

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

drivers/net/ethernet/amazon/ena/ena_com.c +2 -1
index 1a4ffc5d3da4..10e6053f6671 100644

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

drivers/net/ethernet/amazon/ena/ena_ethtool.c +2 -2
index 967020fb26ee..a2f02c23fe14 100644

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

drivers/net/ethernet/amazon/ena/ena_netdev.c +1 -0
index d22b138c2b09..518ff393a026 100644

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

drivers/net/ethernet/aquantia/atlantic/aq_vec.c +6 -9
index 5fecc9a099ef..bb2894a333f2 100644

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

drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c +2 -2
index b0abd187cead..b83ee74d2839 100644

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

drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c +2 -2
index 236325f48ec9..1c1bb074f664 100644

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

drivers/net/ethernet/broadcom/bcmsysport.c +1 -1
index 79018fea7be2..69b2f99b0c19 100644

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

drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +8 -10
index fc8e185718a1..3c78cd1cdd6f 100644

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

drivers/net/ethernet/hisilicon/hix5hd2_gmac.c +1 -1
index aab6fb10af94..6adf6831d120 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h +1 -1
index 9fcfd9395424..a4c5e72d6012 100644

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

drivers/net/ethernet/ibm/ehea/ehea_main.c +1 -1
index 30cbdf0fed59..373deb247ac0 100644

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

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +9 -7
index 0edfd199937d..e4c1e6345edd 100644

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

drivers/net/ethernet/mellanox/mlx5/core/qp.c +3 -2
index 5f091c6ea049..b92d5690287b 100644

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

drivers/net/ethernet/mellanox/mlxsw/reg.h +21 -1
index 8ab7a4f98a07..e7974ba06432 100644

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

drivers/net/ethernet/natsemi/sonic.c +3 -3
index 23821540ab07..a051dddcbd76 100644

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

drivers/net/ethernet/pasemi/pasemi_mac.c +1 -1
index 49591d9c2e1b..c9b4ac9d3330 100644

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

drivers/net/ethernet/qlogic/qed/qed_iwarp.c +11 -5
index bb09f5a9846f..38d0f62bf037 100644

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

drivers/net/ethernet/qlogic/qed/qed_l2.c +15 -19
index 62cde3854a5c..5d7adedac68d 100644

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

drivers/net/ethernet/qualcomm/qca_spi.c +4 -5
index 275fc6f154a7..1c87178fc485 100644

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

drivers/net/ethernet/qualcomm/qca_spi.h +1 -0
index fc0e98726b36..719c41227f22 100644

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

drivers/net/ethernet/renesas/sh_eth.c +5 -1
index 9b1906a65e11..25f3b2ad26e9 100644

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

drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c +1 -1
index 866444b6c82f..11a4a81b0397 100644

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

drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c +1 -1
index 8be4b32544ef..d71d3c1c85ee 100644

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

drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +1 -1
index 8445af580cb6..e5566c121525 100644

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

drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c +1 -1
index e471a903c654..1c1d6a942822 100644

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

drivers/net/ethernet/xilinx/xilinx_axienet_main.c +1 -1
index 9ccd08a051f6..1152d74433f6 100644

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

drivers/net/hyperv/netvsc_drv.c +9 -4
index a89de5752a8c..14451e14d99d 100644

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

drivers/net/phy/fixed_phy.c +3 -3
index eb5167210681..3ab2eb677a59 100644

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

drivers/net/phy/phy_device.c +6 -5
index a98c227a4c2e..99dae55cd334 100644

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

drivers/net/vxlan.c +3 -4
index 5aa7d5091f4d..4d97a7b5fe3c 100644

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

drivers/net/wireless/ath/ath10k/sdio.c +21 -8
index 0a1248ebccf5..f49b21b137c1 100644

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

drivers/net/wireless/ath/ath9k/dynack.c +4 -4
index 6e236a485431..71b4888b30e7 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/fw.c +6 -6
index 78228f870f8f..754dcc1c1f40 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +1 -1
index 7fb8bbaf2142..1a12e829e98b 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/sta.c +13 -6
index 0cfdbaa2af3a..684c0f65a052 100644

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

drivers/net/wireless/marvell/libertas_tf/cmd.c +1 -1
index 909ac3685010..2b193f1257a5 100644

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

drivers/net/wireless/mediatek/mt7601u/phy.c +1 -1
index ca09a5d4305e..71a47459bf8a 100644

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

drivers/ntb/hw/idt/ntb_hw_idt.c +4 -4
index d44d7ef38fe8..b68e2cad74cc 100644

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

drivers/nvme/host/pci.c +1 -1
index cd11cced3678..3788c053a0b1 100644

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

drivers/nvmem/imx-ocotp.c +2 -1
index 193ca8fd350a..0c8c3b9bb6a7 100644

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

drivers/of/of_mdio.c +1 -1
index 8c1819230ed2..fe26697d3bd7 100644

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

drivers/pci/endpoint/functions/pci-epf-test.c +2 -2
index f9308c2f22e6..c2541a772abc 100644

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

drivers/pci/host/pcie-iproc.c +0 -8
index c0ecc9f35667..8f8dac0155d6 100644

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

drivers/pci/switch/switchtec.c +0 -4
index 0941555b84a5..73dba2739849 100644

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

drivers/pinctrl/bcm/pinctrl-iproc-gpio.c +77 -19

96 lines not on this page · raw message

drivers/pinctrl/sh-pfc/pfc-emev2.c +20 -0
index 1cbbe04d7df6..eafd8edbcbe9 100644

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

drivers/pinctrl/sh-pfc/pfc-r8a7740.c +2 -1
index 35f436bcb849..e9739dbcb356 100644

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

drivers/pinctrl/sh-pfc/pfc-r8a7791.c +2 -6
index c01ef02d326b..e4774b220040 100644

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

drivers/pinctrl/sh-pfc/pfc-r8a7792.c +1 -0
index cc3597f66605..46c41ca6ea38 100644

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

drivers/pinctrl/sh-pfc/pfc-r8a7794.c +1 -1
index a0ed220071f5..93bdd3e8fb67 100644

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

drivers/pinctrl/sh-pfc/pfc-r8a77995.c +4 -4
index 4f5ee1d7317d..36421df1b326 100644

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

drivers/pinctrl/sh-pfc/pfc-sh7269.c +1 -1
index a50d22bef1f4..cfdb4fc177c3 100644

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

drivers/pinctrl/sh-pfc/pfc-sh73a0.c +3 -1
index d25e6f674d0a..6dca760f9f28 100644

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

drivers/pinctrl/sh-pfc/pfc-sh7734.c +2 -2
index 3eccc9b3ca84..c691e5e9d9de 100644

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

drivers/platform/mips/cpu_hwmon.c +1 -1
index 322de58eebaf..02484ae9a116 100644

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

drivers/platform/x86/alienware-wmi.c +9 -10
index e335b18da20f..2c82188f8486 100644

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

drivers/platform/x86/wmi.c +3 -0
index 7f8fa42a1084..a56e997816b2 100644

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

drivers/power/supply/power_supply_core.c +5 -5
index 3226faebe0a0..0f1a0efd5926 100644

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

drivers/pwm/pwm-lpss.c +6 -0
index 1e69c1c9ec09..7a4a6406cf69 100644

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

drivers/pwm/pwm-meson.c +2 -7
index 9b79cbc7a715..3d2c36963a4f 100644

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

drivers/rapidio/rio_cm.c +3 -1
index ef989a15aefc..b29fc258eeba 100644

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

drivers/regulator/lp87565-regulator.c +1 -1
index cfdbe294fb6a..32d4e6ec2e19 100644

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

drivers/regulator/pv88060-regulator.c +1 -1
index a9446056435f..1f2d8180506b 100644

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

drivers/regulator/pv88080-regulator.c +1 -1
index 9a08cb2de501..6770e4de2097 100644

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

drivers/regulator/pv88090-regulator.c +1 -1
index 7a0c15957bd0..2302b0df7630 100644

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

drivers/regulator/tps65086-regulator.c +2 -2
index 45e96e154690..5a5e9b5bf4be 100644

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

drivers/regulator/wm831x-dcdc.c +2 -2
index 5a5bc4bb08d2..df591435d12a 100644

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

drivers/rtc/rtc-88pm80x.c +14 -7
index 466bf7f9a285..7da2a1fb50f8 100644

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

drivers/rtc/rtc-88pm860x.c +14 -7
index 166faae3a59c..7d3e5168fcef 100644

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

drivers/rtc/rtc-ds1307.c +3 -4
index e7d9215c9201..8d45d93b1db6 100644

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

drivers/rtc/rtc-ds1672.c +2 -1
index 9caaccccaa57..b1ebca099b0d 100644

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

drivers/rtc/rtc-mc146818-lib.c +1 -1
index 2f1772a358ca..18a6f15e313d 100644

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

drivers/rtc/rtc-pcf2127.c +12 -20
index 9f1b14bf91ae..367e0f803440 100644

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

drivers/rtc/rtc-pcf8563.c +6 -7
index 8c836c51a508..4d0b81f9805f 100644

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

drivers/rtc/rtc-pm8xxx.c +4 -2
index fac835530671..a1b4b0ed1f19 100644

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

drivers/scsi/fnic/fnic_isr.c +2 -2
index 4e3a50202e8c..d28088218c36 100644

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

drivers/scsi/libfc/fc_exch.c +1 -1
index 42bcf7f3a0f9..6ba257cbc6d9 100644

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

drivers/scsi/megaraid/megaraid_sas_base.c +2 -2
index 577513649afb..6abad63b127a 100644

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

drivers/scsi/qla2xxx/qla_os.c +21 -13
index 5617bb18c233..5f9d4dbc4a98 100644

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

drivers/scsi/qla2xxx/qla_target.c +7 -7
index 55227d20496a..21011c5fddeb 100644

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

drivers/soc/fsl/qe/gpio.c +3 -1
index 3b27075c21a7..5cbc5ce5ac15 100644

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

drivers/spi/spi-bcm2835aux.c +12 -1
index 5c89bbb05441..e075712c501e 100644

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

drivers/spi/spi-cadence.c +4 -7
index 02bd1eba045b..d08ad93d97a1 100644

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

drivers/spi/spi-fsl-spi.c +1 -1
index 8b79e36fab21..cd784552de7f 100644

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

drivers/spi/spi-tegra114.c +107 -38

145 lines not on this page · raw message

drivers/spi/spi-topcliff-pch.c +6 -0
index 4389ab80c23e..fa730a871d25 100644

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

drivers/staging/comedi/drivers/ni_mio_common.c +17 -7
index 36361bdf934a..2f82dcb1fd06 100644

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

drivers/staging/greybus/light.c +6 -6
index 0f538b8c3a07..4e7575147775 100644

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

drivers/staging/most/aim-cdev/cdev.c +4 -1
index 1e5cbc893496..d000b6ff8a7d 100644

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

drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_func_88xx.c +4 -1
index 544f638ed3ef..65edd14a1147 100644

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

drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c +9 -0
index 377da037f31c..b521752d9aa0 100644

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

drivers/target/target_core_device.c +2 -2
index 92b52d2314b5..cebef8e5a43d 100644

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

drivers/thermal/cpu_cooling.c +1 -1
index 908a8014cf76..aed995ec2c90 100644

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

drivers/thermal/mtk_thermal.c +4 -2
index 1e61c09153c9..76b92083744c 100644

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

drivers/tty/ipwireless/hardware.c +2 -0
index a6b8240af6cd..960e9375a1a9 100644

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

drivers/tty/serial/fsl_lpuart.c +14 -14
index fb2dcb3f8591..16422987ab0f 100644

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

drivers/tty/serial/stm32-usart.c +67 -56

123 lines not on this page · raw message

drivers/tty/serial/stm32-usart.h +2 -8
index ffc0c5285e51..9d087881913a 100644

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

drivers/uio/uio.c +7 -3
index fb5c9701b1fb..7c18536a3742 100644

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

drivers/usb/class/cdc-wdm.c +1 -1
index a593cdfc897f..d5d42dccda10 100644

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

drivers/usb/dwc2/gadget.c +1 -0
index e164439b2154..4af9a1c652ed 100644

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

drivers/usb/host/xhci-hub.c +1 -1
index d1363f3fabfa..3bb38d9dc45b 100644

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

drivers/usb/phy/Kconfig +1 -1
index 85a92d0813dd..440238061edd 100644

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

drivers/usb/phy/phy-twl6030-usb.c +1 -1
index b5dc077ed7d3..8e14fa221191 100644

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

drivers/vfio/mdev/mdev_core.c +5 -6
index 0212f0ee8aea..e052f62fdea7 100644

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

drivers/vfio/pci/vfio_pci.c +14 -5
index 9bd3e7911af2..550ab7707b57 100644

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

drivers/video/backlight/lm3630a_bl.c +2 -2
index 2030a6b77a09..ef2553f452ca 100644

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

drivers/video/fbdev/chipsfb.c +1 -2
index f103665cad43..f9b366d17587 100644

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

drivers/xen/cpu_hotplug.c +1 -1
index b1357aa4bc55..f192b6f42da9 100644

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

drivers/xen/pvcalls-back.c +1 -1
index abd6dbc29ac2..58be15c27b6d 100644

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

fs/affs/super.c +0 -6
index 884bedab7266..789a1c7db5d8 100644

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

fs/afs/super.c +1 -0
index 689173c0a682..f8529ddbd587 100644

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

fs/afs/xattr.c +2 -2
index 2830e4f48d85..7c6b62a94e7e 100644

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

fs/btrfs/file.c +2 -1
index 97be32da857a..c68ce3412dc1 100644

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

fs/btrfs/inode-map.c +22 -6
index d02019747d00..2ae32451fb5b 100644

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

fs/cifs/connect.c +2 -1
index f523a9ca9574..f0b1279a7de6 100644

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

fs/exportfs/expfs.c +1 -0
index a561ae17cf43..c08960040dd0 100644

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

fs/ext4/inline.c +1 -1
index 137c752ab985..6064bcb8572b 100644

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

fs/jfs/jfs_txnmgr.c +1 -2
index 4d973524c887..224ef034004b 100644

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

fs/nfs/delegation.c +12 -8
index 04d57e11577e..09b3bcb86d32 100644

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

fs/nfs/delegation.h +1 -0
index df41d16dc6ab..510c9edcc712 100644

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

fs/nfs/flexfilelayout/flexfilelayout.h +19 -13
index d6515f1584f3..d78ec99b6c4c 100644

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

fs/nfs/pnfs.c +23 -10
index ec04cce31814..83abf3dd7351 100644

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

fs/nfs/pnfs.h +1 -0
index 87f144f14d1e..965d657086c8 100644

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

fs/nfs/super.c +1 -1
index f464f8d9060c..470b761839a5 100644

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

fs/nfs/write.c +1 -1
index 01b9d9341b54..ed3f5afc4ff7 100644

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

fs/xfs/xfs_quotaops.c +3 -0
index a65108594a07..21bc6d2d23ca 100644

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

include/linux/device.h +2 -1
index 66fe271c2544..0b2e67014a83 100644

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

include/linux/irqchip/arm-gic-v3.h +6 -6
index 845ff8c51564..0fe1fdedb8a1 100644

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

include/linux/mlx5/mlx5_ifc.h +0 -2
index 1d793d86d55f..6ffa181598e6 100644

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

include/linux/mmc/sdio_ids.h +2 -0
index 0a7abe8a407f..68bbbd9edc08 100644

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

include/linux/platform_data/dma-imx-sdma.h +3 -0
index 6eaa53cef0bd..30e676b36b24 100644

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

include/linux/signal.h +14 -1
index 843bd62b1ead..c4e3eb89a622 100644

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

include/media/davinci/vpbe.h +1 -1
index 79a566d7defd..180a05e91497 100644

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

include/net/request_sock.h +2 -2
index 23e22054aa60..04aa2c7d35c4 100644

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

include/net/tcp.h +1 -1
index 00d10f0e1194..c96302310314 100644

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

kernel/debug/kdb/kdb_main.c +1 -1
index 993db6b2348e..15d902daeef6 100644

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

kernel/events/core.c +3 -0
index ea4f3f7a0c6f..2ac73b4cb8a9 100644

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

kernel/irq/irqdomain.c +1 -0
index ac4644e92b49..0f0e7975a309 100644

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

kernel/signal.c +5 -0
index c9b203875001..8fee1f2eba2f 100644

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

lib/devres.c +2 -1
index 5f2aedd58bc5..40a8b12a8b6b 100644

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

lib/kfifo.c +2 -1
index 90ba1eb1df06..a94227c55551 100644

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

net/6lowpan/nhc.c +1 -1
index 4fa2fdda174d..9e56fb98f33c 100644

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

net/bridge/netfilter/ebtables.c +3 -1
index 35a670ec9077..a1834ad7422c 100644

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

net/core/neighbour.c +2 -2
index 16ac50b1b9a7..567e431813e5 100644

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

net/core/sock.c +2 -2
index 90ccbbf9e6b0..03ca2f638eb4 100644

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

net/ieee802154/6lowpan/reassembly.c +1 -1
index ec7a5da56129..e873a6a007f2 100644

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

net/ipv4/inet_connection_sock.c +1 -1
index f7224c4fc30f..da55ce62fe50 100644

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

net/ipv4/tcp.c +2 -2
index 8f07655718f3..db1eceda2359 100644

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

net/ipv6/reassembly.c +1 -1
index fe797b29ca89..6dea6e92e686 100644

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

net/iucv/af_iucv.c +20 -7
index ca98276c2709..7a9cbc9502d9 100644

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

net/l2tp/l2tp_core.c +2 -1
index e494f04819e9..b9be0360ab94 100644

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

net/llc/af_llc.c +20 -14
index 2e472d5c3ea4..d552e8819713 100644

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

net/llc/llc_conn.c +8 -27
index 444c13e752a0..7fbc682aff04 100644

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

net/llc/llc_if.c +8 -4
index 6daf391b3e84..fc4d2bd8816f 100644

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

net/mac80211/rc80211_minstrel_ht.c +1 -1
index e57811e4b91f..7ba4272642c9 100644

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

net/mac80211/rx.c +10 -1
index 4a6b3c7b35e3..31000622376d 100644

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

net/mpls/mpls_iptunnel.c +1 -1
index 6e558a419f60..6c01166f972b 100644

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

net/netfilter/nft_set_hash.c +19 -4
index 33aa2ac3a62e..73f8f99b1193 100644

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

net/packet/af_packet.c +20 -5
index 4e1058159b08..46b7fac82775 100644

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

net/rds/ib_stats.c +1 -1
index 9252ad126335..ac46d8961b61 100644

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

net/rds/stats.c +2 -0
index 73be187d389e..6bbab4d74c4f 100644

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

net/rxrpc/output.c +3 -0
index 5b67cb5d47f0..edddbacf33bc 100644

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

net/sched/act_mirred.c +5 -1
index 529bb064c4a4..dcfaa4f9c7c5 100644

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

net/sched/sch_netem.c +13 -5
index 6266121a03f9..328b043edf07 100644

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

net/tipc/link.c +21 -8
index da749916faac..82e4e0e152d1 100644

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

net/tipc/node.c +4 -3
index 42e9bdcc4bb6..82f8f69f4d6b 100644

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

net/tipc/socket.c +1 -1
index 21929ba196eb..d9ec6335c7dc 100644

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

net/tipc/sysctl.c +6 -2
index 1a779b1e8510..40f6d82083d7 100644

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

security/apparmor/include/context.h +2 -0
index 6ae07e9aaa17..812cdec9dd3b 100644

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

security/apparmor/lsm.c +2 -2
index 1346ee5be04f..4f08023101f3 100644

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

security/keys/key.c +1 -0
index 87172f99f73e..17244f5f54c6 100644

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

sound/aoa/codecs/onyx.c +3 -1
index d2d96ca082b7..6224fd3bbf7c 100644

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

sound/pci/hda/hda_controller.h +4 -5
index 8a9dd4767b1e..63cc10604afc 100644

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

sound/soc/codecs/cs4349.c +1 -0
index 0a749c79ef57..1d38e53dc95c 100644

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

sound/soc/codecs/es8328.c +1 -1
index bcdb8914ec16..e2f44fa46262 100644

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

sound/soc/codecs/wm8737.c +1 -1
index f0cb1c4afe3c..c5a8d758f58b 100644

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

sound/soc/davinci/davinci-mcasp.c +6 -7
index 07bac9ea65c4..e10e03800cce 100644

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

sound/soc/fsl/imx-sgtl5000.c +2 -1
index 8e525f7ac08d..3d99a8579c99 100644

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

sound/soc/qcom/apq8016_sbc.c +16 -5
index d49adc822a11..8e6b88d68ca6 100644

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

sound/soc/soc-pcm.c +2 -2
index 24047375c2fb..70e1a60a2e98 100644

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

sound/soc/sunxi/sun4i-i2s.c +2 -2
index da0a2083e12a..d2802fd8c1dd 100644

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

sound/usb/mixer.c +3 -1
index 044193b2364d..e6e4c3b9d9d3 100644

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

sound/usb/quirks-table.h +2 -7
index d32727c74a16..c892b4d1e733 100644

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

tools/testing/selftests/ipc/msgque.c +6 -5
index ee9382bdfadc..c5587844fbb8 100644

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.