Skip to contentSkip to conversation

Linux 4.14.159

DISCUSSION Greg KH 1 participant 2 messages Dec 17, 2019 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.14.159 kernel.

All users of the 4.14 kernel series must upgrade.

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

thanks,

greg k-h

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

 Documentation/admin-guide/kernel-parameters.txt              |   22 +-
 Documentation/devicetree/bindings/rtc/abracon,abx80x.txt     |    2 
 Makefile                                                     |   13 -
 arch/arm/Kconfig.debug                                       |   23 +-
 arch/arm/boot/dts/arm-realview-pb1176.dts                    |    4 
 arch/arm/boot/dts/arm-realview-pb11mp.dts                    |    4 
 arch/arm/boot/dts/arm-realview-pbx.dtsi                      |    5 
 arch/arm/boot/dts/exynos3250.dtsi                            |    2 
 arch/arm/boot/dts/mmp2.dtsi                                  |    2 
 arch/arm/boot/dts/omap3-pandora-common.dtsi                  |   36 ++++
 arch/arm/boot/dts/omap3-tao3530.dtsi                         |    2 
 arch/arm/boot/dts/pxa27x.dtsi                                |    2 
 arch/arm/boot/dts/pxa2xx.dtsi                                |    7 
 arch/arm/boot/dts/pxa3xx.dtsi                                |    2 
 arch/arm/boot/dts/rk3288-rock2-som.dtsi                      |    2 
 arch/arm/boot/dts/rv1108.dtsi                                |   10 -
 arch/arm/boot/dts/sun5i-a10s.dtsi                            |    2 
 arch/arm/boot/dts/sun6i-a31.dtsi                             |    2 
 arch/arm/boot/dts/sun7i-a20.dtsi                             |    2 
 arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts                |    4 
 arch/arm/boot/dts/sun8i-v3s.dtsi                             |   10 -
 arch/arm/include/asm/uaccess.h                               |   18 ++
 arch/arm/lib/getuser.S                                       |   11 +
 arch/arm/lib/putuser.S                                       |   20 +-
 arch/arm/mach-omap1/id.c                                     |    6 
 arch/arm/mach-omap2/id.c                                     |    4 
 arch/arm/mach-omap2/pdata-quirks.c                           |   93 -----------
 arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts         |    4 
 arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts          |    4 
 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts   |    4 
 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts |    4 
 arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi               |    2 
 arch/mips/Kconfig                                            |    1 
 arch/mips/cavium-octeon/executive/cvmx-cmd-queue.c           |    2 
 arch/mips/cavium-octeon/octeon-platform.c                    |    2 
 arch/mips/include/asm/octeon/cvmx-pko.h                      |    2 
 arch/powerpc/include/asm/sfp-machine.h                       |   92 +++-------
 arch/powerpc/include/asm/vdso_datapage.h                     |    2 
 arch/powerpc/kernel/Makefile                                 |    4 
 arch/powerpc/kernel/asm-offsets.c                            |    2 
 arch/powerpc/kernel/misc_64.S                                |    4 
 arch/powerpc/kernel/time.c                                   |    1 
 arch/powerpc/kernel/vdso32/gettimeofday.S                    |    7 
 arch/powerpc/kernel/vdso64/cacheflush.S                      |    4 
 arch/powerpc/kernel/vdso64/gettimeofday.S                    |    7 
 arch/powerpc/sysdev/xive/common.c                            |    9 +
 arch/powerpc/sysdev/xive/spapr.c                             |   12 +
 arch/powerpc/xmon/Makefile                                   |    4 
 arch/s390/include/asm/pgtable.h                              |    4 
 arch/sparc/net/bpf_jit_comp_64.c                             |   12 +
 arch/x86/kernel/cpu/mcheck/mce.c                             |   30 ---
 arch/x86/kernel/cpu/mcheck/mce_amd.c                         |   36 ++++
 arch/x86/kvm/cpuid.c                                         |    5 
 arch/x86/kvm/x86.c                                           |   14 +
 arch/x86/pci/fixup.c                                         |   11 +
 block/blk-merge.c                                            |    2 
 block/blk-mq-sysfs.c                                         |   15 +
 crypto/af_alg.c                                              |    2 
 crypto/crypto_user.c                                         |    4 
 crypto/ecc.c                                                 |   45 +++--
 drivers/acpi/bus.c                                           |    2 
 drivers/acpi/device_pm.c                                     |   12 +
 drivers/acpi/osl.c                                           |   28 ++-
 drivers/android/binder_alloc.c                               |    8 
 drivers/block/drbd/drbd_state.c                              |    6 
 drivers/block/drbd/drbd_state.h                              |    3 
 drivers/block/rsxx/core.c                                    |    2 
 drivers/char/hw_random/omap-rng.c                            |    9 -
 drivers/char/ppdev.c                                         |   16 +
 drivers/char/tpm/tpm2-cmd.c                                  |    4 
 drivers/clk/renesas/r8a77995-cpg-mssr.c                      |    4 
 drivers/clk/rockchip/clk-rk3188.c                            |    8 
 drivers/clk/rockchip/clk-rk3328.c                            |    2 
 drivers/clk/sunxi-ng/ccu-sun50i-a64.c                        |    2 
 drivers/clk/sunxi-ng/ccu-sun8i-h3.c                          |    2 
 drivers/cpufreq/powernv-cpufreq.c                            |   17 +-
 drivers/cpuidle/driver.c                                     |   15 -
 drivers/crypto/amcc/crypto4xx_core.c                         |    6 
 drivers/crypto/bcm/cipher.c                                  |    6 
 drivers/crypto/ccp/ccp-dmaengine.c                           |    1 
 drivers/devfreq/devfreq.c                                    |   12 +
 drivers/dma/coh901318.c                                      |    5 
 drivers/dma/dw/core.c                                        |    2 
 drivers/dma/dw/platform.c                                    |    6 
 drivers/dma/dw/regs.h                                        |    4 
 drivers/extcon/extcon-max8997.c                              |   10 -
 drivers/firmware/qcom_scm-64.c                               |    2 
 drivers/gpio/gpiolib-acpi.c                                  |   17 ++
 drivers/gpu/drm/i810/i810_dma.c                              |    4 
 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c          |   21 +-
 drivers/hwtracing/intel_th/core.c                            |    8 
 drivers/hwtracing/intel_th/pci.c                             |   10 +
 drivers/i2c/busses/i2c-imx.c                                 |    3 
 drivers/i2c/i2c-core-of.c                                    |    4 
 drivers/iio/humidity/hdc100x.c                               |    2 
 drivers/iio/imu/adis16480.c                                  |    1 
 drivers/infiniband/hw/hfi1/chip.c                            |   47 +++++
 drivers/infiniband/hw/hfi1/vnic_sdma.c                       |   15 -
 drivers/infiniband/hw/hns/hns_roce_hem.h                     |    2 
 drivers/infiniband/hw/mlx4/sysfs.c                           |   12 -
 drivers/infiniband/hw/qib/qib_sysfs.c                        |    6 
 drivers/input/joystick/psxpad-spi.c                          |    2 
 drivers/input/mouse/synaptics.c                              |    1 
 drivers/input/rmi4/rmi_f34v7.c                               |    3 
 drivers/input/rmi4/rmi_smbus.c                               |    2 
 drivers/input/touchscreen/cyttsp4_core.c                     |    7 
 drivers/input/touchscreen/goodix.c                           |    9 +
 drivers/isdn/gigaset/usb-gigaset.c                           |   23 ++
 drivers/md/dm-zoned-metadata.c                               |   29 ++-
 drivers/md/dm-zoned-reclaim.c                                |    8 
 drivers/md/dm-zoned-target.c                                 |   54 ++++--
 drivers/md/dm-zoned.h                                        |    2 
 drivers/md/raid0.c                                           |    2 
 drivers/md/raid5.c                                           |    2 
 drivers/media/cec/cec-adap.c                                 |    7 
 drivers/media/platform/qcom/venus/vdec.c                     |    3 
 drivers/media/platform/qcom/venus/venc.c                     |    3 
 drivers/media/platform/sti/bdisp/bdisp-v4l2.c                |    3 
 drivers/media/platform/vimc/vimc-common.c                    |    2 
 drivers/media/platform/vimc/vimc-core.c                      |    7 
 drivers/media/radio/radio-wl1273.c                           |    3 
 drivers/media/usb/pulse8-cec/pulse8-cec.c                    |    2 
 drivers/media/usb/stkwebcam/stk-webcam.c                     |    6 
 drivers/misc/altera-stapl/altera.c                           |    3 
 drivers/mmc/host/omap_hsmmc.c                                |   30 +++
 drivers/mtd/devices/spear_smi.c                              |   38 ++++
 drivers/net/can/slcan.c                                      |    1 
 drivers/net/dsa/mv88e6xxx/chip.c                             |   21 +-
 drivers/net/ethernet/aquantia/atlantic/aq_cfg.h              |    4 
 drivers/net/ethernet/aquantia/atlantic/aq_nic.c              |    2 
 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c          |    6 
 drivers/net/ethernet/cirrus/ep93xx_eth.c                     |    5 
 drivers/net/ethernet/huawei/hinic/hinic_main.c               |    7 
 drivers/net/ethernet/intel/e100.c                            |    4 
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c               |   10 -
 drivers/net/ethernet/mellanox/mlx4/main.c                    |   11 -
 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c         |    2 
 drivers/net/ethernet/mellanox/mlx5/core/qp.c                 |    4 
 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c        |   78 ++++++++-
 drivers/net/ethernet/ti/cpts.c                               |    4 
 drivers/net/wireless/ath/ar5523/ar5523.c                     |    3 
 drivers/net/wireless/ath/ath10k/pci.c                        |    9 -
 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c            |   15 +
 drivers/net/wireless/intel/iwlwifi/mvm/sta.c                 |   10 +
 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c            |   20 --
 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c          |    9 -
 drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c          |    1 
 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c         |   25 ++
 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.h         |    2 
 drivers/net/wireless/rsi/rsi_91x_mgmt.c                      |    1 
 drivers/nfc/nxp-nci/i2c.c                                    |    6 
 drivers/of/unittest.c                                        |    4 
 drivers/phy/renesas/phy-rcar-gen3-usb2.c                     |    5 
 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c                     |   23 ++
 drivers/pinctrl/samsung/pinctrl-exynos.c                     |    4 
 drivers/pinctrl/samsung/pinctrl-s3c24xx.c                    |    6 
 drivers/pinctrl/samsung/pinctrl-s3c64xx.c                    |    6 
 drivers/pinctrl/samsung/pinctrl-samsung.c                    |   10 -
 drivers/power/supply/cpcap-battery.c                         |   11 -
 drivers/rtc/rtc-max8997.c                                    |    2 
 drivers/rtc/rtc-s3c.c                                        |    6 
 drivers/s390/scsi/zfcp_dbf.c                                 |    8 
 drivers/s390/scsi/zfcp_erp.c                                 |    3 
 drivers/scsi/lpfc/lpfc.h                                     |    3 
 drivers/scsi/lpfc/lpfc_attr.c                                |   12 +
 drivers/scsi/lpfc/lpfc_init.c                                |    3 
 drivers/scsi/lpfc/lpfc_nvme.c                                |    2 
 drivers/scsi/lpfc/lpfc_sli.c                                 |   14 -
 drivers/scsi/qla2xxx/qla_attr.c                              |    3 
 drivers/scsi/qla2xxx/qla_bsg.c                               |   15 +
 drivers/scsi/qla2xxx/qla_init.c                              |    2 
 drivers/scsi/qla2xxx/qla_isr.c                               |    6 
 drivers/scsi/qla2xxx/qla_target.c                            |   11 -
 drivers/spi/spi-atmel.c                                      |    6 
 drivers/staging/iio/addac/adt7316-i2c.c                      |    2 
 drivers/staging/rtl8188eu/os_dep/usb_intf.c                  |    2 
 drivers/staging/rtl8712/usb_intf.c                           |    2 
 drivers/thermal/thermal_core.c                               |    4 
 drivers/tty/n_hdlc.c                                         |    4 
 drivers/tty/n_r3964.c                                        |    2 
 drivers/tty/n_tty.c                                          |    8 
 drivers/tty/serial/amba-pl011.c                              |    6 
 drivers/tty/serial/fsl_lpuart.c                              |    4 
 drivers/tty/serial/ifx6x60.c                                 |    3 
 drivers/tty/serial/imx.c                                     |    2 
 drivers/tty/serial/msm_serial.c                              |    6 
 drivers/tty/serial/serial_core.c                             |    2 
 drivers/tty/tty_ldisc.c                                      |    7 
 drivers/tty/vt/keyboard.c                                    |    2 
 drivers/usb/atm/ueagle-atm.c                                 |   18 +-
 drivers/usb/core/hub.c                                       |    5 
 drivers/usb/core/urb.c                                       |    1 
 drivers/usb/dwc3/core.c                                      |    3 
 drivers/usb/dwc3/debug.h                                     |   29 +++
 drivers/usb/dwc3/debugfs.c                                   |   19 ++
 drivers/usb/dwc3/ep0.c                                       |    8 
 drivers/usb/gadget/configfs.c                                |    1 
 drivers/usb/gadget/function/u_serial.c                       |    2 
 drivers/usb/gadget/udc/pch_udc.c                             |    1 
 drivers/usb/host/xhci-hub.c                                  |    8 
 drivers/usb/host/xhci-mem.c                                  |    4 
 drivers/usb/host/xhci-pci.c                                  |   13 +
 drivers/usb/host/xhci-ring.c                                 |    3 
 drivers/usb/host/xhci.c                                      |    9 -
 drivers/usb/host/xhci.h                                      |    1 
 drivers/usb/misc/adutux.c                                    |    2 
 drivers/usb/misc/idmouse.c                                   |    2 
 drivers/usb/mon/mon_bin.c                                    |   32 ++-
 drivers/usb/mtu3/mtu3_qmu.c                                  |    2 
 drivers/usb/serial/io_edgeport.c                             |   10 -
 drivers/usb/storage/uas.c                                    |   10 +
 drivers/video/hdmi.c                                         |    8 
 drivers/virtio/virtio_balloon.c                              |   11 +
 drivers/watchdog/aspeed_wdt.c                                |   16 +
 fs/autofs4/expire.c                                          |    5 
 fs/btrfs/delayed-inode.c                                     |   13 +
 fs/btrfs/file.c                                              |    2 
 fs/btrfs/free-space-cache.c                                  |    6 
 fs/btrfs/inode.c                                             |    3 
 fs/btrfs/send.c                                              |   25 ++
 fs/btrfs/volumes.h                                           |    1 
 fs/cifs/file.c                                               |    7 
 fs/cifs/smb2misc.c                                           |    7 
 fs/dlm/lockspace.c                                           |    1 
 fs/dlm/member.c                                              |    2 
 fs/dlm/memory.c                                              |    9 -
 fs/dlm/user.c                                                |    3 
 fs/exportfs/expfs.c                                          |   31 ++-
 fs/ext2/inode.c                                              |    7 
 fs/ext4/inode.c                                              |   25 ++
 fs/ext4/namei.c                                              |   11 -
 fs/f2fs/file.c                                               |    2 
 fs/f2fs/gc.c                                                 |   10 -
 fs/fuse/dir.c                                                |   27 ++-
 fs/fuse/fuse_i.h                                             |    2 
 fs/gfs2/log.c                                                |    8 
 fs/gfs2/log.h                                                |    1 
 fs/gfs2/lops.c                                               |    5 
 fs/gfs2/trans.c                                              |    2 
 fs/iomap.c                                                   |   18 +-
 fs/kernfs/dir.c                                              |    5 
 fs/lockd/clnt4xdr.c                                          |   22 --
 fs/lockd/clntxdr.c                                           |   22 --
 fs/nfsd/nfs4recover.c                                        |   17 --
 fs/nfsd/vfs.c                                                |   17 +-
 fs/ocfs2/quota_global.c                                      |    2 
 fs/overlayfs/dir.c                                           |    2 
 fs/pstore/ram.c                                              |    2 
 fs/quota/dquot.c                                             |   11 -
 fs/reiserfs/inode.c                                          |   12 +
 fs/reiserfs/namei.c                                          |    7 
 fs/reiserfs/reiserfs.h                                       |    2 
 fs/reiserfs/super.c                                          |    2 
 fs/reiserfs/xattr.c                                          |   19 +-
 fs/reiserfs/xattr_acl.c                                      |    4 
 include/dt-bindings/clock/rk3328-cru.h                       |    2 
 include/linux/acpi.h                                         |    2 
 include/linux/atalk.h                                        |    2 
 include/linux/dma-mapping.h                                  |    3 
 include/linux/jbd2.h                                         |    4 
 include/linux/kernfs.h                                       |    1 
 include/linux/mfd/rk808.h                                    |    2 
 include/linux/mtd/mtd.h                                      |    2 
 include/linux/platform_data/dma-dw.h                         |    6 
 include/linux/qcom_scm.h                                     |    3 
 include/linux/quotaops.h                                     |   10 +
 include/linux/regulator/consumer.h                           |    2 
 include/linux/serial_core.h                                  |   37 ++++
 include/linux/tty.h                                          |    7 
 include/math-emu/soft-fp.h                                   |    2 
 include/uapi/linux/cec.h                                     |    4 
 kernel/audit_watch.c                                         |    2 
 kernel/cgroup/pids.c                                         |   11 -
 kernel/module.c                                              |    2 
 kernel/sched/core.c                                          |    3 
 kernel/sched/fair.c                                          |   36 ++--
 kernel/workqueue.c                                           |   38 +++-
 lib/raid6/unroll.awk                                         |    2 
 mm/shmem.c                                                   |    2 
 mm/vmstat.c                                                  |    7 
 net/appletalk/aarp.c                                         |   15 +
 net/appletalk/ddp.c                                          |   21 +-
 net/ipv4/tcp_output.c                                        |    2 
 net/ipv4/tcp_timer.c                                         |   20 +-
 net/smc/smc_wr.c                                             |    4 
 net/sunrpc/cache.c                                           |    6 
 net/x25/af_x25.c                                             |   18 +-
 net/xfrm/xfrm_input.c                                        |    3 
 scripts/mod/modpost.c                                        |   12 +
 sound/core/oss/linear.c                                      |    2 
 sound/core/oss/mulaw.c                                       |    2 
 sound/core/oss/route.c                                       |    2 
 sound/core/pcm_lib.c                                         |    8 
 sound/pci/hda/hda_bind.c                                     |    4 
 sound/pci/hda/hda_intel.c                                    |    3 
 sound/pci/hda/patch_conexant.c                               |    1 
 sound/pci/hda/patch_realtek.c                                |    7 
 sound/soc/codecs/nau8540.c                                   |    2 
 sound/soc/sh/rcar/core.c                                     |   12 +
 sound/soc/soc-jack.c                                         |    3 
 virt/kvm/arm/vgic/vgic-v3.c                                  |    6 
 301 files changed, 1736 insertions(+), 947 deletions(-)

Aaro Koskinen (3):
MIPS: OCTEON: octeon-platform: fix typing
ARM: OMAP1/2: fix SoC name printing
MIPS: OCTEON: cvmx_pko_mem_debug8: use oldest forward compatible definition

Al Viro (3):
autofs: fix a leak in autofs_expire_indirect()
exportfs_decode_fh(): negative pinned may become positive without the parent locked audit_get_nd(): don't unlock parent too early

Alastair D'Silva (2):
powerpc: Allow 64bit VDSO __kernel_sync_dicache to work across ranges >4GB
powerpc: Allow flush_icache_range to work across ranges >4GB

Aleksa Sarai (1):

      cgroup: pids: use atomic64_t for pids->limit

Alexander Shishkin (3):
intel_th: Fix a double put_device() in error path
intel_th: pci: Add Ice Lake CPU support
intel_th: pci: Add Tiger Lake CPU support

Alexey Dobriyan (1):
ACPI: fix acpi_find_child_device() invocation in acpi_preset_companion()

Amir Goldstein (1):
ovl: relax WARN_ON() on rename to self

Andreas Pape (1):
media: stkwebcam: Bugfix for wrong return values

Andrei Otcheretianski (1):
iwlwifi: mvm: Send non offchannel traffic via AP sta

Andrew Lunn (1):
net: dsa: mv88e6xxx: Work around mv886e6161 SERDES missing MII_PHYSID2

Ard Biesheuvel (1):
crypto: ecdh - fix big endian bug in ECC library

Arjun Vynipadath (1):
cxgb4vf: fix memleak in mac_hlist initialization

Arnd Bergmann (2):
media: venus: remove invalid compat_ioctl32 handler
ppdev: fix PPGETTIME/PPSETTIME ioctls

Ayush Sawal (1):
crypto: af_alg - cast ki_complete ternary op to int

Bart Van Assche (3):
scsi: qla2xxx: Fix session lookup in qlt_abort_work()
scsi: qla2xxx: Fix qla24xx_process_bidir_cmd()
scsi: qla2xxx: Always check the qla2x00_wait_for_hba_online() return value

Baruch Siach (1):

      rtc: dt-binding: abx80x: fix resistance scale

Bob Peterson (1):
gfs2: fix glock reference problem in gfs2_trans_remove_revoke

Brian Masney (1):
pinctrl: qcom: ssbi-gpio: fix gpio-hog related boot issues

Brian Norris (1):
usb: dwc3: don't log probe deferrals; but do log other error codes

Chen Jun (1):
mm/shmem.c: cast the type of unmap_start to u64

Chen-Yu Tsai (1):
clk: sunxi-ng: h3/h5: Fix CSI_MCLK parent

Chengguang Xu (1):

      ext2: check err when partial != NULL

Chris Lesiak (1):

      iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting

Christian Lamparter (2):
dmaengine: dw-dmac: implement dma protection control setting
crypto: crypto4xx - fix double-free in crypto4xx_destroy_sdr

Christophe JAILLET (1):
rtc: max8997: Fix the returned value in case of error in 'max8997_rtc_read_alarm()'

Chuhong Yuan (3):
serial: ifx6x60: add missed pm_runtime_disable
rsxx: add missed destroy_workqueue calls in remove
net: ep93xx_eth: fix mismatch of request_mem_region in remove

Clément Péron (1):
ARM: debug: enable UART1 for socfpga Cyclone5

Colin Ian King (1):
altera-stapl: check for a null key before strcasecmp'ing it

Cédric Le Goater (2):
powerpc/xive: Prevent page fault issues in the machine crash handler powerpc/xive: Skip ioremap() of ESB pages for LSI interrupts

Dan Carpenter (2):
drm/i810: Prevent underflow in ioctl md/raid0: Fix an error message in raid0_make_request()

Daniel Mack (1):
ARM: dts: pxa: clean up USB controller nodes

Daniel Schultz (1):
mfd: rk808: Fix RK818 ID template

Dave Chinner (1):
iomap: sub-block dio needs to zeroout beyond EOF

David Hildenbrand (1):
virtio-balloon: fix managed page counts when migrating pages between zones

David Miller (1):

      sparc: Correct ctx->saw_frame_pointer logic.

David Teigland (2):
dlm: fix missing idr_destroy for recover_idr
dlm: fix invalid cluster name warning

Denis Efremov (1):

      ar5523: check NULL before memcpy() in ar5523_cmd()

Denis V. Lunev (1):
dlm: fix possible call to kfree() for non-initialized pointer

Dmitry Bogdanov (1):
net: aquantia: fix RSS table and key sizes

Dmitry Fomichev (1):
dm zoned: reduce overhead of backing device checks

Dmitry Monakhov (2):
quota: Check that quota is not dirty before release
quota: fix livelock in dquot_writeback_dquots

Dmitry Safonov (1):
tty: Don't block on IO when ldisc change is pending

Dmitry Torokhov (1):
tty: vt: keyboard: reject invalid keycodes

Douglas Anderson (1):
serial: core: Allow processing sysrq at port unlock time

Emiliano Ingrassia (1):
usb: core: urb: fix URB structure initialization function

Eran Ben Elisha (1):
net/mlx5e: Fix SFF 8472 eeprom length

Erez Alfasi (1):
net/mlx4_core: Fix return codes of unsupported operations

Erhard Furtner (1):
of: unittest: fix memory leak in attach_node_and_children

Eric Dumazet (1):
tcp: exit if nothing to retransmit on RTO timeout

Filipe Manana (2):
Btrfs: fix negative subv_writers counter and data space leak after buffered write
Btrfs: send, skip backreference walking for extents with many references

Finley Xiao (1):
clk: rockchip: fix rk3188 sclk_smc gate data

Francesco Ruggeri (1):
ACPI: OSL: only free map once in osl.c

Geert Uytterhoeven (1):
clk: renesas: r8a77995: Correct parent clock of DU

Gerald Schaefer (1):
s390/mm: properly clear _PAGE_NOEXEC bit when it is not supported

Greg Kroah-Hartman (2):
lib: raid6: fix awk build warnings
Linux 4.14.159

Gregory CLEMENT (1):
spi: atmel: Fix CS high support

Guoqing Jiang (1):
raid5: need to set STRIPE_HANDLE for batch head

Gustavo A. R. Silva (1):
usb: gadget: pch_udc: fix use after free

H. Nikolaus Schaller (3):
ARM: dts: pandora-common: define wl1251 as child node of mmc3
mmc: host: omap_hsmmc: add code for special init of wl1251 to get rid of pandora_wl1251_init_card
omap: pdata-quirks: remove openpandora quirks for mmc3 and wl1251

Hans Verkuil (5):
media: pulse8-cec: return 0 when invalidating the logical address
media: cec: report Vendor ID after initialization
Input: synaptics - switch another X1 Carbon 6 to RMI/SMbus
Input: synaptics-rmi4 - don't increment rmiaddr for SMBus transfers
media: cec.h: CEC_OP_REC_FLAG_ values were swapped

Hans de Goede (2):
Input: goodix - add upside-down quirk for Teclast X89 tablet
gpiolib: acpi: Add Terra Pad 1061 to the run_edge_events_on_boot_blacklist

Heiko Stuebner (1):
clk: rockchip: fix rk3188 sclk_mac_lbtest parameter ordering

Helen Fornazier (1):
media: vimc: fix start stream when link is disabled

Helen Koike (1):
media: vimc: fix component match compare

Henry Lin (1):
usb: xhci: only set D3hot for pci device

Himanshu Madhani (2):
scsi: qla2xxx: Fix DMA unmap leak
scsi: qla2xxx: Fix message indicating vectors used by driver

Ido Schimmel (1):
mlxsw: spectrum_router: Refresh nexthop neighbour when it becomes dead

Ivan Khoronzhuk (1):
net: ethernet: ti: cpts: correct debug for expired txq skb

J. Bruce Fields (1):
lockd: fix decoding of TEST results

Jagan Teki (1):
clk: sunxi-ng: a64: Fix gate bit of DSI DPHY

James Smart (2):
scsi: lpfc: Cap NPIV vports to 256
scsi: lpfc: Correct code setting non existent bits in sli4 ABORT WQE

Jan Kara (3):
jbd2: Fix possible overflow in jbd2_log_space_left()
iomap: Fix pipe page leakage during splicing
ext4: Fix credit estimate for final inode freeing

Jann Horn (1):

      binder: Handle start==NULL in binder_update_page_range()

Janne Huttunen (1):
mm/vmstat.c: fix NUMA statistics updates

Jarkko Nikula (1):
ARM: dts: omap3-tao3530: Fix incorrect MMC card detection GPIO polarity

Jeff Mahoney (1):
reiserfs: fix extended attributes on the root directory

Jeffrey Hugo (1):
tty: serial: msm_serial: Fix flow control

Jia-Ju Bai (1):
dmaengine: coh901318: Fix a double-lock bug

Jiangfeng Xiao (1):
serial: serial_core: Perform NULL checks for break_ctl ops

Joel Stanley (2):
powerpc/math-emu: Update macros from GCC
watchdog: aspeed: Fix clock behaviour for ast2600

Johan Hovold (11):
staging: rtl8188eu: fix interface sanity check
staging: rtl8712: fix interface sanity check
staging: gigaset: fix general protection fault on probe
staging: gigaset: fix illegal free on probe errors
staging: gigaset: add endpoint-type sanity check
USB: atm: ueagle-atm: add missing endpoint check
USB: idmouse: fix interface sanity checks
USB: serial: io_edgeport: fix epic endpoint lookup
USB: adutux: fix interface sanity check
media: bdisp: fix memleak on release
media: radio: wl1273: fix interrupt masking on release

Johannes Berg (1):
iwlwifi: mvm: synchronize TID queue removal

John Hubbard (1):
cpufreq: powernv: fix stack bloat and hard limit on number of CPUs

John Keeping (1):
ARM: dts: rockchip: Fix rk3288-rock2 vcc_flash name

Jon Hunter (1):
arm64: tegra: Fix 'active-low' warning for Jetson TX1 regulator

Jonathan Marek (1):
firmware: qcom: scm: fix compilation error when disabled

Josef Bacik (3):
btrfs: check page->mapping when loading free space cache
btrfs: use refcount_inc_not_zero in kill_all_nodes
btrfs: record all roots for rename exchange on a subvol

Jouni Hogander (1):
can: slcan: Fix use-after-free Read in slcan_open

Kai-Heng Feng (4):
ALSA: hda - Add mute led support for HP ProBook 645 G4 x86/PCI: Avoid AMD FCH XHCI USB PME# from D0 defect
usb: Allow USB device to be warm reset in suspended state
xhci: Increase STS_HALT timeout in xhci_suspend()

Kaike Wan (1):
IB/hfi1: Ignore LNI errors before DC8051 transitions to Polling state

Kailang Yang (1):
ALSA: hda/realtek - Dell headphone has noise on unmute for ALC236

Katsuhiro Suzuki (2):
clk: rockchip: fix I2S1 clock gate register for rk3328
clk: rockchip: fix ID of 8ch clock of I2S1 for rk3328

Kees Cook (1):
pstore/ram: Avoid NULL deref in ftrace merging failure path

Konstantin Khorenko (1):
kernel/module.c: wakeup processes in module_wq on module unload

Krzysztof Kozlowski (3):
pinctrl: samsung: Fix device node refcount leaks in S3C24xx wakeup controller init
pinctrl: samsung: Fix device node refcount leaks in init code
pinctrl: samsung: Fix device node refcount leaks in S3C64xx wakeup controller init

Kuninori Morimoto (2):
ASoC: rsnd: tidyup registering method for rsnd_kctrl_new()
ASoC: rsnd: fixup MIX kctrl registration

Larry Finger (3):
rtlwifi: rtl8192de: Fix missing code to retrieve RX buffer address
rtlwifi: rtl8192de: Fix missing callback that tests for hw release of buffer
rtlwifi: rtl8192de: Fix missing enable interrupt flag

Leonard Crestez (1):
PM / devfreq: Lock devfreq in trans_stat_show

Lubomir Rintel (1):
ARM: dts: mmp2: fix the gpio interrupt cell number

Lucas Stach (2):
i2c: imx: don't print error message on probe defer
Input: synaptics-rmi4 - re-enable IRQs in f34v7_do_reflash

Maciej W. Rozycki (1):
MIPS: SiByte: Enable ZONE_DMA32 for LittleSur

Marek Szyprowski (3):
extcon: max8997: Fix lack of path setting in USB device mode
rtc: s3c-rtc: Avoid using broken ALMYEAR register
ARM: dts: exynos: Use Samsung SoC specific compatible for DWC2 module

Mark Brown (1):
regulator: Fix return value of _set_load() stub

Mark Salter (1):
crypto: ccp - fix uninitialized list head

Martin Schiller (2):
net/x25: fix called/calling length calculation in x25_parse_address_block net/x25: fix null_x25_address handling

Masahiro Yamada (1):
kbuild: fix single target build for external module

Mathias Nyman (2):
xhci: handle some XHCI_TRUST_TX_LENGTH quirks cases as default behaviour.
xhci: make sure interrupts are restored to correct state

Maxime Ripard (2):
ARM: dts: sun5i: a10s: Fix HDMI output DTC warning
ARM: dts: sun8i: v3s: Change pinctrl nodes to avoid warning

Miaoqing Pan (1):
ath10k: fix fw crash by moving chip reset after napi disabled

Michał Mirosław (1):
usb: gadget: u_serial: add missing port entry locking

Mika Westerberg (1):
xhci: Fix memory leak in xhci_add_in_port()

Mike Leach (1):
coresight: etm4x: Fix input validation for sysfs.

Mike Marciniszyn (1):
IB/hfi1: Close VNIC sdma_progress sleep window

Miklos Szeredi (2):
fuse: verify nlink
fuse: verify attributes

Ming Lei (3):
blk-mq: avoid sysfs buffer overflow with too many CPU cores
block: fix single range discard merge
blk-mq: make sure that line break can be printed

Miquel Raynal (2):
mtd: fix mtd_oobavail() incoherent returned value
mtd: spear_smi: Fix Write Burst mode

Mitch Williams (1):
i40e: don't restart nway if autoneg not supported

Moni Shoua (1):
net/mlx5: Release resource on error flow

Mordechay Goodstein (1):
iwlwifi: pcie: don't consider IV len in A-MSDU

Nathan Chancellor (2):
drbd: Change drbd_request_detach_interruptible's return type to int
powerpc: Avoid clang warnings around setjmp and longjmp

Navid Emamdoost (3):
rsi: release skb if rsi_prepare_beacon fails
Input: Fix memory leak in psxpad_spi_probe
crypto: user - fix memory leak in crypto_report

Neil Armstrong (4):
arm64: dts: meson-gxl-libretech-cc: fix GPIO lines names
arm64: dts: meson-gxbb-nanopi-k2: fix GPIO lines names
arm64: dts: meson-gxbb-odroidc2: fix GPIO lines names
arm64: dts: meson-gxl-khadas-vim: fix GPIO lines names

Niklas Söderlund (1):
dma-mapping: fix return type of dma_set_max_seg_size()

Nir Dotan (1):
mlxsw: spectrum_router: Relax GRE decap matching check

Nishka Dasgupta (1):
pinctrl: samsung: Add of_node_put() before return in error path

Nuno Sá (1):
iio: adis16480: Add debugfs_reg_access entry

Oliver Neukum (3):
USB: uas: honor flag to avoid CAPACITY16
USB: uas: heed CAPACITY_HEURISTICS
USB: documentation: flags on usb-storage versus UAS

Otavio Salvador (2):
ARM: dts: rockchip: Fix the PMU interrupt number for rv1108
ARM: dts: rockchip: Assign the proper GPIO clocks for rv1108

Pan Bian (1):
Input: cyttsp4_core - fix use after free bug

Paolo Bonzini (3):
KVM: x86: do not modify masked bits of shared MSRs
KVM: x86: fix presentation of TSX feature in ARCH_CAPABILITIES
KVM: x86: fix out-of-bounds write in KVM_GET_EMULATED_CPUID (CVE-2019-19332)

Paul Walmsley (1):
modpost: skip ELF local symbols during section mismatch check

Pavel Shilovsky (2):
CIFS: Fix NULL-pointer dereference in smb2_push_mandatory_locks
CIFS: Fix SMB2 oplock break processing

Pavel Tikhomirov (1):
sunrpc: fix crash when cache_head become valid before update

Pawel Harlozinski (1):
ASoC: Jack: Fix NULL pointer dereference in snd_soc_jack_report

Peng Fan (1):
tty: serial: fsl_lpuart: use the sg count from dma_map_sg

Pete Zaitcev (1):
usb: mon: Fix a deadlock in usbmon between mmap and read

Peter Zijlstra (1):
sched/core: Avoid spurious lock dependencies

Qian Cai (1):
mlx4: Use snprintf instead of complicated strcpy

Qu Wenruo (1):
btrfs: Remove btrfs_bio::flags member

Quinn Tran (1):
scsi: qla2xxx: Fix driver unload hang

Rafael J. Wysocki (1):
ACPI: PM: Avoid attaching ACPI PM domain to certain devices

Raveendra Padasalagi (1):
crypto: bcm - fix normal/non key hash algorithm failure

Rob Herring (3):
ARM: dts: realview-pbx: Fix duplicate regulator nodes
ARM: dts: realview: Fix some more duplicate regulator nodes
ARM: dts: sunxi: Fix PMU compatible strings

Sahitya Tummala (1):
f2fs: fix to allow node segment for GC by ioctl path

Scott Mayhew (1):
nfsd: fix a warning in __cld_pipe_upcall()

Shirish S (2):
x86/MCE/AMD: Turn off MC4_MISC thresholding on all family 0x15 models x86/MCE/AMD: Carve out the MC4_MISC thresholding quirk

Shreeya Patel (1):
Staging: iio: adt7316: Fix i2c data reading, set the data field

Sirong Wang (1):
RDMA/hns: Correct the value of HNS_ROCE_HEM_CHUNK_LEN

Stefan Agner (1):
serial: imx: fix error handling in console_setup

Steffen Maier (2):
scsi: zfcp: drop default switch case which might paper over missing case
scsi: zfcp: trace channel log even for FCP command responses

Stephan Gerhold (1):
NFC: nxp-nci: Fix NULL pointer dereference after I2C communication error

Sumit Garg (1):
hwrng: omap - Fix RNG wait loop timeout

Tadeusz Struk (1):
tpm: add check after commands attribs tab allocation

Takashi Iwai (2):
ALSA: pcm: oss: Avoid potential buffer overflows
ALSA: hda - Fix pending unsol events at shutdown

Tejun Heo (4):
kernfs: fix ino wrap-around detection
workqueue: Fix spurious sanity check failures in destroy_workqueue()
workqueue: Fix pwq ref leak in rescuer_thread()
workqueue: Fix missing kfree(rescuer) in destroy_workqueue()

Theodore Ts'o (1):

      ext4: work around deleting a file with i_nlink == 0 safely

Thinh Nguyen (2):
usb: dwc3: debugfs: Properly print/set link state for HS
usb: dwc3: ep0: Clear started flag on completion

Tony Lindgren (1):
power: supply: cpcap-battery: Fix signed counter sample register

Ursula Braun (1):
net/smc: use after free fix in smc_wr_tx_put_slot()

Vamshi K Sthambamkadi (1):
ACPI: bus: Fix NULL pointer check in acpi_bus_get_private_data()

Ville Syrjälä (1):
video/hdmi: Fix AVI bar unpack

Vincent Chen (1):
math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning

Vincent Whitchurch (2):
serial: pl011: Fix DMA ->flush_buffer()
ARM: 8813/1: Make aligned 2-byte getuser()/putuser() atomic on ARMv6+

Vincenzo Frascino (1):
powerpc: Fix vDSO clock_getres()

Vinod Koul (1):
dmaengine: coh901318: Remove unused variable

Viresh Kumar (1):

      RDMA/qib: Validate ->show()/store() callbacks before calling them

Vitaly Chikunov (1):
crypto: ecc - check for invalid values in the key verification test

Wei Wang (1):
thermal: Fix deadlock in thermal thermal_zone_device_check

Wei Yongjun (1):
usb: gadget: configfs: Fix missing spin_lock_init()

Wen Yang (2):
i2c: core: fix use after free in of_i2c_notify
dlm: NULL check before kmem_cache_destroy is not needed

Will Deacon (1):
firmware: qcom: scm: Ensure 'a0' status code is treated as signed

Xiaodong Xu (1):
xfrm: release device reference for invalid state

Xue Chaojing (1):
net-next/hinic:fix a bug in set mac address

Xuewei Zhang (1):
sched/fair: Scale bandwidth quota and period without losing quota/period ratio precision

Yoshihiro Shimoda (1):
phy: renesas: rcar-gen3-usb2: Fix sysfs interface of "role"

Young_X (1):
ASoC: au8540: use 64-bit arithmetic instead of 32-bit

Yuchung Cheng (3):
tcp: fix off-by-one bug on aborting window-probing socket
tcp: fix SNMP under-estimation on failed retransmission
tcp: fix SNMP TCP timeout under-estimation

YueHaibing (4):
usb: mtu3: fix dbginfo in qmu_tx_zlp_error_handler
appletalk: Fix potential NULL pointer dereference in unregister_snap_client
appletalk: Set error code if register_snap_client failed
e100: Fix passing zero to 'PTR_ERR' warning in e100_load_ucode_wait

Yunlong Song (2):
f2fs: fix count of seg_freed to make sec_freed correct
f2fs: change segment to section in f2fs_ioc_gc_range

Zenghui Yu (1):
KVM: arm/arm64: vgic: Don't rely on the wrong pending table

Zhenzhong Duan (1):
cpuidle: Do not unset the driver if it is there already

paulhsia (1):
ALSA: pcm: Fix stream lock usage in snd_pcm_period_elapsed()

yangerkun (1):
ext4: fix a bug in ext4_wait_for_tail_page_commit

zhengbin (1):
nfsd: Return EPERM, not EACCES, in some SETATTR cases

author maintainer
#1 lore raw
Documentation/admin-guide/kernel-parameters.txt +12 -10
index b0da6050a254..933465eff40e 100644
@@ -4693,13 +4693,13 @@
 			Flags is a set of characters, each corresponding
 			to a common usb-storage quirk flag as follows:
 				a = SANE_SENSE (collect more than 18 bytes
-					of sense data);
+					of sense data, not on uas);
 				b = BAD_SENSE (don't collect more than 18
-					bytes of sense data);
+					bytes of sense data, not on uas);
 				c = FIX_CAPACITY (decrease the reported
 					device capacity by one sector);
 				d = NO_READ_DISC_INFO (don't use
-					READ_DISC_INFO command);
+					READ_DISC_INFO command, not on uas);
 				e = NO_READ_CAPACITY_16 (don't use
 					READ_CAPACITY_16 command);
 				f = NO_REPORT_OPCODES (don't use report opcodes
@@ -4714,17 +4714,18 @@
 				j = NO_REPORT_LUNS (don't use report luns
 					command, uas only);
 				l = NOT_LOCKABLE (don't try to lock and
-					unlock ejectable media);
+					unlock ejectable media, not on uas);
 				m = MAX_SECTORS_64 (don't transfer more
-					than 64 sectors = 32 KB at a time);
+					than 64 sectors = 32 KB at a time,
+					not on uas);
 				n = INITIAL_READ10 (force a retry of the
-					initial READ(10) command);
+					initial READ(10) command, not on uas);
 				o = CAPACITY_OK (accept the capacity
-					reported by the device);
+					reported by the device, not on uas);
 				p = WRITE_CACHE (the device cache is ON
-					by default);
+					by default, not on uas);
 				r = IGNORE_RESIDUE (the device reports
-					bogus residue values);
+					bogus residue values, not on uas);
 				s = SINGLE_LUN (the device has only one
 					Logical Unit);
 				t = NO_ATA_1X (don't allow ATA(12) and ATA(16)
@@ -4733,7 +4734,8 @@
 				w = NO_WP_DETECT (don't test whether the
 					medium is write-protected).
 				y = ALWAYS_SYNC (issue a SYNCHRONIZE_CACHE
-					even if the device claims no cache)
+					even if the device claims no cache,
+					not on uas)
 			Example: quirks=0419:aaf5:rl,0421:0433:rc
 
 	user_debug=	[KNL,ARM]
Documentation/devicetree/bindings/rtc/abracon,abx80x.txt +1 -1
index be789685a1c2..18b892d010d8 100644
@@ -27,4 +27,4 @@ and valid to enable charging:
 
  - "abracon,tc-diode": should be "standard" (0.6V) or "schottky" (0.3V)
  - "abracon,tc-resistor": should be <0>, <3>, <6> or <11>. 0 disables the output
-                          resistor, the other values are in ohm.
+                          resistor, the other values are in kOhm.
Makefile +4 -9
index d97288c0754f..e14ad8f064ec 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 14
-SUBLEVEL = 158
+SUBLEVEL = 159
 EXTRAVERSION =
 NAME = Petit Gorille
 
@@ -1529,9 +1529,6 @@ else # KBUILD_EXTMOD
 
 # We are always building modules
 KBUILD_MODULES := 1
-PHONY += crmodverdir
-crmodverdir:
-	$(cmd_crmodverdir)
 
 PHONY += $(objtree)/Module.symvers
 $(objtree)/Module.symvers:
@@ -1543,7 +1540,7 @@ $(objtree)/Module.symvers:
 
 module-dirs := $(addprefix _module_,$(KBUILD_EXTMOD))
 PHONY += $(module-dirs) modules
-$(module-dirs): crmodverdir $(objtree)/Module.symvers
+$(module-dirs): prepare $(objtree)/Module.symvers
 	$(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@)
 
 modules: $(module-dirs)
@@ -1584,7 +1581,8 @@ help:
 
 # Dummies...
 PHONY += prepare scripts
-prepare: ;
+prepare:
+	$(cmd_crmodverdir)
 scripts: ;
 endif # KBUILD_EXTMOD
 
@@ -1709,17 +1707,14 @@ endif
 
 # Modules
 /: prepare scripts FORCE
-	$(cmd_crmodverdir)
 	$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
 	$(build)=$(build-dir)
 # Make sure the latest headers are built for Documentation
 Documentation/ samples/: headers_install
 %/: prepare scripts FORCE
-	$(cmd_crmodverdir)
 	$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
 	$(build)=$(build-dir)
 %.ko: prepare scripts FORCE
-	$(cmd_crmodverdir)
 	$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1)   \
 	$(build)=$(build-dir) $(@:.ko=.o)
 	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
arch/arm/Kconfig.debug +16 -7
index fd4b679945d3..b14f154919a5 100644
@@ -1023,14 +1023,21 @@ choice
 		  Say Y here if you want kernel low-level debugging support
 		  on SOCFPGA(Cyclone 5 and Arria 5) based platforms.
 
-	config DEBUG_SOCFPGA_UART1
+	config DEBUG_SOCFPGA_ARRIA10_UART1
 		depends on ARCH_SOCFPGA
-		bool "Use SOCFPGA UART1 for low-level debug"
+		bool "Use SOCFPGA Arria10 UART1 for low-level debug"
 		select DEBUG_UART_8250
 		help
 		  Say Y here if you want kernel low-level debugging support
 		  on SOCFPGA(Arria 10) based platforms.
 
+	config DEBUG_SOCFPGA_CYCLONE5_UART1
+		depends on ARCH_SOCFPGA
+		bool "Use SOCFPGA Cyclone 5 UART1 for low-level debug"
+		select DEBUG_UART_8250
+		help
+		  Say Y here if you want kernel low-level debugging support
+		  on SOCFPGA(Cyclone 5 and Arria 5) based platforms.
 
 	config DEBUG_SUN9I_UART0
 		bool "Kernel low-level debugging messages via sun9i UART0"
@@ -1585,7 +1592,8 @@ config DEBUG_UART_PHYS
 	default 0xfe800000 if ARCH_IOP32X
 	default 0xff690000 if DEBUG_RK32_UART2
 	default 0xffc02000 if DEBUG_SOCFPGA_UART0
-	default 0xffc02100 if DEBUG_SOCFPGA_UART1
+	default 0xffc02100 if DEBUG_SOCFPGA_ARRIA10_UART1
+	default 0xffc03000 if DEBUG_SOCFPGA_CYCLONE5_UART1
 	default 0xffd82340 if ARCH_IOP13XX
 	default 0xffe40000 if DEBUG_RCAR_GEN1_SCIF0
 	default 0xffe42000 if DEBUG_RCAR_GEN1_SCIF2
@@ -1689,7 +1697,8 @@ config DEBUG_UART_VIRT
 	default 0xfeb30c00 if DEBUG_KEYSTONE_UART0
 	default 0xfeb31000 if DEBUG_KEYSTONE_UART1
 	default 0xfec02000 if DEBUG_SOCFPGA_UART0
-	default 0xfec02100 if DEBUG_SOCFPGA_UART1
+	default 0xfec02100 if DEBUG_SOCFPGA_ARRIA10_UART1
+	default 0xfec03000 if DEBUG_SOCFPGA_CYCLONE5_UART1
 	default 0xfec12000 if (DEBUG_MVEBU_UART0 || DEBUG_MVEBU_UART0_ALTERNATE) && ARCH_MVEBU
 	default 0xfec12100 if DEBUG_MVEBU_UART1_ALTERNATE
 	default 0xfec10000 if DEBUG_SIRFATLAS7_UART0
@@ -1737,9 +1746,9 @@ config DEBUG_UART_8250_WORD
 	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
 	depends on DEBUG_UART_8250_SHIFT >= 2
 	default y if DEBUG_PICOXCELL_UART || \
-		DEBUG_SOCFPGA_UART0 || DEBUG_SOCFPGA_UART1 || \
-		DEBUG_KEYSTONE_UART0 || DEBUG_KEYSTONE_UART1 || \
-		DEBUG_ALPINE_UART0 || \
+		DEBUG_SOCFPGA_UART0 || DEBUG_SOCFPGA_ARRIA10_UART1 || \
+		DEBUG_SOCFPGA_CYCLONE5_UART1 || DEBUG_KEYSTONE_UART0 || \
+		DEBUG_KEYSTONE_UART1 || DEBUG_ALPINE_UART0 || \
 		DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
 		DEBUG_DAVINCI_DA8XX_UART2 || \
 		DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2
arch/arm/boot/dts/arm-realview-pb1176.dts +2 -2
index c1fd5615ddfe..939c108c24a6 100644
@@ -45,7 +45,7 @@
 	};
 
 	/* The voltage to the MMC card is hardwired at 3.3V */
-	vmmc: fixedregulator@0 {
+	vmmc: regulator-vmmc {
 		compatible = "regulator-fixed";
 		regulator-name = "vmmc";
 		regulator-min-microvolt = <3300000>;
@@ -53,7 +53,7 @@
 		regulator-boot-on;
         };
 
-	veth: fixedregulator@0 {
+	veth: regulator-veth {
 		compatible = "regulator-fixed";
 		regulator-name = "veth";
 		regulator-min-microvolt = <3300000>;
arch/arm/boot/dts/arm-realview-pb11mp.dts +2 -2
index e306f1cceb4e..95037c48182d 100644
@@ -145,7 +145,7 @@
 	};
 
 	/* The voltage to the MMC card is hardwired at 3.3V */
-	vmmc: fixedregulator@0 {
+	vmmc: regulator-vmmc {
 		compatible = "regulator-fixed";
 		regulator-name = "vmmc";
 		regulator-min-microvolt = <3300000>;
@@ -153,7 +153,7 @@
 		regulator-boot-on;
         };
 
-	veth: fixedregulator@0 {
+	veth: regulator-veth {
 		compatible = "regulator-fixed";
 		regulator-name = "veth";
 		regulator-min-microvolt = <3300000>;
arch/arm/boot/dts/arm-realview-pbx.dtsi +2 -3
index 2bf3958b2e6b..068293254fbb 100644
@@ -43,7 +43,7 @@
 	};
 
 	/* The voltage to the MMC card is hardwired at 3.3V */
-	vmmc: fixedregulator@0 {
+	vmmc: regulator-vmmc {
 		compatible = "regulator-fixed";
 		regulator-name = "vmmc";
 		regulator-min-microvolt = <3300000>;
@@ -51,7 +51,7 @@
 		regulator-boot-on;
         };
 
-	veth: fixedregulator@0 {
+	veth: regulator-veth {
 		compatible = "regulator-fixed";
 		regulator-name = "veth";
 		regulator-min-microvolt = <3300000>;
@@ -539,4 +539,3 @@
 		};
 	};
 };
-
arch/arm/boot/dts/exynos3250.dtsi +1 -1
index aa06a02c3ff5..5ba662254909 100644
@@ -359,7 +359,7 @@
 		};
 
 		hsotg: hsotg@12480000 {
-			compatible = "snps,dwc2";
+			compatible = "samsung,s3c6400-hsotg", "snps,dwc2";
 			reg = <0x12480000 0x20000>;
 			interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cmu CLK_USBOTG>;
arch/arm/boot/dts/mmp2.dtsi +1 -1
index 47e5b63339d1..e95deed6a797 100644
@@ -180,7 +180,7 @@
 				clocks = <&soc_clocks MMP2_CLK_GPIO>;
 				resets = <&soc_clocks MMP2_CLK_GPIO>;
 				interrupt-controller;
-				#interrupt-cells = <1>;
+				#interrupt-cells = <2>;
 				ranges;
 
 				gcb0: gpio@d4019000 {
arch/arm/boot/dts/omap3-pandora-common.dtsi +34 -2
index 53e007abdc71..964240a0f4a9 100644
@@ -221,6 +221,17 @@
 		gpio = <&gpio6 4 GPIO_ACTIVE_HIGH>;	/* GPIO_164 */
 	};
 
+	/* wl1251 wifi+bt module */
+	wlan_en: fixed-regulator-wg7210_en {
+		compatible = "regulator-fixed";
+		regulator-name = "vwlan";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		startup-delay-us = <50000>;
+		enable-active-high;
+		gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>;
+	};
+
 	/* wg7210 (wifi+bt module) 32k clock buffer */
 	wg7210_32k: fixed-regulator-wg7210_32k {
 		compatible = "regulator-fixed";
@@ -514,9 +525,30 @@
 	/*wp-gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>;*/	/* GPIO_127 */
 };
 
-/* mmc3 is probed using pdata-quirks to pass wl1251 card data */
 &mmc3 {
-	status = "disabled";
+	vmmc-supply = <&wlan_en>;
+
+	bus-width = <4>;
+	non-removable;
+	ti,non-removable;
+	cap-power-off-card;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc3_pins>;
+
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	wlan: wifi@1 {
+		compatible = "ti,wl1251";
+
+		reg = <1>;
+
+		interrupt-parent = <&gpio1>;
+		interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;	/* GPIO_21 */
+
+		ti,wl1251-has-eeprom;
+	};
 };
 
 /* bluetooth*/
arch/arm/boot/dts/omap3-tao3530.dtsi +1 -1
index 9a601d15247b..5b7bda74752b 100644
@@ -224,7 +224,7 @@
 	pinctrl-0 = <&mmc1_pins>;
 	vmmc-supply = <&vmmc1>;
 	vqmmc-supply = <&vsim>;
-	cd-gpios = <&twl_gpio 0 GPIO_ACTIVE_HIGH>;
+	cd-gpios = <&twl_gpio 0 GPIO_ACTIVE_LOW>;
 	bus-width = <8>;
 };
 
arch/arm/boot/dts/pxa27x.dtsi +1 -1
index 3228ad5fb725..ccbecad9c5c7 100644
@@ -35,7 +35,7 @@
 			clocks = <&clks CLK_NONE>;
 		};
 
-		pxa27x_ohci: usb@4c000000 {
+		usb0: usb@4c000000 {
 			compatible = "marvell,pxa-ohci";
 			reg = <0x4c000000 0x10000>;
 			interrupts = <3>;
arch/arm/boot/dts/pxa2xx.dtsi +0 -7
index e4ebcde17837..a03bca81ae8a 100644
@@ -117,13 +117,6 @@
 			status = "disabled";
 		};
 
-		usb0: ohci@4c000000 {
-			compatible = "marvell,pxa-ohci";
-			reg = <0x4c000000 0x10000>;
-			interrupts = <3>;
-			status = "disabled";
-		};
-
 		mmc0: mmc@41100000 {
 			compatible = "marvell,pxa-mmc";
 			reg = <0x41100000 0x1000>;
arch/arm/boot/dts/pxa3xx.dtsi +1 -1
index 55c75b67351c..affa5b6f6da1 100644
@@ -189,7 +189,7 @@
 			status = "disabled";
 		};
 
-		pxa3xx_ohci: usb@4c000000 {
+		usb0: usb@4c000000 {
 			compatible = "marvell,pxa-ohci";
 			reg = <0x4c000000 0x10000>;
 			interrupts = <3>;
arch/arm/boot/dts/rk3288-rock2-som.dtsi +1 -1
index b9c471fcbd42..862c2248fcb6 100644
@@ -63,7 +63,7 @@
 
 	vcc_flash: flash-regulator {
 		compatible = "regulator-fixed";
-		regulator-name = "vcc_sys";
+		regulator-name = "vcc_flash";
 		regulator-min-microvolt = <1800000>;
 		regulator-max-microvolt = <1800000>;
 		startup-delay-us = <150>;
arch/arm/boot/dts/rv1108.dtsi +5 -5
index e7cd1315db1b..aa4119eaea98 100644
@@ -101,7 +101,7 @@
 
 	arm-pmu {
 		compatible = "arm,cortex-a7-pmu";
-		interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
+		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
 	};
 
 	timer {
@@ -522,7 +522,7 @@
 			compatible = "rockchip,gpio-bank";
 			reg = <0x20030000 0x100>;
 			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&xin24m>;
+			clocks = <&cru PCLK_GPIO0_PMU>;
 
 			gpio-controller;
 			#gpio-cells = <2>;
@@ -535,7 +535,7 @@
 			compatible = "rockchip,gpio-bank";
 			reg = <0x10310000 0x100>;
 			interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&xin24m>;
+			clocks = <&cru PCLK_GPIO1>;
 
 			gpio-controller;
 			#gpio-cells = <2>;
@@ -548,7 +548,7 @@
 			compatible = "rockchip,gpio-bank";
 			reg = <0x10320000 0x100>;
 			interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&xin24m>;
+			clocks = <&cru PCLK_GPIO2>;
 
 			gpio-controller;
 			#gpio-cells = <2>;
@@ -561,7 +561,7 @@
 			compatible = "rockchip,gpio-bank";
 			reg = <0x10330000 0x100>;
 			interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&xin24m>;
+			clocks = <&cru PCLK_GPIO3>;
 
 			gpio-controller;
 			#gpio-cells = <2>;
arch/arm/boot/dts/sun5i-a10s.dtsi +0 -2
index 18f25c5e75ae..396fb6632bf0 100644
@@ -104,8 +104,6 @@
 				};
 
 				hdmi_out: port@1 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <1>;
 				};
 			};
arch/arm/boot/dts/sun6i-a31.dtsi +1 -1
index eef072a21acc..0bb82d0442a5 100644
@@ -173,7 +173,7 @@
 	};
 
 	pmu {
-		compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
+		compatible = "arm,cortex-a7-pmu";
 		interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
arch/arm/boot/dts/sun7i-a20.dtsi +1 -1
index 96bee776e145..77f04dbdf996 100644
@@ -171,7 +171,7 @@
 	};
 
 	pmu {
-		compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
+		compatible = "arm,cortex-a7-pmu";
 		interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
 	};
arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts +2 -2
index 387fc2aa546d..333df90e8037 100644
@@ -78,7 +78,7 @@
 };
 
 &mmc0 {
-	pinctrl-0 = <&mmc0_pins_a>;
+	pinctrl-0 = <&mmc0_pins>;
 	pinctrl-names = "default";
 	broken-cd;
 	bus-width = <4>;
@@ -87,7 +87,7 @@
 };
 
 &uart0 {
-	pinctrl-0 = <&uart0_pins_a>;
+	pinctrl-0 = <&uart0_pb_pins>;
 	pinctrl-names = "default";
 	status = "okay";
 };
arch/arm/boot/dts/sun8i-v3s.dtsi +5 -5
index 3a06dc5b3746..da5823c6fa3e 100644
@@ -292,17 +292,17 @@
 			interrupt-controller;
 			#interrupt-cells = <3>;
 
-			i2c0_pins: i2c0 {
+			i2c0_pins: i2c0-pins {
 				pins = "PB6", "PB7";
 				function = "i2c0";
 			};
 
-			uart0_pins_a: uart0@0 {
+			uart0_pb_pins: uart0-pb-pins {
 				pins = "PB8", "PB9";
 				function = "uart0";
 			};
 
-			mmc0_pins_a: mmc0@0 {
+			mmc0_pins: mmc0-pins {
 				pins = "PF0", "PF1", "PF2", "PF3",
 				       "PF4", "PF5";
 				function = "mmc0";
@@ -310,7 +310,7 @@
 				bias-pull-up;
 			};
 
-			mmc1_pins: mmc1 {
+			mmc1_pins: mmc1-pins {
 				pins = "PG0", "PG1", "PG2", "PG3",
 				       "PG4", "PG5";
 				function = "mmc1";
@@ -318,7 +318,7 @@
 				bias-pull-up;
 			};
 
-			spi0_pins: spi0 {
+			spi0_pins: spi0-pins {
 				pins = "PC0", "PC1", "PC2", "PC3";
 				function = "spi0";
 			};
arch/arm/include/asm/uaccess.h +18 -0
index a5807b67ca8a..fe47d24955ea 100644
@@ -349,6 +349,13 @@ do {									\
 #define __get_user_asm_byte(x, addr, err)			\
 	__get_user_asm(x, addr, err, ldrb)
 
+#if __LINUX_ARM_ARCH__ >= 6
+
+#define __get_user_asm_half(x, addr, err)			\
+	__get_user_asm(x, addr, err, ldrh)
+
+#else
+
 #ifndef __ARMEB__
 #define __get_user_asm_half(x, __gu_addr, err)			\
 ({								\
@@ -367,6 +374,8 @@ do {									\
 })
 #endif
 
+#endif /* __LINUX_ARM_ARCH__ >= 6 */
+
 #define __get_user_asm_word(x, addr, err)			\
 	__get_user_asm(x, addr, err, ldr)
 #endif
@@ -442,6 +451,13 @@ do {									\
 #define __put_user_asm_byte(x, __pu_addr, err)			\
 	__put_user_asm(x, __pu_addr, err, strb)
 
+#if __LINUX_ARM_ARCH__ >= 6
+
+#define __put_user_asm_half(x, __pu_addr, err)			\
+	__put_user_asm(x, __pu_addr, err, strh)
+
+#else
+
 #ifndef __ARMEB__
 #define __put_user_asm_half(x, __pu_addr, err)			\
 ({								\
@@ -458,6 +474,8 @@ do {									\
 })
 #endif
 
+#endif /* __LINUX_ARM_ARCH__ >= 6 */
+
 #define __put_user_asm_word(x, __pu_addr, err)			\
 	__put_user_asm(x, __pu_addr, err, str)
 
arch/arm/lib/getuser.S +11 -0
index 746e7801dcdf..b2e4bc3a635e 100644
@@ -42,6 +42,12 @@ _ASM_NOKPROBE(__get_user_1)
 
 ENTRY(__get_user_2)
 	check_uaccess r0, 2, r1, r2, __get_user_bad
+#if __LINUX_ARM_ARCH__ >= 6
+
+2: TUSER(ldrh)	r2, [r0]
+
+#else
+
 #ifdef CONFIG_CPU_USE_DOMAINS
 rb	.req	ip
 2:	ldrbt	r2, [r0], #1
@@ -56,6 +62,9 @@ rb	.req	r0
 #else
 	orr	r2, rb, r2, lsl #8
 #endif
+
+#endif /* __LINUX_ARM_ARCH__ >= 6 */
+
 	mov	r0, #0
 	ret	lr
 ENDPROC(__get_user_2)
@@ -145,7 +154,9 @@ _ASM_NOKPROBE(__get_user_bad8)
 .pushsection __ex_table, "a"
 	.long	1b, __get_user_bad
 	.long	2b, __get_user_bad
+#if __LINUX_ARM_ARCH__ < 6
 	.long	3b, __get_user_bad
+#endif
 	.long	4b, __get_user_bad
 	.long	5b, __get_user_bad8
 	.long	6b, __get_user_bad8
arch/arm/lib/putuser.S +10 -10
index 38d660d3705f..515eeaa9975c 100644
@@ -41,16 +41,13 @@ ENDPROC(__put_user_1)
 
 ENTRY(__put_user_2)
 	check_uaccess r0, 2, r1, ip, __put_user_bad
-	mov	ip, r2, lsr #8
-#ifdef CONFIG_THUMB2_KERNEL
-#ifndef __ARMEB__
-2: TUSER(strb)	r2, [r0]
-3: TUSER(strb)	ip, [r0, #1]
+#if __LINUX_ARM_ARCH__ >= 6
+
+2: TUSER(strh)	r2, [r0]
+
 #else
-2: TUSER(strb)	ip, [r0]
-3: TUSER(strb)	r2, [r0, #1]
-#endif
-#else	/* !CONFIG_THUMB2_KERNEL */
+
+	mov	ip, r2, lsr #8
 #ifndef __ARMEB__
 2: TUSER(strb)	r2, [r0], #1
 3: TUSER(strb)	ip, [r0]
@@ -58,7 +55,8 @@ ENTRY(__put_user_2)
 2: TUSER(strb)	ip, [r0], #1
 3: TUSER(strb)	r2, [r0]
 #endif
-#endif	/* CONFIG_THUMB2_KERNEL */
+
+#endif /* __LINUX_ARM_ARCH__ >= 6 */
 	mov	r0, #0
 	ret	lr
 ENDPROC(__put_user_2)
@@ -91,7 +89,9 @@ ENDPROC(__put_user_bad)
 .pushsection __ex_table, "a"
 	.long	1b, __put_user_bad
 	.long	2b, __put_user_bad
+#if __LINUX_ARM_ARCH__ < 6
 	.long	3b, __put_user_bad
+#endif
 	.long	4b, __put_user_bad
 	.long	5b, __put_user_bad
 	.long	6b, __put_user_bad
arch/arm/mach-omap1/id.c +3 -3
index 52de382fc804..7e49dfda3d2f 100644
@@ -200,10 +200,10 @@ void __init omap_check_revision(void)
 		printk(KERN_INFO "Unknown OMAP cpu type: 0x%02x\n", cpu_type);
 	}
 
-	printk(KERN_INFO "OMAP%04x", omap_revision >> 16);
+	pr_info("OMAP%04x", omap_revision >> 16);
 	if ((omap_revision >> 8) & 0xff)
-		printk(KERN_INFO "%x", (omap_revision >> 8) & 0xff);
-	printk(KERN_INFO " revision %i handled as %02xxx id: %08x%08x\n",
+		pr_cont("%x", (omap_revision >> 8) & 0xff);
+	pr_cont(" revision %i handled as %02xxx id: %08x%08x\n",
 	       die_rev, omap_revision & 0xff, system_serial_low,
 	       system_serial_high);
 }
arch/arm/mach-omap2/id.c +2 -2
index 16cb1c195fd8..79d71b1eae59 100644
@@ -199,8 +199,8 @@ void __init omap2xxx_check_revision(void)
 
 	pr_info("%s", soc_name);
 	if ((omap_rev() >> 8) & 0x0f)
-		pr_info("%s", soc_rev);
-	pr_info("\n");
+		pr_cont("%s", soc_rev);
+	pr_cont("\n");
 }
 
 #define OMAP3_SHOW_FEATURE(feat)		\
arch/arm/mach-omap2/pdata-quirks.c +0 -93

108 lines not on this page · raw message

arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts +2 -2
index 4b17a76959b2..c83c028e95af 100644
@@ -178,7 +178,7 @@
 	pinctrl-names = "default";
 };
 
-&pinctrl_aobus {
+&gpio_ao {
 	gpio-line-names = "UART TX", "UART RX", "Power Control", "Power Key In",
 			  "VCCK En", "CON1 Header Pin31",
 			  "I2S Header Pin6", "IR In", "I2S Header Pin7",
@@ -186,7 +186,7 @@
 			  "I2S Header Pin5", "HDMI CEC", "SYS LED";
 };
 
-&pinctrl_periphs {
+&gpio {
 	gpio-line-names = /* Bank GPIOZ */
 			  "Eth MDIO", "Eth MDC", "Eth RGMII RX Clk",
 			  "Eth RX DV", "Eth RX D0", "Eth RX D1", "Eth RX D2",
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +2 -2
index c3c65b06ba76..4ea23df81f21 100644
@@ -189,7 +189,7 @@
 	pinctrl-names = "default";
 };
 
-&pinctrl_aobus {
+&gpio_ao {
 	gpio-line-names = "UART TX", "UART RX", "VCCK En", "TF 3V3/1V8 En",
 			  "USB HUB nRESET", "USB OTG Power En",
 			  "J7 Header Pin2", "IR In", "J7 Header Pin4",
@@ -197,7 +197,7 @@
 			  "HDMI CEC", "SYS LED";
 };
 
-&pinctrl_periphs {
+&gpio {
 	gpio-line-names = /* Bank GPIOZ */
 			  "Eth MDIO", "Eth MDC", "Eth RGMII RX Clk",
 			  "Eth RX DV", "Eth RX D0", "Eth RX D1", "Eth RX D2",
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts +2 -2
index edc512ad0bac..fb5db5f33e8c 100644
@@ -112,7 +112,7 @@
 	linux,rc-map-name = "rc-geekbox";
 };
 
-&pinctrl_aobus {
+&gpio_ao {
 	gpio-line-names = "UART TX",
 			  "UART RX",
 			  "Power Key In",
@@ -125,7 +125,7 @@
 			  "SYS LED";
 };
 
-&pinctrl_periphs {
+&gpio {
 	gpio-line-names = /* Bank GPIOZ */
 			  "", "", "", "", "", "", "",
 			  "", "", "", "", "", "", "",
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts +2 -2
index 0814b6b29b86..e2c71753e327 100644
@@ -139,7 +139,7 @@
 	};
 };
 
-&pinctrl_aobus {
+&gpio_ao {
 	gpio-line-names = "UART TX",
 			  "UART RX",
 			  "Blue LED",
@@ -152,7 +152,7 @@
 			  "7J1 Header Pin13";
 };
 
-&pinctrl_periphs {
+&gpio {
 	gpio-line-names = /* Bank GPIOZ */
 			  "", "", "", "", "", "", "",
 			  "", "", "", "", "", "", "",
arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi +1 -1
index d67ef4319f3b..97f31bc4fa1e 100644
@@ -1584,7 +1584,7 @@
 			regulator-name = "VDD_HDMI_5V0";
 			regulator-min-microvolt = <5000000>;
 			regulator-max-microvolt = <5000000>;
-			gpio = <&exp1 12 GPIO_ACTIVE_LOW>;
+			gpio = <&exp1 12 GPIO_ACTIVE_HIGH>;
 			enable-active-high;
 			vin-supply = <&vdd_5v0_sys>;
 		};
arch/mips/Kconfig +1 -0
index ae4450e891ab..7e267d657c56 100644
@@ -812,6 +812,7 @@ config SIBYTE_LITTLESUR
 	select SYS_SUPPORTS_BIG_ENDIAN
 	select SYS_SUPPORTS_HIGHMEM
 	select SYS_SUPPORTS_LITTLE_ENDIAN
+	select ZONE_DMA32 if 64BIT
 
 config SIBYTE_SENTOSA
 	bool "Sibyte BCM91250E-Sentosa"
arch/mips/cavium-octeon/executive/cvmx-cmd-queue.c +1 -1
index 8241fc6aa17d..3839feba68f2 100644
@@ -266,7 +266,7 @@ int cvmx_cmd_queue_length(cvmx_cmd_queue_id_t queue_id)
 		} else {
 			union cvmx_pko_mem_debug8 debug8;
 			debug8.u64 = cvmx_read_csr(CVMX_PKO_MEM_DEBUG8);
-			return debug8.cn58xx.doorbell;
+			return debug8.cn50xx.doorbell;
 		}
 	case CVMX_CMD_QUEUE_ZIP:
 	case CVMX_CMD_QUEUE_DFA:
arch/mips/cavium-octeon/octeon-platform.c +1 -1
index 1d92efb82c37..e1e24118c169 100644
@@ -501,7 +501,7 @@ static void __init octeon_fdt_set_phy(int eth, int phy_addr)
 	if (phy_addr >= 256 && alt_phy > 0) {
 		const struct fdt_property *phy_prop;
 		struct fdt_property *alt_prop;
-		u32 phy_handle_name;
+		fdt32_t phy_handle_name;
 
 		/* Use the alt phy node instead.*/
 		phy_prop = fdt_get_property(initial_boot_params, eth, "phy-handle", NULL);
arch/mips/include/asm/octeon/cvmx-pko.h +1 -1
index 5f47f76ed510..20eb9c46a75a 100644
@@ -611,7 +611,7 @@ static inline void cvmx_pko_get_port_status(uint64_t port_num, uint64_t clear,
 		pko_reg_read_idx.s.index = cvmx_pko_get_base_queue(port_num);
 		cvmx_write_csr(CVMX_PKO_REG_READ_IDX, pko_reg_read_idx.u64);
 		debug8.u64 = cvmx_read_csr(CVMX_PKO_MEM_DEBUG8);
-		status->doorbell = debug8.cn58xx.doorbell;
+		status->doorbell = debug8.cn50xx.doorbell;
 	}
 }
 
arch/powerpc/include/asm/sfp-machine.h +29 -63

132 lines not on this page · raw message

arch/powerpc/include/asm/vdso_datapage.h +2 -0
index 1afe90ade595..674c03350cd1 100644
@@ -86,6 +86,7 @@ struct vdso_data {
 	__s32 wtom_clock_nsec;
 	struct timespec stamp_xtime;	/* xtime as at tb_orig_stamp */
 	__u32 stamp_sec_fraction;	/* fractional seconds of stamp_xtime */
+	__u32 hrtimer_res;			/* hrtimer resolution */
    	__u32 syscall_map_64[SYSCALL_MAP_SIZE]; /* map of syscalls  */
    	__u32 syscall_map_32[SYSCALL_MAP_SIZE]; /* map of syscalls */
 };
@@ -107,6 +108,7 @@ struct vdso_data {
 	__s32 wtom_clock_nsec;
 	struct timespec stamp_xtime;	/* xtime as at tb_orig_stamp */
 	__u32 stamp_sec_fraction;	/* fractional seconds of stamp_xtime */
+	__u32 hrtimer_res;		/* hrtimer resolution */
    	__u32 syscall_map_32[SYSCALL_MAP_SIZE]; /* map of syscalls */
 	__u32 dcache_block_size;	/* L1 d-cache block size     */
 	__u32 icache_block_size;	/* L1 i-cache block size     */
arch/powerpc/kernel/Makefile +2 -2
index 142b08d40642..5607ce67d178 100644
@@ -5,8 +5,8 @@
 
 CFLAGS_ptrace.o		+= -DUTS_MACHINE='"$(UTS_MACHINE)"'
 
-# Disable clang warning for using setjmp without setjmp.h header
-CFLAGS_crash.o		+= $(call cc-disable-warning, builtin-requires-header)
+# Avoid clang warnings around longjmp/setjmp declarations
+CFLAGS_crash.o += -ffreestanding
 
 subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
 
arch/powerpc/kernel/asm-offsets.c +1 -1
index 2e5ea300258a..1bc761e537a9 100644
@@ -373,6 +373,7 @@ int main(void)
 	OFFSET(WTOM_CLOCK_NSEC, vdso_data, wtom_clock_nsec);
 	OFFSET(STAMP_XTIME, vdso_data, stamp_xtime);
 	OFFSET(STAMP_SEC_FRAC, vdso_data, stamp_sec_fraction);
+	OFFSET(CLOCK_HRTIMER_RES, vdso_data, hrtimer_res);
 	OFFSET(CFG_ICACHE_BLOCKSZ, vdso_data, icache_block_size);
 	OFFSET(CFG_DCACHE_BLOCKSZ, vdso_data, dcache_block_size);
 	OFFSET(CFG_ICACHE_LOGBLOCKSZ, vdso_data, icache_log_block_size);
@@ -401,7 +402,6 @@ int main(void)
 	DEFINE(CLOCK_REALTIME, CLOCK_REALTIME);
 	DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC);
 	DEFINE(NSEC_PER_SEC, NSEC_PER_SEC);
-	DEFINE(CLOCK_REALTIME_RES, MONOTONIC_RES_NSEC);
 
 #ifdef CONFIG_BUG
 	DEFINE(BUG_ENTRY_SIZE, sizeof(struct bug_entry));
arch/powerpc/kernel/misc_64.S +2 -2
index 09af857ca099..afe086f48e7c 100644
@@ -86,7 +86,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_COHERENT_ICACHE)
 	subf	r8,r6,r4		/* compute length */
 	add	r8,r8,r5		/* ensure we get enough */
 	lwz	r9,DCACHEL1LOGBLOCKSIZE(r10)	/* Get log-2 of cache block size */
-	srw.	r8,r8,r9		/* compute line count */
+	srd.	r8,r8,r9		/* compute line count */
 	beqlr				/* nothing to do? */
 	mtctr	r8
 1:	dcbst	0,r6
@@ -102,7 +102,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_COHERENT_ICACHE)
 	subf	r8,r6,r4		/* compute length */
 	add	r8,r8,r5
 	lwz	r9,ICACHEL1LOGBLOCKSIZE(r10)	/* Get log-2 of Icache block size */
-	srw.	r8,r8,r9		/* compute line count */
+	srd.	r8,r8,r9		/* compute line count */
 	beqlr				/* nothing to do? */
 	mtctr	r8
 2:	icbi	0,r6
arch/powerpc/kernel/time.c +1 -0
index 7c7c5a16284d..14f3f28a089e 100644
@@ -920,6 +920,7 @@ void update_vsyscall(struct timekeeper *tk)
 	vdso_data->wtom_clock_nsec = tk->wall_to_monotonic.tv_nsec;
 	vdso_data->stamp_xtime = xt;
 	vdso_data->stamp_sec_fraction = frac_sec;
+	vdso_data->hrtimer_res = hrtimer_resolution;
 	smp_wmb();
 	++(vdso_data->tb_update_count);
 }
arch/powerpc/kernel/vdso32/gettimeofday.S +5 -2
index 1e0bc5955a40..03a65fee8020 100644
@@ -160,12 +160,15 @@ V_FUNCTION_BEGIN(__kernel_clock_getres)
 	cror	cr0*4+eq,cr0*4+eq,cr1*4+eq
 	bne	cr0,99f
 
+	mflr	r12
+  .cfi_register lr,r12
+	bl	__get_datapage@local	/* get data page */
+	lwz	r5, CLOCK_HRTIMER_RES(r3)
+	mtlr	r12
 	li	r3,0
 	cmpli	cr0,r4,0
 	crclr	cr0*4+so
 	beqlr
-	lis	r5,CLOCK_REALTIME_RES@h
-	ori	r5,r5,CLOCK_REALTIME_RES@l
 	stw	r3,TSPC32_TV_SEC(r4)
 	stw	r5,TSPC32_TV_NSEC(r4)
 	blr
arch/powerpc/kernel/vdso64/cacheflush.S +2 -2
index 69c5af2b3c96..228a4a2383d6 100644
@@ -39,7 +39,7 @@ V_FUNCTION_BEGIN(__kernel_sync_dicache)
 	subf	r8,r6,r4		/* compute length */
 	add	r8,r8,r5		/* ensure we get enough */
 	lwz	r9,CFG_DCACHE_LOGBLOCKSZ(r10)
-	srw.	r8,r8,r9		/* compute line count */
+	srd.	r8,r8,r9		/* compute line count */
 	crclr	cr0*4+so
 	beqlr				/* nothing to do? */
 	mtctr	r8
@@ -56,7 +56,7 @@ V_FUNCTION_BEGIN(__kernel_sync_dicache)
 	subf	r8,r6,r4		/* compute length */
 	add	r8,r8,r5
 	lwz	r9,CFG_ICACHE_LOGBLOCKSZ(r10)
-	srw.	r8,r8,r9		/* compute line count */
+	srd.	r8,r8,r9		/* compute line count */
 	crclr	cr0*4+so
 	beqlr				/* nothing to do? */
 	mtctr	r8
arch/powerpc/kernel/vdso64/gettimeofday.S +5 -2
index 09b2a49f6dd5..c973378e1f2b 100644
@@ -145,12 +145,15 @@ V_FUNCTION_BEGIN(__kernel_clock_getres)
 	cror	cr0*4+eq,cr0*4+eq,cr1*4+eq
 	bne	cr0,99f
 
+	mflr	r12
+  .cfi_register lr,r12
+	bl	V_LOCAL_FUNC(__get_datapage)
+	lwz	r5, CLOCK_HRTIMER_RES(r3)
+	mtlr	r12
 	li	r3,0
 	cmpldi	cr0,r4,0
 	crclr	cr0*4+so
 	beqlr
-	lis	r5,CLOCK_REALTIME_RES@h
-	ori	r5,r5,CLOCK_REALTIME_RES@l
 	std	r3,TSPC64_TV_SEC(r4)
 	std	r5,TSPC64_TV_NSEC(r4)
 	blr
arch/powerpc/sysdev/xive/common.c +9 -0
index 110d8bb16ebb..a820370883d9 100644
@@ -967,6 +967,15 @@ static int xive_irq_alloc_data(unsigned int virq, irq_hw_number_t hw)
 	xd->target = XIVE_INVALID_TARGET;
 	irq_set_handler_data(virq, xd);
 
+	/*
+	 * Turn OFF by default the interrupt being mapped. A side
+	 * effect of this check is the mapping the ESB page of the
+	 * interrupt in the Linux address space. This prevents page
+	 * fault issues in the crash handler which masks all
+	 * interrupts.
+	 */
+	xive_esb_read(xd, XIVE_ESB_SET_PQ_01);
+
 	return 0;
 }
 
arch/powerpc/sysdev/xive/spapr.c +10 -2
index 091f1d0d0af1..7fc41bf30fd5 100644
@@ -293,20 +293,28 @@ static int xive_spapr_populate_irq_data(u32 hw_irq, struct xive_irq_data *data)
 	data->esb_shift = esb_shift;
 	data->trig_page = trig_page;
 
+	data->hw_irq = hw_irq;
+
 	/*
 	 * No chip-id for the sPAPR backend. This has an impact how we
 	 * pick a target. See xive_pick_irq_target().
 	 */
 	data->src_chip = XIVE_INVALID_CHIP_ID;
 
+	/*
+	 * When the H_INT_ESB flag is set, the H_INT_ESB hcall should
+	 * be used for interrupt management. Skip the remapping of the
+	 * ESB pages which are not available.
+	 */
+	if (data->flags & XIVE_IRQ_FLAG_H_INT_ESB)
+		return 0;
+
 	data->eoi_mmio = ioremap(data->eoi_page, 1u << data->esb_shift);
 	if (!data->eoi_mmio) {
 		pr_err("Failed to map EOI page for irq 0x%x\n", hw_irq);
 		return -ENOMEM;
 	}
 
-	data->hw_irq = hw_irq;
-
 	/* Full function page supports trigger */
 	if (flags & XIVE_SRC_TRIGGER) {
 		data->trig_mmio = data->eoi_mmio;
arch/powerpc/xmon/Makefile +2 -2
index ac5ee067aa51..a60c44b4a3e5 100644
@@ -1,8 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0
 # Makefile for xmon
 
-# Disable clang warning for using setjmp without setjmp.h header
-subdir-ccflags-y := $(call cc-disable-warning, builtin-requires-header)
+# Avoid clang warnings around longjmp/setjmp declarations
+subdir-ccflags-y := -ffreestanding
 
 subdir-ccflags-$(CONFIG_PPC_WERROR) += -Werror
 
arch/s390/include/asm/pgtable.h +2 -2
index d7fe9838084d..328710b386e3 100644
@@ -1126,8 +1126,6 @@ int pgste_perform_essa(struct mm_struct *mm, unsigned long hva, int orc,
 static inline void set_pte_at(struct mm_struct *mm, unsigned long addr,
 			      pte_t *ptep, pte_t entry)
 {
-	if (!MACHINE_HAS_NX)
-		pte_val(entry) &= ~_PAGE_NOEXEC;
 	if (pte_present(entry))
 		pte_val(entry) &= ~_PAGE_UNUSED;
 	if (mm_has_pgste(mm))
@@ -1144,6 +1142,8 @@ static inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot)
 {
 	pte_t __pte;
 	pte_val(__pte) = physpage + pgprot_val(pgprot);
+	if (!MACHINE_HAS_NX)
+		pte_val(__pte) &= ~_PAGE_NOEXEC;
 	return pte_mkyoung(__pte);
 }
 
arch/sparc/net/bpf_jit_comp_64.c +12 -0
index adfb4581bd80..dfb1a62abe93 100644
@@ -1326,6 +1326,9 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx)
 		const u8 tmp2 = bpf2sparc[TMP_REG_2];
 		u32 opcode = 0, rs2;
 
+		if (insn->dst_reg == BPF_REG_FP)
+			ctx->saw_frame_pointer = true;
+
 		ctx->tmp_2_used = true;
 		emit_loadimm(imm, tmp2, ctx);
 
@@ -1364,6 +1367,9 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx)
 		const u8 tmp = bpf2sparc[TMP_REG_1];
 		u32 opcode = 0, rs2;
 
+		if (insn->dst_reg == BPF_REG_FP)
+			ctx->saw_frame_pointer = true;
+
 		switch (BPF_SIZE(code)) {
 		case BPF_W:
 			opcode = ST32;
@@ -1396,6 +1402,9 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx)
 		const u8 tmp2 = bpf2sparc[TMP_REG_2];
 		const u8 tmp3 = bpf2sparc[TMP_REG_3];
 
+		if (insn->dst_reg == BPF_REG_FP)
+			ctx->saw_frame_pointer = true;
+
 		ctx->tmp_1_used = true;
 		ctx->tmp_2_used = true;
 		ctx->tmp_3_used = true;
@@ -1416,6 +1425,9 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx)
 		const u8 tmp2 = bpf2sparc[TMP_REG_2];
 		const u8 tmp3 = bpf2sparc[TMP_REG_3];
 
+		if (insn->dst_reg == BPF_REG_FP)
+			ctx->saw_frame_pointer = true;
+
 		ctx->tmp_1_used = true;
 		ctx->tmp_2_used = true;
 		ctx->tmp_3_used = true;
arch/x86/kernel/cpu/mcheck/mce.c +0 -30
index 4f3be91f0b0b..c7bd2e549a6a 100644
@@ -1660,36 +1660,6 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)
 		if (c->x86 == 0x15 && c->x86_model <= 0xf)
 			mce_flags.overflow_recov = 1;
 
-		/*
-		 * Turn off MC4_MISC thresholding banks on those models since
-		 * they're not supported there.
-		 */
-		if (c->x86 == 0x15 &&
-		    (c->x86_model >= 0x10 && c->x86_model <= 0x1f)) {
-			int i;
-			u64 hwcr;
-			bool need_toggle;
-			u32 msrs[] = {
-				0x00000413, /* MC4_MISC0 */
-				0xc0000408, /* MC4_MISC1 */
-			};
-
-			rdmsrl(MSR_K7_HWCR, hwcr);
-
-			/* McStatusWrEn has to be set */
-			need_toggle = !(hwcr & BIT(18));
-
-			if (need_toggle)
-				wrmsrl(MSR_K7_HWCR, hwcr | BIT(18));
-
-			/* Clear CntP bit safely */
-			for (i = 0; i < ARRAY_SIZE(msrs); i++)
-				msr_clear_bit(msrs[i], 62);
-
-			/* restore old settings */
-			if (need_toggle)
-				wrmsrl(MSR_K7_HWCR, hwcr);
-		}
 	}
 
 	if (c->x86_vendor == X86_VENDOR_INTEL) {
arch/x86/kernel/cpu/mcheck/mce_amd.c +36 -0
index 4fa97a44e73f..b434780ae680 100644
@@ -544,6 +544,40 @@ prepare_threshold_block(unsigned int bank, unsigned int block, u32 addr,
 	return offset;
 }
 
+/*
+ * Turn off MC4_MISC thresholding banks on all family 0x15 models since
+ * they're not supported there.
+ */
+void disable_err_thresholding(struct cpuinfo_x86 *c)
+{
+	int i;
+	u64 hwcr;
+	bool need_toggle;
+	u32 msrs[] = {
+		0x00000413, /* MC4_MISC0 */
+		0xc0000408, /* MC4_MISC1 */
+	};
+
+	if (c->x86 != 0x15)
+		return;
+
+	rdmsrl(MSR_K7_HWCR, hwcr);
+
+	/* McStatusWrEn has to be set */
+	need_toggle = !(hwcr & BIT(18));
+
+	if (need_toggle)
+		wrmsrl(MSR_K7_HWCR, hwcr | BIT(18));
+
+	/* Clear CntP bit safely */
+	for (i = 0; i < ARRAY_SIZE(msrs); i++)
+		msr_clear_bit(msrs[i], 62);
+
+	/* restore old settings */
+	if (need_toggle)
+		wrmsrl(MSR_K7_HWCR, hwcr);
+}
+
 /* cpu init entry point, called from mce.c with preempt off */
 void mce_amd_feature_init(struct cpuinfo_x86 *c)
 {
@@ -551,6 +585,8 @@ void mce_amd_feature_init(struct cpuinfo_x86 *c)
 	unsigned int bank, block, cpu = smp_processor_id();
 	int offset = -1;
 
+	disable_err_thresholding(c);
+
 	for (bank = 0; bank < mca_cfg.banks; ++bank) {
 		if (mce_flags.smca)
 			smca_configure(bank, cpu);
arch/x86/kvm/cpuid.c +4 -1
index 33f87b696487..38959b173a42 100644
@@ -404,7 +404,7 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
 
 	r = -E2BIG;
 
-	if (*nent >= maxnent)
+	if (WARN_ON(*nent >= maxnent))
 		goto out;
 
 	do_cpuid_1_ent(entry, function, index);
@@ -707,6 +707,9 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
 static int do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 func,
 			u32 idx, int *nent, int maxnent, unsigned int type)
 {
+	if (*nent >= maxnent)
+		return -E2BIG;
+
 	if (type == KVM_GET_EMULATED_CPUID)
 		return __do_cpuid_ent_emulated(entry, func, idx, nent, maxnent);
 
arch/x86/kvm/x86.c +10 -4
index 1f9360320a82..8a51442247c5 100644
@@ -276,13 +276,14 @@ int kvm_set_shared_msr(unsigned slot, u64 value, u64 mask)
 	struct kvm_shared_msrs *smsr = per_cpu_ptr(shared_msrs, cpu);
 	int err;
 
-	if (((value ^ smsr->values[slot].curr) & mask) == 0)
+	value = (value & mask) | (smsr->values[slot].host & ~mask);
+	if (value == smsr->values[slot].curr)
 		return 0;
-	smsr->values[slot].curr = value;
 	err = wrmsrl_safe(shared_msrs_global.msrs[slot], value);
 	if (err)
 		return 1;
 
+	smsr->values[slot].curr = value;
 	if (!smsr->registered) {
 		smsr->urn.on_user_return = kvm_on_user_return;
 		user_return_notifier_register(&smsr->urn);
@@ -1112,10 +1113,15 @@ u64 kvm_get_arch_capabilities(void)
 	 * If TSX is disabled on the system, guests are also mitigated against
 	 * TAA and clear CPU buffer mitigation is not required for guests.
 	 */
-	if (boot_cpu_has_bug(X86_BUG_TAA) && boot_cpu_has(X86_FEATURE_RTM) &&
-	    (data & ARCH_CAP_TSX_CTRL_MSR))
+	if (!boot_cpu_has(X86_FEATURE_RTM))
+		data &= ~ARCH_CAP_TAA_NO;
+	else if (!boot_cpu_has_bug(X86_BUG_TAA))
+		data |= ARCH_CAP_TAA_NO;
+	else if (data & ARCH_CAP_TSX_CTRL_MSR)
 		data &= ~ARCH_CAP_MDS_NO;
 
+	/* KVM does not emulate MSR_IA32_TSX_CTRL.  */
+	data &= ~ARCH_CAP_TSX_CTRL_MSR;
 	return data;
 }
 
arch/x86/pci/fixup.c +11 -0
index 4210da7b44de..33e9b4f1ce20 100644
@@ -588,6 +588,17 @@ static void pci_fixup_amd_ehci_pme(struct pci_dev *dev)
 }
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x7808, pci_fixup_amd_ehci_pme);
 
+/*
+ * Device [1022:7914]
+ * When in D0, PME# doesn't get asserted when plugging USB 2.0 device.
+ */
+static void pci_fixup_amd_fch_xhci_pme(struct pci_dev *dev)
+{
+	dev_info(&dev->dev, "PME# does not work under D0, disabling it\n");
+	dev->pme_support &= ~(PCI_PM_CAP_PME_D0 >> PCI_PM_CAP_PME_SHIFT);
+}
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x7914, pci_fixup_amd_fch_xhci_pme);
+
 /*
  * Apple MacBook Pro: Avoid [mem 0x7fa00000-0x7fbfffff]
  *
block/blk-merge.c +1 -1
index 94650cdf2924..f61b50a01bc7 100644
@@ -765,7 +765,7 @@ static struct request *attempt_merge(struct request_queue *q,
 
 	req->__data_len += blk_rq_bytes(next);
 
-	if (req_op(req) != REQ_OP_DISCARD)
+	if (!blk_discard_mergable(req))
 		elv_merge_requests(q, req, next);
 
 	/*
block/blk-mq-sysfs.c +10 -5
index 79969c3c234f..c97fafa1b206 100644
@@ -145,20 +145,25 @@ static ssize_t blk_mq_hw_sysfs_nr_reserved_tags_show(struct blk_mq_hw_ctx *hctx,
 
 static ssize_t blk_mq_hw_sysfs_cpus_show(struct blk_mq_hw_ctx *hctx, char *page)
 {
+	const size_t size = PAGE_SIZE - 1;
 	unsigned int i, first = 1;
-	ssize_t ret = 0;
+	int ret = 0, pos = 0;
 
 	for_each_cpu(i, hctx->cpumask) {
 		if (first)
-			ret += sprintf(ret + page, "%u", i);
+			ret = snprintf(pos + page, size - pos, "%u", i);
 		else
-			ret += sprintf(ret + page, ", %u", i);
+			ret = snprintf(pos + page, size - pos, ", %u", i);
+
+		if (ret >= size - pos)
+			break;
 
 		first = 0;
+		pos += ret;
 	}
 
-	ret += sprintf(ret + page, "\n");
-	return ret;
+	ret = snprintf(pos + page, size + 1 - pos, "\n");
+	return pos + ret;
 }
 
 static struct attribute *default_ctx_attrs[] = {
crypto/af_alg.c +1 -1
index f816a7289104..422bba808f73 100644
@@ -1086,7 +1086,7 @@ void af_alg_async_cb(struct crypto_async_request *_req, int err)
 	af_alg_free_resources(areq);
 	sock_put(sk);
 
-	iocb->ki_complete(iocb, err ? err : resultlen, 0);
+	iocb->ki_complete(iocb, err ? err : (int)resultlen, 0);
 }
 EXPORT_SYMBOL_GPL(af_alg_async_cb);
 
crypto/crypto_user.c +3 -1
index 5e457a7dd1c9..b6899be8065d 100644
@@ -288,8 +288,10 @@ static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh,
 drop_alg:
 	crypto_mod_put(alg);
 
-	if (err)
+	if (err) {
+		kfree_skb(skb);
 		return err;
+	}
 
 	return nlmsg_unicast(crypto_nlsk, skb, NETLINK_CB(in_skb).portid);
 }
crypto/ecc.c +28 -17

75 lines not on this page · raw message

drivers/acpi/bus.c +1 -1
index f0348e388d01..1cb7c6a52f61 100644
@@ -196,7 +196,7 @@ int acpi_bus_get_private_data(acpi_handle handle, void **data)
 {
 	acpi_status status;
 
-	if (!*data)
+	if (!data)
 		return -EINVAL;
 
 	status = acpi_get_data(handle, acpi_bus_private_data_handler, data);
drivers/acpi/device_pm.c +11 -1
index 18af71057b44..fc300ce3ae8e 100644
@@ -1154,9 +1154,19 @@ static void acpi_dev_pm_detach(struct device *dev, bool power_off)
  */
 int acpi_dev_pm_attach(struct device *dev, bool power_on)
 {
+	/*
+	 * Skip devices whose ACPI companions match the device IDs below,
+	 * because they require special power management handling incompatible
+	 * with the generic ACPI PM domain.
+	 */
+	static const struct acpi_device_id special_pm_ids[] = {
+		{"PNP0C0B", }, /* Generic ACPI fan */
+		{"INT3404", }, /* Fan */
+		{}
+	};
 	struct acpi_device *adev = ACPI_COMPANION(dev);
 
-	if (!adev)
+	if (!adev || !acpi_match_device_ids(adev, special_pm_ids))
 		return -ENODEV;
 
 	if (dev->pm_domain)
drivers/acpi/osl.c +17 -11
index 9da7e7d874bd..ff36b0101ff0 100644
@@ -371,19 +371,21 @@ void *__ref acpi_os_map_memory(acpi_physical_address phys, acpi_size size)
 }
 EXPORT_SYMBOL_GPL(acpi_os_map_memory);
 
-static void acpi_os_drop_map_ref(struct acpi_ioremap *map)
+/* Must be called with mutex_lock(&acpi_ioremap_lock) */
+static unsigned long acpi_os_drop_map_ref(struct acpi_ioremap *map)
 {
-	if (!--map->refcount)
+	unsigned long refcount = --map->refcount;
+
+	if (!refcount)
 		list_del_rcu(&map->list);
+	return refcount;
 }
 
 static void acpi_os_map_cleanup(struct acpi_ioremap *map)
 {
-	if (!map->refcount) {
-		synchronize_rcu_expedited();
-		acpi_unmap(map->phys, map->virt);
-		kfree(map);
-	}
+	synchronize_rcu_expedited();
+	acpi_unmap(map->phys, map->virt);
+	kfree(map);
 }
 
 /**
@@ -403,6 +405,7 @@ static void acpi_os_map_cleanup(struct acpi_ioremap *map)
 void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size)
 {
 	struct acpi_ioremap *map;
+	unsigned long refcount;
 
 	if (!acpi_permanent_mmap) {
 		__acpi_unmap_table(virt, size);
@@ -416,10 +419,11 @@ void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size)
 		WARN(true, PREFIX "%s: bad address %p\n", __func__, virt);
 		return;
 	}
-	acpi_os_drop_map_ref(map);
+	refcount = acpi_os_drop_map_ref(map);
 	mutex_unlock(&acpi_ioremap_lock);
 
-	acpi_os_map_cleanup(map);
+	if (!refcount)
+		acpi_os_map_cleanup(map);
 }
 EXPORT_SYMBOL_GPL(acpi_os_unmap_iomem);
 
@@ -454,6 +458,7 @@ void acpi_os_unmap_generic_address(struct acpi_generic_address *gas)
 {
 	u64 addr;
 	struct acpi_ioremap *map;
+	unsigned long refcount;
 
 	if (gas->space_id != ACPI_ADR_SPACE_SYSTEM_MEMORY)
 		return;
@@ -469,10 +474,11 @@ void acpi_os_unmap_generic_address(struct acpi_generic_address *gas)
 		mutex_unlock(&acpi_ioremap_lock);
 		return;
 	}
-	acpi_os_drop_map_ref(map);
+	refcount = acpi_os_drop_map_ref(map);
 	mutex_unlock(&acpi_ioremap_lock);
 
-	acpi_os_map_cleanup(map);
+	if (!refcount)
+		acpi_os_map_cleanup(map);
 }
 EXPORT_SYMBOL(acpi_os_unmap_generic_address);
 
drivers/android/binder_alloc.c +5 -3
index e0b0399ff7ec..9d5cb3b7a7a2 100644
@@ -289,8 +289,7 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate,
 	return 0;
 
 free_range:
-	for (page_addr = end - PAGE_SIZE; page_addr >= start;
-	     page_addr -= PAGE_SIZE) {
+	for (page_addr = end - PAGE_SIZE; 1; page_addr -= PAGE_SIZE) {
 		bool ret;
 		size_t index;
 
@@ -303,6 +302,8 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate,
 		WARN_ON(!ret);
 
 		trace_binder_free_lru_end(alloc, index);
+		if (page_addr == start)
+			break;
 		continue;
 
 err_vm_insert_page_failed:
@@ -312,7 +313,8 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate,
 		page->page_ptr = NULL;
 err_alloc_page_failed:
 err_page_ptr_cleared:
-		;
+		if (page_addr == start)
+			break;
 	}
 err_no_vma:
 	if (mm) {
drivers/block/drbd/drbd_state.c +2 -4
index 0813c654c893..b452359b6aae 100644
@@ -688,11 +688,9 @@ request_detach(struct drbd_device *device)
 			CS_VERBOSE | CS_ORDERED | CS_INHIBIT_MD_IO);
 }
 
-enum drbd_state_rv
-drbd_request_detach_interruptible(struct drbd_device *device)
+int drbd_request_detach_interruptible(struct drbd_device *device)
 {
-	enum drbd_state_rv rv;
-	int ret;
+	int ret, rv;
 
 	drbd_suspend_io(device); /* so no-one is stuck in drbd_al_begin_io */
 	wait_event_interruptible(device->state_wait,
drivers/block/drbd/drbd_state.h +1 -2
index b2a390ba73a0..f87371e55e68 100644
@@ -162,8 +162,7 @@ static inline int drbd_request_state(struct drbd_device *device,
 }
 
 /* for use in adm_detach() (drbd_adm_detach(), drbd_adm_down()) */
-enum drbd_state_rv
-drbd_request_detach_interruptible(struct drbd_device *device);
+int drbd_request_detach_interruptible(struct drbd_device *device);
 
 enum drbd_role conn_highest_role(struct drbd_connection *connection);
 enum drbd_role conn_highest_peer(struct drbd_connection *connection);
drivers/block/rsxx/core.c +2 -0
index 34997df132e2..6beafaa335c7 100644
@@ -1025,8 +1025,10 @@ static void rsxx_pci_remove(struct pci_dev *dev)
 
 	cancel_work_sync(&card->event_work);
 
+	destroy_workqueue(card->event_wq);
 	rsxx_destroy_dev(card);
 	rsxx_dma_destroy(card);
+	destroy_workqueue(card->creg_ctrl.creg_wq);
 
 	spin_lock_irqsave(&card->irq_lock, flags);
 	rsxx_disable_ier_and_isr(card, CR_INTR_ALL);
drivers/char/hw_random/omap-rng.c +8 -1
index 25173454efa3..091753765d99 100644
@@ -66,6 +66,13 @@
 #define OMAP4_RNG_OUTPUT_SIZE			0x8
 #define EIP76_RNG_OUTPUT_SIZE			0x10
 
+/*
+ * EIP76 RNG takes approx. 700us to produce 16 bytes of output data
+ * as per testing results. And to account for the lack of udelay()'s
+ * reliability, we keep the timeout as 1000us.
+ */
+#define RNG_DATA_FILL_TIMEOUT			100
+
 enum {
 	RNG_OUTPUT_0_REG = 0,
 	RNG_OUTPUT_1_REG,
@@ -175,7 +182,7 @@ static int omap_rng_do_read(struct hwrng *rng, void *data, size_t max,
 	if (max < priv->pdata->data_size)
 		return 0;
 
-	for (i = 0; i < 20; i++) {
+	for (i = 0; i < RNG_DATA_FILL_TIMEOUT; i++) {
 		present = priv->pdata->data_present(priv);
 		if (present || !wait)
 			break;
drivers/char/ppdev.c +12 -4
index d256110ba672..0023bde4d4ff 100644
@@ -623,20 +623,27 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 		if (copy_from_user(time32, argp, sizeof(time32)))
 			return -EFAULT;
 
+		if ((time32[0] < 0) || (time32[1] < 0))
+			return -EINVAL;
+
 		return pp_set_timeout(pp->pdev, time32[0], time32[1]);
 
 	case PPSETTIME64:
 		if (copy_from_user(time64, argp, sizeof(time64)))
 			return -EFAULT;
 
+		if ((time64[0] < 0) || (time64[1] < 0))
+			return -EINVAL;
+
+		if (IS_ENABLED(CONFIG_SPARC64) && !in_compat_syscall())
+			time64[1] >>= 32;
+
 		return pp_set_timeout(pp->pdev, time64[0], time64[1]);
 
 	case PPGETTIME32:
 		jiffies_to_timespec64(pp->pdev->timeout, &ts);
 		time32[0] = ts.tv_sec;
 		time32[1] = ts.tv_nsec / NSEC_PER_USEC;
-		if ((time32[0] < 0) || (time32[1] < 0))
-			return -EINVAL;
 
 		if (copy_to_user(argp, time32, sizeof(time32)))
 			return -EFAULT;
@@ -647,8 +654,9 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 		jiffies_to_timespec64(pp->pdev->timeout, &ts);
 		time64[0] = ts.tv_sec;
 		time64[1] = ts.tv_nsec / NSEC_PER_USEC;
-		if ((time64[0] < 0) || (time64[1] < 0))
-			return -EINVAL;
+
+		if (IS_ENABLED(CONFIG_SPARC64) && !in_compat_syscall())
+			time64[1] <<= 32;
 
 		if (copy_to_user(argp, time64, sizeof(time64)))
 			return -EFAULT;
drivers/char/tpm/tpm2-cmd.c +4 -0
index 44a3d16231f6..dd64b3b37400 100644
@@ -1029,6 +1029,10 @@ static int tpm2_get_cc_attrs_tbl(struct tpm_chip *chip)
 
 	chip->cc_attrs_tbl = devm_kzalloc(&chip->dev, 4 * nr_commands,
 					  GFP_KERNEL);
+	if (!chip->cc_attrs_tbl) {
+		rc = -ENOMEM;
+		goto out;
+	}
 
 	rc = tpm_buf_init(&buf, TPM2_ST_NO_SESSIONS, TPM2_CC_GET_CAPABILITY);
 	if (rc)
drivers/clk/renesas/r8a77995-cpg-mssr.c +2 -2
index e594cf8ee63b..8434d5530fb1 100644
@@ -141,8 +141,8 @@ static const struct mssr_mod_clk r8a77995_mod_clks[] __initconst = {
 	DEF_MOD("vspbs",		 627,	R8A77995_CLK_S0D1),
 	DEF_MOD("ehci0",		 703,	R8A77995_CLK_S3D2),
 	DEF_MOD("hsusb",		 704,	R8A77995_CLK_S3D2),
-	DEF_MOD("du1",			 723,	R8A77995_CLK_S2D1),
-	DEF_MOD("du0",			 724,	R8A77995_CLK_S2D1),
+	DEF_MOD("du1",			 723,	R8A77995_CLK_S1D1),
+	DEF_MOD("du0",			 724,	R8A77995_CLK_S1D1),
 	DEF_MOD("lvds",			 727,	R8A77995_CLK_S2D1),
 	DEF_MOD("vin7",			 804,	R8A77995_CLK_S1D2),
 	DEF_MOD("vin6",			 805,	R8A77995_CLK_S1D2),
drivers/clk/rockchip/clk-rk3188.c +4 -4
index 2b0d772b4f43..8cdfcd77e3ad 100644
@@ -362,8 +362,8 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = {
 			RK2928_CLKGATE_CON(2), 5, GFLAGS),
 	MUX(SCLK_MAC, "sclk_macref", mux_sclk_macref_p, CLK_SET_RATE_PARENT,
 			RK2928_CLKSEL_CON(21), 4, 1, MFLAGS),
-	GATE(0, "sclk_mac_lbtest", "sclk_macref",
-			RK2928_CLKGATE_CON(2), 12, 0, GFLAGS),
+	GATE(0, "sclk_mac_lbtest", "sclk_macref", 0,
+			RK2928_CLKGATE_CON(2), 12, GFLAGS),
 
 	COMPOSITE(0, "hsadc_src", mux_pll_src_gpll_cpll_p, 0,
 			RK2928_CLKSEL_CON(22), 0, 1, MFLAGS, 8, 8, DFLAGS,
@@ -391,8 +391,8 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = {
 	 * Clock-Architecture Diagram 4
 	 */
 
-	GATE(SCLK_SMC, "sclk_smc", "hclk_peri",
-			RK2928_CLKGATE_CON(2), 4, 0, GFLAGS),
+	GATE(SCLK_SMC, "sclk_smc", "hclk_peri", 0,
+			RK2928_CLKGATE_CON(2), 4, GFLAGS),
 
 	COMPOSITE_NOMUX(SCLK_SPI0, "sclk_spi0", "pclk_peri", 0,
 			RK2928_CLKSEL_CON(25), 0, 7, DFLAGS,
drivers/clk/rockchip/clk-rk3328.c +1 -1
index 33d1cf4e6d80..0e5222d1944b 100644
@@ -392,7 +392,7 @@ static struct rockchip_clk_branch rk3328_clk_branches[] __initdata = {
 			RK3328_CLKGATE_CON(1), 5, GFLAGS,
 			&rk3328_i2s1_fracmux),
 	GATE(SCLK_I2S1, "clk_i2s1", "i2s1_pre", CLK_SET_RATE_PARENT,
-			RK3328_CLKGATE_CON(0), 6, GFLAGS),
+			RK3328_CLKGATE_CON(1), 6, GFLAGS),
 	COMPOSITE_NODIV(SCLK_I2S1_OUT, "i2s1_out", mux_i2s1out_p, 0,
 			RK3328_CLKSEL_CON(8), 12, 1, MFLAGS,
 			RK3328_CLKGATE_CON(1), 7, GFLAGS),
drivers/clk/sunxi-ng/ccu-sun50i-a64.c +1 -1
index 36a30a3cfad7..eaafc038368f 100644
@@ -565,7 +565,7 @@ static const char * const dsi_dphy_parents[] = { "pll-video0", "pll-periph0" };
 static const u8 dsi_dphy_table[] = { 0, 2, };
 static SUNXI_CCU_M_WITH_MUX_TABLE_GATE(dsi_dphy_clk, "dsi-dphy",
 				       dsi_dphy_parents, dsi_dphy_table,
-				       0x168, 0, 4, 8, 2, BIT(31), CLK_SET_RATE_PARENT);
+				       0x168, 0, 4, 8, 2, BIT(15), CLK_SET_RATE_PARENT);
 
 static SUNXI_CCU_M_WITH_GATE(gpu_clk, "gpu", "pll-gpu",
 			     0x1a0, 0, 3, BIT(31), CLK_SET_RATE_PARENT);
drivers/clk/sunxi-ng/ccu-sun8i-h3.c +1 -1
index 1729ff6a5aae..b09acda71abe 100644
@@ -460,7 +460,7 @@ static const char * const csi_sclk_parents[] = { "pll-periph0", "pll-periph1" };
 static SUNXI_CCU_M_WITH_MUX_GATE(csi_sclk_clk, "csi-sclk", csi_sclk_parents,
 				 0x134, 16, 4, 24, 3, BIT(31), 0);
 
-static const char * const csi_mclk_parents[] = { "osc24M", "pll-video", "pll-periph0" };
+static const char * const csi_mclk_parents[] = { "osc24M", "pll-video", "pll-periph1" };
 static SUNXI_CCU_M_WITH_MUX_GATE(csi_mclk_clk, "csi-mclk", csi_mclk_parents,
 				 0x134, 0, 5, 8, 3, BIT(15), 0);
 
drivers/cpufreq/powernv-cpufreq.c +13 -4
index a28bb8f3f395..33854bf127f9 100644
@@ -1002,9 +1002,14 @@ static struct cpufreq_driver powernv_cpufreq_driver = {
 
 static int init_chip_info(void)
 {
-	unsigned int chip[256];
+	unsigned int *chip;
 	unsigned int cpu, i;
 	unsigned int prev_chip_id = UINT_MAX;
+	int ret = 0;
+
+	chip = kcalloc(num_possible_cpus(), sizeof(*chip), GFP_KERNEL);
+	if (!chip)
+		return -ENOMEM;
 
 	for_each_possible_cpu(cpu) {
 		unsigned int id = cpu_to_chip_id(cpu);
@@ -1016,8 +1021,10 @@ static int init_chip_info(void)
 	}
 
 	chips = kcalloc(nr_chips, sizeof(struct chip), GFP_KERNEL);
-	if (!chips)
-		return -ENOMEM;
+	if (!chips) {
+		ret = -ENOMEM;
+		goto free_and_return;
+	}
 
 	for (i = 0; i < nr_chips; i++) {
 		chips[i].id = chip[i];
@@ -1027,7 +1034,9 @@ static int init_chip_info(void)
 			per_cpu(chip_info, cpu) =  &chips[i];
 	}
 
-	return 0;
+free_and_return:
+	kfree(chip);
+	return ret;
 }
 
 static inline void clean_chip_info(void)
drivers/cpuidle/driver.c +7 -8
index dc32f34e68d9..01acd88c4193 100644
@@ -62,24 +62,23 @@ static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv)
  * __cpuidle_set_driver - set per CPU driver variables for the given driver.
  * @drv: a valid pointer to a struct cpuidle_driver
  *
- * For each CPU in the driver's cpumask, unset the registered driver per CPU
- * to @drv.
- *
- * Returns 0 on success, -EBUSY if the CPUs have driver(s) already.
+ * Returns 0 on success, -EBUSY if any CPU in the cpumask have a driver
+ * different from drv already.
  */
 static inline int __cpuidle_set_driver(struct cpuidle_driver *drv)
 {
 	int cpu;
 
 	for_each_cpu(cpu, drv->cpumask) {
+		struct cpuidle_driver *old_drv;
 
-		if (__cpuidle_get_cpu_driver(cpu)) {
-			__cpuidle_unset_driver(drv);
+		old_drv = __cpuidle_get_cpu_driver(cpu);
+		if (old_drv && old_drv != drv)
 			return -EBUSY;
-		}
+	}
 
+	for_each_cpu(cpu, drv->cpumask)
 		per_cpu(cpuidle_drivers, cpu) = drv;
-	}
 
 	return 0;
 }
drivers/crypto/amcc/crypto4xx_core.c +1 -5
index 8d4d8db244e9..d1d041de7f8a 100644
@@ -399,12 +399,8 @@ static u32 crypto4xx_build_sdr(struct crypto4xx_device *dev)
 		dma_alloc_coherent(dev->core_dev->device,
 			dev->scatter_buffer_size * PPC4XX_NUM_SD,
 			&dev->scatter_buffer_pa, GFP_ATOMIC);
-	if (!dev->scatter_buffer_va) {
-		dma_free_coherent(dev->core_dev->device,
-				  sizeof(struct ce_sd) * PPC4XX_NUM_SD,
-				  dev->sdr, dev->sdr_pa);
+	if (!dev->scatter_buffer_va)
 		return -ENOMEM;
-	}
 
 	sd_array = dev->sdr;
 
drivers/crypto/bcm/cipher.c +5 -1
index b6be383a51a6..84422435f39b 100644
@@ -4637,12 +4637,16 @@ static int spu_register_ahash(struct iproc_alg_s *driver_alg)
 	hash->halg.statesize = sizeof(struct spu_hash_export_s);
 
 	if (driver_alg->auth_info.mode != HASH_MODE_HMAC) {
-		hash->setkey = ahash_setkey;
 		hash->init = ahash_init;
 		hash->update = ahash_update;
 		hash->final = ahash_final;
 		hash->finup = ahash_finup;
 		hash->digest = ahash_digest;
+		if ((driver_alg->auth_info.alg == HASH_ALG_AES) &&
+		    ((driver_alg->auth_info.mode == HASH_MODE_XCBC) ||
+		    (driver_alg->auth_info.mode == HASH_MODE_CMAC))) {
+			hash->setkey = ahash_setkey;
+		}
 	} else {
 		hash->setkey = ahash_hmac_setkey;
 		hash->init = ahash_hmac_init;
drivers/crypto/ccp/ccp-dmaengine.c +1 -0
index d608043c0280..df82af3dd970 100644
@@ -341,6 +341,7 @@ static struct ccp_dma_desc *ccp_alloc_dma_desc(struct ccp_dma_chan *chan,
 	desc->tx_desc.flags = flags;
 	desc->tx_desc.tx_submit = ccp_tx_submit;
 	desc->ccp = chan->ccp;
+	INIT_LIST_HEAD(&desc->entry);
 	INIT_LIST_HEAD(&desc->pending);
 	INIT_LIST_HEAD(&desc->active);
 	desc->status = DMA_IN_PROGRESS;
drivers/devfreq/devfreq.c +9 -3
index 8a411514a7c5..dc9c0032c97b 100644
@@ -133,6 +133,7 @@ int devfreq_update_status(struct devfreq *devfreq, unsigned long freq)
 	int lev, prev_lev, ret = 0;
 	unsigned long cur_time;
 
+	lockdep_assert_held(&devfreq->lock);
 	cur_time = jiffies;
 
 	/* Immediately exit if previous_freq is not initialized yet. */
@@ -1161,12 +1162,17 @@ static ssize_t trans_stat_show(struct device *dev,
 	int i, j;
 	unsigned int max_state = devfreq->profile->max_state;
 
-	if (!devfreq->stop_polling &&
-			devfreq_update_status(devfreq, devfreq->previous_freq))
-		return 0;
 	if (max_state == 0)
 		return sprintf(buf, "Not Supported.\n");
 
+	mutex_lock(&devfreq->lock);
+	if (!devfreq->stop_polling &&
+			devfreq_update_status(devfreq, devfreq->previous_freq)) {
+		mutex_unlock(&devfreq->lock);
+		return 0;
+	}
+	mutex_unlock(&devfreq->lock);
+
 	len = sprintf(buf, "     From  :   To\n");
 	len += sprintf(buf + len, "           :");
 	for (i = 0; i < max_state; i++)
drivers/dma/coh901318.c +0 -5
index 74794c9859f6..6d7d2d54eacf 100644
@@ -1797,13 +1797,10 @@ static struct dma_chan *coh901318_xlate(struct of_phandle_args *dma_spec,
 static int coh901318_config(struct coh901318_chan *cohc,
 			    struct coh901318_params *param)
 {
-	unsigned long flags;
 	const struct coh901318_params *p;
 	int channel = cohc->id;
 	void __iomem *virtbase = cohc->base->virtbase;
 
-	spin_lock_irqsave(&cohc->lock, flags);
-
 	if (param)
 		p = param;
 	else
@@ -1823,8 +1820,6 @@ static int coh901318_config(struct coh901318_chan *cohc,
 	coh901318_set_conf(cohc, p->config);
 	coh901318_set_ctrl(cohc, p->ctrl_lli_last);
 
-	spin_unlock_irqrestore(&cohc->lock, flags);
-
 	return 0;
 }
 
drivers/dma/dw/core.c +2 -0
index 0f389e008ce6..055d83b6cb68 100644
@@ -160,12 +160,14 @@ static void dwc_initialize_chan_idma32(struct dw_dma_chan *dwc)
 
 static void dwc_initialize_chan_dw(struct dw_dma_chan *dwc)
 {
+	struct dw_dma *dw = to_dw_dma(dwc->chan.device);
 	u32 cfghi = DWC_CFGH_FIFO_MODE;
 	u32 cfglo = DWC_CFGL_CH_PRIOR(dwc->priority);
 	bool hs_polarity = dwc->dws.hs_polarity;
 
 	cfghi |= DWC_CFGH_DST_PER(dwc->dws.dst_id);
 	cfghi |= DWC_CFGH_SRC_PER(dwc->dws.src_id);
+	cfghi |= DWC_CFGH_PROTCTL(dw->pdata->protctl);
 
 	/* Set polarity of handshake interface */
 	cfglo |= hs_polarity ? DWC_CFGL_HS_DST_POL | DWC_CFGL_HS_SRC_POL : 0;
drivers/dma/dw/platform.c +6 -0
index bc31fe802061..46a519e07195 100644
@@ -162,6 +162,12 @@ dw_dma_parse_dt(struct platform_device *pdev)
 			pdata->multi_block[tmp] = 1;
 	}
 
+	if (!of_property_read_u32(np, "snps,dma-protection-control", &tmp)) {
+		if (tmp > CHAN_PROTCTL_MASK)
+			return NULL;
+		pdata->protctl = tmp;
+	}
+
 	return pdata;
 }
 #else
drivers/dma/dw/regs.h +4 -0
index 09e7dfdbb790..646c9c960c07 100644
@@ -200,6 +200,10 @@ enum dw_dma_msize {
 #define DWC_CFGH_FCMODE		(1 << 0)
 #define DWC_CFGH_FIFO_MODE	(1 << 1)
 #define DWC_CFGH_PROTCTL(x)	((x) << 2)
+#define DWC_CFGH_PROTCTL_DATA	(0 << 2)	/* data access - always set */
+#define DWC_CFGH_PROTCTL_PRIV	(1 << 2)	/* privileged -> AHB HPROT[1] */
+#define DWC_CFGH_PROTCTL_BUFFER	(2 << 2)	/* bufferable -> AHB HPROT[2] */
+#define DWC_CFGH_PROTCTL_CACHE	(4 << 2)	/* cacheable  -> AHB HPROT[3] */
 #define DWC_CFGH_DS_UPD_EN	(1 << 5)
 #define DWC_CFGH_SS_UPD_EN	(1 << 6)
 #define DWC_CFGH_SRC_PER(x)	((x) << 7)
drivers/extcon/extcon-max8997.c +4 -6
index 4a0612fb9c07..b9b48d45a6dc 100644
@@ -321,12 +321,10 @@ static int max8997_muic_handle_usb(struct max8997_muic_info *info,
 {
 	int ret = 0;
 
-	if (usb_type == MAX8997_USB_HOST) {
-		ret = max8997_muic_set_path(info, info->path_usb, attached);
-		if (ret < 0) {
-			dev_err(info->dev, "failed to update muic register\n");
-			return ret;
-		}
+	ret = max8997_muic_set_path(info, info->path_usb, attached);
+	if (ret < 0) {
+		dev_err(info->dev, "failed to update muic register\n");
+		return ret;
 	}
 
 	switch (usb_type) {
drivers/firmware/qcom_scm-64.c +1 -1
index 6e6d561708e2..e9001075f676 100644
@@ -158,7 +158,7 @@ static int qcom_scm_call(struct device *dev, u32 svc_id, u32 cmd_id,
 		kfree(args_virt);
 	}
 
-	if (res->a0 < 0)
+	if ((long)res->a0 < 0)
 		return qcom_scm_remap_error(res->a0);
 
 	return 0;
drivers/gpio/gpiolib-acpi.c +17 -0
index 715babaa886a..3aa7fe6baf2a 100644
@@ -1314,11 +1314,28 @@ late_initcall_sync(acpi_gpio_handle_deferred_request_irqs);
 
 static const struct dmi_system_id run_edge_events_on_boot_blacklist[] = {
 	{
+		/*
+		 * The Minix Neo Z83-4 has a micro-USB-B id-pin handler for
+		 * a non existing micro-USB-B connector which puts the HDMI
+		 * DDC pins in GPIO mode, breaking HDMI support.
+		 */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "MINIX"),
 			DMI_MATCH(DMI_PRODUCT_NAME, "Z83-4"),
 		}
 	},
+	{
+		/*
+		 * The Terra Pad 1061 has a micro-USB-B id-pin handler, which
+		 * instead of controlling the actual micro-USB-B turns the 5V
+		 * boost for its USB-A connector off. The actual micro-USB-B
+		 * connector is wired for charging only.
+		 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Wortmann_AG"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "TERRA_PAD_1061"),
+		}
+	},
 	{} /* Terminating entry */
 };
 
drivers/gpu/drm/i810/i810_dma.c +2 -2
index 576a417690d4..128d6cfb7bbb 100644
@@ -721,7 +721,7 @@ static void i810_dma_dispatch_vertex(struct drm_device *dev,
 	if (nbox > I810_NR_SAREA_CLIPRECTS)
 		nbox = I810_NR_SAREA_CLIPRECTS;
 
-	if (used > 4 * 1024)
+	if (used < 0 || used > 4 * 1024)
 		used = 0;
 
 	if (sarea_priv->dirty)
@@ -1041,7 +1041,7 @@ static void i810_dma_dispatch_mc(struct drm_device *dev, struct drm_buf *buf, in
 	if (u != I810_BUF_CLIENT)
 		DRM_DEBUG("MC found buffer that isn't mine!\n");
 
-	if (used > 4 * 1024)
+	if (used < 0 || used > 4 * 1024)
 		used = 0;
 
 	sarea_priv->dirty = 0x7f;
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c +13 -8
index 4e6eab53e34e..2f021c1a2fa6 100644
@@ -667,10 +667,13 @@ static ssize_t cyc_threshold_store(struct device *dev,
 
 	if (kstrtoul(buf, 16, &val))
 		return -EINVAL;
+
+	/* mask off max threshold before checking min value */
+	val &= ETM_CYC_THRESHOLD_MASK;
 	if (val < drvdata->ccitmin)
 		return -EINVAL;
 
-	config->ccctlr = val & ETM_CYC_THRESHOLD_MASK;
+	config->ccctlr = val;
 	return size;
 }
 static DEVICE_ATTR_RW(cyc_threshold);
@@ -701,14 +704,16 @@ static ssize_t bb_ctrl_store(struct device *dev,
 		return -EINVAL;
 	if (!drvdata->nr_addr_cmp)
 		return -EINVAL;
+
 	/*
-	 * Bit[7:0] selects which address range comparator is used for
-	 * branch broadcast control.
+	 * Bit[8] controls include(1) / exclude(0), bits[0-7] select
+	 * individual range comparators. If include then at least 1
+	 * range must be selected.
 	 */
-	if (BMVAL(val, 0, 7) > drvdata->nr_addr_cmp)
+	if ((val & BIT(8)) && (BMVAL(val, 0, 7) == 0))
 		return -EINVAL;
 
-	config->bb_ctrl = val;
+	config->bb_ctrl = val & GENMASK(8, 0);
 	return size;
 }
 static DEVICE_ATTR_RW(bb_ctrl);
@@ -1341,8 +1346,8 @@ static ssize_t seq_event_store(struct device *dev,
 
 	spin_lock(&drvdata->spinlock);
 	idx = config->seq_idx;
-	/* RST, bits[7:0] */
-	config->seq_ctrl[idx] = val & 0xFF;
+	/* Seq control has two masks B[15:8] F[7:0] */
+	config->seq_ctrl[idx] = val & 0xFFFF;
 	spin_unlock(&drvdata->spinlock);
 	return size;
 }
@@ -1597,7 +1602,7 @@ static ssize_t res_ctrl_store(struct device *dev,
 	if (idx % 2 != 0)
 		/* PAIRINV, bit[21] */
 		val &= ~BIT(21);
-	config->res_ctrl[idx] = val;
+	config->res_ctrl[idx] = val & GENMASK(21, 0);
 	spin_unlock(&drvdata->spinlock);
 	return size;
 }
drivers/hwtracing/intel_th/core.c +2 -6
index 757801d27604..6a451b4fc04d 100644
@@ -628,10 +628,8 @@ intel_th_subdevice_alloc(struct intel_th *th,
 	}
 
 	err = intel_th_device_add_resources(thdev, res, subdev->nres);
-	if (err) {
-		put_device(&thdev->dev);
+	if (err)
 		goto fail_put_device;
-	}
 
 	if (subdev->type == INTEL_TH_OUTPUT) {
 		thdev->dev.devt = MKDEV(th->major, th->num_thdevs);
@@ -644,10 +642,8 @@ intel_th_subdevice_alloc(struct intel_th *th,
 	}
 
 	err = device_add(&thdev->dev);
-	if (err) {
-		put_device(&thdev->dev);
+	if (err)
 		goto fail_free_res;
-	}
 
 	/* need switch driver to be loaded to enumerate the rest */
 	if (subdev->type == INTEL_TH_SWITCH && !req) {
drivers/hwtracing/intel_th/pci.c +10 -0
index 7486d5d67186..c224b92a80f1 100644
@@ -193,6 +193,16 @@ static const struct pci_device_id intel_th_pci_id_table[] = {
 		PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x45c5),
 		.driver_data = (kernel_ulong_t)&intel_th_2x,
 	},
+	{
+		/* Ice Lake CPU */
+		PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x8a29),
+		.driver_data = (kernel_ulong_t)&intel_th_2x,
+	},
+	{
+		/* Tiger Lake CPU */
+		PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x9a33),
+		.driver_data = (kernel_ulong_t)&intel_th_2x,
+	},
 	{
 		/* Tiger Lake PCH */
 		PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xa0a6),
drivers/i2c/busses/i2c-imx.c +2 -1
index b73dd837fb53..26f83029f64a 100644
@@ -1088,7 +1088,8 @@ static int i2c_imx_probe(struct platform_device *pdev)
 	/* Get I2C clock */
 	i2c_imx->clk = devm_clk_get(&pdev->dev, NULL);
 	if (IS_ERR(i2c_imx->clk)) {
-		dev_err(&pdev->dev, "can't get I2C clock\n");
+		if (PTR_ERR(i2c_imx->clk) != -EPROBE_DEFER)
+			dev_err(&pdev->dev, "can't get I2C clock\n");
 		return PTR_ERR(i2c_imx->clk);
 	}
 
drivers/i2c/i2c-core-of.c +2 -2
index 8d474bb1dc15..17d727e0b842 100644
@@ -238,14 +238,14 @@ static int of_i2c_notify(struct notifier_block *nb, unsigned long action,
 		}
 
 		client = of_i2c_register_device(adap, rd->dn);
-		put_device(&adap->dev);
-
 		if (IS_ERR(client)) {
 			dev_err(&adap->dev, "failed to create client for '%pOF'\n",
 				 rd->dn);
+			put_device(&adap->dev);
 			of_node_clear_flag(rd->dn, OF_POPULATED);
 			return notifier_from_errno(PTR_ERR(client));
 		}
+		put_device(&adap->dev);
 		break;
 	case OF_RECONFIG_CHANGE_REMOVE:
 		/* already depopulated? */
drivers/iio/humidity/hdc100x.c +1 -1
index 7851bd90ef64..b470cb8132da 100644
@@ -237,7 +237,7 @@ static int hdc100x_read_raw(struct iio_dev *indio_dev,
 			*val2 = 65536;
 			return IIO_VAL_FRACTIONAL;
 		} else {
-			*val = 100;
+			*val = 100000;
 			*val2 = 65536;
 			return IIO_VAL_FRACTIONAL;
 		}
drivers/iio/imu/adis16480.c +1 -0
index 6f975538996c..c950aa10d0ae 100644
@@ -724,6 +724,7 @@ static const struct iio_info adis16480_info = {
 	.write_raw = &adis16480_write_raw,
 	.update_scan_mode = adis_update_scan_mode,
 	.driver_module = THIS_MODULE,
+	.debugfs_reg_access = adis_debugfs_reg_access,
 };
 
 static int adis16480_stop_device(struct iio_dev *indio_dev)
drivers/infiniband/hw/hfi1/chip.c +46 -1

77 lines not on this page · raw message

drivers/infiniband/hw/hfi1/vnic_sdma.c +5 -10
index c3c96c5869ed..718dcdef946e 100644
@@ -57,7 +57,6 @@
 
 #define HFI1_VNIC_TXREQ_NAME_LEN   32
 #define HFI1_VNIC_SDMA_DESC_WTRMRK 64
-#define HFI1_VNIC_SDMA_RETRY_COUNT 1
 
 /*
  * struct vnic_txreq - VNIC transmit descriptor
@@ -67,7 +66,6 @@
  * @pad: pad buffer
  * @plen: pad length
  * @pbc_val: pbc value
- * @retry_count: tx retry count
  */
 struct vnic_txreq {
 	struct sdma_txreq       txreq;
@@ -77,8 +75,6 @@ struct vnic_txreq {
 	unsigned char           pad[HFI1_VNIC_MAX_PAD];
 	u16                     plen;
 	__le64                  pbc_val;
-
-	u32                     retry_count;
 };
 
 static void vnic_sdma_complete(struct sdma_txreq *txreq,
@@ -196,7 +192,6 @@ int hfi1_vnic_send_dma(struct hfi1_devdata *dd, u8 q_idx,
 	ret = build_vnic_tx_desc(sde, tx, pbc);
 	if (unlikely(ret))
 		goto free_desc;
-	tx->retry_count = 0;
 
 	ret = sdma_send_txreq(sde, &vnic_sdma->wait, &tx->txreq,
 			      vnic_sdma->pkts_sent);
@@ -238,14 +233,14 @@ static int hfi1_vnic_sdma_sleep(struct sdma_engine *sde,
 	struct hfi1_vnic_sdma *vnic_sdma =
 		container_of(wait, struct hfi1_vnic_sdma, wait);
 	struct hfi1_ibdev *dev = &vnic_sdma->dd->verbs_dev;
-	struct vnic_txreq *tx = container_of(txreq, struct vnic_txreq, txreq);
 
-	if (sdma_progress(sde, seq, txreq))
-		if (tx->retry_count++ < HFI1_VNIC_SDMA_RETRY_COUNT)
-			return -EAGAIN;
+	write_seqlock(&dev->iowait_lock);
+	if (sdma_progress(sde, seq, txreq)) {
+		write_sequnlock(&dev->iowait_lock);
+		return -EAGAIN;
+	}
 
 	vnic_sdma->state = HFI1_VNIC_SDMA_Q_DEFERRED;
-	write_seqlock(&dev->iowait_lock);
 	if (list_empty(&vnic_sdma->wait.list))
 		iowait_queue(pkts_sent, wait, &sde->dmawait);
 	write_sequnlock(&dev->iowait_lock);
drivers/infiniband/hw/hns/hns_roce_hem.h +1 -1
index 435748858252..8e8917ebb013 100644
@@ -52,7 +52,7 @@ enum {
 
 #define HNS_ROCE_HEM_CHUNK_LEN	\
 	 ((256 - sizeof(struct list_head) - 2 * sizeof(int)) /	 \
-	 (sizeof(struct scatterlist)))
+	 (sizeof(struct scatterlist) + sizeof(void *)))
 
 enum {
 	 HNS_ROCE_HEM_PAGE_SHIFT = 12,
drivers/infiniband/hw/mlx4/sysfs.c +4 -8
index e219093d2764..d2da28d613f2 100644
@@ -353,16 +353,12 @@ static int add_port_entries(struct mlx4_ib_dev *device, int port_num)
 
 static void get_name(struct mlx4_ib_dev *dev, char *name, int i, int max)
 {
-	char base_name[9];
-
-	/* pci_name format is: bus:dev:func -> xxxx:yy:zz.n */
-	strlcpy(name, pci_name(dev->dev->persist->pdev), max);
-	strncpy(base_name, name, 8); /*till xxxx:yy:*/
-	base_name[8] = '\0';
-	/* with no ARI only 3 last bits are used so when the fn is higher than 8
+	/* pci_name format is: bus:dev:func -> xxxx:yy:zz.n
+	 * with no ARI only 3 last bits are used so when the fn is higher than 8
 	 * need to add it to the dev num, so count in the last number will be
 	 * modulo 8 */
-	sprintf(name, "%s%.2d.%d", base_name, (i/8), (i%8));
+	snprintf(name, max, "%.8s%.2d.%d", pci_name(dev->dev->persist->pdev),
+		 i / 8, i % 8);
 }
 
 struct mlx4_port {
drivers/infiniband/hw/qib/qib_sysfs.c +6 -0
index ca2638d8f35e..d831f3e61ae8 100644
@@ -301,6 +301,9 @@ static ssize_t qib_portattr_show(struct kobject *kobj,
 	struct qib_pportdata *ppd =
 		container_of(kobj, struct qib_pportdata, pport_kobj);
 
+	if (!pattr->show)
+		return -EIO;
+
 	return pattr->show(ppd, buf);
 }
 
@@ -312,6 +315,9 @@ static ssize_t qib_portattr_store(struct kobject *kobj,
 	struct qib_pportdata *ppd =
 		container_of(kobj, struct qib_pportdata, pport_kobj);
 
+	if (!pattr->store)
+		return -EIO;
+
 	return pattr->store(ppd, buf, len);
 }
 
drivers/input/joystick/psxpad-spi.c +1 -1
index 28b473f6cbb6..092096ee06b9 100644
@@ -292,7 +292,7 @@ static int psxpad_spi_probe(struct spi_device *spi)
 	if (!pad)
 		return -ENOMEM;
 
-	pdev = input_allocate_polled_device();
+	pdev = devm_input_allocate_polled_device(&spi->dev);
 	if (!pdev) {
 		dev_err(&spi->dev, "failed to allocate input device\n");
 		return -ENOMEM;
drivers/input/mouse/synaptics.c +1 -0
index 7db53eab7012..111a71190547 100644
@@ -175,6 +175,7 @@ static const char * const smbus_pnp_ids[] = {
 	"LEN0071", /* T480 */
 	"LEN0072", /* X1 Carbon Gen 5 (2017) - Elan/ALPS trackpoint */
 	"LEN0073", /* X1 Carbon G5 (Elantech) */
+	"LEN0091", /* X1 Carbon 6 */
 	"LEN0092", /* X1 Carbon 6 */
 	"LEN0093", /* T480 */
 	"LEN0096", /* X280 */
drivers/input/rmi4/rmi_f34v7.c +3 -0
index 3991d2943660..099dde68e332 100644
@@ -1192,6 +1192,9 @@ int rmi_f34v7_do_reflash(struct f34_data *f34, const struct firmware *fw)
 {
 	int ret;
 
+	f34->fn->rmi_dev->driver->set_irq_bits(f34->fn->rmi_dev,
+					       f34->fn->irq_mask);
+
 	rmi_f34v7_read_queries_bl_version(f34);
 
 	f34->v7.image = fw->data;
drivers/input/rmi4/rmi_smbus.c +0 -2
index b6ccf39c6a7b..4b2466cf2fb1 100644
@@ -166,7 +166,6 @@ static int rmi_smb_write_block(struct rmi_transport_dev *xport, u16 rmiaddr,
 		/* prepare to write next block of bytes */
 		cur_len -= SMB_MAX_COUNT;
 		databuff += SMB_MAX_COUNT;
-		rmiaddr += SMB_MAX_COUNT;
 	}
 exit:
 	mutex_unlock(&rmi_smb->page_mutex);
@@ -218,7 +217,6 @@ static int rmi_smb_read_block(struct rmi_transport_dev *xport, u16 rmiaddr,
 		/* prepare to read next block of bytes */
 		cur_len -= SMB_MAX_COUNT;
 		databuff += SMB_MAX_COUNT;
-		rmiaddr += SMB_MAX_COUNT;
 	}
 
 	retval = 0;
drivers/input/touchscreen/cyttsp4_core.c +0 -7
index beaf61ce775b..a9af83de88bb 100644
@@ -1972,11 +1972,6 @@ static int cyttsp4_mt_probe(struct cyttsp4 *cd)
 
 	/* get sysinfo */
 	md->si = &cd->sysinfo;
-	if (!md->si) {
-		dev_err(dev, "%s: Fail get sysinfo pointer from core p=%p\n",
-			__func__, md->si);
-		goto error_get_sysinfo;
-	}
 
 	rc = cyttsp4_setup_input_device(cd);
 	if (rc)
@@ -1986,8 +1981,6 @@ static int cyttsp4_mt_probe(struct cyttsp4 *cd)
 
 error_init_input:
 	input_free_device(md->input);
-error_get_sysinfo:
-	input_set_drvdata(md->input, NULL);
 error_alloc_failed:
 	dev_err(dev, "%s failed.\n", __func__);
 	return rc;
drivers/input/touchscreen/goodix.c +9 -0
index 2bfa89ec552c..777dd5b159d3 100644
@@ -92,6 +92,15 @@ static const unsigned long goodix_irq_flags[] = {
  */
 static const struct dmi_system_id rotated_screen[] = {
 #if defined(CONFIG_DMI) && defined(CONFIG_X86)
+	{
+		.ident = "Teclast X89",
+		.matches = {
+			/* tPAD is too generic, also match on bios date */
+			DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
+			DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
+			DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
+		},
+	},
 	{
 		.ident = "WinBook TW100",
 		.matches = {
drivers/isdn/gigaset/usb-gigaset.c +18 -5
index eade36dafa34..4c239f18240d 100644
@@ -574,8 +574,7 @@ static int gigaset_initcshw(struct cardstate *cs)
 {
 	struct usb_cardstate *ucs;
 
-	cs->hw.usb = ucs =
-		kmalloc(sizeof(struct usb_cardstate), GFP_KERNEL);
+	cs->hw.usb = ucs = kzalloc(sizeof(struct usb_cardstate), GFP_KERNEL);
 	if (!ucs) {
 		pr_err("out of memory\n");
 		return -ENOMEM;
@@ -587,9 +586,6 @@ static int gigaset_initcshw(struct cardstate *cs)
 	ucs->bchars[3] = 0;
 	ucs->bchars[4] = 0x11;
 	ucs->bchars[5] = 0x13;
-	ucs->bulk_out_buffer = NULL;
-	ucs->bulk_out_urb = NULL;
-	ucs->read_urb = NULL;
 	tasklet_init(&cs->write_tasklet,
 		     gigaset_modem_fill, (unsigned long) cs);
 
@@ -688,6 +684,11 @@ static int gigaset_probe(struct usb_interface *interface,
 		return -ENODEV;
 	}
 
+	if (hostif->desc.bNumEndpoints < 2) {
+		dev_err(&interface->dev, "missing endpoints\n");
+		return -ENODEV;
+	}
+
 	dev_info(&udev->dev, "%s: Device matched ... !\n", __func__);
 
 	/* allocate memory for our device state and initialize it */
@@ -707,6 +708,12 @@ static int gigaset_probe(struct usb_interface *interface,
 
 	endpoint = &hostif->endpoint[0].desc;
 
+	if (!usb_endpoint_is_bulk_out(endpoint)) {
+		dev_err(&interface->dev, "missing bulk-out endpoint\n");
+		retval = -ENODEV;
+		goto error;
+	}
+
 	buffer_size = le16_to_cpu(endpoint->wMaxPacketSize);
 	ucs->bulk_out_size = buffer_size;
 	ucs->bulk_out_epnum = usb_endpoint_num(endpoint);
@@ -726,6 +733,12 @@ static int gigaset_probe(struct usb_interface *interface,
 
 	endpoint = &hostif->endpoint[1].desc;
 
+	if (!usb_endpoint_is_int_in(endpoint)) {
+		dev_err(&interface->dev, "missing int-in endpoint\n");
+		retval = -ENODEV;
+		goto error;
+	}
+
 	ucs->busy = 0;
 
 	ucs->read_urb = usb_alloc_urb(0, GFP_KERNEL);
drivers/md/dm-zoned-metadata.c +19 -10
index b322821a6323..9b78f4a74a12 100644
@@ -552,6 +552,7 @@ static struct dmz_mblock *dmz_get_mblock(struct dmz_metadata *zmd,
 		       TASK_UNINTERRUPTIBLE);
 	if (test_bit(DMZ_META_ERROR, &mblk->state)) {
 		dmz_release_mblock(zmd, mblk);
+		dmz_check_bdev(zmd->dev);
 		return ERR_PTR(-EIO);
 	}
 
@@ -623,6 +624,8 @@ static int dmz_rdwr_block(struct dmz_metadata *zmd, int op, sector_t block,
 	ret = submit_bio_wait(bio);
 	bio_put(bio);
 
+	if (ret)
+		dmz_check_bdev(zmd->dev);
 	return ret;
 }
 
@@ -689,6 +692,7 @@ static int dmz_write_dirty_mblocks(struct dmz_metadata *zmd,
 			       TASK_UNINTERRUPTIBLE);
 		if (test_bit(DMZ_META_ERROR, &mblk->state)) {
 			clear_bit(DMZ_META_ERROR, &mblk->state);
+			dmz_check_bdev(zmd->dev);
 			ret = -EIO;
 		}
 		nr_mblks_submitted--;
@@ -766,7 +770,7 @@ int dmz_flush_metadata(struct dmz_metadata *zmd)
 	/* If there are no dirty metadata blocks, just flush the device cache */
 	if (list_empty(&write_list)) {
 		ret = blkdev_issue_flush(zmd->dev->bdev, GFP_NOIO, NULL);
-		goto out;
+		goto err;
 	}
 
 	/*
@@ -776,7 +780,7 @@ int dmz_flush_metadata(struct dmz_metadata *zmd)
 	 */
 	ret = dmz_log_dirty_mblocks(zmd, &write_list);
 	if (ret)
-		goto out;
+		goto err;
 
 	/*
 	 * The log is on disk. It is now safe to update in place
@@ -784,11 +788,11 @@ int dmz_flush_metadata(struct dmz_metadata *zmd)
 	 */
 	ret = dmz_write_dirty_mblocks(zmd, &write_list, zmd->mblk_primary);
 	if (ret)
-		goto out;
+		goto err;
 
 	ret = dmz_write_sb(zmd, zmd->mblk_primary);
 	if (ret)
-		goto out;
+		goto err;
 
 	while (!list_empty(&write_list)) {
 		mblk = list_first_entry(&write_list, struct dmz_mblock, link);
@@ -803,16 +807,20 @@ int dmz_flush_metadata(struct dmz_metadata *zmd)
 
 	zmd->sb_gen++;
 out:
-	if (ret && !list_empty(&write_list)) {
-		spin_lock(&zmd->mblk_lock);
-		list_splice(&write_list, &zmd->mblk_dirty_list);
-		spin_unlock(&zmd->mblk_lock);
-	}
-
 	dmz_unlock_flush(zmd);
 	up_write(&zmd->mblk_sem);
 
 	return ret;
+
+err:
+	if (!list_empty(&write_list)) {
+		spin_lock(&zmd->mblk_lock);
+		list_splice(&write_list, &zmd->mblk_dirty_list);
+		spin_unlock(&zmd->mblk_lock);
+	}
+	if (!dmz_check_bdev(zmd->dev))
+		ret = -EIO;
+	goto out;
 }
 
 /*
@@ -1235,6 +1243,7 @@ static int dmz_update_zone(struct dmz_metadata *zmd, struct dm_zone *zone)
 	if (ret) {
 		dmz_dev_err(zmd->dev, "Get zone %u report failed",
 			    dmz_id(zmd, zone));
+		dmz_check_bdev(zmd->dev);
 		return ret;
 	}
 
drivers/md/dm-zoned-reclaim.c +2 -6
index a9f84a998476..2fad512dce98 100644
@@ -81,6 +81,7 @@ static int dmz_reclaim_align_wp(struct dmz_reclaim *zrc, struct dm_zone *zone,
 			    "Align zone %u wp %llu to %llu (wp+%u) blocks failed %d",
 			    dmz_id(zmd, zone), (unsigned long long)wp_block,
 			    (unsigned long long)block, nr_blocks, ret);
+		dmz_check_bdev(zrc->dev);
 		return ret;
 	}
 
@@ -490,12 +491,7 @@ static void dmz_reclaim_work(struct work_struct *work)
 	ret = dmz_do_reclaim(zrc);
 	if (ret) {
 		dmz_dev_debug(zrc->dev, "Reclaim error %d\n", ret);
-		if (ret == -EIO)
-			/*
-			 * LLD might be performing some error handling sequence
-			 * at the underlying device. To not interfere, do not
-			 * attempt to schedule the next reclaim run immediately.
-			 */
+		if (!dmz_check_bdev(zrc->dev))
 			return;
 	}
 
drivers/md/dm-zoned-target.c +38 -16

83 lines not on this page · raw message

drivers/md/dm-zoned.h +2 -0
index 93a64529f219..2662746ba8b9 100644
@@ -71,6 +71,7 @@ struct dmz_dev {
 
 /* Device flags. */
 #define DMZ_BDEV_DYING		(1 << 0)
+#define DMZ_CHECK_BDEV		(2 << 0)
 
 /*
  * Zone descriptor.
@@ -254,5 +255,6 @@ void dmz_schedule_reclaim(struct dmz_reclaim *zrc);
  * Functions defined in dm-zoned-target.c
  */
 bool dmz_bdev_is_dying(struct dmz_dev *dmz_dev);
+bool dmz_check_bdev(struct dmz_dev *dmz_dev);
 
 #endif /* DM_ZONED_H */
drivers/md/raid0.c +1 -1
index 449c4dd060fc..204adde004a3 100644
@@ -616,7 +616,7 @@ static bool raid0_make_request(struct mddev *mddev, struct bio *bio)
 		tmp_dev = map_sector(mddev, zone, sector, &sector);
 		break;
 	default:
-		WARN("md/raid0:%s: Invalid layout\n", mdname(mddev));
+		WARN(1, "md/raid0:%s: Invalid layout\n", mdname(mddev));
 		bio_io_error(bio);
 		return true;
 	}
drivers/md/raid5.c +1 -1
index 4c49bed40f1f..d5c14d56a714 100644
@@ -5721,7 +5721,7 @@ static bool raid5_make_request(struct mddev *mddev, struct bio * bi)
 				do_flush = false;
 			}
 
-			if (!sh->batch_head)
+			if (!sh->batch_head || sh == sh->batch_head)
 				set_bit(STRIPE_HANDLE, &sh->state);
 			clear_bit(STRIPE_DELAYED, &sh->state);
 			if ((!sh->batch_head || sh == sh->batch_head) &&
drivers/media/cec/cec-adap.c +7 -0
index f8a808d45034..27e57915eb4d 100644
@@ -1403,6 +1403,13 @@ static int cec_config_thread_func(void *arg)
 			las->log_addr[i],
 			cec_phys_addr_exp(adap->phys_addr));
 		cec_transmit_msg_fh(adap, &msg, NULL, false);
+
+		/* Report Vendor ID */
+		if (adap->log_addrs.vendor_id != CEC_VENDOR_ID_NONE) {
+			cec_msg_device_vendor_id(&msg,
+						 adap->log_addrs.vendor_id);
+			cec_transmit_msg_fh(adap, &msg, NULL, false);
+		}
 	}
 	adap->kthread_config = NULL;
 	complete(&adap->config_completion);
drivers/media/platform/qcom/venus/vdec.c +0 -3
index c9e9576bb08a..5f0965593a0d 100644
@@ -1060,9 +1060,6 @@ static const struct v4l2_file_operations vdec_fops = {
 	.unlocked_ioctl = video_ioctl2,
 	.poll = v4l2_m2m_fop_poll,
 	.mmap = v4l2_m2m_fop_mmap,
-#ifdef CONFIG_COMPAT
-	.compat_ioctl32 = v4l2_compat_ioctl32,
-#endif
 };
 
 static int vdec_probe(struct platform_device *pdev)
drivers/media/platform/qcom/venus/venc.c +0 -3
index 3fcf0e9b7b29..a8af4a09485e 100644
@@ -1166,9 +1166,6 @@ static const struct v4l2_file_operations venc_fops = {
 	.unlocked_ioctl = video_ioctl2,
 	.poll = v4l2_m2m_fop_poll,
 	.mmap = v4l2_m2m_fop_mmap,
-#ifdef CONFIG_COMPAT
-	.compat_ioctl32 = v4l2_compat_ioctl32,
-#endif
 };
 
 static int venc_probe(struct platform_device *pdev)
drivers/media/platform/sti/bdisp/bdisp-v4l2.c +1 -2
index 939da6da7644..601ca2b2ecd3 100644
@@ -651,8 +651,7 @@ static int bdisp_release(struct file *file)
 
 	dev_dbg(bdisp->dev, "%s\n", __func__);
 
-	if (mutex_lock_interruptible(&bdisp->lock))
-		return -ERESTARTSYS;
+	mutex_lock(&bdisp->lock);
 
 	v4l2_m2m_ctx_release(ctx->fh.m2m_ctx);
 
drivers/media/platform/vimc/vimc-common.c +2 -0
index 743554de724d..a9ab3871ccda 100644
@@ -241,6 +241,8 @@ int vimc_pipeline_s_stream(struct media_entity *ent, int enable)
 
 		/* Start the stream in the subdevice direct connected */
 		pad = media_entity_remote_pad(&ent->pads[i]);
+		if (!pad)
+			continue;
 
 		if (!is_media_entity_v4l2_subdev(pad->entity))
 			return -EINVAL;
drivers/media/platform/vimc/vimc-core.c +2 -5
index 57e5d6a020b0..447a01ff4e23 100644
@@ -243,10 +243,7 @@ static void vimc_comp_unbind(struct device *master)
 
 static int vimc_comp_compare(struct device *comp, void *data)
 {
-	const struct platform_device *pdev = to_platform_device(comp);
-	const char *name = data;
-
-	return !strcmp(pdev->dev.platform_data, name);
+	return comp == data;
 }
 
 static struct component_match *vimc_add_subdevs(struct vimc_device *vimc)
@@ -275,7 +272,7 @@ static struct component_match *vimc_add_subdevs(struct vimc_device *vimc)
 		}
 
 		component_match_add(&vimc->pdev.dev, &match, vimc_comp_compare,
-				    (void *)vimc->pipe_cfg->ents[i].name);
+				    &vimc->subdevs[i]->dev);
 	}
 
 	return match;
drivers/media/radio/radio-wl1273.c +1 -2
index 903fcd5e99c0..fc1ae86911b9 100644
@@ -1156,8 +1156,7 @@ static int wl1273_fm_fops_release(struct file *file)
 	if (radio->rds_users > 0) {
 		radio->rds_users--;
 		if (radio->rds_users == 0) {
-			if (mutex_lock_interruptible(&core->lock))
-				return -EINTR;
+			mutex_lock(&core->lock);
 
 			radio->irq_flags &= ~WL1273_RDS_EVENT;
 
drivers/media/usb/pulse8-cec/pulse8-cec.c +1 -1
index 50146f263d90..12da631c0fda 100644
@@ -585,7 +585,7 @@ static int pulse8_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr)
 	else
 		pulse8->config_pending = true;
 	mutex_unlock(&pulse8->config_lock);
-	return err;
+	return log_addr == CEC_LOG_ADDR_INVALID ? 0 : err;
 }
 
 static int pulse8_cec_adap_transmit(struct cec_adapter *adap, u8 attempts,
drivers/media/usb/stkwebcam/stk-webcam.c +5 -1
index a7da1356a36e..6992e84f8a8b 100644
@@ -164,7 +164,11 @@ int stk_camera_read_reg(struct stk_camera *dev, u16 index, u8 *value)
 		*value = *buf;
 
 	kfree(buf);
-	return ret;
+
+	if (ret < 0)
+		return ret;
+	else
+		return 0;
 }
 
 static int stk_start_stream(struct stk_camera *dev)
drivers/misc/altera-stapl/altera.c +1 -2
index f53e217e963f..494e263daa74 100644
@@ -2176,8 +2176,7 @@ static int altera_get_note(u8 *p, s32 program_size,
 			key_ptr = &p[note_strings +
 					get_unaligned_be32(
 					&p[note_table + (8 * i)])];
-			if ((strncasecmp(key, key_ptr, strlen(key_ptr)) == 0) &&
-						(key != NULL)) {
+			if (key && !strncasecmp(key, key_ptr, strlen(key_ptr))) {
 				status = 0;
 
 				value_ptr = &p[note_strings +
drivers/mmc/host/omap_hsmmc.c +30 -0
index 3f3ff7530b76..ea12712bd2c3 100644
@@ -1678,6 +1678,36 @@ static void omap_hsmmc_init_card(struct mmc_host *mmc, struct mmc_card *card)
 
 	if (mmc_pdata(host)->init_card)
 		mmc_pdata(host)->init_card(card);
+	else if (card->type == MMC_TYPE_SDIO ||
+		 card->type == MMC_TYPE_SD_COMBO) {
+		struct device_node *np = mmc_dev(mmc)->of_node;
+
+		/*
+		 * REVISIT: should be moved to sdio core and made more
+		 * general e.g. by expanding the DT bindings of child nodes
+		 * to provide a mechanism to provide this information:
+		 * Documentation/devicetree/bindings/mmc/mmc-card.txt
+		 */
+
+		np = of_get_compatible_child(np, "ti,wl1251");
+		if (np) {
+			/*
+			 * We have TI wl1251 attached to MMC3. Pass this
+			 * information to the SDIO core because it can't be
+			 * probed by normal methods.
+			 */
+
+			dev_info(host->dev, "found wl1251\n");
+			card->quirks |= MMC_QUIRK_NONSTD_SDIO;
+			card->cccr.wide_bus = 1;
+			card->cis.vendor = 0x104c;
+			card->cis.device = 0x9066;
+			card->cis.blksize = 512;
+			card->cis.max_dtr = 24000000;
+			card->ocr = 0x80;
+			of_node_put(np);
+		}
+	}
 }
 
 static void omap_hsmmc_enable_sdio_irq(struct mmc_host *mmc, int enable)
drivers/mtd/devices/spear_smi.c +37 -1
index ddf478976013..c2922e129db8 100644
@@ -595,6 +595,26 @@ static int spear_mtd_read(struct mtd_info *mtd, loff_t from, size_t len,
 	return 0;
 }
 
+/*
+ * The purpose of this function is to ensure a memcpy_toio() with byte writes
+ * only. Its structure is inspired from the ARM implementation of _memcpy_toio()
+ * which also does single byte writes but cannot be used here as this is just an
+ * implementation detail and not part of the API. Not mentioning the comment
+ * stating that _memcpy_toio() should be optimized.
+ */
+static void spear_smi_memcpy_toio_b(volatile void __iomem *dest,
+				    const void *src, size_t len)
+{
+	const unsigned char *from = src;
+
+	while (len) {
+		len--;
+		writeb(*from, dest);
+		from++;
+		dest++;
+	}
+}
+
 static inline int spear_smi_cpy_toio(struct spear_smi *dev, u32 bank,
 		void __iomem *dest, const void *src, size_t len)
 {
@@ -617,7 +637,23 @@ static inline int spear_smi_cpy_toio(struct spear_smi *dev, u32 bank,
 	ctrlreg1 = readl(dev->io_base + SMI_CR1);
 	writel((ctrlreg1 | WB_MODE) & ~SW_MODE, dev->io_base + SMI_CR1);
 
-	memcpy_toio(dest, src, len);
+	/*
+	 * In Write Burst mode (WB_MODE), the specs states that writes must be:
+	 * - incremental
+	 * - of the same size
+	 * The ARM implementation of memcpy_toio() will optimize the number of
+	 * I/O by using as much 4-byte writes as possible, surrounded by
+	 * 2-byte/1-byte access if:
+	 * - the destination is not 4-byte aligned
+	 * - the length is not a multiple of 4-byte.
+	 * Avoid this alternance of write access size by using our own 'byte
+	 * access' helper if at least one of the two conditions above is true.
+	 */
+	if (IS_ALIGNED(len, sizeof(u32)) &&
+	    IS_ALIGNED((uintptr_t)dest, sizeof(u32)))
+		memcpy_toio(dest, src, len);
+	else
+		spear_smi_memcpy_toio_b(dest, src, len);
 
 	writel(ctrlreg1, dev->io_base + SMI_CR1);
 
drivers/net/can/slcan.c +1 -0
index 49427f44dc5b..a42737b4ac79 100644
@@ -613,6 +613,7 @@ static int slcan_open(struct tty_struct *tty)
 	sl->tty = NULL;
 	tty->disc_data = NULL;
 	clear_bit(SLF_INUSE, &sl->flags);
+	slc_free_netdev(sl->dev);
 	free_netdev(sl->dev);
 
 err_exit:
drivers/net/dsa/mv88e6xxx/chip.c +16 -5
index be17194487c6..10ea01459a36 100644
@@ -2196,11 +2196,22 @@ static int mv88e6xxx_mdio_read(struct mii_bus *bus, int phy, int reg)
 	mutex_unlock(&chip->reg_lock);
 
 	if (reg == MII_PHYSID2) {
-		/* Some internal PHYS don't have a model number.  Use
-		 * the mv88e6390 family model number instead.
-		 */
-		if (!(val & 0x3f0))
-			val |= MV88E6XXX_PORT_SWITCH_ID_PROD_6390 >> 4;
+		/* Some internal PHYs don't have a model number. */
+		if (chip->info->family != MV88E6XXX_FAMILY_6165)
+			/* Then there is the 6165 family. It gets is
+			 * PHYs correct. But it can also have two
+			 * SERDES interfaces in the PHY address
+			 * space. And these don't have a model
+			 * number. But they are not PHYs, so we don't
+			 * want to give them something a PHY driver
+			 * will recognise.
+			 *
+			 * Use the mv88e6390 family model number
+			 * instead, for anything which really could be
+			 * a PHY,
+			 */
+			if (!(val & 0x3f0))
+				val |= MV88E6XXX_PORT_SWITCH_ID_PROD_6390 >> 4;
 	}
 
 	return err ? err : val;
drivers/net/ethernet/aquantia/atlantic/aq_cfg.h +2 -2
index 57e796870595..ea4b7e97c61e 100644
@@ -40,8 +40,8 @@
 #define AQ_CFG_IS_LRO_DEF           1U
 
 /* RSS */
-#define AQ_CFG_RSS_INDIRECTION_TABLE_MAX  128U
-#define AQ_CFG_RSS_HASHKEY_SIZE           320U
+#define AQ_CFG_RSS_INDIRECTION_TABLE_MAX  64U
+#define AQ_CFG_RSS_HASHKEY_SIZE           40U
 
 #define AQ_CFG_IS_RSS_DEF           1U
 #define AQ_CFG_NUM_RSS_QUEUES_DEF   AQ_CFG_VECS_DEF
drivers/net/ethernet/aquantia/atlantic/aq_nic.c +1 -1
index cc658a29cc33..a69f5f1ad32a 100644
@@ -43,7 +43,7 @@ static void aq_nic_rss_init(struct aq_nic_s *self, unsigned int num_rss_queues)
 	struct aq_rss_parameters *rss_params = &cfg->aq_rss;
 	int i = 0;
 
-	static u8 rss_key[40] = {
+	static u8 rss_key[AQ_CFG_RSS_HASHKEY_SIZE] = {
 		0x1e, 0xad, 0x71, 0x87, 0x65, 0xfc, 0x26, 0x7d,
 		0x0d, 0x45, 0x67, 0x74, 0xcd, 0x06, 0x1a, 0x18,
 		0xb6, 0xc1, 0xf0, 0xc7, 0xbb, 0x18, 0xbe, 0xf8,
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c +4 -2
index 8996ebbd222e..26ba18ea08c6 100644
@@ -714,6 +714,10 @@ static int adapter_up(struct adapter *adapter)
 
 		if (adapter->flags & USING_MSIX)
 			name_msix_vecs(adapter);
+
+		/* Initialize hash mac addr list*/
+		INIT_LIST_HEAD(&adapter->mac_hlist);
+
 		adapter->flags |= FULL_INIT_DONE;
 	}
 
@@ -739,8 +743,6 @@ static int adapter_up(struct adapter *adapter)
 	enable_rx(adapter);
 	t4vf_sge_start(adapter);
 
-	/* Initialize hash mac addr list*/
-	INIT_LIST_HEAD(&adapter->mac_hlist);
 	return 0;
 }
 
drivers/net/ethernet/cirrus/ep93xx_eth.c +3 -2
index e2a702996db4..82bd918bf967 100644
@@ -767,6 +767,7 @@ static int ep93xx_eth_remove(struct platform_device *pdev)
 {
 	struct net_device *dev;
 	struct ep93xx_priv *ep;
+	struct resource *mem;
 
 	dev = platform_get_drvdata(pdev);
 	if (dev == NULL)
@@ -782,8 +783,8 @@ static int ep93xx_eth_remove(struct platform_device *pdev)
 		iounmap(ep->base_addr);
 
 	if (ep->res != NULL) {
-		release_resource(ep->res);
-		kfree(ep->res);
+		mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+		release_mem_region(mem->start, resource_size(mem));
 	}
 
 	free_netdev(dev);
drivers/net/ethernet/huawei/hinic/hinic_main.c +4 -3
index a696b5b2d40e..44c73215d026 100644
@@ -598,9 +598,6 @@ static int add_mac_addr(struct net_device *netdev, const u8 *addr)
 	u16 vid = 0;
 	int err;
 
-	if (!is_valid_ether_addr(addr))
-		return -EADDRNOTAVAIL;
-
 	netif_info(nic_dev, drv, netdev, "set mac addr = %02x %02x %02x %02x %02x %02x\n",
 		   addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
 
@@ -724,6 +721,7 @@ static void set_rx_mode(struct work_struct *work)
 {
 	struct hinic_rx_mode_work *rx_mode_work = work_to_rx_mode_work(work);
 	struct hinic_dev *nic_dev = rx_mode_work_to_nic_dev(rx_mode_work);
+	struct netdev_hw_addr *ha;
 
 	netif_info(nic_dev, drv, nic_dev->netdev, "set rx mode work\n");
 
@@ -731,6 +729,9 @@ static void set_rx_mode(struct work_struct *work)
 
 	__dev_uc_sync(nic_dev->netdev, add_mac_addr, remove_mac_addr);
 	__dev_mc_sync(nic_dev->netdev, add_mac_addr, remove_mac_addr);
+
+	netdev_for_each_mc_addr(ha, nic_dev->netdev)
+		add_mac_addr(nic_dev->netdev, ha->addr);
 }
 
 static void hinic_set_rx_mode(struct net_device *netdev)
drivers/net/ethernet/intel/e100.c +2 -2
index 4d10270ddf8f..90974462743b 100644
@@ -1370,8 +1370,8 @@ static inline int e100_load_ucode_wait(struct nic *nic)
 
 	fw = e100_request_firmware(nic);
 	/* If it's NULL, then no ucode is required */
-	if (!fw || IS_ERR(fw))
-		return PTR_ERR(fw);
+	if (IS_ERR_OR_NULL(fw))
+		return PTR_ERR_OR_ZERO(fw);
 
 	if ((err = e100_exec_cb(nic, (void *)fw, e100_setup_ucode)))
 		netif_err(nic, probe, nic->netdev,
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +5 -5
index ef22793d6a03..751ac5616884 100644
@@ -969,6 +969,7 @@ static int i40e_set_pauseparam(struct net_device *netdev,
 	i40e_status status;
 	u8 aq_failures;
 	int err = 0;
+	u32 is_an;
 
 	/* Changing the port's flow control is not supported if this isn't the
 	 * port's controlling PF
@@ -981,15 +982,14 @@ static int i40e_set_pauseparam(struct net_device *netdev,
 	if (vsi != pf->vsi[pf->lan_vsi])
 		return -EOPNOTSUPP;
 
-	if (pause->autoneg != ((hw_link_info->an_info & I40E_AQ_AN_COMPLETED) ?
-	    AUTONEG_ENABLE : AUTONEG_DISABLE)) {
+	is_an = hw_link_info->an_info & I40E_AQ_AN_COMPLETED;
+	if (pause->autoneg != is_an) {
 		netdev_info(netdev, "To change autoneg please use: ethtool -s <dev> autoneg <on|off>\n");
 		return -EOPNOTSUPP;
 	}
 
 	/* If we have link and don't have autoneg */
-	if (!test_bit(__I40E_DOWN, pf->state) &&
-	    !(hw_link_info->an_info & I40E_AQ_AN_COMPLETED)) {
+	if (!test_bit(__I40E_DOWN, pf->state) && !is_an) {
 		/* Send message that it might not necessarily work*/
 		netdev_info(netdev, "Autoneg did not complete so changing settings may not result in an actual change.\n");
 	}
@@ -1040,7 +1040,7 @@ static int i40e_set_pauseparam(struct net_device *netdev,
 		err = -EAGAIN;
 	}
 
-	if (!test_bit(__I40E_DOWN, pf->state)) {
+	if (!test_bit(__I40E_DOWN, pf->state) && is_an) {
 		/* Give it a little more time to try to come back */
 		msleep(75);
 		if (!test_bit(__I40E_DOWN, pf->state))
drivers/net/ethernet/mellanox/mlx4/main.c +5 -6
index c273a3ebb8e8..12d4b891301b 100644
@@ -199,7 +199,7 @@ int mlx4_check_port_params(struct mlx4_dev *dev,
 		for (i = 0; i < dev->caps.num_ports - 1; i++) {
 			if (port_type[i] != port_type[i + 1]) {
 				mlx4_err(dev, "Only same port types supported on this HCA, aborting\n");
-				return -EINVAL;
+				return -EOPNOTSUPP;
 			}
 		}
 	}
@@ -208,7 +208,7 @@ int mlx4_check_port_params(struct mlx4_dev *dev,
 		if (!(port_type[i] & dev->caps.supported_type[i+1])) {
 			mlx4_err(dev, "Requested port type for port %d is not supported on this HCA\n",
 				 i + 1);
-			return -EINVAL;
+			return -EOPNOTSUPP;
 		}
 	}
 	return 0;
@@ -1152,8 +1152,7 @@ static int __set_port_type(struct mlx4_port_info *info,
 		mlx4_err(mdev,
 			 "Requested port type for port %d is not supported on this HCA\n",
 			 info->port);
-		err = -EINVAL;
-		goto err_sup;
+		return -EOPNOTSUPP;
 	}
 
 	mlx4_stop_sense(mdev);
@@ -1175,7 +1174,7 @@ static int __set_port_type(struct mlx4_port_info *info,
 		for (i = 1; i <= mdev->caps.num_ports; i++) {
 			if (mdev->caps.possible_type[i] == MLX4_PORT_TYPE_AUTO) {
 				mdev->caps.possible_type[i] = mdev->caps.port_type[i];
-				err = -EINVAL;
+				err = -EOPNOTSUPP;
 			}
 		}
 	}
@@ -1201,7 +1200,7 @@ static int __set_port_type(struct mlx4_port_info *info,
 out:
 	mlx4_start_sense(mdev);
 	mutex_unlock(&priv->port_mutex);
-err_sup:
+
 	return err;
 }
 
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +1 -1
index f6beb5ef5971..c3f1e2d76a46 100644
@@ -1625,7 +1625,7 @@ static int mlx5e_get_module_info(struct net_device *netdev,
 		break;
 	case MLX5_MODULE_ID_SFP:
 		modinfo->type       = ETH_MODULE_SFF_8472;
-		modinfo->eeprom_len = MLX5_EEPROM_PAGE_LENGTH;
+		modinfo->eeprom_len = ETH_MODULE_SFF_8472_LEN;
 		break;
 	default:
 		netdev_err(priv->netdev, "%s: cable type not recognized:0x%x\n",
drivers/net/ethernet/mellanox/mlx5/core/qp.c +2 -2
index 889130edb715..5f091c6ea049 100644
@@ -124,7 +124,7 @@ void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type)
 	if (!is_event_type_allowed((rsn >> MLX5_USER_INDEX_LEN), event_type)) {
 		mlx5_core_warn(dev, "event 0x%.2x is not allowed on resource 0x%.8x\n",
 			       event_type, rsn);
-		return;
+		goto out;
 	}
 
 	switch (common->res) {
@@ -138,7 +138,7 @@ void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type)
 	default:
 		mlx5_core_warn(dev, "invalid resource type for 0x%x\n", rsn);
 	}
-
[… more lines in the raw message]

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

drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +71 -7

78 lines not on this page · raw message

drivers/net/ethernet/ti/cpts.c +1 -3
index 7d1281d81248..23c953496a0d 100644

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

drivers/net/wireless/ath/ar5523/ar5523.c +2 -1
index 68f0463ed8df..ad4a1efc57c9 100644

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

drivers/net/wireless/ath/ath10k/pci.c +5 -4
index 0298ddc1ff06..f9e409caca68 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +15 -0
index 77ed6ecf5ee5..b86c7a36d3f1 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/sta.c +10 -0
index d16e2ed4419f..0cfdbaa2af3a 100644

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

drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c +7 -13
index 6f45c8148b27..bbb39d6ec2ee 100644

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

drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c +5 -4
index cf28d25c551f..80002292cd27 100644

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

drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c +1 -0
index a6549f5f6c59..3ec75032b9be 100644

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

drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c +22 -3
index 86019f654428..d1e56e09cfe8 100644

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

drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.h +2 -0
index 9bb6cc648590..6cf23c278953 100644

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

drivers/net/wireless/rsi/rsi_91x_mgmt.c +1 -0
index f7b550f900c4..234e41e1cb57 100644

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

drivers/nfc/nxp-nci/i2c.c +4 -2
index 198585bbc771..d9492cffd00e 100644

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

drivers/of/unittest.c +3 -1
index 9d204649c963..4bf6a9db6ac0 100644

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

drivers/phy/renesas/phy-rcar-gen3-usb2.c +3 -2
index 7f5e36bfeee8..f8c7ce89d8d7 100644

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

drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c +17 -6
index 0e153bae322e..6bed433e5420 100644

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

drivers/pinctrl/samsung/pinctrl-exynos.c +3 -1
index c8d0de7ea160..1c534d823fd7 100644

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

drivers/pinctrl/samsung/pinctrl-s3c24xx.c +5 -1
index 67da1cf18b68..46b1a9b2238b 100644

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

drivers/pinctrl/samsung/pinctrl-s3c64xx.c +5 -1
index 0bdc1e683181..cf3a3af82321 100644

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

drivers/pinctrl/samsung/pinctrl-samsung.c +8 -2
index 26e8fab736f1..7c0f5d4e89f3 100644

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

drivers/power/supply/cpcap-battery.c +6 -5
index fe7fcf3a2ad0..7df9d432ee42 100644

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

drivers/rtc/rtc-max8997.c +1 -1
index db984d4bf952..4cce5bd448f6 100644

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

drivers/rtc/rtc-s3c.c +0 -6
index a8992c227f61..4120a305954a 100644

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

drivers/s390/scsi/zfcp_dbf.c +3 -5
index 599447032e50..bc6c1d6a1c42 100644

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

drivers/s390/scsi/zfcp_erp.c +0 -3
index 64d70de98cdb..8f90e4cea254 100644

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

drivers/scsi/lpfc/lpfc.h +2 -1
index 03e95a3216c8..5fc41aa53ceb 100644

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

drivers/scsi/lpfc/lpfc_attr.c +10 -2
index 82ce5d193018..f447355cc9c0 100644

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

drivers/scsi/lpfc/lpfc_init.c +3 -0
index c69c2a2b2ead..9fc5507ee39e 100644

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

drivers/scsi/lpfc/lpfc_nvme.c +0 -2
index 6c4499db969c..fcf4b4175d77 100644

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

drivers/scsi/lpfc/lpfc_sli.c +3 -11
index 62bea4ffdc25..d3bad0dbfaf7 100644

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

drivers/scsi/qla2xxx/qla_attr.c +2 -1
index 1844c2f59460..656253285db9 100644

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

drivers/scsi/qla2xxx/qla_bsg.c +9 -6
index 7472d3882ad4..c1ca21a88a09 100644

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

drivers/scsi/qla2xxx/qla_init.c +0 -2
index 0e154fea693e..bd2421863510 100644

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

drivers/scsi/qla2xxx/qla_isr.c +2 -4
index 6a76d7217515..ebca1a470e9b 100644

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

drivers/scsi/qla2xxx/qla_target.c +6 -5
index 11753ed3433c..69ed544d80ef 100644

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

drivers/spi/spi-atmel.c +2 -4
index 047875861df1..d19331b66222 100644

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

drivers/staging/iio/addac/adt7316-i2c.c +2 -0
index f66dd3ebbab1..856bcfa60c6c 100644

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

drivers/staging/rtl8188eu/os_dep/usb_intf.c +1 -1
index 77c339a93525..3733b73863b6 100644

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

drivers/staging/rtl8712/usb_intf.c +1 -1
index b3e266bd57ab..8be4fcc54ad6 100644

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

drivers/thermal/thermal_core.c +2 -2
index 456ef213dc14..fcefafe7df48 100644

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

drivers/tty/n_hdlc.c +2 -2
index e83dea8d6633..19c4aa800c81 100644

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

drivers/tty/n_r3964.c +1 -1
index 305b6490d405..08ac04d08991 100644

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

drivers/tty/n_tty.c +4 -4
index 904fc9c37fde..8214b0326b3a 100644

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

drivers/tty/serial/amba-pl011.c +2 -4
index 4a4a9f33715c..637f72fb6427 100644

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

drivers/tty/serial/fsl_lpuart.c +2 -2
index 32a473f9d1d3..fb2dcb3f8591 100644

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

drivers/tty/serial/ifx6x60.c +3 -0
index f190a84a0246..d54ebe6b1d50 100644

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

drivers/tty/serial/imx.c +1 -1
index 4e827e5a52a3..aae68230fb7b 100644

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

drivers/tty/serial/msm_serial.c +5 -1
index 0e0ccc132ab0..e937fb189034 100644

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

drivers/tty/serial/serial_core.c +1 -1
index 17e2311f7b00..38bb8f85e88d 100644

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

drivers/tty/tty_ldisc.c +7 -0
index 01fcdc7ff077..62dd2abb57fe 100644

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

drivers/tty/vt/keyboard.c +1 -1
index 7506bbcf8259..b9ec4e2828e2 100644

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

drivers/usb/atm/ueagle-atm.c +12 -6
index ba7616395db2..f649b7b83200 100644

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

drivers/usb/core/hub.c +2 -3
index bb20aa433e98..4efccf8bf99f 100644

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

drivers/usb/core/urb.c +1 -0
index 8b800e34407b..83bd48734af5 100644

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

drivers/usb/dwc3/core.c +2 -1
index 48755c501201..a497b878c3e2 100644

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

drivers/usb/dwc3/debug.h +29 -0
index 5e9c070ec874..1b4c2f8bb3da 100644

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

drivers/usb/dwc3/debugfs.c +17 -2
index 4e09be80e59f..0d6a6a168a7e 100644

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

drivers/usb/dwc3/ep0.c +8 -0
index 89fe53c846ef..cb50806d2459 100644

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

drivers/usb/gadget/configfs.c +1 -0
index d0143d02e2f7..78a5832c209c 100644

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

drivers/usb/gadget/function/u_serial.c +2 -0
index 4176216d54be..520ace49f91d 100644

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

drivers/usb/gadget/udc/pch_udc.c +0 -1
index 84dcbcd756f0..08bbe2c24134 100644

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

drivers/usb/host/xhci-hub.c +4 -4
index 997ff183c9cb..95503bb9b067 100644

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

drivers/usb/host/xhci-mem.c +4 -0
index b7b55eb82714..a80a57decda1 100644

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

drivers/usb/host/xhci-pci.c +13 -0
index 1de006aebec5..021a2d320acc 100644

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

drivers/usb/host/xhci-ring.c +2 -1
index 009b6796f405..89af395cd89c 100644

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

drivers/usb/host/xhci.c +3 -6
index 465d7fd507ad..6c0a0ca316d3 100644

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

drivers/usb/host/xhci.h +1 -0
index cbc91536e512..db1af99d53bd 100644

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

drivers/usb/misc/adutux.c +1 -1
index c8c8fa3f1f46..45390045c75d 100644

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

drivers/usb/misc/idmouse.c +1 -1
index 39d8fedfaf3b..01ef2551be46 100644

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

drivers/usb/mon/mon_bin.c +21 -11
index f932f40302df..156aebf62e61 100644

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

drivers/usb/mtu3/mtu3_qmu.c +1 -1
index 7d9ba8a52368..c87947fb2694 100644

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

drivers/usb/serial/io_edgeport.c +6 -4
index 01f3ac7769f3..51b61545ccf2 100644

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

drivers/usb/storage/uas.c +10 -0
index 1e62f2134b3a..8391a88cf90f 100644

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

drivers/video/hdmi.c +4 -4
index 111a0ab6280a..ce7c4a269f77 100644

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

drivers/virtio/virtio_balloon.c +11 -0
index d9873aa014a6..499531608fa2 100644

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

drivers/watchdog/aspeed_wdt.c +10 -6
index cee7334b2a00..f5835cbd5d41 100644

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

fs/autofs4/expire.c +3 -2
index 141f9bc213a3..94a0017c923b 100644

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

fs/btrfs/delayed-inode.c +10 -3
index 04f39111fafb..87414fc9e268 100644

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

fs/btrfs/file.c +1 -1
index 6fbae1357644..bf654d48eb46 100644

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

fs/btrfs/free-space-cache.c +6 -0
index 9f31b81a5e27..abeb26d48d0a 100644

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

fs/btrfs/inode.c +3 -0
index ddc1d1d1a29f..739f45b04b52 100644

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

fs/btrfs/send.c +24 -1
index a5905f97b3db..1211fdcd425d 100644

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

fs/btrfs/volumes.h +0 -1
index f6ae6cdf233d..07b805d08e55 100644

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

fs/cifs/file.c +4 -3
index 40f22932343c..6dc0e092b0fc 100644

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

fs/cifs/smb2misc.c +3 -4
index 31f01f09d25a..ff2ad15f67d6 100644

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

fs/dlm/lockspace.c +1 -0
index 610f72ae7ad6..9c8c9a09b4a6 100644

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

fs/dlm/member.c +1 -1
index cad6d85911a8..0bc43b35d2c5 100644

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

fs/dlm/memory.c +3 -6
index 7cd24bccd4fe..37be29f21d04 100644

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

fs/dlm/user.c +2 -1
index 1f0c071d4a86..02de11695d0b 100644

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

fs/exportfs/expfs.c +19 -12
index c22cc9d2a5c9..a561ae17cf43 100644

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

fs/ext2/inode.c +5 -2
index a7c87d593083..31c5a7b5f1f3 100644

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

fs/ext4/inode.c +19 -6
index b3d5fd84b485..11bc4c69bf16 100644

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

fs/ext4/namei.c +5 -6
index 212b01861d94..b4e0c270def4 100644

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

fs/f2fs/file.c +1 -1
index d68b0132718a..a90173b856f6 100644

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

fs/f2fs/gc.c +5 -5
index 67120181dc2a..c2e4c6ce2cf7 100644

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

fs/fuse/dir.c +19 -8
index b79bba77652a..4d95a416fc36 100644

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

fs/fuse/fuse_i.h +2 -0
index e682f2eff6c0..338aa5e266d6 100644

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

fs/gfs2/log.c +8 -0
index 483b82e2be92..a3208511f35a 100644

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

fs/gfs2/log.h +1 -0
index 9499a6049212..3b7b7839ec6a 100644

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

fs/gfs2/lops.c +1 -4
index 049f8c6721b4..a5041e6d2c0d 100644

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

fs/gfs2/trans.c +2 -0
index affef3c066e0..69e3402a3cc5 100644

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

fs/iomap.c +16 -2
index 467d98bf7054..3f5b1655cfce 100644

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

fs/kernfs/dir.c +2 -3
index 9e9117533fd7..8697b750b1c9 100644

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

fs/lockd/clnt4xdr.c +6 -16
index 00d5ef5f99f7..214a2fa1f1e3 100644

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

fs/lockd/clntxdr.c +6 -16
index 2c6176387143..747b9c8c940a 100644

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

fs/nfsd/nfs4recover.c +6 -11
index 66eaeb1e8c2c..dc9586feab31 100644

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

fs/nfsd/vfs.c +15 -2
index f55527ef21e8..06d1f2edf2ec 100644

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

fs/ocfs2/quota_global.c +1 -1
index b39d14cbfa34..d212d09c00b1 100644

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

fs/overlayfs/dir.c +1 -1
index ef11fa7b869e..8c561703275a 100644

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

fs/pstore/ram.c +1 -1
index 40bfc6c58374..1e675be10926 100644

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

fs/quota/dquot.c +6 -5
index 9c81fd973418..3254c90fd899 100644

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

fs/reiserfs/inode.c +10 -2
index 11a48affa882..683496322aa8 100644

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

fs/reiserfs/namei.c +5 -2
index 5089dac02660..14ba7a12b89d 100644

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

fs/reiserfs/reiserfs.h +2 -0
index eabf85371ece..0efe7c7c4124 100644

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

fs/reiserfs/super.c +2 -0
index 4885c7b6e44f..cc0b22c72e83 100644

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

fs/reiserfs/xattr.c +12 -7
index 83423192588c..29a0c0969e91 100644

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

fs/reiserfs/xattr_acl.c +1 -3
index aa9380bac196..05f666794561 100644

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

include/dt-bindings/clock/rk3328-cru.h +1 -1
index d2b26a4b43eb..4a9db1b2669b 100644

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

include/linux/acpi.h +1 -1
index d7a9700b9333..4bb3bca75004 100644

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

include/linux/atalk.h +1 -1
index 03885e63f92b..2664b9e89f9b 100644

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

include/linux/dma-mapping.h +1 -2
index 7bf3b99e6fbb..9aee5f345e29 100644

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

include/linux/jbd2.h +2 -2
index 11b3ab68f6a7..cb41329a3ee4 100644

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

include/linux/kernfs.h +1 -0
index ab25c8b6d9e3..5e539e5bb70c 100644

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

include/linux/mfd/rk808.h +1 -1
index d3156594674c..338e0f6e2226 100644

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

include/linux/mtd/mtd.h +1 -1
index 6cd0f6b7658b..aadc2ee050f1 100644

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

include/linux/platform_data/dma-dw.h +6 -0
index 896cb71a382c..1a1d58ebffbf 100644

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

include/linux/qcom_scm.h +3 -0
index e5380471c2cd..428278a44c7d 100644

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

include/linux/quotaops.h +10 -0
index a109e6107c06..50ab5d6ccc4e 100644

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

include/linux/regulator/consumer.h +1 -1
index 25602afd4844..f3f76051e8b0 100644

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

include/linux/serial_core.h +36 -1
index 868b60a79c0b..b2a7b7c15451 100644

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

include/linux/tty.h +7 -0
index 1dd587ba6d88..0cd621d8c7f0 100644

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

include/math-emu/soft-fp.h +1 -1
index 3f284bc03180..5650c1628383 100644

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

include/uapi/linux/cec.h +2 -2
index c3114c989e91..f50dd34e4f7b 100644

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

kernel/audit_watch.c +1 -1
index 4a98f6e314a9..35f1d706bd5b 100644

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

kernel/cgroup/pids.c +6 -5
index c9960baaa14f..940d2e8db776 100644

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

kernel/module.c +2 -0
index 468567591241..feb1e0fbc3e8 100644

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

kernel/sched/core.c +2 -1
index bbf8b32fc69e..97a27726ea21 100644

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

kernel/sched/fair.c +22 -14
index 67433fbdcb5a..0b4e997fea1a 100644

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

kernel/workqueue.c +30 -8
index 08bc551976b2..a37f5dc7cb39 100644

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

lib/raid6/unroll.awk +1 -1
index c6aa03631df8..0809805a7e23 100644

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

mm/shmem.c +1 -1
index e55aa460a2c0..69106c600692 100644

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

mm/vmstat.c +4 -3
index ba9168326413..e2197b03da57 100644

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

net/appletalk/aarp.c +12 -3
index 8ad3ec2610b6..b9e85a4751a6 100644

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

net/appletalk/ddp.c +13 -8
index 475f332b1ad2..b4268bd2e557 100644

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

net/ipv4/tcp_output.c +1 -1
index 5b808089eff8..6025cc509d97 100644

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

net/ipv4/tcp_timer.c +12 -8
index 592d6e9967a9..895129b0928c 100644

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

net/smc/smc_wr.c +3 -1
index de4537f66832..ed6736a1a112 100644

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

net/sunrpc/cache.c +0 -6
index 475b453dc7ae..556989b0b5fc 100644

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

net/x25/af_x25.c +11 -7
index 1b830a6ee3ff..a156b6dc3a72 100644

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

net/xfrm/xfrm_input.c +3 -0
index fc0a9ce1be18..311597401b82 100644

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

scripts/mod/modpost.c +12 -0
index c22041a4fc36..b6eb929899c5 100644

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

sound/core/oss/linear.c +2 -0
index 2045697f449d..797d838a2f9e 100644

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

sound/core/oss/mulaw.c +2 -0
index 7915564bd394..3788906421a7 100644

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

sound/core/oss/route.c +2 -0
index c8171f5783c8..72dea04197ef 100644

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

sound/core/pcm_lib.c +6 -2
index 729a85a6211d..80453266a2de 100644

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

sound/pci/hda/hda_bind.c +4 -0
index 8db1890605f6..c175b2cf63f7 100644

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

sound/pci/hda/hda_intel.c +3 -0
index 96e9b3944b92..890793ad85ca 100644

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

sound/pci/hda/patch_conexant.c +1 -0
index 49be42d27761..382b6d2ed803 100644

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

sound/pci/hda/patch_realtek.c +5 -2
index 404c50ab28fa..41e3c77d5fb7 100644

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

sound/soc/codecs/nau8540.c +1 -1
index f9c9933acffb..c0c64f90a61b 100644

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

sound/soc/sh/rcar/core.c +12 -0
index ab0bbef7eb48..f203c0878e69 100644

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

sound/soc/soc-jack.c +1 -2
index 99902ae1a2d9..b04ecc633da3 100644

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

virt/kvm/arm/vgic/vgic-v3.c +3 -3
index 084edc9dc553..f16a55012ea3 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.