Skip to contentSkip to conversation

Linux 4.9.212

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

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.9.212 kernel.

All users of the 4.9 kernel series must upgrade.

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

thanks,

greg k-h

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

 Documentation/kernel-parameters.txt                 |    6 +
 Makefile                                            |    2 
 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/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/arm/juno-clocks.dtsi            |    4 
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi           |    2 
 arch/arm64/kernel/cpufeature.c                      |    5 
 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/include/asm/io.h                          |   14 --
 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                     |   17 ++
 arch/powerpc/kernel/cacheinfo.h                     |    4 
 arch/x86/Kconfig.debug                              |    2 
 arch/x86/kernel/kgdb.c                              |    2 
 block/blk-merge.c                                   |    8 -
 crypto/pcrypt.c                                     |    2 
 crypto/tgr192.c                                     |    6 -
 drivers/ata/libahci.c                               |    1 
 drivers/atm/firestream.c                            |    3 
 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/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/clocksource/exynos_mct.c                    |   14 ++
 drivers/clocksource/timer-sun5i.c                   |   10 +
 drivers/crypto/amcc/crypto4xx_trng.h                |    4 
 drivers/crypto/caam/caamrng.c                       |    5 
 drivers/crypto/ccp/ccp-crypto-aes.c                 |    8 -
 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/gpu/drm/drm_dp_mst_topology.c               |   15 ++
 drivers/gpu/drm/etnaviv/etnaviv_dump.c              |    2 
 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/sti/sti_hda.c                       |    1 
 drivers/gpu/drm/sti/sti_hdmi.c                      |    1 
 drivers/gpu/drm/virtio/virtgpu_vq.c                 |    5 
 drivers/hwmon/adt7475.c                             |    5 
 drivers/hwmon/hwmon.c                               |   98 ++++++++++------
 drivers/hwmon/lm75.c                                |    2 
 drivers/hwmon/nct7802.c                             |    4 
 drivers/hwmon/shtc1.c                               |    2 
 drivers/hwmon/w83627hf.c                            |   42 ++++++-
 drivers/hwtracing/coresight/coresight-etb10.c       |    4 
 drivers/hwtracing/coresight/coresight-tmc-etf.c     |    4 
 drivers/iio/dac/ad5380.c                            |    2 
 drivers/infiniband/hw/cxgb4/cm.c                    |    7 -
 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                  |    2 
 drivers/infiniband/hw/usnic/usnic_ib_verbs.c        |    2 
 drivers/infiniband/sw/rxe/rxe_cq.c                  |    4 
 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/infiniband/ulp/isert/ib_isert.c             |   12 --
 drivers/input/keyboard/nomadik-ske-keypad.c         |    2 
 drivers/input/misc/keyspan_remote.c                 |    9 +
 drivers/input/tablet/aiptek.c                       |    6 -
 drivers/input/tablet/gtco.c                         |   10 -
 drivers/input/tablet/pegasus_notetaker.c            |    2 
 drivers/input/touchscreen/sun4i-ts.c                |    6 -
 drivers/input/touchscreen/sur40.c                   |    2 
 drivers/iommu/amd_iommu.c                           |    2 
 drivers/iommu/amd_iommu_init.c                      |    3 
 drivers/iommu/intel-iommu.c                         |    5 
 drivers/iommu/iommu.c                               |    6 -
 drivers/md/bcache/super.c                           |    3 
 drivers/md/bitmap.c                                 |    8 -
 drivers/media/i2c/ov2659.c                          |    2 
 drivers/media/i2c/soc_camera/ov6650.c               |   72 ++++++++----
 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/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.c                            |    1 
 drivers/misc/mic/card/mic_x100.c                    |   28 ++--
 drivers/misc/sgi-xp/xpc_partition.c                 |    2 
 drivers/mmc/host/sdhci-brcmstb.c                    |    4 
 drivers/mmc/host/sdhci-tegra.c                      |    2 
 drivers/mmc/host/sdhci.c                            |   10 +
 drivers/net/can/slcan.c                             |   12 +-
 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/broadcom/bcmsysport.c          |    2 
 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c     |    2 
 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c       |    2 
 drivers/net/ethernet/ibm/ehea/ehea_main.c           |    2 
 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_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/gtp.c                                   |    4 
 drivers/net/phy/fixed_phy.c                         |    6 -
 drivers/net/phy/phy.c                               |    3 
 drivers/net/phy/phy_device.c                        |   11 +
 drivers/net/slip/slip.c                             |   12 +-
 drivers/net/usb/lan78xx.c                           |   15 ++
 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/marvell/libertas/cfg.c         |   16 ++
 drivers/net/wireless/marvell/libertas_tf/cmd.c      |    2 
 drivers/net/wireless/mediatek/mt7601u/phy.c         |    2 
 drivers/nvme/host/pci.c                             |    2 
 drivers/of/of_mdio.c                                |    2 
 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-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                |    2 
 drivers/power/supply/power_supply_core.c            |   10 -
 drivers/pwm/pwm-lpss.c                              |    6 +
 drivers/pwm/pwm-meson.c                             |    5 
 drivers/rapidio/rio_cm.c                            |    4 
 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-ds1672.c                            |    3 
 drivers/rtc/rtc-mc146818-lib.c                      |    2 
 drivers/rtc/rtc-pcf8563.c                           |   11 -
 drivers/rtc/rtc-pm8xxx.c                            |    6 -
 drivers/scsi/libfc/fc_exch.c                        |    2 
 drivers/scsi/megaraid/megaraid_sas_base.c           |    4 
 drivers/scsi/qla2xxx/qla_os.c                       |   34 +++--
 drivers/scsi/scsi_transport_iscsi.c                 |    7 +
 drivers/soc/fsl/qe/gpio.c                           |    4 
 drivers/spi/spi-bcm2835aux.c                        |   13 ++
 drivers/spi/spi-fsl-spi.c                           |    2 
 drivers/spi/spi-tegra114.c                          |   45 ++++++-
 drivers/staging/comedi/drivers/ni_mio_common.c      |   24 ++--
 drivers/staging/greybus/light.c                     |   12 +-
 drivers/staging/most/aim-cdev/cdev.c                |    5 
 drivers/target/iscsi/iscsi_target.c                 |    6 -
 drivers/thermal/cpu_cooling.c                       |    2 
 drivers/thermal/mtk_thermal.c                       |    6 -
 drivers/tty/ipwireless/hardware.c                   |    2 
 drivers/tty/serial/stm32-usart.c                    |   11 -
 drivers/usb/class/cdc-wdm.c                         |    2 
 drivers/usb/host/xhci-hub.c                         |    2 
 drivers/usb/phy/Kconfig                             |    2 
 drivers/usb/phy/phy-twl6030-usb.c                   |    2 
 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 
 fs/afs/super.c                                      |    1 
 fs/btrfs/inode-map.c                                |    1 
 fs/cifs/connect.c                                   |    3 
 fs/exportfs/expfs.c                                 |    1 
 fs/ext4/inline.c                                    |    2 
 fs/jfs/jfs_txnmgr.c                                 |    3 
 fs/namei.c                                          |   17 +-
 fs/nfs/delegation.c                                 |   20 ++-
 fs/nfs/delegation.h                                 |    1 
 fs/nfs/super.c                                      |    2 
 fs/xfs/xfs_quotaops.c                               |    3 
 include/linux/bitmap.h                              |    8 +
 include/linux/device.h                              |    3 
 include/linux/mlx5/mlx5_ifc.h                       |    2 
 include/linux/netfilter/ipset/ip_set.h              |    7 -
 include/linux/platform_data/dma-imx-sdma.h          |    3 
 include/linux/signal.h                              |   15 ++
 include/media/davinci/vpbe.h                        |    2 
 include/trace/events/xen.h                          |    6 -
 include/uapi/linux/ethtool.h                        |    6 -
 kernel/debug/kdb/kdb_main.c                         |    2 
 kernel/events/core.c                                |    3 
 kernel/signal.c                                     |    5 
 lib/bitmap.c                                        |   20 +++
 lib/devres.c                                        |    3 
 lib/kfifo.c                                         |    3 
 net/6lowpan/nhc.c                                   |    2 
 net/bridge/netfilter/ebtables.c                     |    4 
 net/core/ethtool.c                                  |    2 
 net/core/neighbour.c                                |    4 
 net/ieee802154/6lowpan/reassembly.c                 |    2 
 net/ipv4/ip_tunnel.c                                |    4 
 net/ipv4/tcp_bbr.c                                  |    3 
 net/ipv6/ip6_tunnel.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/netfilter/ipset/ip_set_bitmap_gen.h             |    2 
 net/netfilter/ipset/ip_set_bitmap_ip.c              |    6 -
 net/netfilter/ipset/ip_set_bitmap_ipmac.c           |    6 -
 net/netfilter/ipset/ip_set_bitmap_port.c            |    6 -
 net/packet/af_packet.c                              |   25 +++-
 net/rds/ib_stats.c                                  |    2 
 net/rxrpc/output.c                                  |    3 
 net/sched/act_mirred.c                              |    6 -
 net/sched/ematch.c                                  |    2 
 net/sched/sch_netem.c                               |   18 ++-
 net/tipc/node.c                                     |    7 -
 net/tipc/sysctl.c                                   |    8 +
 net/x25/af_x25.c                                    |    6 -
 scripts/recordmcount.c                              |   17 ++
 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 -
 287 files changed, 1446 insertions(+), 802 deletions(-)

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

Al Viro (1):

      do_last(): fetch directory ->i_mode and ->i_uid before it's too late

Alex Sverdlin (1):
ARM: 8950/1: ftrace/recordmcount: filter relocation types

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

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

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

Andy Shevchenko (6):
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
md: Avoid namespace collision with bitmap API
bitmap: Add bitmap_alloc(), bitmap_zalloc() and bitmap_free()

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 (6):
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'.

Axel Lin (5):
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: tps65086: Fix tps65086_ldoa1_ranges for selector 0xB

Bart Van Assche (2):
scsi: qla2xxx: Unregister chrdev if module initialization fails
scsi: RDMA/isert: Fix a recently introduced regression related to logout

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

Bo Wu (1):
scsi: iscsi: Avoid potential deadlock in iscsi_if_rx func

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

Changbin Du (1):
tracing: xen: Ordered comparison of function pointers

Chen-Yu Tsai (3):
clk: sunxi-ng: sun8i-a23: Enable PLL-MIPI LDOs when ungating it clocksource/drivers/sun5i: Fail gracefully when clock rate is unavailable
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 (2):
dmaengine: ti: edma: fix missed failure handling
Input: sun4i-ts - add a check for devm_thermal_zone_of_sensor_register

Colin Ian King (13):
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
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

Cong Wang (1):
net_sched: fix datalen for ematch

Corentin Labbe (1):
crypto: crypto4xx - Fix wrong ppc4xx_trng_probe()/ppc4xx_trng_remove() arguments

Dan Carpenter (21):
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() 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: 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
of: mdio: Fix a signedness bug in of_phy_get_and_connect()
net: ethernet: stmmac: Fix signedness bug in ipq806x_gmac_of_parse()
bcache: silence static checker warning

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

David Howells (2):
keys: Timestamp new keys
rxrpc: Fix uninitialized error code in rxrpc_send_data_packet()

Dmitry Osipenko (1):
hwmon: (core) Fix double-free in __hwmon_device_register()

Eric Auger (1):
vfio_pci: Enable memory accesses before calling pci_map_rom

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 (4):
inet: frags: call inet_frags_fini() after unregister_pernet_subsys()
net: neigh: use long type to store jiffies delta
packet: fix data-race in fanout_flow_is_huge()
gtp: make sure only SOCK_DGRAM UDP sockets are accepted

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 (1):
serial: stm32: fix transmit_chars when tx is stopped

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

Filipe Manana (1):
Btrfs: fix hang when loading existing inode cache off disk

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

Florian Fainelli (2):
net: ethtool: Add back transceiver type
net: phy: Keep reporting transceiver type

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 (13):
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: 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

Gerd Rausch (1):
net/rds: Fix 'ib_evt_handler_call' element in 'rds_ib_stat_names'

Gilles Buloz (1):
hwmon: (nct7802) Fix voltage limits to wrong registers

Greg Kroah-Hartman (1):

      Linux 4.9.212

Guenter Roeck (5):
nios2: ksyms: Add missing symbol exports
hwmon: (w83627hf) Use request_muxed_region for Super-IO accesses
hwmon: (lm75) Fix write operations for negative temperatures
hwmon: (core) Simplify sysfs attribute name allocation
hwmon: (core) Do not use device managed functions for memory allocations

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

Hook, Gary (1):
crypto: ccp - fix AES CFB error exposed by new test vectors

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

Iuliana Prodan (1):
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

James Hughes (1):
net: usb: lan78xx: Add .ndo_features_check

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

Janusz Krzysztofik (3):
media: ov6650: Fix incorrect use of JPEG colorspace
media: ov6650: Fix some format attributes not under control
media: ov6650: Fix .get_fmt() V4L2_SUBDEV_FORMAT_TRY support

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

Jeremy Linton (1):
Documentation: Document arm64 kpti control

Jerome Brunet (1):
ASoC: fix valid stream condition

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

Johan Hovold (5):
Input: keyspan-remote - fix control-message timeouts
Input: sur40 - fix interface sanity checks
Input: gtco - fix endpoint sanity check
Input: aiptek - fix endpoint sanity check
Input: pegasus_notetaker - fix endpoint sanity check

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

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

Jon Maloy (1):
tipc: tipc clang warning

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

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

Kadlecsik József (1):
netfilter: ipset: use bitmap infrastructure completely

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

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

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

Linus Walleij (1):
hwmon: Deal with errors from the thermal subsystem

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

Luuk Paulussen (1):
hwmon: (adt7475) Make volt2reg return same reg as reg2volt input

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 Schiller (1):
net/x25: fix nonblocking connect

Martin Sperl (1):

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

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

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

Maxime Ripard (1):
ASoC: sun4i-i2s: RX and TX counter registers are swapped

Michael Ellerman (1):
net: cxgb3_main: Add CAP_NET_ADMIN check to CHELSIO_GET_MEM

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

Michał Mirosław (2):
mmc: tegra: fix SDR50 tuning override
mmc: sdhci: fix minimum clock rate for v3 controller

Ming Lei (1):

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

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

Nathan Chancellor (1):
misc: sgi-xp: Properly initialize buf in xpc_get_rsvd_page_pa

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

Nathan Lynch (1):
powerpc/cacheinfo: add cacheinfo_teardown, cacheinfo_rebuild

Nicholas Mc Guire (1):
media: cx23885: check allocation return

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

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

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 (1):
mlxsw: reg: QEEC: Add minimum shaper fields

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

Richard Palethorpe (1):

      can, slip: Protect tty->disc_data in write_wakeup and close with RCU

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

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

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 (2):
spi: tegra114: clear packed bit for unpacked mode
spi: tegra114: fix for unpacked mode transfers

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 (2):
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()

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

Suzuki K Poulose (2):
coresight: etb10: Do not call smp_processor_id from preemptible
coresight: tmc-etf: Do not call smp_processor_id from preemptible

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 (1):
NFS: Fix a soft lockup in the delegation recovery code

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 Huang (1):
libertas: Fix two buffer overflows at parsing bss descriptor

Wen Yang (2):
net: pasemi: fix an use-after-free in pasemi_mac_phy_init()
tcp_bbr: improve arithmetic division in bbr_update_bw()

Wenwen Wang (1):
firestream: fix memory leaks

Will Deacon (1):
arm64: kpti: Whitelist Cortex-A CPUs that don't implement the CSV3 field

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

William Dauchy (2):
net, ip6_tunnel: fix namespaces move
net, ip_tunnel: fix namespaces move

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

Yangtao Li (12):
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: dove: fix refcount leak in dove_clk_init()

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

YueHaibing (13):
exportfs: fix 'passing zero to ERR_PTR()' warning
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

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

author maintainer
#1 lore raw
Documentation/kernel-parameters.txt +6 -0
index 1bc12619bedd..b2d2f4539a3f 100644
@@ -1965,6 +1965,12 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
 			kmemcheck=2 (one-shot mode)
 			Default: 2 (one-shot mode)
 
+	kpti=		[ARM64] Control page table isolation of user
+			and kernel address spaces.
+			Default: enabled on cores which need mitigation.
+			0: force disabled
+			1: force enabled
+
 	kstack=N	[X86] Print N words from the kernel stack
 			in oops dumps.
 
Makefile +1 -1
index 7fd68e080fe4..b6c05e99814e 100644
@@ -1,6 +1,6 @@
 VERSION = 4
 PATCHLEVEL = 9
-SUBLEVEL = 211
+SUBLEVEL = 212
 EXTRAVERSION =
 NAME = Roaring Lionus
 
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 5fa3111731cb..2802c9565b6c 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 825f6eae3d1c..27133c3a4b12 100644
@@ -505,13 +505,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/common/mcpm_entry.c +1 -1
index a923524d1040..8617323eb273 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 6c7182f32cef..e6c2f426f8c8 100644
@@ -7,6 +7,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 15d073ae5da2..f5e5e3e19659 100644
@@ -179,8 +179,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 0f6c1000582c..c8569390e7e7 100644
@@ -119,6 +119,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)
@@ -134,6 +142,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)
@@ -162,6 +171,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 bfc74954540c..9421b78f869d 100644
@@ -2588,7 +2588,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 66502e6207fe..fce7fecbd8fa 100644
@@ -117,7 +117,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);
@@ -129,6 +129,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/arm/juno-clocks.dtsi +2 -2
index 25352ed943e6..00bcbf7688c7 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 601be6127628..948efff7d830 100644
@@ -355,6 +355,8 @@
 	l11 {
 		regulator-min-microvolt = <1750000>;
 		regulator-max-microvolt = <3337000>;
+		regulator-allow-set-load;
+		regulator-system-load = <200000>;
 	};
 
 	l12 {
arch/arm64/kernel/cpufeature.c +5 -0
index 9a8e45dc36bd..8cf001baee21 100644
@@ -789,6 +789,11 @@ static bool unmap_kernel_at_el0(const struct arm64_cpu_capabilities *entry,
 	switch (read_cpuid_id() & MIDR_CPU_MODEL_MASK) {
 	case MIDR_CAVIUM_THUNDERX2:
 	case MIDR_BRCM_VULCAN:
+	case MIDR_CORTEX_A53:
+	case MIDR_CORTEX_A55:
+	case MIDR_CORTEX_A57:
+	case MIDR_CORTEX_A72:
+	case MIDR_CORTEX_A73:
 		return false;
 	}
 
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 611d4d9ea2bd..3978d71d250b 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 749543b425a4..03c83b8f9032 100644
@@ -37,13 +37,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 c11d38dfad08..1a095443790b 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 58e240939d26..ac49fa7ec46b 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 513f9bb17b9c..60b51f5b9cfc 100644
@@ -126,10 +126,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;
@@ -138,8 +138,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;
 }
 
@@ -147,11 +152,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 431d3c4306dd..a4f6a44d3418 100644
@@ -77,15 +77,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/include/asm/io.h +2 -12
index 06049b6b3ddd..5dfae80264b9 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/kernel/setup.c +1 -1
index 695950361d2a..7cc1d29334ee 100644
@@ -74,7 +74,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 a60c9c6e5cc1..de29b88c0e70 100644
@@ -373,7 +373,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 85e88f7a59c0..9ff848e3c4a6 100644
@@ -27,7 +27,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 +17 -0
index c641983bbdd6..3394a72b19f2 100644
@@ -867,4 +867,21 @@ void cacheinfo_cpu_offline(unsigned int cpu_id)
 	if (cache)
 		cache_cpu_clear(cache, cpu_id);
 }
+
+void cacheinfo_teardown(void)
+{
+	unsigned int cpu;
+
+	for_each_online_cpu(cpu)
+		cacheinfo_cpu_offline(cpu);
+}
+
+void cacheinfo_rebuild(void)
+{
+	unsigned int cpu;
+
+	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 a7b74d36acd7..2cdee87a482c 100644
@@ -5,4 +5,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/x86/Kconfig.debug +1 -1
index 4386440fe463..f09a192260f8 100644
@@ -192,7 +192,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
 
block/blk-merge.c +1 -7
index 2642e5fc8b69..66795cca662a 100644
@@ -305,13 +305,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 f233ce60a678..1610fff19bb3 100644
@@ -190,7 +190,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/atm/firestream.c +3 -0
index 85aaf2222587..82296fe2ba3b 100644
@@ -927,6 +927,7 @@ static int fs_open(struct atm_vcc *atm_vcc)
 			}
 			if (!to) {
 				printk ("No more free channels for FS50..\n");
+				kfree(vcc);
 				return -EBUSY;
 			}
 			vcc->channo = dev->channo;
@@ -937,6 +938,7 @@ static int fs_open(struct atm_vcc *atm_vcc)
 			if (((DO_DIRECTION(rxtp) && dev->atm_vccs[vcc->channo])) ||
 			    ( DO_DIRECTION(txtp) && test_bit (vcc->channo, dev->tx_inuse))) {
 				printk ("Channel is in use for FS155.\n");
+				kfree(vcc);
 				return -EBUSY;
 			}
 		}
@@ -950,6 +952,7 @@ static int fs_open(struct atm_vcc *atm_vcc)
 			    tc, sizeof (struct fs_transmit_config));
 		if (!tc) {
 			fs_dprintk (FS_DEBUG_OPEN, "fs: can't alloc transmit_config.\n");
+			kfree(vcc);
 			return -ENOMEM;
 		}
 
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 f5c24459fc5c..daa9cef96ec6 100644
@@ -332,6 +332,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 cdce49f6476a..65876ff6df41 100644
@@ -1245,6 +1245,7 @@ static void __init clockgen_init(struct device_node *np)
 				pr_err("%s: Couldn't map %s regs\n", __func__,
 				       guts->full_name);
 			}
+			of_node_put(guts);
 		}
 
 	}
drivers/clk/imx/clk-imx6q.c +1 -0
index 14682df5d312..d83f6221f1b0 100644
@@ -174,6 +174,7 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node)
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-anatop");
 	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 b5c96de41ccf..8bbc2542f2f7 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 e7c7353a86fc..8c0c0d015132 100644
@@ -415,6 +415,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 0476353ab423..a19ab032d073 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 b3094315a3c0..2fa15a274719 100644
@@ -202,7 +202,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/qcom/gcc-msm8996.c +0 -36
index fe03e6fbc7df..ea6c227331fc 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 faab9b31baf5..91f9b79e3941 100644
@@ -1225,6 +1225,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 5c6d37bdf247..765c6977484e 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/clocksource/exynos_mct.c +13 -1
index d32248e2ceab..ae3cbaeffd9c 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 4f87f3e76d83..c3e96de525a2 100644
@@ -201,6 +201,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;
@@ -274,6 +279,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/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/caam/caamrng.c +4 -1
index 9b92af2c7241..a77319bf221d 100644
@@ -361,7 +361,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/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/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 5bda0eb9f393..7536fe80bc33 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
@@ -226,6 +233,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 72f31e837b1d..56ec72468745 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 9f240b2d85a5..558d509b7d85 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 23f75285a4d9..5d524f29c5f1 100644
@@ -1044,6 +1044,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;
 
 	/*
@@ -1076,7 +1077,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/gpu/drm/drm_dp_mst_topology.c +13 -2
index e05dda92398c..17aedaaf364c 100644
@@ -980,9 +980,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 2bef501d4a17..5af7c2594a79 100644
@@ -206,7 +206,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/msm/adreno/a3xx_gpu.c +11 -13
index fd266ed963b6..25a0e7d13340 100644
@@ -383,19 +383,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 6f240021705b..e49b414c012c 100644
@@ -33,6 +33,8 @@
 #include "sfpb.xml.h"
 #include "dsi_cfg.h"
 
+#define DSI_RESET_TOGGLE_DELAY_MS 20
+
 static int dsi_get_version(const void __iomem *base, u32 *major, u32 *minor)
 {
 	u32 ver;
@@ -909,7 +911,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 8b4e3004f451..86b0448d2ce5 100644
@@ -542,7 +542,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 e6f74168238c..2ef9e942f43a 100644
@@ -87,10 +87,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 b99f3e59011c..5fcb5869a489 100644
@@ -7026,8 +7026,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 f2eac6b6c46a..9569c35f8766 100644
@@ -3697,8 +3697,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 b75d809c292e..919d389869ce 100644
@@ -6018,8 +6018,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/sti/sti_hda.c +0 -1
index e7c243f70870..08808e3701de 100644
@@ -740,7 +740,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 376b0763c874..a5412a6fbeca 100644
@@ -1352,7 +1352,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/virtio/virtgpu_vq.c +3 -2
index a1b3ea1ccb65..772a5a3b0ce1 100644
@@ -681,11 +681,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)
@@ -695,6 +695,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/adt7475.c +3 -2
index 9c262d955331..d2583caa8087 100644
@@ -268,9 +268,10 @@ static inline u16 volt2reg(int channel, long volt, u8 bypass_attn)
 	long reg;
 
 	if (bypass_attn & (1 << channel))
-		reg = (volt * 1024) / 2250;
+		reg = DIV_ROUND_CLOSEST(volt * 1024, 2250);
 	else
-		reg = (volt * r[1] * 1024) / ((r[0] + r[1]) * 2250);
+		reg = DIV_ROUND_CLOSEST(volt * r[1] * 1024,
+					(r[0] + r[1]) * 2250);
 	return clamp_val(reg, 0, 1023) & (0xff << 2);
 }
 
drivers/hwmon/hwmon.c +63 -35

227 lines not on this page · raw message

drivers/hwmon/lm75.c +1 -1
index eff3b24d8473..fc31669a86ba 100644
@@ -164,7 +164,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/nct7802.c +2 -2
index 7f8738a83cb9..40addb213bdf 100644
@@ -32,8 +32,8 @@
 static const u8 REG_VOLTAGE[5] = { 0x09, 0x0a, 0x0c, 0x0d, 0x0e };
 
 static const u8 REG_VOLTAGE_LIMIT_LSB[2][5] = {
-	{ 0x40, 0x00, 0x42, 0x44, 0x46 },
-	{ 0x3f, 0x00, 0x41, 0x43, 0x45 },
+	{ 0x46, 0x00, 0x40, 0x42, 0x44 },
+	{ 0x45, 0x00, 0x3f, 0x41, 0x43 },
 };
 
 static const u8 REG_VOLTAGE_LIMIT_MSB[5] = { 0x48, 0x00, 0x47, 0x47, 0x48 };
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/hwtracing/coresight/coresight-etb10.c +1 -3
index ace55385b26f..ff10deed3fde 100644
@@ -279,9 +279,7 @@ static void *etb_alloc_buffer(struct coresight_device *csdev, int cpu,
 	int node;
 	struct cs_buffers *buf;
 
-	if (cpu == -1)
-		cpu = smp_processor_id();
-	node = cpu_to_node(cpu);
+	node = (cpu == -1) ? NUMA_NO_NODE : cpu_to_node(cpu);
 
 	buf = kzalloc_node(sizeof(struct cs_buffers), GFP_KERNEL, node);
 	if (!buf)
drivers/hwtracing/coresight/coresight-tmc-etf.c +1 -3
index 14df4e34c21c..03ce12ad4317 100644
@@ -292,9 +292,7 @@ static void *tmc_alloc_etf_buffer(struct coresight_device *csdev, int cpu,
 	int node;
 	struct cs_buffers *buf;
 
-	if (cpu == -1)
-		cpu = smp_processor_id();
-	node = cpu_to_node(cpu);
+	node = (cpu == -1) ? NUMA_NO_NODE : cpu_to_node(cpu);
 
 	/* Allocate memory structure for interaction with Perf */
 	buf = kzalloc_node(sizeof(struct cs_buffers), GFP_KERNEL, node);
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/hw/cxgb4/cm.c +4 -3
index 605d50ad123c..a04a53acb24f 100644
@@ -2044,7 +2044,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);
@@ -2135,7 +2135,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;
@@ -3278,7 +3279,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/hns/hns_roce_qp.c +0 -1
index 33cf1035030b..6f3c0ea99dd0 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 a7bc89f5dae7..4d906a790481 100644
@@ -2324,6 +2324,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  |
@@ -2357,6 +2362,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] = {
@@ -2373,6 +2384,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] = {
@@ -2384,6 +2401,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 6af44f8db3d5..4d28bd8eff01 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 +1 -1
index cd0408c2b376..7603a1641c7d 100644
@@ -54,7 +54,7 @@
 
 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;
drivers/infiniband/hw/usnic/usnic_ib_verbs.c +1 -1
index a5bfbba6bbac..cacb720f44a0 100644
@@ -425,7 +425,7 @@ int usnic_ib_query_gid(struct ib_device *ibdev, u8 port, int index,
 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 e5e6a5e7dee9..5ac88412f1ff 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"
@@ -89,7 +89,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_qp.c +3 -2
index 44b2108253bd..d6672127808b 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;
 	}
@@ -312,7 +313,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 cb48e22afff7..a3614f7f0007 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 9c3e9ab53a41..759c2fe033e7 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/infiniband/ulp/isert/ib_isert.c +0 -12
index 02a5e2d7e574..0d2ab9a2cf44 100644
@@ -2555,17 +2555,6 @@ isert_wait4logout(struct isert_conn *isert_conn)
 	}
 }
 
-static void
-isert_wait4cmds(struct iscsi_conn *conn)
-{
-	isert_info("iscsi_conn %p\n", conn);
-
-	if (conn->sess) {
-		target_sess_cmd_list_set_waiting(conn->sess->se_sess);
-		target_wait_for_sess_cmds(conn->sess->se_sess);
-	}
-}
-
 /**
  * isert_put_unsol_pending_cmds() - Drop commands waiting for
  *     unsolicitate dataout
@@ -2613,7 +2602,6 @@ static void isert_wait_conn(struct iscsi_conn *conn)
 
 	ib_drain_qp(isert_conn->qp);
 	isert_put_unsol_pending_cmds(conn);
-	isert_wait4cmds(conn);
 	isert_wait4logout(isert_conn);
 
 	queue_work(isert_release_wq, &isert_conn->release_work);
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/input/misc/keyspan_remote.c +6 -3
index a3fe4a990cc9..c7b889d13edd 100644
@@ -344,7 +344,8 @@ static int keyspan_setup(struct usb_device* dev)
 	int retval = 0;
 
 	retval = usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
-				 0x11, 0x40, 0x5601, 0x0, NULL, 0, 0);
+				 0x11, 0x40, 0x5601, 0x0, NULL, 0,
+				 USB_CTRL_SET_TIMEOUT);
 	if (retval) {
 		dev_dbg(&dev->dev, "%s - failed to set bit rate due to error: %d\n",
 			__func__, retval);
@@ -352,7 +353,8 @@ static int keyspan_setup(struct usb_device* dev)
 	}
 
 	retval = usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
-				 0x44, 0x40, 0x0, 0x0, NULL, 0, 0);
+				 0x44, 0x40, 0x0, 0x0, NULL, 0,
+				 USB_CTRL_SET_TIMEOUT);
 	if (retval) {
 		dev_dbg(&dev->dev, "%s - failed to set resume sensitivity due to error: %d\n",
 			__func__, retval);
@@ -360,7 +362,8 @@ static int keyspan_setup(struct usb_device* dev)
 	}
 
 	retval = usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
-				 0x22, 0x40, 0x0, 0x0, NULL, 0, 0);
+				 0x22, 0x40, 0x0, 0x0, NULL, 0,
+				 USB_CTRL_SET_TIMEOUT);
 	if (retval) {
 		dev_dbg(&dev->dev, "%s - failed to turn receive on due to error: %d\n",
 			__func__, retval);
drivers/input/tablet/aiptek.c +3 -3
index 4613f0aefd08..5a7e5e073e52 100644
@@ -1822,14 +1822,14 @@ aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id)
 	input_set_abs_params(inputdev, ABS_WHEEL, AIPTEK_WHEEL_MIN, AIPTEK_WHEEL_MAX - 1, 0, 0);
 
 	/* Verify that a device really has an endpoint */
-	if (intf->altsetting[0].desc.bNumEndpoints < 1) {
+	if (intf->cur_altsetting->desc.bNumEndpoints < 1) {
 		dev_err(&intf->dev,
 			"interface has %d endpoints, but must have minimum 1\n",
-			intf->altsetting[0].desc.bNumEndpoints);
+			intf->cur_altsetting->desc.bNumEndpoints);
 		err = -EINVAL;
 		goto fail3;
 	}
-	endpoint = &intf->altsetting[0].endpoint[0].desc;
+	endpoint = &intf->cur_altsetting->endpoint[0].desc;
 
 	/* Go set up our URB, which is called when the tablet receives
 	 * input.
drivers/input/tablet/gtco.c +3 -7
index 8af736dc4b18..dd8dc335daca 100644
@@ -875,18 +875,14 @@ static int gtco_probe(struct usb_interface *usbinterface,
 	}
 
 	/* Sanity check that a device has an endpoint */
-	if (usbinterface->altsetting[0].desc.bNumEndpoints < 1) {
+	if (usbinterface->cur_altsetting->desc.bNumEndpoints < 1) {
 		dev_err(&usbinterface->dev,
 			"Invalid number of endpoints\n");
 		error = -EINVAL;
 		goto err_free_urb;
 	}
 
-	/*
-	 * The endpoint is always altsetting 0, we know this since we know
-	 * this device only has one interrupt endpoint
-	 */
-	endpoint = &usbinterface->altsetting[0].endpoint[0].desc;
+	endpoint = &usbinterface->cur_altsetting->endpoint[0].desc;
 
 	/* Some debug */
 	dev_dbg(&usbinterface->dev, "gtco # interfaces: %d\n", usbinterface->num_altsetting);
@@ -973,7 +969,7 @@ static int gtco_probe(struct usb_interface *usbinterface,
 	input_dev->dev.parent = &usbinterface->dev;
 
 	/* Setup the URB, it will be posted later on open of input device */
-	endpoint = &usbinterface->altsetting[0].endpoint[0].desc;
+	endpoint = &usbinterface->cur_altsetting->endpoint[0].desc;
 
 	usb_fill_int_urb(gtco->urbinfo,
 			 udev,
drivers/input/tablet/pegasus_notetaker.c +1 -1
index 47de5a81172f..2319144802c9 100644
@@ -260,7 +260,7 @@ static int pegasus_probe(struct usb_interface *intf,
 		return -ENODEV;
 
 	/* Sanity check that the device has an endpoint */
-	if (intf->altsetting[0].desc.bNumEndpoints < 1) {
+	if (intf->cur_altsetting->desc.bNumEndpoints < 1) {
 		dev_err(&intf->dev, "Invalid number of endpoints\n");
 		return -EINVAL;
 	}
drivers/input/touchscreen/sun4i-ts.c +5 -1
index d07dd29d4848..9a94d65bf483 100644
@@ -246,6 +246,7 @@ static int sun4i_ts_probe(struct platform_device *pdev)
 	struct device *dev = &pdev->dev;
 	struct device_node *np = dev->of_node;
 	struct device *hwmon;
+	struct thermal_zone_device *thermal;
 	int error;
 	u32 reg;
 	bool ts_attached;
@@ -365,7 +366,10 @@ static int sun4i_ts_probe(struct platform_device *pdev)
 	if (IS_ERR(hwmon))
 		return PTR_ERR(hwmon);
 
-	devm_thermal_zone_of_sensor_register(ts->dev, 0, ts, &sun4i_ts_tz_ops);
+	thermal = devm_thermal_zone_of_sensor_register(ts->dev, 0, ts,
+						       &sun4i_ts_tz_ops);
+	if (IS_ERR(thermal))
+		return PTR_ERR(thermal);
 
 	writel(TEMP_IRQ_EN(1), ts->base + TP_INT_FIFOC);
 
drivers/input/touchscreen/sur40.c +1 -1
index 4c0eecae065c..2180fa8b695b 100644
@@ -523,7 +523,7 @@ static int sur40_probe(struct usb_interface *interface,
 	int error;
 
 	/* Check if we really have the right interface. */
-	iface_desc = &interface->altsetting[0];
+	iface_desc = interface->cur_altsetting;
 	if (iface_desc->desc.bInterfaceClass != 0xFF)
 		return -ENODEV;
 
drivers/iommu/amd_iommu.c +2 -0
index c898c70472bb..bb0448c91f67 100644
@@ -2113,6 +2113,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 9bb8d64b6f94..c113e46fdc3a 100644
@@ -383,6 +383,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 +4 -1
index 25cc6ae87039..5c6e0a9fd2f3 100644
@@ -3345,9 +3345,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) {
drivers/iommu/iommu.c +3 -3
index 71b89e47e952..dbcc13efaf3c 100644
@@ -1582,9 +1582,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/md/bcache/super.c +0 -3
index 080f9afcde8d..526e9d5a4fb1 100644
@@ -1398,9 +1398,6 @@ static void cache_set_flush(struct closure *cl)
 	struct btree *b;
 	unsigned i;
 
-	if (!c)
-		closure_return(cl);
-
 	bch_cache_accounting_destroy(&c->accounting);
 
 	kobject_put(&c->internal);
drivers/md/bitmap.c +4 -4
index f7ff408567ad..63bff4cc7098 100644
@@ -1699,7 +1699,7 @@ void bitmap_flush(struct mddev *mddev)
 /*
  * free memory that was allocated
  */
-static void bitmap_free(struct bitmap *bitmap)
+static void md_bitmap_free(struct bitmap *bitmap)
 {
 	unsigned long k, pages;
 	struct bitmap_page *bp;
@@ -1749,7 +1749,7 @@ void bitmap_destroy(struct mddev *mddev)
 	if (mddev->thread)
 		mddev->thread->timeout = MAX_SCHEDULE_TIMEOUT;
 
-	bitmap_free(bitmap);
+	md_bitmap_free(bitmap);
 }
 
 /*
@@ -1834,7 +1834,7 @@ struct bitmap *bitmap_create(struct mddev *mddev, int slot)
 
 	return bitmap;
  error:
-	bitmap_free(bitmap);
+	md_bitmap_free(bitmap);
 	return ERR_PTR(err);
 }
 
@@ -1936,7 +1936,7 @@ int bitmap_copy_from_slot(struct mddev *mddev, int slot,
 	*low = lo;
 	*high = hi;
 err:
-	bitmap_free(bitmap);
+	md_bitmap_free(bitmap);
 	return rv;
 }
 EXPORT_SYMBOL_GPL(bitmap_copy_from_slot);
drivers/media/i2c/ov2659.c +1 -1
index ade3c48e2e0c..18546f950d79 100644
@@ -1137,7 +1137,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/i2c/soc_camera/ov6650.c +48 -24

129 lines not on this page · raw message

drivers/media/pci/cx18/cx18-fileops.c +1 -1
index df837408efd5..0171dc5b8809 100644
@@ -490,7 +490,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 818f3c2fc98d..1d86e57f4d9f 100644
@@ -1471,8 +1471,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 1ddf80f85c24..27ff6e0d9845 100644
@@ -1386,13 +1386,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/davinci/isif.c +0 -9
index 78e37cf3470f..b51b875c5a61 100644
@@ -890,9 +890,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...");
 
@@ -980,13 +978,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);
-		dm365_vpss_set_pg_frame_size(frame_size);
-	}
 	return 0;
 }
 
drivers/media/platform/davinci/vpbe.c +1 -1
index abce9c4a1a8e..59518c08528b 100644
@@ -130,7 +130,7 @@ static int vpbe_enum_outputs(struct vpbe_device *vpbe_dev,
 			     struct v4l2_output *output)
 {
 	struct vpbe_config *cfg = vpbe_dev->cfg;
-	int temp_index = output->index;
+	unsigned int temp_index = output->index;
 
 	if (temp_index >= cfg->num_outputs)
 		return -EINVAL;
drivers/media/platform/omap/omap_vout.c +6 -9
index a31b95cb3b09..77ec70f5fef6 100644
@@ -1526,23 +1526,20 @@ static int vidioc_dqbuf(struct file *file, void *fh, struct v4l2_buffer *b)
 	unsigned long size;
 	struct videobuf_buffer *vb;
 
-	vb = q->bufs[b->index];
-
 	if (!vout->streaming)
 		return -EINVAL;
 
-	if (file->f_flags & O_NONBLOCK)
-		/* Call videobuf_dqbuf for non blocking mode */
-		ret = videobuf_dqbuf(q, (struct v4l2_buffer *)b, 1);
-	else
-		/* Call videobuf_dqbuf for  blocking mode */
-		ret = videobuf_dqbuf(q, (struct v4l2_buffer *)b, 0);
+	ret = videobuf_dqbuf(q, b, !!(file->f_flags & O_NONBLOCK));
+	if (ret)
+		return ret;
+
+	vb = q->bufs[b->index];
 
 	addr = (unsigned long) vout->buf_phy_addr[vb->i];
 	size = (unsigned long) vb->size;
 	dma_unmap_single(vout->vid_dev->v4l2_dev.dev,  addr,
 				size, DMA_TO_DEVICE);
-	return ret;
+	return 0;
 }
 
 static int vidioc_streamon(struct file *file, void *fh, enum v4l2_buf_type i)
drivers/media/platform/s5p-jpeg/jpeg-core.c +1 -1
index c89922fb42ce..a63f4eec366e 100644
@@ -1963,7 +1963,7 @@ static int s5p_jpeg_controls_create(struct s5p_jpeg_ctx *ctx)
 
 		v4l2_ctrl_new_std(&ctx->ctrl_handler, &s5p_jpeg_ctrl_ops,
 				  V4L2_CID_JPEG_RESTART_INTERVAL,
-				  0, 3, 0xffff, 0);
+				  0, 0xffff, 1, 0);
 		if (ctx->jpeg->variant->version == SJPEG_S5P)
 			mask = ~0x06; /* 422, 420 */
 	}
drivers/media/platform/vivid/vivid-osd.c +1 -1
index bdc380b14e0c..a95b7c56569e 100644
@@ -167,7 +167,7 @@ static int _vivid_fb_check_var(struct fb_var_screeninfo *var, struct vivid_dev *
 	var->nonstd = 0;
 
 	var->vmode &= ~FB_VMODE_MASK;
-	var->vmode = FB_VMODE_NONINTERLACED;
+	var->vmode |= FB_VMODE_NONINTERLACED;
 
 	/* Dummy values */
 	var->hsync_len = 24;
drivers/media/radio/wl128x/fmdrv_common.c +3 -2
index c1457cf46698..db987dda356e 100644
@@ -1278,8 +1278,9 @@ static int fm_download_firmware(struct fmdev *fmdev, const u8 *fw_name)
 
 		switch (action->type) {
 		case ACTION_SEND_COMMAND:	/* Send */
-			if (fmc_send_cmd(fmdev, 0, 0, action->data,
-						action->size, NULL, NULL))
+			ret = fmc_send_cmd(fmdev, 0, 0, action->data,
+					   action->size, NULL, NULL);
+			if (ret)
 				goto rel_fw;
 
 			cmd_cnt++;
drivers/mfd/intel-lpss.c +1 -0
index 22dd8c055048..71cecd7aeea0 100644
@@ -533,6 +533,7 @@ module_init(intel_lpss_init);
 
 static void __exit intel_lpss_exit(void)
 {
+	ida_destroy(&intel_lpss_devid_ida);
 	debugfs_remove(intel_lpss_debugfs);
 }
 module_exit(intel_lpss_exit);
drivers/misc/mic/card/mic_x100.c +12 -16
index b9f0710ffa6b..4007adc666f3 100644
@@ -249,6 +249,9 @@ static int __init mic_probe(struct platform_device *pdev)
 	mdrv->dev = &pdev->dev;
 	snprintf(mdrv->name, sizeof(mic_driver_name), mic_driver_name);
 
+	/* FIXME: use dma_set_mask_and_coherent() and check result */
+	dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
+
 	mdev->mmio.pa = MIC_X100_MMIO_BASE;
 	mdev->mmio.len = MIC_X100_MMIO_LEN;
 	mdev->mmio.va = devm_ioremap(&pdev->dev, MIC_X100_MMIO_BASE,
@@ -294,18 +297,6 @@ static void mic_platform_shutdown(struct platform_device *pdev)
 	mic_remove(pdev);
 }
 
-static u64 mic_dma_mask = DMA_BIT_MASK(64);
-
-static struct platform_device mic_platform_dev = {
-	.name = mic_driver_name,
-	.id   = 0,
-	.num_resources = 0,
-	.dev = {
-		.dma_mask = &mic_dma_mask,
-		.coherent_dma_mask = DMA_BIT_MASK(64),
-	},
-};
-
 static struct platform_driver __refdata mic_platform_driver = {
 	.probe = mic_probe,
 	.remove = mic_remove,
@@ -315,6 +306,8 @@ static struct platform_driver __refdata mic_platform_driver = {
 	},
 };
 
+static struct platform_device *mic_platform_dev;
+
 static int __init mic_init(void)
 {
 	int ret;
@@ -328,9 +321,12 @@ static int __init mic_init(void)
 
 	request_module("mic_x100_dma");
 	mic_init_card_debugfs();
-	ret = platform_device_register(&mic_platform_dev);
+
+	mic_platform_dev = platform_device_register_simple(mic_driver_name,
+							   0, NULL, 0);
+	ret = PTR_ERR_OR_ZERO(mic_platform_dev);
 	if (ret) {
-		pr_err("platform_device_register ret %d\n", ret);
+		pr_err("platform_device_register_full ret %d\n", ret);
 		goto cleanup_debugfs;
 	}
 	ret = platform_driver_register(&mic_platform_driver);
@@ -341,7 +337,7 @@ static int __init mic_init(void)
 	return ret;
 
 device_unregister:
-	platform_device_unregister(&mic_platform_dev);
+	platform_device_unregister(mic_platform_dev);
 cleanup_debugfs:
 	mic_exit_card_debugfs();
 done:
@@ -351,7 +347,7 @@ static int __init mic_init(void)
 static void __exit mic_exit(void)
 {
 	platform_driver_unregister(&mic_platform_driver);
-	platform_device_unregister(&mic_platform_dev);
+	platform_device_unregister(mic_platform_dev);
 	mic_exit_card_debugfs();
 }
 
drivers/misc/sgi-xp/xpc_partition.c +1 -1
index 6956f7e7d439..ca5f0102daef 100644
@@ -70,7 +70,7 @@ xpc_get_rsvd_page_pa(int nasid)
 	unsigned long rp_pa = nasid;	/* seed with nasid */
 	size_t len = 0;
 	size_t buf_len = 0;
-	void *buf = buf;
+	void *buf = NULL;
 	void *buf_base = NULL;
 	enum xp_retval (*get_partition_rsvd_page_pa)
 		(void *, u64 *, unsigned long *, size_t *) =
drivers/mmc/host/sdhci-brcmstb.c +3 -1
index 159f6f64c68e..ed6473731b45 100644
@@ -90,7 +90,9 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
 	host->mmc->caps2 |= MMC_CAP2_HC_ERASE_SZ;
 
 	sdhci_get_of_property(pdev);
-	mmc_of_parse(host->mmc);
+	res = mmc_of_parse(host->mmc);
+	if (res)
+		goto err;
 
 	/*
 	 * Supply the existing CAPS, but clear the UHS modes. This
drivers/mmc/host/sdhci-tegra.c +1 -1
index 088a3ae0dff0..ec1949045295 100644
@@ -174,7 +174,7 @@ static void tegra_sdhci_reset(struct sdhci_host *host, u8 mask)
 			misc_ctrl |= SDHCI_MISC_CTRL_ENABLE_DDR50;
 		if (soc_data->nvquirks & NVQUIRK_ENABLE_SDR104)
 			misc_ctrl |= SDHCI_MISC_CTRL_ENABLE_SDR104;
-		if (soc_data->nvquirks & SDHCI_MISC_CTRL_ENABLE_SDR50)
+		if (soc_data->nvquirks & NVQUIRK_ENABLE_SDR50)
 			clk_ctrl |= SDHCI_CLOCK_CTRL_SDR50_TUNING_OVERRIDE;
 	}
 
drivers/mmc/host/sdhci.c +6 -4
index bd43dc7f4c63..68b736547d81 100644
@@ -3243,11 +3243,13 @@ int sdhci_setup_host(struct sdhci_host *host)
 	if (host->ops->get_min_clock)
 		mmc->f_min = host->ops->get_min_clock(host);
 	else if (host->version >= SDHCI_SPEC_300) {
-		if (host->clk_mul) {
-			mmc->f_min = (host->max_clk * host->clk_mul) / 1024;
+		if (host->clk_mul)
 			max_clk = host->max_clk * host->clk_mul;
-		} else
-			mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_300;
+		/*
+		 * Divided Clock Mode minimum clock rate is always less than
+		 * Programmable Clock Mode minimum clock rate.
+		 */
+		mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_300;
 	} else
 		mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_200;
 
drivers/net/can/slcan.c +10 -2
index 020437900fce..453a2ea7895b 100644
@@ -344,9 +344,16 @@ static void slcan_transmit(struct work_struct *work)
  */
 static void slcan_write_wakeup(struct tty_struct *tty)
 {
-	struct slcan *sl = tty->disc_data;
+	struct slcan *sl;
+
+	rcu_read_lock();
+	sl = rcu_dereference(tty->disc_data);
+	if (!sl)
+		goto out;
 
 	schedule_work(&sl->tx_work);
+out:
+	rcu_read_unlock();
 }
 
 /* Send a can_frame to a TTY queue. */
@@ -640,10 +647,11 @@ static void slcan_close(struct tty_struct *tty)
 		return;
 
 	spin_lock_bh(&sl->lock);
-	tty->disc_data = NULL;
+	rcu_assign_pointer(tty->disc_data, NULL);
 	sl->tty = NULL;
 	spin_unlock_bh(&sl->lock);
 
+	synchronize_rcu();
 	flush_work(&sl->tx_work);
 
 	/* Flush network side */
drivers/net/dsa/qca8k.c +12 -0
index ebfbaf8597f4..3bbe85aae49b 100644
@@ -460,6 +460,18 @@ qca8k_set_pad_ctrl(struct qca8k_priv *priv, int port, int mode)
 		qca8k_write(priv, QCA8K_REG_PORT5_PAD_CTRL,
 			    QCA8K_PORT_PAD_RGMII_RX_DELAY_EN);
 		break;
+	case PHY_INTERFACE_MODE_RGMII_ID:
+		/* RGMII_ID needs internal delay. This is enabled through
+		 * PORT5_PAD_CTRL for all ports, rather than individual port
+		 * registers
+		 */
+		qca8k_write(priv, reg,
+			    QCA8K_PORT_PAD_RGMII_EN |
+			    QCA8K_PORT_PAD_RGMII_TX_DELAY(QCA8K_MAX_DELAY) |
+			    QCA8K_PORT_PAD_RGMII_RX_DELAY(QCA8K_MAX_DELAY));
+		qca8k_write(priv, QCA8K_REG_PORT5_PAD_CTRL,
+			    QCA8K_PORT_PAD_RGMII_RX_DELAY_EN);
+		break;
 	case PHY_INTERFACE_MODE_SGMII:
 		qca8k_write(priv, reg, QCA8K_PORT_PAD_SGMII_EN);
 		break;
drivers/net/dsa/qca8k.h +1 -0
index 9c22bc3210cd..db95168ca111 100644
@@ -40,6 +40,7 @@
 						((0x8 + (x & 0x3)) << 22)
 #define   QCA8K_PORT_PAD_RGMII_RX_DELAY(x)		\
 						((0x10 + (x & 0x3)) << 20)
+#define   QCA8K_MAX_DELAY				3
 #define   QCA8K_PORT_PAD_RGMII_RX_DELAY_EN		BIT(24)
 #define   QCA8K_PORT_PAD_SGMII_EN			BIT(7)
 #define QCA8K_REG_MODULE_EN				0x030
drivers/net/ethernet/amazon/ena/ena_com.c +2 -1
index bcd993140f84..912dc09bc7a7 100644
@@ -1967,7 +1967,7 @@ int ena_com_set_hash_function(struct ena_com_dev *ena_dev)
 	if (unlikely(ret))
 		return ret;
 
-	if (get_resp.u.flow_hash_func.supported_func & (1 << rss->hash_func)) {
+	if (!(get_resp.u.flow_hash_func.supported_func & BIT(rss->hash_func))) {
 		pr_err("Func hash %d isn't supported by device, abort\n",
 		       rss->hash_func);
 		return -EPERM;
@@ -2052,6 +2052,7 @@ int ena_com_fill_hash_function(struct ena_com_dev *ena_dev,
 		return -EINVAL;
 	}
 
+	rss->hash_func = func;
 	rc = ena_com_set_hash_function(ena_dev);
 
 	/* Restore the old function */
drivers/net/ethernet/amazon/ena/ena_ethtool.c +2 -2
index 67b2338f8fb3..06fd061a20e9 100644
@@ -697,8 +697,8 @@ static int ena_set_rxfh(struct net_device *netdev, const u32 *indir,
 	if (indir) {
 		for (i = 0; i < ENA_RX_RSS_TABLE_SIZE; i++) {
 			rc = ena_com_indirect_table_fill_entry(ena_dev,
-							       ENA_IO_RXQ_IDX(indir[i]),
-							       i);
+							       i,
+							       ENA_IO_RXQ_IDX(indir[i]));
 			if (unlikely(rc)) {
 				netif_err(adapter, drv, netdev,
 					  "Cannot fill indirect table (index is too large)\n");
drivers/net/ethernet/amazon/ena/ena_netdev.c +1 -0
index 961f31c8356b..da21886609e3 100644
@@ -1702,6 +1702,7 @@ static int ena_up(struct ena_adapter *adapter)
 err_setup_tx:
 	ena_free_io_irq(adapter);
 err_req_irq:
+	ena_del_napi(adapter);
 
 	return rc;
 }
drivers/net/ethernet/broadcom/bcmsysport.c +1 -1
index 95874c10c23b..e3b41af65d18 100644
@@ -1773,7 +1773,7 @@ static int bcm_sysport_probe(struct platform_device *pdev)
 
 	priv->phy_interface = of_get_phy_mode(dn);
 	/* Default to GMII interface mode */
-	if (priv->phy_interface < 0)
+	if ((int)priv->phy_interface < 0)
 		priv->phy_interface = PHY_INTERFACE_MODE_GMII;
 
 	/* In the case of a fixed PHY, the DT node associated
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c +2 -0
index d1a2159e40d6..9627ed0b2f1c 100644
@@ -2440,6 +2440,8 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)
 
 		if (!is_offload(adapter))
 			return -EOPNOTSUPP;
+		if (!capable(CAP_NET_ADMIN))
+			return -EPERM;
 		if (!(adapter->flags & FULL_INIT_DONE))
 			return -EIO;	/* need the memory controllers */
 		if (copy_from_user(&t, useraddr, sizeof(t)))
drivers/net/ethernet/hisilicon/hix5hd2_gmac.c +1 -1
index e69a6bed31a9..dd24c352b200 100644
@@ -929,7 +929,7 @@ static int hix5hd2_dev_probe(struct platform_device *pdev)
 		goto err_free_mdio;
 
 	priv->phy_mode = of_get_phy_mode(node);
-	if (priv->phy_mode < 0) {
+	if ((int)priv->phy_mode < 0) {
 		netdev_err(ndev, "not find phy-mode\n");
 		ret = -EINVAL;
 		goto err_mdiobus;
drivers/net/ethernet/ibm/ehea/ehea_main.c +1 -1
index 2dd17e01e3a7..3692adb8902d 100644
@@ -1476,7 +1476,7 @@ static int ehea_init_port_res(struct ehea_port *port, struct ehea_port_res *pr,
 
 	memset(pr, 0, sizeof(struct ehea_port_res));
 
-	pr->tx_bytes = rx_bytes;
+	pr->tx_bytes = tx_bytes;
 	pr->tx_packets = tx_packets;
 	pr->rx_bytes = rx_bytes;
 	pr->rx_packets = rx_packets;
drivers/net/ethernet/mellanox/mlxsw/reg.h +21 -1
index b2a745b579fd..fdc69218c8ca 100644
@@ -1873,7 +1873,7 @@ static inline void mlxsw_reg_qtct_pack(char *payload, u8 local_port,
  * Configures the ETS elements.
  */
 #define MLXSW_REG_QEEC_ID 0x400D
-#define MLXSW_REG_QEEC_LEN 0x1C
+#define MLXSW_REG_QEEC_LEN 0x20
 
 static const struct mlxsw_reg_info mlxsw_reg_qeec = {
 	.id = MLXSW_REG_QEEC_ID,
@@ -1918,6 +1918,15 @@ MLXSW_ITEM32(reg, qeec, element_index, 0x04, 0, 8);
  */
 MLXSW_ITEM32(reg, qeec, next_element_index, 0x08, 0, 8);
 
+/* reg_qeec_mise
+ * Min shaper configuration enable. Enables configuration of the min
+ * shaper on this ETS element
+ * 0 - Disable
+ * 1 - Enable
+ * Access: RW
+ */
+MLXSW_ITEM32(reg, qeec, mise, 0x0C, 31, 1);
+
 enum {
 	MLXSW_REG_QEEC_BYTES_MODE,
 	MLXSW_REG_QEEC_PACKETS_MODE,
@@ -1934,6 +1943,17 @@ enum {
  */
 MLXSW_ITEM32(reg, qeec, pb, 0x0C, 28, 1);
 
+/* The smallest permitted min shaper rate. */
+#define MLXSW_REG_QEEC_MIS_MIN	200000		/* Kbps */
+
+/* reg_qeec_min_shaper_rate
+ * Min shaper information rate.
+ * For CPU port, can only be configured for port hierarchy.
+ * When in bytes mode, value is specified in units of 1000bps.
+ * Access: RW
+ */
+MLXSW_ITEM32(reg, qeec, min_shaper_rate, 0x0C, 0, 28);
+
 /* reg_qeec_mase
  * Max shaper configuration enable. Enables configuration of the max
  * shaper on this ETS element.
drivers/net/ethernet/natsemi/sonic.c +3 -3
index 23821540ab07..a051dddcbd76 100644
@@ -221,9 +221,9 @@ static int sonic_send_packet(struct sk_buff *skb, struct net_device *dev)
 
 	laddr = dma_map_single(lp->device, skb->data, length, DMA_TO_DEVICE);
 	if (!laddr) {
-		printk(KERN_ERR "%s: failed to map tx DMA buffer.\n", dev->name);
-		dev_kfree_skb(skb);
-		return NETDEV_TX_BUSY;
+		pr_err_ratelimited("%s: failed to map tx DMA buffer.\n", dev->name);
+		dev_kfree_skb_any(skb);
+		return NETDEV_TX_OK;
 	}
 
 	sonic_tda_put(dev, entry, SONIC_TD_STATUS, 0);       /* clear status */
drivers/net/ethernet/pasemi/pasemi_mac.c +1 -1
index 2f4a837f0d6a..dcd56ac68748 100644
@@ -1053,7 +1053,6 @@ static int pasemi_mac_phy_init(struct net_device *dev)
 
 	dn = pci_device_to_OF_node(mac->pdev);
 	phy_dn = of_parse_phandle(dn, "phy-handle", 0);
-	of_node_put(phy_dn);
 
 	mac->link = 0;
 	mac->speed = 0;
@@ -1062,6 +1061,7 @@ static int pasemi_mac_phy_init(struct net_device *dev)
 	phydev = of_phy_connect(dev, phy_dn, &pasemi_adjust_link, 0,
 				PHY_INTERFACE_MODE_SGMII);
 
+	of_node_put(phy_dn);
 	if (!phydev) {
 		printk(KERN_ERR "%s: Could not attach to phy\n", dev->name);
 		return -ENODEV;
drivers/net/ethernet/qlogic/qed/qed_l2.c +15 -19
index 715776e2cfe5..2d198f6ee21d 100644
@@ -1328,10 +1328,9 @@ static void __qed_get_vport_pstats_addrlen(struct qed_hwfn *p_hwfn,
 	}
 }
 
-static void __qed_get_vport_pstats(struct qed_hwfn *p_hwfn,
-				   struct qed_ptt *p_ptt,
-				   struct qed_eth_stats *p_stats,
-				   u16 statistics_bin)
+static noinline_for_stack void
+__qed_get_vport_pstats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
+		       struct qed_eth_stats *p_stats, u16 statistics_bin)
 {
 	struct eth_pstorm_per_queue_stat pstats;
 	u32 pstats_addr = 0, pstats_len = 0;
@@ -1351,10 +1350,9 @@ static void __qed_get_vport_pstats(struct qed_hwfn *p_hwfn,
 	p_stats->tx_err_drop_pkts += HILO_64_REGPAIR(pstats.error_drop_pkts);
 }
 
-static void __qed_get_vport_tstats(struct qed_hwfn *p_hwfn,
-				   struct qed_ptt *p_ptt,
-				   struct qed_eth_stats *p_stats,
-				   u16 statistics_bin)
+static noinline_for_stack void
+__qed_get_vport_tstats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
+		       struct qed_eth_stats *p_stats, u16 statistics_bin)
 {
 	struct tstorm_per_port_stat tstats;
 	u32 tstats_addr, tstats_len;
@@ -1397,10 +1395,9 @@ static void __qed_get_vport_ustats_addrlen(struct qed_hwfn *p_hwfn,
 	}
 }
 
-static void __qed_get_vport_ustats(struct qed_hwfn *p_hwfn,
-				   struct qed_ptt *p_ptt,
-				   struct qed_eth_stats *p_stats,
-				   u16 statistics_bin)
+static noinline_for_stack
+void __qed_get_vport_ustats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
+			    struct qed_eth_stats *p_stats, u16 statistics_bin)
 {
 	struct eth_ustorm_per_queue_stat ustats;
 	u32 ustats_addr = 0, ustats_len = 0;
@@ -1436,10 +1433,9 @@ static void __qed_get_vport_mstats_addrlen(struct qed_hwfn *p_hwfn,
 	}
 }
 
-static void __qed_get_vport_mstats(struct qed_hwfn *p_hwfn,
-				   struct qed_ptt *p_ptt,
-				   struct qed_eth_stats *p_stats,
-				   u16 statistics_bin)
+static noinline_for_stack void
+__qed_get_vport_mstats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
+		       struct qed_eth_stats *p_stats, u16 statistics_bin)
 {
 	struct eth_mstorm_per_queue_stat mstats;
 	u32 mstats_addr = 0, mstats_len = 0;
@@ -1463,9 +1459,9 @@ static void __qed_get_vport_mstats(struct qed_hwfn *p_hwfn,
 		HILO_64_REGPAIR(mstats.tpa_coalesced_bytes);
 }
 
-static void __qed_get_vport_port_stats(struct qed_hwfn *p_hwfn,
-				       struct qed_ptt *p_ptt,
-				       struct qed_eth_stats *p_stats)
+static noinline_for_stack void
+__qed_get_vport_port_stats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
+			   struct qed_eth_stats *p_stats)
 {
 	struct port_stats port_stats;
 	int j;
drivers/net/ethernet/qualcomm/qca_spi.c +4 -5
index 21f546587e3d..31583d6f044f 100644
@@ -438,7 +438,6 @@ qcaspi_qca7k_sync(struct qcaspi *qca, int event)
 	u16 signature = 0;
 	u16 spi_config;
 	u16 wrbuf_space = 0;
-	static u16 reset_count;
 
 	if (event == QCASPI_EVENT_CPUON) {
 		/* Read signature twice, if not valid
@@ -491,13 +490,13 @@ qcaspi_qca7k_sync(struct qcaspi *qca, int event)
 
 		qca->sync = QCASPI_SYNC_RESET;
 		qca->stats.trig_reset++;
-		reset_count = 0;
+		qca->reset_count = 0;
 		break;
 	case QCASPI_SYNC_RESET:
-		reset_count++;
+		qca->reset_count++;
 		netdev_dbg(qca->net_dev, "sync: waiting for CPU on, count %u.\n",
-			   reset_count);
-		if (reset_count >= QCASPI_RESET_TIMEOUT) {
+			   qca->reset_count);
+		if (qca->reset_count >= QCASPI_RESET_TIMEOUT) {
 			/* reset did not seem to take place, try again */
 			qca->sync = QCASPI_SYNC_UNKNOWN;
 			qca->stats.reset_timeout++;
drivers/net/ethernet/qualcomm/qca_spi.h +1 -0
index 6e31a0e744a4..c48c314ca4df 100644
@@ -97,6 +97,7 @@ struct qcaspi {
 
 	unsigned int intr_req;
 	unsigned int intr_svc;
+	u16 reset_count;
 
 #ifdef CONFIG_DEBUG_FS
 	struct dentry *device_root;
drivers/net/ethernet/renesas/sh_eth.c +5 -1
index 49300194d3f9..6f8d4810ce97 100644
@@ -2929,12 +2929,16 @@ static struct sh_eth_plat_data *sh_eth_parse_dt(struct device *dev)
 	struct device_node *np = dev->of_node;
 	struct sh_eth_plat_data *pdata;
 	const char *mac_addr;
+	int ret;
 
 	pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
 	if (!pdata)
 		return NULL;
 
-	pdata->phy_interface = of_get_phy_mode(np);
+	ret = of_get_phy_mode(np);
+	if (ret < 0)
+		return NULL;
+	pdata->phy_interface = ret;
 
 	mac_addr = of_get_mac_address(np);
 	if (mac_addr)
drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c +1 -1
index 866444b6c82f..11a4a81b0397 100644
@@ -203,7 +203,7 @@ static int ipq806x_gmac_of_parse(struct ipq806x_gmac *gmac)
 	struct device *dev = &gmac->pdev->dev;
 
 	gmac->phy_mode = of_get_phy_mode(dev->of_node);
-	if (gmac->phy_mode < 0) {
+	if ((int)gmac->phy_mode < 0) {
 		dev_err(dev, "missing phy mode property\n");
 		return -EINVAL;
 	}
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c +1 -1
index f356a44bcb81..6704d3e0392d 100644
@@ -280,7 +280,7 @@ static int meson8b_dwmac_probe(struct platform_device *pdev)
 
 	dwmac->pdev = pdev;
 	dwmac->phy_mode = of_get_phy_mode(pdev->dev.of_node);
-	if (dwmac->phy_mode < 0) {
+	if ((int)dwmac->phy_mode < 0) {
 		dev_err(&pdev->dev, "missing phy-mode property\n");
 		ret = -EINVAL;
 		goto err_remove_config_dt;
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +1 -1
index f46f2bfc2cc0..4216c0a5eaf5 100644
@@ -168,7 +168,7 @@ static void dwmac4_set_filter(struct mac_device_info *hw,
 	}
 
 	/* Handle multiple unicast addresses */
-	if (netdev_uc_count(dev) > GMAC_MAX_PERFECT_ADDRESSES) {
+	if (netdev_uc_count(dev) > hw->unicast_filter_entries) {
 		/* Switch to promiscuous mode if more than 128 addrs
 		 * are required
 		 */
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c +1 -1
index 3eb281d1db08..231330809037 100644
@@ -158,7 +158,7 @@ static int stmmac_enable(struct ptp_clock_info *ptp,
 /* structure describing a PTP hardware clock */
 static struct ptp_clock_info stmmac_ptp_clock_ops = {
 	.owner = THIS_MODULE,
-	.name = "stmmac_ptp_clock",
+	.name = "stmmac ptp",
[… more lines in the raw message]

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

drivers/net/gtp.c +3 -1
index c2898718b593..5077c69eb652 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.c +2 -1
index 5fde8e335f13..82a4487bc66e 100644

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

drivers/net/phy/phy_device.c +6 -5
index 3289fd910c4a..487d0372a444 100644

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

drivers/net/slip/slip.c +10 -2
index 7ec96c3e38a6..2af09c3851a5 100644

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

drivers/net/usb/lan78xx.c +15 -0
index 473dd79e167b..65e94dffaabc 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 2ec3a91a0f6b..bba7ace1a744 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +1 -1
index c2bbc8c17beb..bc06d87a0106 100644

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

drivers/net/wireless/marvell/libertas/cfg.c +13 -3
index 7ff2efadceca..3eab802c7d3f 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/nvme/host/pci.c +1 -1
index 1ac4cec5f4f7..e2bce9385eda 100644

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

drivers/of/of_mdio.c +1 -1
index 262281bd68fa..1e70851b1530 100644

Lines of this file are not shown. View the 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 baa98d7fe947..dd350e296142 100644

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

drivers/pinctrl/sh-pfc/pfc-r8a7792.c +1 -0
index 21badb6166b9..97998929db93 100644

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

drivers/pinctrl/sh-pfc/pfc-r8a7794.c +1 -1
index ef093ac0cf2f..fe8c9c24634d 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 4300a558d0f3..d02214a3f8e3 100644

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

drivers/platform/x86/alienware-wmi.c +1 -1
index fe419935041c..bee2115ecf10 100644

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

drivers/power/supply/power_supply_core.c +5 -5
index 9e05ae0430a9..cb0b3d3d132f 100644

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

drivers/pwm/pwm-lpss.c +6 -0
index 5208b3f80ad8..239003807c08 100644

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

drivers/pwm/pwm-meson.c +0 -5
index f58a4867b519..a196439ee14c 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/pv88060-regulator.c +1 -1
index 6c4afc73ecac..d229245d2b5e 100644

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

drivers/regulator/pv88080-regulator.c +1 -1
index 954a20eeb26f..a40ecfb77210 100644

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

drivers/regulator/pv88090-regulator.c +1 -1
index 421641175352..789652c9b014 100644

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

drivers/regulator/tps65086-regulator.c +2 -2
index 6dbf3cf3951e..12d26261394f 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-ds1672.c +2 -1
index 5c18ac7394c4..c911f2db0af5 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-pcf8563.c +5 -6
index a4b8b603c807..533fb7027f0c 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/libfc/fc_exch.c +1 -1
index 16ca31ad5ec0..d0a86ef80652 100644

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

drivers/scsi/megaraid/megaraid_sas_base.c +2 -2
index c5cc002dfdd5..10ae624dd266 100644

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

drivers/scsi/qla2xxx/qla_os.c +21 -13
index 3bae56b202f8..e730aabc26d0 100644

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

drivers/scsi/scsi_transport_iscsi.c +7 -0
index c39551b32e94..ab7bc4e63425 100644

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

drivers/soc/fsl/qe/gpio.c +3 -1
index 0aaf429f31d5..b5a7107a9c0a 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-fsl-spi.c +1 -1
index 8b290d9d7935..5419de19859a 100644

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

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

45 lines not on this page · raw message

drivers/staging/comedi/drivers/ni_mio_common.c +17 -7
index fe03a41dc5cf..12056eb3cbe8 100644

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

drivers/staging/greybus/light.c +6 -6
index 9f01427f35f9..1cb82cc28aa7 100644

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

drivers/staging/most/aim-cdev/cdev.c +4 -1
index 7f51024dc5eb..e87b9ed4f37d 100644

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

drivers/target/iscsi/iscsi_target.c +3 -3
index e5674e5857bf..9636d8744347 100644

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

drivers/thermal/cpu_cooling.c +1 -1
index f49d2989d000..984e5f514140 100644

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

drivers/thermal/mtk_thermal.c +4 -2
index 34169c32d495..ea9558679634 100644

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

drivers/tty/ipwireless/hardware.c +2 -0
index df0204b6148f..4417f7568422 100644

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

drivers/tty/serial/stm32-usart.c +3 -8
index 033856287ca2..ea8b591dd46f 100644

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

drivers/usb/class/cdc-wdm.c +1 -1
index 217a479165e0..09337a973335 100644

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

drivers/usb/host/xhci-hub.c +1 -1
index 5cf5f3d9c1e5..04d36fa60734 100644

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

drivers/usb/phy/Kconfig +1 -1
index 19ce615455c1..de70e70d02be 100644

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

drivers/usb/phy/phy-twl6030-usb.c +1 -1
index a72e8d670adc..cf0b67433ac9 100644

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

drivers/vfio/pci/vfio_pci.c +14 -5
index da3f0ed18c76..c94167d87178 100644

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

drivers/video/backlight/lm3630a_bl.c +2 -2
index 60d6c2ac87aa..1771220b2437 100644

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

drivers/video/fbdev/chipsfb.c +1 -2
index 59abdc6a97f6..314b7eceb81c 100644

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

drivers/xen/cpu_hotplug.c +1 -1
index f4e59c445964..17054d695411 100644

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

fs/afs/super.c +1 -0
index fbdb022b75a2..65389394e202 100644

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

fs/btrfs/inode-map.c +1 -0
index d27014b8bf72..075b59516c8c 100644

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

fs/cifs/connect.c +2 -1
index e43ba6db2bdd..751bdde6515d 100644

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

fs/exportfs/expfs.c +1 -0
index 3706939e5dd5..1730122b10e0 100644

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

fs/ext4/inline.c +1 -1
index 9a13f86fed62..4df4d31057b3 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/namei.c +10 -7
index eb4626bad88a..7150c4d0bd7b 100644

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

fs/nfs/delegation.c +12 -8
index 9a8830a0f31f..014039618cff 100644

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

fs/nfs/delegation.h +1 -0
index 2c6cb7fb7d5e..f72095bf9e10 100644

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

fs/nfs/super.c +1 -1
index 42c31587a936..4c21e572f2d9 100644

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

fs/xfs/xfs_quotaops.c +3 -0
index f82d79a8c694..a7c3da09b72f 100644

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

include/linux/bitmap.h +8 -0
index dec03c0dbc21..26347cc717e8 100644

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

include/linux/device.h +2 -1
index 8d732965fab7..eb865b461acc 100644

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

include/linux/mlx5/mlx5_ifc.h +0 -2
index 20ee90c47cd5..6dd276227217 100644

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

include/linux/netfilter/ipset/ip_set.h +0 -7
index 83b9a2e0d8d4..e3a91b24a31c 100644

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

include/linux/platform_data/dma-imx-sdma.h +3 -0
index 2d08816720f6..5bb0a119f39a 100644

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

include/linux/signal.h +14 -1
index 5308304993be..ffa58ff53e22 100644

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

include/media/davinci/vpbe.h +1 -1
index 4376beeb28c2..5d8ceeddc797 100644

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

include/trace/events/xen.h +5 -1
index d6be935caa50..ecd1a0f7bd3e 100644

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

include/uapi/linux/ethtool.h +5 -1
index 8c5335bde212..5dd3332ebc66 100644

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

kernel/debug/kdb/kdb_main.c +1 -1
index 5a58421d7e2d..a52a6da8c3d0 100644

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

kernel/events/core.c +3 -0
index 5bbf7537a612..64ace5e9af2a 100644

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

kernel/signal.c +5 -0
index 30914b3c76b2..57fadbe69c2e 100644

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

lib/bitmap.c +20 -0
index 0b66f0e5eb6b..a44b20a829dd 100644

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

lib/devres.c +2 -1
index cb1464c411a2..38912892053c 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 7008d53e455c..e61679bf0908 100644

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

net/bridge/netfilter/ebtables.c +3 -1
index 56b7197f0373..1d850edecd72 100644

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

net/core/ethtool.c +2 -0
index 476665f917a2..47d2d6e2b780 100644

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

net/core/neighbour.c +2 -2
index cd85cee14bd0..6578d1f8e6c4 100644

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

net/ieee802154/6lowpan/reassembly.c +1 -1
index c01df341b5f6..5936bfafb1c4 100644

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

net/ipv4/ip_tunnel.c +1 -3
index a4db2d79b913..65c47b1f0da4 100644

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

net/ipv4/tcp_bbr.c +1 -2
index 7e44d23b0328..3bfab2d41574 100644

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

net/ipv6/ip6_tunnel.c +1 -3
index cc28b8646986..ed795d50a8d2 100644

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

net/ipv6/reassembly.c +1 -1
index 4aed9c45a91a..3f488555999e 100644

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

net/iucv/af_iucv.c +20 -7
index c2dfc32eb9f2..02e10deef5b4 100644

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

net/l2tp/l2tp_core.c +2 -1
index 4ae758bcb2cf..394a1ddb0782 100644

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

net/llc/af_llc.c +20 -14
index 789e66b0187a..2a859f967c8a 100644

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

net/llc/llc_conn.c +8 -27
index 94c78cc49d3e..1bdbd134bd7a 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 593184d14b3e..e1b0e26c1f17 100644

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

net/mac80211/rx.c +10 -1
index 3b423c50ec8f..74652eb2f90f 100644

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

net/netfilter/ipset/ip_set_bitmap_gen.h +1 -1
index 9b32059dee2d..7536cdd2da28 100644

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

net/netfilter/ipset/ip_set_bitmap_ip.c +3 -3
index 4783efff0bde..a4c104a4977f 100644

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

net/netfilter/ipset/ip_set_bitmap_ipmac.c +3 -3
index 9a065f672d3a..8e58e7e34981 100644

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

net/netfilter/ipset/ip_set_bitmap_port.c +3 -3
index 7f0c733358a4..6771b362a123 100644

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

net/packet/af_packet.c +20 -5
index 40cade140222..fb643945e424 100644

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

net/rds/ib_stats.c +1 -1
index 7e78dca1f252..aaf4b3d10203 100644

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

net/rxrpc/output.c +3 -0
index 59d328603312..64389f493bb2 100644

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

net/sched/act_mirred.c +5 -1
index fc3650b06192..9b4c7c42c932 100644

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

net/sched/ematch.c +1 -1
index fbb7ebfc58c6..b0b04b3c0896 100644

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

net/sched/sch_netem.c +13 -5
index 95002e56fa48..e06491314d59 100644

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

net/tipc/node.c +4 -3
index db8fbc076e1a..fe7b0ad1d6f3 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.

net/x25/af_x25.c +5 -1
index 6c2560f3f95b..a8ca79810dcc 100644

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

scripts/recordmcount.c +17 -0
index 5423a58d1b06..9972141f11aa 100644

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

security/keys/key.c +1 -0
index 7276d1a009d4..280b4feccdc0 100644

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

sound/aoa/codecs/onyx.c +3 -1
index a04edff8b729..ae50d59fb810 100644

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

sound/pci/hda/hda_controller.h +4 -5
index b83feecf1e40..8f9386998270 100644

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

sound/soc/codecs/cs4349.c +1 -0
index 231ca935cdf3..c232c42ccead 100644

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

sound/soc/codecs/es8328.c +1 -1
index 37722194b107..6b22700842e2 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 624c209c9498..d1935c5c3602 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 07f91e918b23..754742018515 100644

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

sound/soc/soc-pcm.c +2 -2
index d69559e45872..635b22fa1101 100644

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

sound/soc/sunxi/sun4i-i2s.c +2 -2
index 15c92400cea4..02c373c65e19 100644

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

sound/usb/mixer.c +3 -1
index 64fa1bbf0acb..54011f8543a7 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.

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

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