Linux 4.14.60
Greg KH
maintainerI'm announcing the release of the 4.14.60 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:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/net/dsa/qca8k.txt | 23 +- Documentation/devicetree/bindings/net/meson-dwmac.txt | 1 Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt | 2 Documentation/vfio-mediated-device.txt | 5 Makefile | 2 arch/arm/boot/dts/emev2.dtsi | 5 arch/arm/boot/dts/sh73a0.dtsi | 5 arch/arm/boot/dts/stih407-pinctrl.dtsi | 10 arch/arm/net/bpf_jit_32.c | 10 arch/arm64/boot/dts/renesas/salvator-common.dtsi | 38 +-- arch/arm64/configs/defconfig | 2 arch/arm64/include/asm/cmpxchg.h | 4 arch/arm64/mm/init.c | 4 arch/microblaze/boot/Makefile | 10 arch/powerpc/include/asm/barrier.h | 15 + arch/powerpc/include/asm/cache.h | 3 arch/powerpc/kernel/eeh_driver.c | 28 +- arch/powerpc/kernel/head_8xx.S | 2 arch/powerpc/kernel/pci_32.c | 1 arch/powerpc/kernel/prom_init.c | 114 +++++----- arch/powerpc/lib/string.S | 7 arch/powerpc/mm/slb.c | 8 arch/powerpc/net/bpf_jit_comp64.c | 34 ++ arch/powerpc/platforms/chrp/time.c | 6 arch/powerpc/platforms/embedded6xx/hlwd-pic.c | 5 arch/powerpc/platforms/powermac/bootx_init.c | 4 arch/powerpc/platforms/powermac/setup.c | 1 arch/s390/include/asm/cpu_mf.h | 6 arch/x86/events/intel/uncore.c | 2 arch/x86/events/intel/uncore_nhmex.c | 2 arch/x86/kernel/cpu/microcode/core.c | 6 arch/x86/kvm/mmu.c | 2 block/bfq-iosched.c | 2 block/bio.c | 19 - crypto/authenc.c | 1 crypto/authencesn.c | 1 drivers/acpi/acpi_lpss.c | 6 drivers/acpi/pci_root.c | 4 drivers/ata/libata-eh.c | 12 - drivers/bluetooth/btusb.c | 4 drivers/bluetooth/hci_qca.c | 2 drivers/bus/arm-ccn.c | 20 - drivers/char/random.c | 10 drivers/edac/altera_edac.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 8 drivers/gpu/drm/drm_atomic.c | 4 drivers/gpu/drm/drm_atomic_helper.c | 78 +++--- drivers/gpu/drm/drm_dp_mst_topology.c | 9 drivers/gpu/drm/gma500/psb_intel_drv.h | 2 drivers/gpu/drm/gma500/psb_intel_lvds.c | 2 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 8 drivers/gpu/drm/radeon/radeon_connectors.c | 10 drivers/hid/hid-plantronics.c | 6 drivers/hid/i2c-hid/i2c-hid.c | 8 drivers/i2c/i2c-core-base.c | 5 drivers/infiniband/core/mad.c | 11 drivers/infiniband/core/ucma.c | 6 drivers/infiniband/core/uverbs_cmd.c | 5 drivers/infiniband/core/verbs.c | 12 - drivers/infiniband/ulp/srpt/ib_srpt.c | 16 - drivers/input/mouse/elan_i2c_core.c | 2 drivers/input/serio/i8042-x86ia64io.h | 7 drivers/irqchip/irq-ls-scfg-msi.c | 3 drivers/lightnvm/pblk-rb.c | 5 drivers/md/md.c | 3 drivers/md/raid1.c | 2 drivers/media/common/siano/smsendian.c | 14 - drivers/media/i2c/smiapp/smiapp-core.c | 11 drivers/media/media-device.c | 21 - drivers/media/pci/saa7164/saa7164-fw.c | 3 drivers/media/pci/tw686x/tw686x-video.c | 3 drivers/media/platform/omap3isp/isp.c | 7 drivers/media/platform/rcar_jpu.c | 4 drivers/media/radio/si470x/radio-si470x-i2c.c | 6 drivers/media/v4l2-core/videobuf2-core.c | 9 drivers/memory/tegra/mc.c | 22 - drivers/memory/tegra/mc.h | 9 drivers/memory/tegra/tegra114.c | 2 drivers/memory/tegra/tegra124.c | 6 drivers/memory/tegra/tegra210.c | 3 drivers/memory/tegra/tegra30.c | 2 drivers/mfd/cros_ec.c | 6 drivers/mmc/core/pwrseq_simple.c | 14 - drivers/mmc/host/dw_mmc.c | 4 drivers/mtd/nand/fsl_ifc_nand.c | 17 - drivers/net/dsa/qca8k.c | 52 ++++ drivers/net/dsa/qca8k.h | 7 drivers/net/ethernet/amazon/ena/ena_com.c | 1 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c | 4 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 7 drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 4 drivers/net/ethernet/intel/e1000e/netdev.c | 15 - drivers/net/ethernet/intel/i40e/i40e_ptp.c | 7 drivers/net/ethernet/intel/igb/igb_main.c | 9 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 1 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 4 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 drivers/net/ethernet/ti/cpsw-phy-sel.c | 8 drivers/net/hyperv/hyperv_net.h | 2 drivers/net/hyperv/netvsc_drv.c | 43 +-- drivers/net/phy/mdio-mux-bcm-iproc.c | 2 drivers/net/phy/phylink.c | 2 drivers/net/usb/lan78xx.c | 2 drivers/net/wireless/ath/regd.h | 5 drivers/net/wireless/ath/regd_common.h | 13 + drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | 1 drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 2 drivers/net/wireless/marvell/mwifiex/usb.c | 3 drivers/net/wireless/marvell/mwifiex/util.c | 8 drivers/net/wireless/rsi/rsi_91x_hal.c | 35 +-- drivers/net/wireless/rsi/rsi_91x_sdio.c | 23 +- drivers/net/wireless/rsi/rsi_sdio.h | 2 drivers/net/wireless/ti/wlcore/sdio.c | 5 drivers/net/xen-netfront.c | 10 drivers/nvme/host/pci.c | 5 drivers/nvme/host/rdma.c | 10 drivers/nvmem/core.c | 7 drivers/pci/host/pci-xgene.c | 1 drivers/pci/hotplug/pciehp_hpc.c | 7 drivers/pci/pci-sysfs.c | 15 - drivers/pci/probe.c | 4 drivers/pinctrl/pinctrl-at91-pio4.c | 4 drivers/regulator/cpcap-regulator.c | 2 drivers/regulator/of_regulator.c | 13 - drivers/regulator/pfuze100-regulator.c | 1 drivers/regulator/twl-regulator.c | 2 drivers/rtc/interface.c | 5 drivers/rtc/rtc-tps6586x.c | 14 - drivers/rtc/rtc-tps65910.c | 12 - drivers/rtc/rtc-vr41xx.c | 9 drivers/s390/scsi/zfcp_dbf.c | 2 drivers/scsi/3w-9xxx.c | 5 drivers/scsi/3w-xxxx.c | 3 drivers/scsi/cxlflash/main.c | 11 drivers/scsi/cxlflash/sislite.h | 1 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 11 drivers/scsi/megaraid.c | 3 drivers/scsi/megaraid/megaraid_sas_fusion.c | 3 drivers/scsi/qedf/qedf_main.c | 10 drivers/scsi/scsi_dh.c | 5 drivers/scsi/ufs/ufshcd.c | 28 +- drivers/soc/imx/gpcv2.c | 22 + drivers/spi/spi-meson-spicc.c | 11 drivers/spi/spi-s3c64xx.c | 4 drivers/spi/spi-sh-msiof.c | 6 drivers/spi/spi.c | 1 drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 2 drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 30 +- drivers/staging/lustre/lustre/ldlm/ldlm_lock.c | 6 drivers/staging/lustre/lustre/llite/xattr.c | 6 drivers/staging/media/atomisp/i2c/ov2680.c | 6 drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_ioctl32.c | 49 ++-- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 1 drivers/thermal/samsung/exynos_tmu.c | 1 drivers/tty/hvc/hvc_opal.c | 1 drivers/tty/pty.c | 3 drivers/usb/core/hub.c | 4 drivers/usb/gadget/udc/renesas_usb3.c | 8 drivers/vfio/mdev/mdev_core.c | 102 +++----- drivers/vfio/mdev/mdev_private.h | 2 drivers/vfio/platform/vfio_platform_common.c | 15 - drivers/vfio/vfio_iommu_type1.c | 73 ++++-- drivers/video/backlight/pwm_bl.c | 6 drivers/watchdog/da9063_wdt.c | 17 + fs/block_dev.c | 9 fs/btrfs/inode.c | 33 +- fs/btrfs/qgroup.c | 19 + fs/btrfs/tree-log.c | 10 fs/ceph/super.c | 2 fs/crypto/crypto.c | 11 fs/ext4/balloc.c | 3 fs/ext4/ialloc.c | 8 fs/ext4/inline.c | 19 - fs/ext4/inode.c | 16 - fs/ext4/super.c | 8 fs/f2fs/data.c | 8 fs/f2fs/file.c | 18 + fs/f2fs/gc.c | 11 fs/f2fs/segment.c | 5 fs/f2fs/super.c | 6 fs/nfs/nfs4proc.c | 14 - fs/nfs/pnfs.c | 6 fs/nfsd/nfs4xdr.c | 2 fs/overlayfs/super.c | 19 + fs/proc/task_mmu.c | 26 +- fs/squashfs/cache.c | 3 fs/squashfs/file.c | 8 fs/squashfs/fragment.c | 4 fs/squashfs/squashfs_fs.h | 6 include/drm/drm_dp_helper.h | 1 include/linux/delayacct.h | 4 include/linux/dma-iommu.h | 1 include/linux/mmc/sdio_ids.h | 1 include/linux/netfilter/ipset/ip_set_timeout.h | 10 include/linux/regulator/consumer.h | 1 include/linux/serial_core.h | 3 include/linux/thread_info.h | 6 include/net/tcp.h | 2 include/soc/tegra/mc.h | 2 include/uapi/sound/asoc.h | 23 +- kernel/auditfilter.c | 2 kernel/auditsc.c | 2 kernel/bpf/verifier.c | 4 kernel/delayacct.c | 17 - kernel/fork.c | 3 kernel/hung_task.c | 11 kernel/kcov.c | 3 kernel/kthread.c | 8 kernel/power/suspend.c | 14 - kernel/printk/printk_safe.c | 2 kernel/stop_machine.c | 24 +- kernel/trace/trace_events_trigger.c | 18 + kernel/trace/trace_kprobe.c | 15 + mm/slub.c | 2 mm/vmalloc.c | 3 net/ipv4/fib_frontend.c | 4 net/ipv4/ipconfig.c | 13 + net/ipv4/tcp_bbr.c | 4 net/ipv4/tcp_dctcp.c | 4 net/ipv4/tcp_input.c | 48 ++-- net/netfilter/ipset/ip_set_hash_gen.h | 5 net/netfilter/nf_tables_api.c | 11 net/netlink/af_netlink.c | 5 security/integrity/ima/ima_main.c | 1 sound/pci/emu10k1/emupcm.c | 4 sound/pci/emu10k1/memory.c | 6 sound/pci/fm801.c | 16 + sound/pci/hda/patch_ca0132.c | 8 sound/soc/soc-pcm.c | 6 sound/soc/soc-topology.c | 19 + sound/usb/pcm.c | 2 tools/perf/util/parse-events.y | 14 + tools/testing/selftests/intel_pstate/run.sh | 29 +- tools/testing/selftests/memfd/run_tests.sh | 14 - tools/usb/usbip/libsrc/vhci_driver.c | 32 +- tools/usb/usbip/libsrc/vhci_driver.h | 3 tools/usb/usbip/src/usbip_detach.c | 9 238 files changed, 1564 insertions(+), 825 deletions(-)
Alex Williamson (2):
vfio/mdev: Check globally for duplicate devices vfio/type1: Fix task tracking for QEMU vCPU hotplug
Alexandre Belloni (4):
rtc: ensure rtc_set_alarm fails when alarms are not supported
rtc: tps6586x: fix possible race condition
rtc: vr41xx: fix possible race condition
rtc: tps65910: fix possible race condition
Alexey Khoroshilov (1):
spi: meson-spicc: Fix error handling in meson_spicc_probe()
Alexey Kodanev (1):
netfilter: nf_tables: check msg_type before nft_trans_set(trans)
Anatoly Pugachev (1):
disable loading f2fs module on PAGE_SIZE > 4KB
Andrew Morton (2):
drivers/infiniband/core/verbs.c: fix build with gcc-4.4.4 drivers/infiniband/ulp/srpt/ib_srpt.c: fix build with gcc-4.4.4
Andrey Smirnov (1):
soc: imx: gpcv2: Do not pass static memory as platform data
Andy Shevchenko (1):
drm/dp/mst: Fix off-by-one typo when dump payload table
Anson Huang (1):
regulator: pfuze100: add .is_enable() for pfuze100_swb_regulator_ops
Anton Vasilyev (1):
net: mdio-mux: bcm-iproc: fix wrong getter and setter pair
Artem Savkov (1):
tracing/kprobes: Fix trace_probe flags on enable_trace_kprobe() failure
Bart Van Assche (2):
RDMA/core: Avoid that ib_drain_qp() triggers an out-of-bounds stack access IB/srpt: Fix an out-of-bounds stack access in srpt_zerolength_write()
Bartlomiej Zolnierkiewicz (1):
thermal: exynos: fix setting rising_threshold for Exynos5433
Ben Skeggs (1):
drm/nouveau/fifo/gk104-: poll for runlist update completion
Benjamin Poirier (1):
e1000e: Ignore TSYNCRXCTL when getting I219 clock attributes
Brad Love (1):
media: saa7164: Fix driver name in debug output
Chad Dupuis (1):
scsi: qedf: Set the UNLOADING flag when removing a vport
Chao Yu (5):
f2fs: fix error path of move_data_page
f2fs: fix to don't trigger writeback during recovery
f2fs: fix to wait page writeback during revoking atomic write
f2fs: fix to detect failure of dquot_initialize
f2fs: fix race in between GC and atomic open
Chen-Yu Tsai (1):
Input: i8042 - add Lenovo LaVie Z to the i8042 reset list
Chengguang Xu (2):
ceph: fix alignment of rasize
ovl: Sync upper dirty data when syncing overlayfs
Chintan Pandya (1):
mm: vmalloc: avoid racy handling of debugobjects in vunmap
Chris Novakovic (1):
ipconfig: Correctly initialise ic_nameservers
Christoph Hellwig (1):
PCI: Prevent sysfs disable of device while driver is attached
Christophe Leroy (2):
powerpc/lib: Adjust .balign inside string functions for PPC32 powerpc/8xx: fix invalid register expression in head_8xx.S
Colin Ian King (1):
media: smiapp: fix timeout checking in smiapp_read_nvm
Cong Wang (1):
infiniband: fix a possible use-after-free bug
DaeRyong Jeong (1):
tty: Fix data race in tty_insert_flip_string_fixed_flag
Damien Le Moal (1):
libata: Fix command retry decision
Dan Carpenter (1):
scsi: megaraid: silence a static checker bug
Daniel Díaz (1):
selftests/intel_pstate: Improve test, minor fixes
David Sterba (1):
btrfs: add barriers to btrfs_sync_log before log_commit_wait wakeups
Dmitry Osipenko (2):
memory: tegra: Do not handle spurious interrupts
memory: tegra: Apply interrupts mask per SoC
Dmitry Safonov (2):
netlink: Do not subscribe to non-existent groups
netlink: Don't shift with UB on nlk->ngroups
Dmitry Torokhov (1):
HID: i2c-hid: check if device is there before really probing
Dominik Bozek (1):
usb: hub: Don't wait for connect state at resume for powered-off ports
Donald Shanty III (1):
Input: elan_i2c - add ACPI ID for lenovo ideapad 330
Doug Oucahrek (1):
staging: lustre: o2iblnd: fix race at kiblnd_connect_peer
Doug Oucharek (1):
staging: lustre: o2iblnd: Fix FastReg map/unmap for MLX5
Douglas Anderson (2):
serial: core: Make sure compiler barfs for 16-byte earlycon names
regulator: Don't return or expect -errno from of_map_mode()
Emil Tantilov (1):
ixgbevf: fix MAC address changes through ixgbevf_set_mac()
Enric Balletbo i Serra (1):
arm64: defconfig: Enable Rockchip io-domain driver
Eric Biggers (1):
fscrypt: use unbound workqueue for decryption
Eric Dumazet (4):
tcp: do not force quickack when receiving out-of-order packets
tcp: add max_quickacks param to tcp_incr_quickack and tcp_enter_quickack_mode
tcp: do not aggressively quick ack after ECN events
tcp: add one more quick ack after after ECN events
Ethan Lien (1):
btrfs: balance dirty metadata pages in btrfs_finish_ordered_io
Eugeniy Paltsev (1):
NET: stmmac: align DMA stuff to largest cache line length
Eyal Reizer (1):
wlcore: sdio: check for valid platform device data before suspend
Ezequiel Garcia (1):
media: tw686x: Fix incorrect vb2_mem_ops GFP flags
Filippo Muzzini (1):
block, bfq: remove wrong lock in bfq_requests_merged
Florent Fourcot (1):
netfilter: ipset: forbid family for hash:mac sets
Florian Fainelli (1):
net: phy: phylink: Release link GPIO
Fuyun Liang (1):
net: hns3: Fixes the init of the VALID BD info in the descriptor
Gal Pressman (1):
net: ena: Fix use of uninitialized DMA address bits field
Ganapathi Bhat (1):
mwifiex: handle race during mwifiex_usb_disconnect
Geert Uytterhoeven (4):
vfio: platform: Fix reset module leak in error path
spi: sh-msiof: Fix setting SIRMDR1.SYNCAC to match SITMDR1.SYNCAC
ARM: dts: emev2: Add missing interrupt-affinity to PMU node
ARM: dts: sh73a0: Add missing interrupt-affinity to PMU node
Gioh Kim (1):
md/raid1: add error handling of read error from FailFast device
Greg Edwards (1):
block: reset bi_iter.bi_done after splitting bio
Greg Kroah-Hartman (1):
Linux 4.14.60
Grygorii Strashko (1):
net: ethernet: ti: cpsw-phy-sel: check bus_find_device() ret value
Hans Verkuil (1):
media: videobuf2-core: don't call memop 'finish' when queueing
Hans de Goede (1):
ACPI / LPSS: Only call pwm_add_table() for Bay Trail PWM if PMIC HRV is 2
Huang Ying (1):
mm: /proc/pid/pagemap: hide swap entries from unprivileged users
Huazhong Tan (1):
net: hns3: Fixes the out of bounds access in hclge_map_tqp
Jacob Keller (1):
i40e: free the skb after clearing the bitlock
Jaegeuk Kim (1):
f2fs: avoid fsync() failure caused by EAGAIN in writepage()
Jakub Kicinski (1):
bpf: fix references to free_bpf_prog_info() in comments
James Simmons (1):
staging: lustre: llite: correct removexattr detection
Jan Kiszka (1):
PCI: Fix devm_pci_alloc_host_bridge() memory leak
Jane Wan (1):
mtd: rawnand: fsl_ifc: fix FSL NAND driver to read all ONFI parameter pages
Javier González (1):
lightnvm: pblk: warn in case of corrupted write buffer
Jens Remus (1):
scsi: zfcp: assert that the ERP lock is held when tracing a recovery trigger
Jian-Hong Pan (1):
Bluetooth: btusb: Add a new Realtek 8723DE ID 2ff8:b011
Jianchao Wang (1):
nvme-rdma: stop admin queue before freeing it
Jiri Olsa (1):
perf tools: Fix pmu events parsing rule
Johannes Weiner (1):
arm64: fix vmemmap BUILD_BUG_ON() triggering on !vmemmap setups
Jonathan Neuschäfer (1):
powerpc/embedded6xx/hlwd-pic: Prevent interrupts from being handled by Starlet
José Roberto de Souza (1):
drm: Add DP PSR2 sink enable bit
Jozsef Kadlecsik (1):
netfilter: ipset: List timing out entries with "timeout 1" instead of zero
Juergen Gross (1):
xen/netfront: raise max number of slots in xennet_get_responses()
Julia Lawall (1):
pinctrl: at91-pio4: add missing of_node_put
KT Liao (1):
Input: elan_i2c - add another ACPI ID for Lenovo Ideapad 330-15AST
Kai Chieh Chuang (1):
ASoC: dpcm: fix BE dai not hw_free and shutdown
Kan Liang (2):
perf/x86/intel/uncore: Correct fixed counter index check in generic code perf/x86/intel/uncore: Correct fixed counter index check for NHM
Kees Cook (1):
fork: unconditionally clear stack on fork
Keith Busch (1):
nvme-pci: Fix AER reset handling
Kirill Marinushkin (2):
ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()
ASoC: topology: Add missing clock gating parameter when parsing hw_configs
Kuninori Morimoto (1):
arm64: dts: renesas: salvator-common: use audio-graph-card for Sound
Laurentiu Tudor (1):
irqchip/ls-scfg-msi: Map MSIs in the iommu
Leon Romanovsky (2):
RDMA/mad: Convert BUG_ONs to error flows
RDMA/uverbs: Protect from attempts to create flows on unsupported QP
Linus Torvalds (1):
squashfs: be more careful about metadata corruption
Lixin Wang (1):
i2c: core: decrease reference count of device node in i2c_unregister_device
Lorenzo Bianconi (1):
ipv4: remove BUG_ON() from fib_compute_spec_dst
Lorenzo Pieralisi (1):
PCI: xgene: Remove leftover pci_scan_child_bus() call
Luc Van Oostenryck (2):
drm/radeon: fix mode_valid's return type drm/gma500: fix psb_intel_lvds_mode_valid()'s return type
Lukas Wunner (1):
PCI: pciehp: Assume NoCompl+ for Thunderbolt ports
Marc Zyngier (1):
dma-iommu: Fix compilation when !CONFIG_IOMMU_DMA
Marco Felsch (1):
watchdog: da9063: Fix updating timeout value
Marek Szyprowski (1):
spi: spi-s3c64xx: Fix system resume support
Mark Rutland (2):
kcov: ensure irq code sees a valid area drivers/perf: arm-ccn: don't log to dmesg in event_init
Martin Blumenstingl (1):
dt-bindings: pinctrl: meson: add support for the Meson8m2 SoC
Martin Wilck (2):
block: bio_iov_iter_get_pages: fix size of last iovec
blkdev: __blkdev_direct_IO_simple: fix leak in error case
Mathieu Malaterre (7):
mm/slub.c: add __printf verification to slab_err() powerpc/32: Add a missing include header
powerpc/chrp/time: Make some functions static, add missing header include powerpc/powermac: Add missing prototype for note_bootable_part() powerpc/powermac: Mark variable x as unused
powerpc: Add __printf verification to prom_printf
nvmem: properly handle returned value nvmem_reg_read
Matthew R. Ochs (1):
scsi: cxlflash: Avoid clobbering context control register value
Mauro Carvalho Chehab (4):
media: atomisp: ov2680: don't declare unused vars
media: siano: get rid of __le32/__le16 cast warnings
media: atomisp: compat32: fix __user annotations
media: si470x: fix __be16 annotations
Maya Erez (1):
scsi: ufs: fix exception event handling
Michael Chan (1):
bnxt_en: Check unsupported speeds in bnxt_update_link() on PF only.
Michael Grzeschik (1):
usbip: dynamically allocate idev by nports found in sysfs
Michal Simek (1):
microblaze: Fix simpleImage format generation
Michal Suchanek (1):
powerpc/64s: Add barrier_nospec
Michal Vokáč (5):
net: dsa: qca8k: Add support for QCA8334 switch
net: dsa: qca8k: Force CPU port to its highest bandwidth
net: dsa: qca8k: Enable RXMAC when bringing up a port
net: dsa: qca8k: Add QCA8334 binding documentation
net: dsa: qca8k: Allow overwriting CPU port setting
Mika Westerberg (1):
PCI: pciehp: Request control of native hotplug only if supported
Mimi Zohar (1):
ima: based on policy verify firmware signatures (pre-allocated buffer)
Neal Cardwell (1):
tcp_bbr: fix bw probing to raise in-flight data for very small BDPs
NeilBrown (1):
staging: lustre: ldlm: free resource when ldlm_lock_create() fails.
Nicholas Piggin (1):
powerpc/64s: Fix compiler store ordering to SLB shadow area
Olga Kornievskaia (1):
skip LAYOUTRETURN if layout is invalid
Omar Sandoval (2):
Btrfs: don't return ino to ino cache if inode item removal fails
Btrfs: don't BUG_ON() in btrfs_truncate_inode_items()
Ondrej Mosnáček (1):
audit: allow not equal op for audit by executable
Patrice Chotard (1):
ARM: dts: stih407-pinctrl: Fix complain about IRQ_TYPE_NONE usage
Petr Machata (1):
mlxsw: spectrum_switchdev: Fix port_vlan refcounting
Qu Wenruo (1):
btrfs: qgroup: Finish rescan when hit the last leaf of extent tree
Sahitya Tummala (1):
f2fs: Fix deadlock in shutdown ioctl
Sam Bobroff (1):
powerpc/eeh: Fix use-after-release of EEH driver
Sami Tolvanen (1):
media: media-device: fix ioctl function types
Samuel Li (1):
drm/amdgpu: Remove VRAM from shared bo domains.
Sandipan Das (1):
bpf: powerpc64: pad function address loads with NOPs
Satendra Singh Thakur (1):
drm/atomic: Handling the case when setting old crtc for plane
Scott Mayhew (1):
nfsd: fix potential use-after-free in nfsd4_decode_getdeviceinfo
Scott Wood (1):
x86/microcode: Make the late update update_lock a raw lock for RT
Sean Lanigan (1):
brcmfmac: Add support for bcm43364 wireless chipset
Sebastian Andrzej Siewior (2):
PM / wakeup: Make s2idle_lock a RAW_SPINLOCK
delayacct: Use raw_spinlocks
Sergey Senozhatsky (1):
printk: drop in_nmi check from printk_safe_flush_on_panic()
Shakeel Butt (1):
kvm, mm: account shadow page tables to kmemcg
Shaul Triebitz (1):
iwlwifi: pcie: fix race in Rx buffer allocator
Shawn Lin (1):
mmc: dw_mmc: update actual clock for mmc debugfs
Shivasharan S (1):
scsi: megaraid_sas: Increase timeout by 1 sec for non-RAID fastpath IOs
Shuah Khan (Samsung OSG) (3):
usbip: usbip_detach: Fix memory, udev context and udev leak
selftests: memfd: return Kselftest Skip code for skipped tests
selftests: intel_pstate: return Kselftest Skip code for skipped tests
Siva Rebbagondla (2):
rsi: Fix 'invalid vdd' warning in mmc
rsi: fix nommu_map_sg overflow kernel panic
Snild Dolkow (1):
kthread, tracing: Don't expose half-written comm when creating kthreads
Stefan Wahren (2):
staging: vchiq_core: Fix missing semaphore release in error case
net: lan78xx: fix rx handling before first packet is send
Stephen Hemminger (1):
hv_netvsc: fix network namespace issues with VF support
Steven Rostedt (VMware) (3):
tracing: Fix double free of event_trigger_data
tracing: Fix possible double free in event_enable_trigger_func()
tracing: Quiet gcc warning about maybe unused link variable
Stewart Smith (1):
hvc_opal: don't set tb_ticks_per_usec in udbg_init_opal_common()
Subhash Jadavani (1):
scsi: ufs: ufshcd: fix possible unclocked register access
Suman Anna (1):
media: omap3isp: fix unbalanced dma_iommu_mapping
Sven Eckelmann (9):
ath: Add regulatory mapping for FCC3_ETSIC
ath: Add regulatory mapping for ETSI8_WORLD
ath: Add regulatory mapping for APL13_WORLD
ath: Add regulatory mapping for APL2_FCCA
ath: Add regulatory mapping for Uganda
ath: Add regulatory mapping for Tanzania
ath: Add regulatory mapping for Serbia
ath: Add regulatory mapping for Bermuda
ath: Add regulatory mapping for Bahamas
Takashi Iwai (2):
ALSA: emu10k1: Rate-limit error messages about page errors
ALSA: usb-audio: Apply rate limit to warning messages in URB complete callback
Takashi Sakamoto (1):
ALSA: hda/ca0132: fix build failure when a local macro is defined
Tejun Heo (1):
delayacct: fix crash in delayacct_blkio_end() after delayacct init failure
Terry Junge (1):
HID: hid-plantronics: Re-resend Update to map button for PTT products
Tetsuo Handa (1):
kernel/hung_task.c: show all hung tasks before panic
Theodore Ts'o (4):
random: mix rdrand with entropy sent in from userspace
ext4: fix inline data updates with checksums enabled
ext4: check for allocation block validity with block group locked
ext4: fix check to prevent initializing reserved inodes
Thierry Escande (1):
Bluetooth: hci_qca: Fix "Sleep inside atomic section" warning
Thomas Gleixner (1):
stop_machine: Use raw spinlocks
Thomas Richter (2):
s390/cpum_sf: Add data entry sizes to sampling trailer entry
perf: fix invalid bit in diagnostic entry
Thor Thayer (1):
EDAC, altera: Fix ARM64 build warning
Tobin C. Harding (1):
mmc: pwrseq: Use kmalloc_array instead of stack VLA
Tony Lindgren (1):
spi: Add missing pm_runtime_put_noidle() after failed get
Trond Myklebust (2):
NFSv4.1: Fix the client behaviour on NFS4ERR_SEQ_FALSE_RETRY
pnfs: Don't release the sequence slot until we've processed layoutget on open
Tudor-Dan Ambarus (2):
crypto: authencesn - don't leak pointers to authenc keys
crypto: authenc - don't leak pointers to authenc keys
Uma Krishnan (1):
scsi: cxlflash: Synchronize reset and remove ops
Vic Wei (1):
Bluetooth: btusb: add ID for LiteOn 04ca:301a
Ville Syrjälä (1):
drm/atomic-helper: Drop plane->fb references only for drm_atomic_helper_shutdown()
Vincent Palatin (1):
mfd: cros_ec: Fail early if we cannot identify the EC
Vinicius Costa Gomes (1):
igb: Fix queue selection on MAC filters on i210
Wang YanQing (1):
bpf, arm32: fix inconsistent naming about emit_a32_lsr_{r64,i64}Wei Xu (1):
nvme: lightnvm: add granby support
Wei Yongjun (1):
media: rcar_jpu: Add missing clk_disable_unprepare() on error in jpu_open()
Wenwen Wang (2):
scsi: 3w-9xxx: fix a missing-check bug
scsi: 3w-xxxx: fix a missing-check bug
Will Deacon (1):
arm64: cmpwait: Clear event register before arming exclusive monitor
Wolfram Sang (1):
backlight: pwm_bl: Don't use GPIOF_* with gpiod_get_direction
Xi Wang (1):
net: hns3: Fix the missing client list node initialization
Xiang Chen (1):
scsi: hisi_sas: config ATA de-reset as an constrained command for v3 hw
Xiao Liang (1):
xen-netfront: wait xenbus state change when load module manually
Xinming Hu (1):
mwifiex: correct histogram data with appropriate index
Xose Vazquez Perez (1):
scsi: scsi_dh: replace too broad "TP9" string with the exact models
Yixun Lan (1):
dt-bindings: net: meson-dwmac: new compatible name for AXG SoC
Yoshihiro Shimoda (1):
usb: gadget: udc: renesas_usb3: should remove debugfs
Yousuk Seung (1):
tcp: refactor tcp_ecn_check_ce to remove sk type cast
Yufen Yu (1):
md: fix NULL dereference of mddev->pers in remove_and_add_spares()
Zhouyang Jia (2):
ALSA: emu10k1: add error handling for snd_ctl_add
ALSA: fm801: add error handling for snd_ctl_add
tangpengpeng (1):
net: fix amd-xgbe flow-control issue
Greg KH
maintainerDocumentation/devicetree/bindings/net/dsa/qca8k.txt +22 -1
@@ -2,7 +2,10 @@ Required properties: -- compatible: should be "qca,qca8337" +- compatible: should be one of: + "qca,qca8334" + "qca,qca8337" + - #size-cells: must be 0 - #address-cells: must be 1
@@ -14,6 +17,20 @@ port and PHY id, each subnode describing a port needs to have a valid phandle referencing the internal PHY connected to it. The CPU port of this switch is always port 0. +A CPU port node has the following optional node: + +- fixed-link : Fixed-link subnode describing a link to a non-MDIO + managed entity. See + Documentation/devicetree/bindings/net/fixed-link.txt + for details. + +For QCA8K the 'fixed-link' sub-node supports only the following properties: + +- 'speed' (integer, mandatory), to indicate the link speed. Accepted + values are 10, 100 and 1000 +- 'full-duplex' (boolean, optional), to indicate that full duplex is + used. When absent, half duplex is assumed. + Example:
@@ -53,6 +70,10 @@ Example: label = "cpu"; ethernet = <&gmac1>; phy-mode = "rgmii"; + fixed-link { + speed = 1000; + full-duplex; + }; }; port@1 {
Documentation/devicetree/bindings/net/meson-dwmac.txt +1 -0
@@ -10,6 +10,7 @@ Required properties on all platforms: - "amlogic,meson6-dwmac" - "amlogic,meson8b-dwmac" - "amlogic,meson-gxbb-dwmac" + - "amlogic,meson-axg-dwmac" Additionally "snps,dwmac" and any applicable more detailed version number described in net/stmmac.txt should be used.
Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt +2 -0
@@ -3,8 +3,10 @@ Required properties for the root node: - compatible: one of "amlogic,meson8-cbus-pinctrl" "amlogic,meson8b-cbus-pinctrl" + "amlogic,meson8m2-cbus-pinctrl" "amlogic,meson8-aobus-pinctrl" "amlogic,meson8b-aobus-pinctrl" + "amlogic,meson8m2-aobus-pinctrl" "amlogic,meson-gxbb-periphs-pinctrl" "amlogic,meson-gxbb-aobus-pinctrl" "amlogic,meson-gxl-periphs-pinctrl"
Documentation/vfio-mediated-device.txt +5 -0
@@ -145,6 +145,11 @@ The functions in the mdev_parent_ops structure are as follows: * create: allocate basic resources in a driver for a mediated device * remove: free resources in a driver when a mediated device is destroyed +(Note that mdev-core provides no implicit serialization of create/remove +callbacks per mdev parent device, per mdev type, or any other categorization. +Vendor drivers are expected to be fully asynchronous in this respect or +provide their own internal resource protection.) + The callbacks in the mdev_parent_ops structure are as follows: * open: open callback of mediated device
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 59 +SUBLEVEL = 60 EXTRAVERSION = NAME = Petit Gorille
arch/arm/boot/dts/emev2.dtsi +3 -2
@@ -31,13 +31,13 @@ #address-cells = <1>; #size-cells = <0>; - cpu@0 { + cpu0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <0>; clock-frequency = <533000000>; }; - cpu@1 { + cpu1: cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <1>;
@@ -57,6 +57,7 @@ compatible = "arm,cortex-a9-pmu"; interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>; + interrupt-affinity = <&cpu0>, <&cpu1>; }; clocks@e0110000 {
arch/arm/boot/dts/sh73a0.dtsi +3 -2
@@ -22,7 +22,7 @@ #address-cells = <1>; #size-cells = <0>; - cpu@0 { + cpu0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <0>;
@@ -30,7 +30,7 @@ power-domains = <&pd_a2sl>; next-level-cache = <&L2>; }; - cpu@1 { + cpu1: cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <1>;
@@ -89,6 +89,7 @@ compatible = "arm,cortex-a9-pmu"; interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; + interrupt-affinity = <&cpu0>, <&cpu1>; }; cmt1: timer@e6138000 {
arch/arm/boot/dts/stih407-pinctrl.dtsi +5 -5
@@ -52,7 +52,7 @@ st,syscfg = <&syscfg_sbc>; reg = <0x0961f080 0x4>; reg-names = "irqmux"; - interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "irqmux"; ranges = <0 0x09610000 0x6000>;
@@ -376,7 +376,7 @@ st,syscfg = <&syscfg_front>; reg = <0x0920f080 0x4>; reg-names = "irqmux"; - interrupts = <GIC_SPI 189 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "irqmux"; ranges = <0 0x09200000 0x10000>;
@@ -936,7 +936,7 @@ st,syscfg = <&syscfg_front>; reg = <0x0921f080 0x4>; reg-names = "irqmux"; - interrupts = <GIC_SPI 190 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "irqmux"; ranges = <0 0x09210000 0x10000>;
@@ -969,7 +969,7 @@ st,syscfg = <&syscfg_rear>; reg = <0x0922f080 0x4>; reg-names = "irqmux"; - interrupts = <GIC_SPI 191 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "irqmux"; ranges = <0 0x09220000 0x6000>;
@@ -1164,7 +1164,7 @@ st,syscfg = <&syscfg_flash>; reg = <0x0923f080 0x4>; reg-names = "irqmux"; - interrupts = <GIC_SPI 192 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "irqmux"; ranges = <0 0x09230000 0x3000>;
arch/arm/net/bpf_jit_32.c +5 -5
@@ -718,7 +718,7 @@ static inline void emit_a32_arsh_r64(const u8 dst[], const u8 src[], bool dstk, }/* dst = dst >> src */ -static inline void emit_a32_lsr_r64 (const u8 dst[],const u8 src[],bool dstk, +static inline void emit_a32_rsh_r64 (const u8 dst[],const u8 src[],bool dstk,bool sstk,struct jit_ctx *ctx) {const u8 *tmp = bpf2a32[TMP_REG_1 ];const u8 *tmp2 = bpf2a32[TMP_REG_2 ];
@@ -734,7 +734,7 @@ static inline void emit_a32_lsr_r64(const u8 dst[], const u8 src[], bool dstk,emit (ARM_LDR_I (rm,ARM_SP ,STACK_VAR (dst_hi)), ctx); } -/* Do LSH operation */ +/* Do RSH operation */ emit (ARM_RSB_I (ARM_IP , rt,32 ), ctx);emit (ARM_SUBS_I (tmp2[0 ], rt,32 ), ctx);emit (ARM_MOV_SR (ARM_LR , rd,SRTYPE_LSR , rt), ctx);
@@ -784,7 +784,7 @@ static inline void emit_a32_lsh_i64(const u8 dst[], bool dstk, }/* dst = dst >> val */ -static inline void emit_a32_lsr_i64 (const u8 dst[],bool dstk, +static inline void emit_a32_rsh_i64 (const u8 dst[],bool dstk,const u32 val,struct jit_ctx *ctx) {const u8 *tmp = bpf2a32[TMP_REG_1 ];const u8 *tmp2 = bpf2a32[TMP_REG_2 ];
@@ -1340,7 +1340,7 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx)case BPF_ALU64 |BPF_RSH |BPF_K :if (unlikely (imm >63 ))return -EINVAL ; -emit_a32_lsr_i64 (dst, dstk, imm, ctx); +emit_a32_rsh_i64 (dst, dstk, imm, ctx);break ;/* dst = dst << src */ case BPF_ALU64 |BPF_LSH |BPF_X :
@@ -1348,7 +1348,7 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx)break ;/* dst = dst >> src */ case BPF_ALU64 |BPF_RSH |BPF_X : -emit_a32_lsr_r64 (dst, src, dstk, sstk, ctx); +emit_a32_rsh_r64 (dst, src, dstk, sstk, ctx);break ;/* dst = dst >> src (signed) */ case BPF_ALU64 |BPF_ARSH |BPF_X :
arch/arm64/boot/dts/renesas/salvator-common.dtsi +22 -16
@@ -93,20 +93,12 @@ regulator-always-on; }; - rsnd_ak4613: sound { - compatible = "simple-audio-card"; + sound_card: sound { + compatible = "audio-graph-card"; - simple-audio-card,format = "left_j"; - simple-audio-card,bitclock-master = <&sndcpu>; - simple-audio-card,frame-master = <&sndcpu>; + label = "rcar-sound"; - sndcpu: simple-audio-card,cpu { - sound-dai = <&rcar_sound>; - }; - - sndcodec: simple-audio-card,codec { - sound-dai = <&ak4613>; - }; + dais = <&rsnd_port0>; }; vbus0_usb2: regulator-vbus0-usb2 {
@@ -320,6 +312,12 @@ asahi-kasei,out4-single-end; asahi-kasei,out5-single-end; asahi-kasei,out6-single-end; + + port { + ak4613_endpoint: endpoint { + remote-endpoint = <&rsnd_endpoint0>; + }; + }; }; cs2000: clk_multiplier@4f {
@@ -538,10 +536,18 @@ <&audio_clk_c>, <&cpg CPG_CORE CPG_AUDIO_CLK_I>; - rcar_sound,dai { - dai0 { - playback = <&ssi0 &src0 &dvc0>; - capture = <&ssi1 &src1 &dvc1>; + ports { + rsnd_port0: port@0 { + rsnd_endpoint0: endpoint { + remote-endpoint = <&ak4613_endpoint>; + + dai-format = "left_j"; + bitclock-master = <&rsnd_endpoint0>; + frame-master = <&rsnd_endpoint0>; + + playback = <&ssi0 &src0 &dvc0>; + capture = <&ssi1 &src1 &dvc1>; + }; }; }; };
arch/arm64/configs/defconfig +2 -0
@@ -302,6 +302,8 @@ CONFIG_GPIO_XGENE_SB=y CONFIG_GPIO_PCA953X=y CONFIG_GPIO_PCA953X_IRQ=y CONFIG_GPIO_MAX77620=y +CONFIG_POWER_AVS=y +CONFIG_ROCKCHIP_IODOMAIN=y CONFIG_POWER_RESET_MSM=y CONFIG_POWER_RESET_XGENE=y CONFIG_POWER_RESET_SYSCON=y
arch/arm64/include/asm/cmpxchg.h +3 -1
@@ -229,7 +229,9 @@ static inline void __cmpwait_case_##name(volatile void *ptr, \unsigned long tmp; \ \ asm volatile( \ - " ldxr" #sz "\t%" #w "[tmp], %[v]\n" \ + " sevl\n" \ + " wfe\n" \ + " ldxr" #sz "\t%" #w "[tmp], %[v]\n" \ " eor %" #w "[tmp], %" #w "[tmp], %" #w "[val]\n" \ " cbnz %" #w "[tmp], 1f\n" \ " wfe\n" \
arch/arm64/mm/init.c +3 -1
@@ -651,11 +651,13 @@ void __init mem_init(void)BUILD_BUG_ON (TASK_SIZE_32 >TASK_SIZE_64 );#endif +#ifdef CONFIG_SPARSEMEM_VMEMMAP /* * Make sure we chose the upper bound of sizeof(struct page) -* correctly. +* correctly when sizing the VMEMMAP array. */ BUILD_BUG_ON (sizeof (struct page ) > (1 <<STRUCT_PAGE_MAX_SHIFT )); +#endif if (PAGE_SIZE >=16384 &&get_num_physpages () <=128 ) {extern int sysctl_overcommit_memory;
arch/microblaze/boot/Makefile +6 -4
@@ -22,17 +22,19 @@ $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE quiet_cmd_cp = CP $< $@$2 cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) -quiet_cmd_strip = STRIP $@ +quiet_cmd_strip = STRIP $< $@$2 cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ - -K _fdt_start vmlinux -o $@ + -K _fdt_start $< -o $@$2 UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR) +UIMAGE_IN = $@ +UIMAGE_OUT = [email protected] $(obj)/simpleImage.%: vmlinux FORCE $(call if_changed,cp,.unstrip) $(call if_changed,objcopy) $(call if_changed,uimage) - $(call if_changed,strip) - @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' + $(call if_changed,strip,.strip) + @echo 'Kernel: $(UIMAGE_OUT) is ready' ' (#'`cat .version`')' clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb
arch/powerpc/include/asm/barrier.h +15 -0
@@ -76,6 +76,21 @@ do { \ ___p1; \ }) +#ifdef CONFIG_PPC_BOOK3S_64 +/* +* Prevent execution of subsequent instructions until preceding branches have +* been fully resolved and are no longer executing speculatively. +*/ +#define barrier_nospec_asm ori 31,31,0 + +// This also acts as a compiler barrier due to the memory clobber. +#define barrier_nospec () asm (stringify_in_c(barrier_nospec_asm) ::: "memory") + +#else /* !CONFIG_PPC_BOOK3S_64 */ +#define barrier_nospec_asm +#define barrier_nospec () +#endif +#include <asm-generic/barrier.h> #endif /* _ASM_POWERPC_BARRIER_H */
arch/powerpc/include/asm/cache.h +3 -0
@@ -9,11 +9,14 @@#if defined(CONFIG_PPC_8xx) || defined(CONFIG_403GCX )#define L1_CACHE_SHIFT 4#define MAX_COPY_PREFETCH 1 +#define IFETCH_ALIGN_SHIFT 2#elif defined(CONFIG_PPC_E500MC )#define L1_CACHE_SHIFT 6#define MAX_COPY_PREFETCH 4 +#define IFETCH_ALIGN_SHIFT 3#elif defined(CONFIG_PPC32 )#define MAX_COPY_PREFETCH 4 +#define IFETCH_ALIGN_SHIFT 3/* 603 fetches 2 insn at a time */ #if defined(CONFIG_PPC_47x)#define L1_CACHE_SHIFT 7#else
arch/powerpc/kernel/eeh_driver.c +16 -12
@@ -450,9 +450,11 @@ static void *eeh_add_virt_device(void *data, void *userdata) driver =eeh_pcid_get (dev);if (driver) { -eeh_pcid_put (dev); -if (driver->err_handler) +if (driver->err_handler) { +eeh_pcid_put (dev);return NULL ; + } +eeh_pcid_put (dev); }#ifdef CONFIG_PPC_POWERNV
@@ -489,17 +491,19 @@ static void *eeh_rmv_device(void *data, void *userdata)if (eeh_dev_removed (edev))return NULL ; - driver =eeh_pcid_get (dev); -if (driver) { -eeh_pcid_put (dev); -if (removed && -eeh_pe_passed (edev->pe)) -return NULL ; -if (removed && - driver->err_handler && - driver->err_handler->error_detected && - driver->err_handler->slot_reset) +if (removed) { +if (eeh_pe_passed (edev->pe))return NULL ; + driver =eeh_pcid_get (dev); +if (driver) { +if (driver->err_handler && + driver->err_handler->error_detected && + driver->err_handler->slot_reset) { +eeh_pcid_put (dev); +return NULL ; + } +eeh_pcid_put (dev); + } }/* Remove it from PCI subsystem */
arch/powerpc/kernel/head_8xx.S +1 -1
@@ -958,7 +958,7 @@ start_here: tovirt(r6,r6) lis r5, abatron_pteptrs@h ori r5, r5, abatron_pteptrs@l - stw r5, 0xf0(r0) /* Must match your Abatron config file */ + stw r5, 0xf0(0) /* Must match your Abatron config file */ tophys(r5,r5) stw r6, 0(r5)
arch/powerpc/kernel/pci_32.c +1 -0
@@ -11,6 +11,7 @@#include <linux/sched.h> #include <linux/errno.h> #include <linux/bootmem.h> +#include <linux/syscalls.h> #include <linux/irq.h> #include <linux/list.h> #include <linux/of.h>
arch/powerpc/kernel/prom_init.c +58 -56
289 lines not on this page · raw message
arch/powerpc/lib/string.S +4 -3
@@ -12,6 +12,7 @@ #include <asm/errno.h> #include <asm/ppc_asm.h> #include <asm/export.h> +#include <asm/cache.h> .text
@@ -23,7 +24,7 @@ _GLOBAL(strncpy) mtctr r5 addi r6,r3,-1 addi r4,r4,-1 - .balign 16 + .balign IFETCH_ALIGN_BYTES 1: lbzu r0,1(r4) cmpwi 0,r0,0 stbu r0,1(r6)
@@ -43,7 +44,7 @@ _GLOBAL(strncmp) mtctr r5 addi r5,r3,-1 addi r4,r4,-1 - .balign 16 + .balign IFETCH_ALIGN_BYTES 1: lbzu r3,1(r5) cmpwi 1,r3,0 lbzu r0,1(r4)
@@ -77,7 +78,7 @@ _GLOBAL(memchr) beq- 2f mtctr r5 addi r3,r3,-1 - .balign 16 + .balign IFETCH_ALIGN_BYTES 1: lbzu r0,1(r3) cmpw 0,r0,r4 bdnzf 2,1b
arch/powerpc/mm/slb.c +4 -4
@@ -62,14 +62,14 @@ static inline void slb_shadow_update(unsigned long ea, int ssize,* updating it. No write barriers are needed here, provided * we only update the current CPU's SLB shadow buffer. */ - p->save_area[index].esid =0 ; - p->save_area[index].vsid =cpu_to_be64 (mk_vsid_data (ea, ssize, flags)); - p->save_area[index].esid =cpu_to_be64 (mk_esid_data (ea, ssize, index)); +WRITE_ONCE (p->save_area[index].esid,0 ); +WRITE_ONCE (p->save_area[index].vsid,cpu_to_be64 (mk_vsid_data (ea, ssize, flags))); +WRITE_ONCE (p->save_area[index].esid,cpu_to_be64 (mk_esid_data (ea, ssize, index))); }static inline void slb_shadow_clear (enum slb_index index) { -get_slb_shadow ()->save_area[index].esid =0 ; +WRITE_ONCE (get_slb_shadow ()->save_area[index].esid,0 ); } static inline void create_shadowed_slbe(unsigned long ea, int ssize,
arch/powerpc/net/bpf_jit_comp64.c +23 -11
@@ -203,25 +203,37 @@ static void bpf_jit_build_epilogue(u32 *image, struct codegen_context *ctx)static void bpf_jit_emit_func_call (u32 *image,struct codegen_context *ctx,u64 func) { +unsigned int i, ctx_idx = ctx->idx; + +/* Load function address into r12 */ +PPC_LI64 (12 , func); + +/* For bpf-to-bpf function calls, the callee's address is unknown +* until the last extra pass. As seen above, we use PPC_LI64() to +* load the callee's address, but this may optimize the number of +* instructions required based on the nature of the address. +* +* Since we don't want the number of instructions emitted to change, +* we pad the optimized PPC_LI64() call with NOPs to guarantee that +* we always have a five-instruction sequence, which is the maximum +* that PPC_LI64() can emit. +*/ +for (i = ctx->idx - ctx_idx; i <5 ; i++) +PPC_NOP (); +#ifdef PPC64_ELF_ABI_v1 -/* func points to the function descriptor */ -PPC_LI64 (b2p[TMP_REG_2 ], func); -/* Load actual entry point from function descriptor */ -PPC_BPF_LL (b2p[TMP_REG_1 ], b2p[TMP_REG_2 ],0 ); -/* ... and move it to LR */ -PPC_MTLR (b2p[TMP_REG_1 ]);/* * Load TOC from function descriptor at offset 8. * We can clobber r2 since we get called through a * function pointer (so caller will save/restore r2) * and since we don't use a TOC ourself. */ -PPC_BPF_LL (2 , b2p[TMP_REG_2 ],8 ); -#else -/* We can clobber r12 */ -PPC_FUNC_ADDR (12 , func); -PPC_MTLR (12 ); +PPC_BPF_LL (2 ,12 ,8 ); +/* Load actual entry point from function descriptor */ +PPC_BPF_LL (12 ,12 ,0 );#endif + +PPC_MTLR (12 );PPC_BLRL (); }
arch/powerpc/platforms/chrp/time.c +4 -2
@@ -28,6 +28,8 @@#include <asm/sections.h> #include <asm/time.h> +#include <platforms/chrp/chrp.h> +extern spinlock_t rtc_lock;#define NVRAM_AS0 0x74
@@ -63,7 +65,7 @@ long __init chrp_time_init(void)return 0 ; } -int chrp_cmos_clock_read (int addr) +static int chrp_cmos_clock_read (int addr) {if (nvram_as1 !=0 )outb (addr>>8 , nvram_as1);
@@ -71,7 +73,7 @@ int chrp_cmos_clock_read(int addr)return (inb (nvram_data)); } -void chrp_cmos_clock_write (unsigned long val,int addr) +static void chrp_cmos_clock_write (unsigned long val,int addr) {if (nvram_as1 !=0 )outb (addr>>8 , nvram_as1);
arch/powerpc/platforms/embedded6xx/hlwd-pic.c +5 -0
@@ -35,6 +35,8 @@*/ #define HW_BROADWAY_ICR 0x00#define HW_BROADWAY_IMR 0x04 +#define HW_STARLET_ICR 0x08 +#define HW_STARLET_IMR 0x0c/*
@@ -74,6 +76,9 @@ static void hlwd_pic_unmask(struct irq_data *d)void __iomem *io_base =irq_data_get_irq_chip_data (d);setbits32 (io_base +HW_BROADWAY_IMR ,1 << irq); + +/* Make sure the ARM (aka. Starlet) doesn't handle this interrupt. */ +clrbits32 (io_base +HW_STARLET_IMR ,1 << irq); }
arch/powerpc/platforms/powermac/bootx_init.c +3 -1
@@ -468,7 +468,7 @@ void __init bootx_init(unsigned long r3, unsigned long r4)boot_infos_t *bi = (boot_infos_t *) r4;unsigned long hdr;unsigned long space; -unsigned long ptr, x; +unsigned long ptr;char *model;unsigned long offset =reloc_offset ();
@@ -562,6 +562,8 @@ void __init bootx_init(unsigned long r3, unsigned long r4)* MMU switched OFF, so this should not be useful anymore. */ if (bi->version <4 ) { +unsigned long x__maybe_unused ; +bootx_printf ("Touching pages...\n" );/*
arch/powerpc/platforms/powermac/setup.c +1 -0
@@ -352,6 +352,7 @@ static int pmac_late_init(void) }machine_late_initcall (powermac, pmac_late_init); +void note_bootable_part (dev_t dev,int part,int goodness);/* * This is __ref because we check for "initializing" before * touching any of the __init sensitive things and "initializing"
arch/s390/include/asm/cpu_mf.h +4 -2
@@ -116,7 +116,7 @@ struct hws_basic_entry {struct hws_diag_entry {unsigned int def:16 ;/* 0-15 Data Entry Format */ -unsigned int R:14 ;/* 16-19 and 20-30 reserved */ +unsigned int R:15 ;/* 16-19 and 20-30 reserved */ unsigned int I:1 ;/* 31 entry valid or invalid */ u8 data[];/* Machine-dependent sample data */ } __packed;
@@ -132,7 +132,9 @@ struct hws_trailer_entry { unsigned int f:1; /* 0 - Block Full Indicator */ unsigned int a:1; /* 1 - Alert request control */ unsigned int t:1; /* 2 - Timestamp format */ - unsigned long long:61; /* 3 - 63: Reserved */ + unsigned int :29; /* 3 - 31: Reserved */ + unsigned int bsdes:16; /* 32-47: size of basic SDE */ + unsigned int dsdes:16; /* 48-63: size of diagnostic SDE */ };unsigned long long flags;/* 0 - 63: All indicators */ };
arch/x86/events/intel/uncore.c +1 -1
@@ -218,7 +218,7 @@ void uncore_perf_event_update(struct intel_uncore_box *box, struct perf_event *eu64 prev_count, new_count, delta;int shift; -if (event->hw.idx >=UNCORE_PMC_IDX_FIXED ) +if (event->hw.idx ==UNCORE_PMC_IDX_FIXED ) shift =64 -uncore_fixed_ctr_bits (box);else shift =64 -uncore_perf_ctr_bits (box);
arch/x86/events/intel/uncore_nhmex.c +1 -1
@@ -246,7 +246,7 @@ static void nhmex_uncore_msr_enable_event(struct intel_uncore_box *box, struct p {struct hw_perf_event *hwc = &event->hw; -if (hwc->idx >=UNCORE_PMC_IDX_FIXED ) +if (hwc->idx ==UNCORE_PMC_IDX_FIXED )wrmsrl (hwc->config_base,NHMEX_PMON_CTL_EN_BIT0 );else if (box->pmu->type->event_mask &NHMEX_PMON_CTL_EN_BIT0 )wrmsrl (hwc->config_base, hwc->config |NHMEX_PMON_CTL_EN_BIT22 );
arch/x86/kernel/cpu/microcode/core.c +3 -3
@@ -70,7 +70,7 @@ static DEFINE_MUTEX(microcode_mutex);/* * Serialize late loading so that CPUs get updated one-by-one. */ -static DEFINE_SPINLOCK (update_lock); +static DEFINE_RAW_SPINLOCK (update_lock);struct ucode_cpu_info ucode_cpu_info[NR_CPUS ];
@@ -560,9 +560,9 @@ static int __reload_late(void *info)if (__wait_for_cpus (&late_cpus_in,NSEC_PER_SEC ))return -1 ; -spin_lock (&update_lock); +raw_spin_lock (&update_lock);apply_microcode_local (&err); -spin_unlock (&update_lock); +raw_spin_unlock (&update_lock);/* siblings return UCODE_OK because their engine got updated already */ if (err >UCODE_NFOUND ) {
arch/x86/kvm/mmu.c +1 -1
@@ -890,7 +890,7 @@ static int mmu_topup_memory_cache_page(struct kvm_mmu_memory_cache *cache,if (cache->nobjs >= min)return 0 ;while (cache->nobjs <ARRAY_SIZE (cache->objects)) { - page = (void *)__get_free_page (GFP_KERNEL ); + page = (void *)__get_free_page (GFP_KERNEL_ACCOUNT );if (!page)return -ENOMEM ; cache->objects[cache->nobjs++] = page;
block/bfq-iosched.c +0 -2
@@ -1678,7 +1678,6 @@ static void bfq_requests_merged(struct request_queue *q, struct request *rq,if (!RB_EMPTY_NODE (&rq->rb_node)) goto end; -spin_lock_irq (&bfqq->bfqd->lock);/* * If next and rq belong to the same bfq_queue and next is older
@@ -1702,7 +1701,6 @@ static void bfq_requests_merged(struct request_queue *q, struct request *rq,bfq_remove_request (q, next); -spin_unlock_irq (&bfqq->bfqd->lock); end:bfqg_stats_update_io_merged (bfqq_group (bfqq), next->cmd_flags); }
block/bio.c +9 -10
@@ -881,16 +881,16 @@ EXPORT_SYMBOL(bio_add_page);*/ int bio_iov_iter_get_pages (struct bio *bio,struct iov_iter *iter) { -unsigned short nr_pages = bio->bi_max_vecs - bio->bi_vcnt; +unsigned short nr_pages = bio->bi_max_vecs - bio->bi_vcnt, idx;struct bio_vec *bv = bio->bi_io_vec + bio->bi_vcnt;struct page **pages = (struct page **)bv; -size_t offset, diff; +size_t offset;ssize_t size; size =iov_iter_get_pages (iter, pages,LONG_MAX , nr_pages, &offset);if (unlikely (size <=0 ))return size ? size : -EFAULT ; - nr_pages = (size + offset +PAGE_SIZE -1 ) /PAGE_SIZE ; + idx = nr_pages = (size + offset +PAGE_SIZE -1 ) /PAGE_SIZE ;/* * Deep magic below: We need to walk the pinned pages backwards
@@ -903,17 +903,15 @@ int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter) bio->bi_iter.bi_size += size; bio->bi_vcnt += nr_pages; - diff = (nr_pages *PAGE_SIZE - offset) - size; -while (nr_pages--) { - bv[nr_pages].bv_page = pages[nr_pages]; - bv[nr_pages].bv_len =PAGE_SIZE ; - bv[nr_pages].bv_offset =0 ; +while (idx--) { + bv[idx].bv_page = pages[idx]; + bv[idx].bv_len =PAGE_SIZE ; + bv[idx].bv_offset =0 ; } bv[0 ].bv_offset += offset; bv[0 ].bv_len -= offset; -if (diff) - bv[bio->bi_vcnt -1 ].bv_len -= diff; + bv[nr_pages -1 ].bv_len -= nr_pages *PAGE_SIZE - offset - size;iov_iter_advance (iter, size);return 0 ;
@@ -1891,6 +1889,7 @@ struct bio *bio_split(struct bio *bio, int sectors,bio_integrity_trim (split);bio_advance (bio, split->bi_iter.bi_size); + bio->bi_iter.bi_done =0 ;if (bio_flagged (bio,BIO_TRACE_COMPLETION ))bio_set_flag (split,BIO_TRACE_COMPLETION );
crypto/authenc.c +1 -0
@@ -108,6 +108,7 @@ static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, CRYPTO_TFM_RES_MASK); out: +memzero_explicit (&keys,sizeof (keys));return err; badkey:
crypto/authencesn.c +1 -0
@@ -90,6 +90,7 @@ static int crypto_authenc_esn_setkey(struct crypto_aead *authenc_esn, const u8 * CRYPTO_TFM_RES_MASK); out: +memzero_explicit (&keys,sizeof (keys));return err; badkey:
drivers/acpi/acpi_lpss.c +5 -1
@@ -69,6 +69,10 @@ ACPI_MODULE_NAME("acpi_lpss");#define LPSS_SAVE_CTX BIT(4)#define LPSS_NO_D3_DELAY BIT(5) +/* Crystal Cove PMIC shares same ACPI ID between different platforms */ +#define BYT_CRC_HRV 2 +#define CHT_CRC_HRV 3 +struct lpss_private_data ;struct lpss_device_desc {
@@ -162,7 +166,7 @@ static void byt_pwm_setup(struct lpss_private_data *pdata)if (!adev->pnp.unique_id ||strcmp (adev->pnp.unique_id,"1" ))return ; -if (!acpi_dev_present ("INT33FD" ,NULL ,-1 )) +if (!acpi_dev_present ("INT33FD" ,NULL ,BYT_CRC_HRV ))pwm_add_table (byt_pwm_lookup,ARRAY_SIZE (byt_pwm_lookup)); }
drivers/acpi/pci_root.c +3 -1
@@ -472,9 +472,11 @@ static void negotiate_os_control(struct acpi_pci_root *root, int *no_aspm) } control =OSC_PCI_EXPRESS_CAPABILITY_CONTROL - |OSC_PCI_EXPRESS_NATIVE_HP_CONTROL |OSC_PCI_EXPRESS_PME_CONTROL ; +if (IS_ENABLED (CONFIG_HOTPLUG_PCI_PCIE )) + control |=OSC_PCI_EXPRESS_NATIVE_HP_CONTROL ; +if (pci_aer_available ()) {if (aer_acpi_firmware_first ()) dev_info(&device->dev,
drivers/ata/libata-eh.c +8 -4
@@ -2217,12 +2217,16 @@ static void ata_eh_link_autopsy(struct ata_link *link)if (qc->err_mask & ~AC_ERR_OTHER ) qc->err_mask &= ~AC_ERR_OTHER ; -/* SENSE_VALID trumps dev/unknown error and revalidation */ +/* +* SENSE_VALID trumps dev/unknown error and revalidation. Upper +* layers will determine whether the command is worth retrying +* based on the sense data and device class/type. Otherwise, +* determine directly if the command is worth retrying using its +* error mask and flags. +*/ if (qc->flags &ATA_QCFLAG_SENSE_VALID ) qc->err_mask &= ~(AC_ERR_DEV |AC_ERR_OTHER ); - -/* determine whether the command is worth retrying */ -if (ata_eh_worth_retry (qc)) +else if (ata_eh_worth_retry (qc)) qc->flags |=ATA_QCFLAG_RETRY ;/* accumulate error info */
drivers/bluetooth/btusb.c +4 -0
@@ -279,6 +279,7 @@ static const struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x04ca, 0x3011), .driver_info = BTUSB_QCA_ROME }, { USB_DEVICE(0x04ca, 0x3015), .driver_info = BTUSB_QCA_ROME }, { USB_DEVICE(0x04ca, 0x3016), .driver_info = BTUSB_QCA_ROME }, + { USB_DEVICE(0x04ca, 0x301a), .driver_info = BTUSB_QCA_ROME }, /* Broadcom BCM2035 */ { USB_DEVICE(0x0a5c, 0x2009), .driver_info = BTUSB_BCM92035 },
@@ -373,6 +374,9 @@ static const struct usb_device_id blacklist_table[] = {/* Additional Realtek 8723BU Bluetooth devices */ { USB_DEVICE(0x7392, 0xa611), .driver_info = BTUSB_REALTEK }, + /* Additional Realtek 8723DE Bluetooth devices */ + { USB_DEVICE(0x2ff8, 0xb011), .driver_info = BTUSB_REALTEK }, + /* Additional Realtek 8821AE Bluetooth devices */ { USB_DEVICE(0x0b05, 0x17dc), .driver_info = BTUSB_REALTEK }, { USB_DEVICE(0x13d3, 0x3414), .driver_info = BTUSB_REALTEK },
drivers/bluetooth/hci_qca.c +1 -1
@@ -881,7 +881,7 @@ static int qca_set_baudrate(struct hci_dev *hdev, uint8_t baudrate)*/ set_current_state (TASK_UNINTERRUPTIBLE );schedule_timeout (msecs_to_jiffies (BAUDRATE_SETTLE_TIMEOUT_MS )); -set_current_state (TASK_INTERRUPTIBLE ); +set_current_state (TASK_RUNNING );return 0 ; }
drivers/bus/arm-ccn.c +10 -10
@@ -736,7 +736,7 @@ static int arm_ccn_pmu_event_init(struct perf_event *event) ccn =pmu_to_arm_ccn (event->pmu);if (hw->sample_period) { -dev_warn (ccn->dev,"Sampling not supported!\n" ); +dev_dbg (ccn->dev,"Sampling not supported!\n" );return -EOPNOTSUPP ; }
@@ -744,12 +744,12 @@ static int arm_ccn_pmu_event_init(struct perf_event *event) event->attr.exclude_kernel || event->attr.exclude_hv || event->attr.exclude_idle || event->attr.exclude_host || event->attr.exclude_guest) { -dev_warn (ccn->dev,"Can't exclude execution levels!\n" ); +dev_dbg (ccn->dev,"Can't exclude execution levels!\n" );return -EINVAL ; }if (event->cpu <0 ) { -dev_warn (ccn->dev,"Can't provide per-task data!\n" ); +dev_dbg (ccn->dev,"Can't provide per-task data!\n" );return -EOPNOTSUPP ; }/*
@@ -771,13 +771,13 @@ static int arm_ccn_pmu_event_init(struct perf_event *event)switch (type) {case CCN_TYPE_MN :if (node_xp != ccn->mn_id) { -dev_warn (ccn->dev,"Invalid MN ID %d!\n" , node_xp); +dev_dbg (ccn->dev,"Invalid MN ID %d!\n" , node_xp);return -EINVAL ; }break ;case CCN_TYPE_XP :if (node_xp >= ccn->num_xps) { -dev_warn (ccn->dev,"Invalid XP ID %d!\n" , node_xp); +dev_dbg (ccn->dev,"Invalid XP ID %d!\n" , node_xp);return -EINVAL ; }break ;
@@ -785,11 +785,11 @@ static int arm_ccn_pmu_event_init(struct perf_event *event)break ;default :if (node_xp >= ccn->num_nodes) { -dev_warn (ccn->dev,"Invalid node ID %d!\n" , node_xp); +dev_dbg (ccn->dev,"Invalid node ID %d!\n" , node_xp);return -EINVAL ; }if (!arm_ccn_pmu_type_eq (type, ccn->node[node_xp].type)) { -dev_warn (ccn->dev,"Invalid type 0x%x for node %d!\n" , +dev_dbg (ccn->dev,"Invalid type 0x%x for node %d!\n" , type, node_xp);return -EINVAL ; }
@@ -808,19 +808,19 @@ static int arm_ccn_pmu_event_init(struct perf_event *event)if (event_id != e->event)continue ;if (e->num_ports && port >= e->num_ports) { -dev_warn (ccn->dev,"Invalid port %d for node/XP %d!\n" , +dev_dbg (ccn->dev,"Invalid port %d for node/XP %d!\n" , port, node_xp);return -EINVAL ; }if (e->num_vcs && vc >= e->num_vcs) { -dev_warn (ccn->dev,"Invalid vc %d for node/XP %d!\n" , +dev_dbg (ccn->dev,"Invalid vc %d for node/XP %d!\n" , vc, node_xp);return -EINVAL ; } valid =1 ; }if (!valid) { -dev_warn (ccn->dev,"Invalid event 0x%x for node/XP %d!\n" , +dev_dbg (ccn->dev,"Invalid event 0x%x for node/XP %d!\n" , event_id, node_xp);return -EINVAL ; }
drivers/char/random.c +9 -1
@@ -1897,14 +1897,22 @@ static int write_pool(struct entropy_store *r, const char __user *buffer, size_t count) { size_t bytes; -__u32 buf[16 ]; +__u32 t, buf[16 ];const char __user *p = buffer;while (count >0 ) { +int b, i =0 ; + bytes =min (count,sizeof (buf));if (copy_from_user (&buf, p, bytes))return -EFAULT ; +for (b = bytes ; b >0 ; b -=sizeof (__u32), i++) { +if (!arch_get_random_int (&t)) +break ; + buf[i] ^= t; + } + count -= bytes; p += bytes;
drivers/edac/altera_edac.c +1 -1
@@ -1106,7 +1106,7 @@ static void *ocram_alloc_mem(size_t size, void **other)static void ocram_free_mem (void *p,size_t size,void *other) { -gen_pool_free ((struct gen_pool *)other, (u32 )p, size); +gen_pool_free ((struct gen_pool *)other, (unsigned long )p, size); }static const struct edac_device_prv_data ocramecc_data = {
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +6 -2
@@ -683,8 +683,12 @@ int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain,return -EINVAL ;/* A shared bo cannot be migrated to VRAM */ -if (bo->prime_shared_count && (domain ==AMDGPU_GEM_DOMAIN_VRAM )) -return -EINVAL ; +if (bo->prime_shared_count) { +if (domain &AMDGPU_GEM_DOMAIN_GTT ) + domain =AMDGPU_GEM_DOMAIN_GTT ; +else +return -EINVAL ; + }if (bo->pin_count) {uint32_t mem_type = bo->tbo.mem.mem_type;
drivers/gpu/drm/drm_atomic.c +3 -1
@@ -1355,7 +1355,9 @@ drm_atomic_set_crtc_for_plane(struct drm_plane_state *plane_state, {struct drm_plane *plane = plane_state->plane;struct drm_crtc_state *crtc_state; - +/* Nothing to do for same crtc*/ +if (plane_state->crtc == crtc) +return 0 ;if (plane_state->crtc) { crtc_state =drm_atomic_get_crtc_state (plane_state->state, plane_state->crtc);
drivers/gpu/drm/drm_atomic_helper.c +39 -39
118 lines not on this page · raw message
drivers/gpu/drm/drm_dp_mst_topology.c +5 -4
@@ -2862,12 +2862,14 @@ static void drm_dp_mst_dump_mstb(struct seq_file *m, } } +#define DP_PAYLOAD_TABLE_SIZE 64 +static bool dump_dp_payload_table (struct drm_dp_mst_topology_mgr *mgr,char *buf) {int i; -for (i =0 ; i <64 ; i +=16 ) { +for (i =0 ; i <DP_PAYLOAD_TABLE_SIZE ; i +=16 ) {if (drm_dp_dpcd_read (mgr->aux,DP_PAYLOAD_TABLE_UPDATE_STATUS + i, &buf[i],16 ) !=16 )
@@ -2936,7 +2938,7 @@ void drm_dp_mst_dump_topology(struct seq_file *m,mutex_lock (&mgr->lock);if (mgr->mst_primary) { -u8 buf[64 ]; +u8 buf[DP_PAYLOAD_TABLE_SIZE ];int ret; ret =drm_dp_dpcd_read (mgr->aux,DP_DPCD_REV , buf,DP_RECEIVER_CAP_SIZE );
@@ -2954,8 +2956,7 @@ void drm_dp_mst_dump_topology(struct seq_file *m,seq_printf (m," revision: hw: %x.%x sw: %x.%x\n" , buf[0x9 ] >>4 , buf[0x9 ] &0xf , buf[0xa ], buf[0xb ]);if (dump_dp_payload_table (mgr, buf)) -seq_printf (m,"payload table: %*ph\n" ,63 , buf); - +seq_printf (m,"payload table: %*ph\n" ,DP_PAYLOAD_TABLE_SIZE , buf); }mutex_unlock (&mgr->lock);
drivers/gpu/drm/gma500/psb_intel_drv.h +1 -1
@@ -255,7 +255,7 @@ extern int intelfb_remove(struct drm_device *dev,extern bool psb_intel_lvds_mode_fixup (struct drm_encoder *encoder,const struct drm_display_mode *mode,struct drm_display_mode *adjusted_mode); -extern int psb_intel_lvds_mode_valid (struct drm_connector *connector, +extern enum drm_mode_status psb_intel_lvds_mode_valid (struct drm_connector *connector,struct drm_display_mode *mode); extern int psb_intel_lvds_set_property(struct drm_connector *connector, struct drm_property *property,
drivers/gpu/drm/gma500/psb_intel_lvds.c +1 -1
@@ -343,7 +343,7 @@ static void psb_intel_lvds_restore(struct drm_connector *connector) } } -int psb_intel_lvds_mode_valid (struct drm_connector *connector, +enum drm_mode_status psb_intel_lvds_mode_valid (struct drm_connector *connector,struct drm_display_mode *mode) {struct drm_psb_private *dev_priv = connector->dev->dev_private;
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +4 -4
@@ -155,10 +155,10 @@ gk104_fifo_runlist_commit(struct gk104_fifo *fifo, int runl) (target << 28));nvkm_wr32 (device,0x002274 , (runl <<20 ) | nr); -if (wait_event_timeout (fifo->runlist[runl].wait, - !(nvkm_rd32 (device,0x002284 + (runl *0x08 )) - &0x00100000 ), -msecs_to_jiffies (2000 )) ==0 ) +if (nvkm_msec (device,2000 , + if (!(nvkm_rd32(device, 0x002284 + (runl * 0x08)) & 0x00100000)) + break; + ) <0 )nvkm_error (subdev,"runlist %d update timeout\n" , runl); unlock:mutex_unlock (&subdev->mutex);
drivers/gpu/drm/radeon/radeon_connectors.c +5 -5
@@ -853,7 +853,7 @@ static int radeon_lvds_get_modes(struct drm_connector *connector)return ret; } -static int radeon_lvds_mode_valid (struct drm_connector *connector, +static enum drm_mode_status radeon_lvds_mode_valid (struct drm_connector *connector,struct drm_display_mode *mode) {struct drm_encoder *encoder =radeon_best_single_encoder (connector);
@@ -1013,7 +1013,7 @@ static int radeon_vga_get_modes(struct drm_connector *connector)return ret; } -static int radeon_vga_mode_valid (struct drm_connector *connector, +static enum drm_mode_status radeon_vga_mode_valid (struct drm_connector *connector,struct drm_display_mode *mode) {struct drm_device *dev = connector->dev;
@@ -1157,7 +1157,7 @@ static int radeon_tv_get_modes(struct drm_connector *connector)return 1 ; } -static int radeon_tv_mode_valid (struct drm_connector *connector, +static enum drm_mode_status radeon_tv_mode_valid (struct drm_connector *connector,struct drm_display_mode *mode) {if ((mode->hdisplay >1024 ) || (mode->vdisplay >768 ))
@@ -1499,7 +1499,7 @@ static void radeon_dvi_force(struct drm_connector *connector) radeon_connector->use_digital = true; } -static int radeon_dvi_mode_valid (struct drm_connector *connector, +static enum drm_mode_status radeon_dvi_mode_valid (struct drm_connector *connector,struct drm_display_mode *mode) {struct drm_device *dev = connector->dev;
@@ -1801,7 +1801,7 @@ radeon_dp_detect(struct drm_connector *connector, bool force)return ret; } -static int radeon_dp_mode_valid (struct drm_connector *connector, +static enum drm_mode_status radeon_dp_mode_valid (struct drm_connector *connector,struct drm_display_mode *mode) {struct drm_device *dev = connector->dev;
drivers/hid/hid-plantronics.c +5 -1
@@ -2,7 +2,7 @@* Plantronics USB HID Driver * * Copyright (c) 2014 JD Cole <[email protected]> -* Copyright (c) 2015 Terry Junge <[email protected]> +* Copyright (c) 2015-2018 Terry Junge <[email protected]> */ /*
@@ -48,6 +48,10 @@ static int plantronics_input_mapping(struct hid_device *hdev,unsigned short mapped_key;unsigned long plt_type = (unsigned long )hid_get_drvdata (hdev); +/* special case for PTT products */ +if (field->application ==HID_GD_JOYSTICK ) + goto defaulted; +/* handle volume up/down mapping */ /* non-standard types or multi-HID interfaces - plt_type is PID */ if (!(plt_type &HID_USAGE_PAGE )) {
drivers/hid/i2c-hid/i2c-hid.c +8 -0
@@ -1036,6 +1036,14 @@ static int i2c_hid_probe(struct i2c_client *client,pm_runtime_enable (&client->dev);device_enable_async_suspend (&client->dev); +/* Make sure there is something at this address */ + ret =i2c_smbus_read_byte (client); +if (ret <0 ) { +dev_dbg (&client->dev,"nothing at this address: %d\n" , ret); + ret = -ENXIO ; + goto err_pm; + } + ret =i2c_hid_fetch_hid_descriptor (ihid);if (ret <0 ) goto err_pm;
drivers/i2c/i2c-core-base.c +4 -1
@@ -808,8 +808,11 @@ EXPORT_SYMBOL_GPL(i2c_new_device);*/ void i2c_unregister_device (struct i2c_client *client) { -if (client->dev.of_node) +if (client->dev.of_node) {of_node_clear_flag (client->dev.of_node,OF_POPULATED ); +of_node_put (client->dev.of_node); + } +if (ACPI_COMPANION (&client->dev))acpi_device_clear_enumerated (ACPI_COMPANION (&client->dev));device_unregister (&client->dev);
drivers/infiniband/core/mad.c +7 -4
@@ -1558,7 +1558,8 @@ static int add_oui_reg_req(struct ib_mad_reg_req *mad_reg_req, mad_reg_req->oui, 3)) { method = &(*vendor_table)->vendor_class[ vclass]->method_table[i]; -BUG_ON (!*method); +if (!*method) + goto error3; goto check_in_use; } }
@@ -1568,10 +1569,12 @@ static int add_oui_reg_req(struct ib_mad_reg_req *mad_reg_req, vclass]->oui[i])) { method = &(*vendor_table)->vendor_class[ vclass]->method_table[i]; -BUG_ON (*method);/* Allocate method table for this OUI */ -if ((ret =allocate_method_table (method))) - goto error3; +if (!*method) { + ret =allocate_method_table (method); +if (ret) + goto error3; + }memcpy ((*vendor_table)->vendor_class[vclass]->oui[i], mad_reg_req->oui,3 ); goto check_in_use;
drivers/infiniband/core/ucma.c +5 -1
@@ -218,7 +218,7 @@ static struct ucma_multicast* ucma_alloc_multicast(struct ucma_context *ctx)return NULL ;mutex_lock (&mut); - mc->id =idr_alloc (&multicast_idr, mc,0 ,0 ,GFP_KERNEL ); + mc->id =idr_alloc (&multicast_idr,NULL ,0 ,0 ,GFP_KERNEL );mutex_unlock (&mut);if (mc->id <0 ) goto error;
@@ -1404,6 +1404,10 @@ static ssize_t ucma_process_join(struct ucma_file *file, goto err3; } +mutex_lock (&mut); +idr_replace (&multicast_idr, mc, mc->id); +mutex_unlock (&mut); +mutex_unlock (&file->mut);ucma_put_ctx (ctx);return 0 ;
drivers/infiniband/core/uverbs_cmd.c +5 -0
@@ -3376,6 +3376,11 @@ int ib_uverbs_ex_create_flow(struct ib_uverbs_file *file, goto err_uobj; } +if (qp->qp_type !=IB_QPT_UD && qp->qp_type !=IB_QPT_RAW_PACKET ) { + err = -EINVAL ; + goto err_put; + } + flow_attr =kzalloc (sizeof (*flow_attr) + cmd.flow_attr.num_of_specs *sizeof (union ib_flow_spec ),GFP_KERNEL );if (!flow_attr) {
drivers/infiniband/core/verbs.c +9 -3
@@ -2115,10 +2115,16 @@ static void __ib_drain_sq(struct ib_qp *qp)struct ib_cq *cq = qp->send_cq;struct ib_qp_attr attr = { .qp_state =IB_QPS_ERR };struct ib_drain_cqe sdrain; -struct ib_send_wr swr = {}, *bad_swr; +struct ib_send_wr *bad_swr; +struct ib_rdma_wr swr = { + .wr = { + .next =NULL , + { .wr_cqe = &sdrain.cqe, }, + .opcode =IB_WR_RDMA_WRITE , + }, + };int ret; - swr.wr_cqe = &sdrain.cqe; sdrain.cqe.done = ib_drain_qp_done;init_completion (&sdrain.done);
@@ -2128,7 +2134,7 @@ static void __ib_drain_sq(struct ib_qp *qp)return ; } - ret =ib_post_send (qp, &swr, &bad_swr); + ret =ib_post_send (qp, &swr.wr, &bad_swr);if (ret) {WARN_ONCE (ret,"failed to drain send queue: %d\n" , ret);return ;
drivers/infiniband/ulp/srpt/ib_srpt.c +10 -6
@@ -787,13 +787,17 @@ static int srpt_post_recv(struct srpt_device *sdev,*/ static int srpt_zerolength_write (struct srpt_rdma_ch *ch) { -struct ib_send_wr wr, *bad_wr; +struct ib_send_wr *bad_wr; +struct ib_rdma_wr wr = { + .wr = { + .next =NULL , + { .wr_cqe = &ch->zw_cqe, }, + .opcode =IB_WR_RDMA_WRITE , + .send_flags =IB_SEND_SIGNALED , + } + }; -memset (&wr,0 ,sizeof (wr)); - wr.opcode =IB_WR_RDMA_WRITE ; - wr.wr_cqe = &ch->zw_cqe; - wr.send_flags =IB_SEND_SIGNALED ; -return ib_post_send (ch->qp, &wr, &bad_wr); +return ib_post_send (ch->qp, &wr.wr, &bad_wr); }static void srpt_zerolength_write_done (struct ib_cq *cq,struct ib_wc *wc)
drivers/input/mouse/elan_i2c_core.c +2 -0
@@ -1262,6 +1262,8 @@ static const struct acpi_device_id elan_acpi_id[] = { { "ELAN0611", 0 }, { "ELAN0612", 0 }, { "ELAN0618", 0 }, + { "ELAN061D", 0 }, + { "ELAN0622", 0 }, { "ELAN1000", 0 }, { } };
drivers/input/serio/i8042-x86ia64io.h +7 -0
@@ -527,6 +527,13 @@ static const struct dmi_system_id __initconst i8042_dmi_nomux_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "N24_25BU"), }, }, + { + /* Lenovo LaVie Z */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo LaVie Z"), + }, + }, { } };
drivers/irqchip/irq-ls-scfg-msi.c +3 -0
@@ -21,6 +21,7 @@#include <linux/of_pci.h> #include <linux/of_platform.h> #include <linux/spinlock.h> +#include <linux/dma-iommu.h> #define MSI_IRQS_PER_MSIR 32#define MSI_MSIR_OFFSET 4
@@ -94,6 +95,8 @@ static void ls_scfg_msi_compose_msg(struct irq_data *data, struct msi_msg *msg)if (msi_affinity_flag) msg->data |=cpumask_first (data->common->affinity); + +iommu_dma_map_msi_msg (data->irq, msg); } static int ls_scfg_msi_set_affinity(struct irq_data *irq_data,
drivers/lightnvm/pblk-rb.c +2 -3
@@ -142,10 +142,9 @@ static void clean_wctx(struct pblk_w_ctx *w_ctx) {int flags; -try: flags =READ_ONCE (w_ctx->flags); -if (!(flags &PBLK_SUBMITTED_ENTRY )) - goto try; +WARN_ONCE (!(flags &PBLK_SUBMITTED_ENTRY ), +"pblk: overwriting unsubmitted data\n" );/* Release flags on context. Protect from writes and reads */ smp_store_release (&w_ctx->flags,PBLK_WRITABLE_ENTRY );
drivers/md/md.c +3 -0
@@ -6498,6 +6498,9 @@ static int hot_remove_disk(struct mddev *mddev, dev_t dev)char b[BDEVNAME_SIZE ];struct md_rdev *rdev; +if (!mddev->pers) +return -ENODEV ; + rdev =find_rdev (mddev, dev);if (!rdev)return -ENXIO ;
drivers/md/raid1.c +2 -0
@@ -2462,6 +2462,8 @@ static void handle_read_error(struct r1conf *conf, struct r1bio *r1_bio)fix_read_error (conf, r1_bio->read_disk, r1_bio->sector, r1_bio->sectors);unfreeze_array (conf); + }else if (mddev->ro ==0 &&test_bit (FailFast, &rdev->flags)) { +md_error (mddev, rdev); }else { r1_bio->bios[r1_bio->read_disk] =IO_BLOCKED ; }
drivers/media/common/siano/smsendian.c +7 -7
@@ -35,7 +35,7 @@ void smsendian_handle_tx_message(void *buffer)switch (msg->x_msg_header.msg_type) {case MSG_SMS_DATA_DOWNLOAD_REQ : { - msg->msg_data[0 ] =le32_to_cpu (msg->msg_data[0 ]); + msg->msg_data[0 ] =le32_to_cpu ((__force __le32)(msg->msg_data[0 ]));break ; }
@@ -44,7 +44,7 @@ void smsendian_handle_tx_message(void *buffer) sizeof(struct sms_msg_hdr))/4;for (i =0 ; i < msg_words; i++) - msg->msg_data[i] =le32_to_cpu (msg->msg_data[i]); + msg->msg_data[i] =le32_to_cpu ((__force __le32 )msg->msg_data[i]);break ; }
@@ -64,7 +64,7 @@ void smsendian_handle_rx_message(void *buffer) {struct sms_version_res *ver = (struct sms_version_res *) msg; - ver->chip_model =le16_to_cpu (ver->chip_model); + ver->chip_model =le16_to_cpu ((__force __le16 )ver->chip_model);break ; }
@@ -81,7 +81,7 @@ void smsendian_handle_rx_message(void *buffer) sizeof(struct sms_msg_hdr))/4;for (i =0 ; i < msg_words; i++) - msg->msg_data[i] =le32_to_cpu (msg->msg_data[i]); + msg->msg_data[i] =le32_to_cpu ((__force __le32 )msg->msg_data[i]);break ; }
@@ -95,9 +95,9 @@ void smsendian_handle_message_header(void *msg)#ifdef __BIG_ENDIANstruct sms_msg_hdr *phdr = (struct sms_msg_hdr *)msg; - phdr->msg_type =le16_to_cpu (phdr->msg_type); - phdr->msg_length =le16_to_cpu (phdr->msg_length); - phdr->msg_flags =le16_to_cpu (phdr->msg_flags); + phdr->msg_type =le16_to_cpu ((__force __le16 )phdr->msg_type); + phdr->msg_length =le16_to_cpu ((__force __le16 )phdr->msg_length); + phdr->msg_flags =le16_to_cpu ((__force __le16 )phdr->msg_flags);#endif /* __BIG_ENDIAN */ }EXPORT_SYMBOL_GPL (smsendian_handle_message_header);
drivers/media/i2c/smiapp/smiapp-core.c +5 -6
@@ -1001,7 +1001,7 @@ static int smiapp_read_nvm(struct smiapp_sensor *sensor,if (rval) goto out; -for (i =0 ; i <1000 ; i++) { +for (i =1000 ; i >0 ; i--) { rval =smiapp_read ( sensor,SMIAPP_REG_U8_DATA_TRANSFER_IF_1_STATUS , &s);
@@ -1012,11 +1012,10 @@ static int smiapp_read_nvm(struct smiapp_sensor *sensor,if (s &SMIAPP_DATA_TRANSFER_IF_1_STATUS_RD_READY )break ; -if (--i ==0 ) { - rval = -ETIMEDOUT ; - goto out; - } - + } +if (!i) { + rval = -ETIMEDOUT ; + goto out; }for (i =0 ; i <SMIAPP_NVM_PAGE_SIZE ; i++) {
drivers/media/media-device.c +11 -10
@@ -54,9 +54,10 @@ static int media_device_close(struct file *filp)return 0 ; } -static int media_device_get_info (struct media_device *dev, -struct media_device_info *info) +static long media_device_get_info (struct media_device *dev,void *arg) { +struct media_device_info *info = arg; +memset (info,0 ,sizeof (*info));if (dev->driver_name[0 ])
@@ -93,9 +94,9 @@ static struct media_entity *find_entity(struct media_device *mdev, u32 id)return NULL ; } -static long media_device_enum_entities (struct media_device *mdev, -struct media_entity_desc *entd) +static long media_device_enum_entities (struct media_device *mdev,void *arg) { +struct media_entity_desc *entd = arg;struct media_entity *ent; ent =find_entity (mdev, entd->id);
@@ -146,9 +147,9 @@ static void media_device_kpad_to_upad(const struct media_pad *kpad, upad->flags = kpad->flags; } -static long media_device_enum_links (struct media_device *mdev, -struct media_links_enum *links) +static long media_device_enum_links (struct media_device *mdev,void *arg) { +struct media_links_enum *links = arg;struct media_entity *entity; entity =find_entity (mdev, links->entity);
@@ -194,9 +195,9 @@ static long media_device_enum_links(struct media_device *mdev,return 0 ; } -static long media_device_setup_link (struct media_device *mdev, -struct media_link_desc *linkd) +static long media_device_setup_link (struct media_device *mdev,void *arg) { +struct media_link_desc *linkd = arg;struct media_link *link =NULL ;struct media_entity *source;struct media_entity *sink;
@@ -222,9 +223,9 @@ static long media_device_setup_link(struct media_device *mdev,return __media_entity_setup_link (link, linkd->flags); } -static long media_device_get_topology (struct media_device *mdev, -struct media_v2_topology *topo) +static long media_device_get_topology (struct media_device *mdev,void *arg) { +struct media_v2_topology *topo = arg;struct media_entity *entity;struct media_interface *intf;struct media_pad *pad;
drivers/media/pci/saa7164/saa7164-fw.c +2 -1
@@ -426,7 +426,8 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev) __func__, fw->size);if (fw->size != fwlength) { -printk (KERN_ERR "xc5000: firmware incorrect size\n" ); +printk (KERN_ERR "saa7164: firmware incorrect size %zu != %u\n" , + fw->size, fwlength); ret = -ENOMEM ; goto out; }
drivers/media/pci/tw686x/tw686x-video.c +2 -1
@@ -1228,7 +1228,8 @@ int tw686x_video_init(struct tw686x_dev *dev) vc->vidq.timestamp_flags =V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC ; vc->vidq.min_buffers_needed =2 ; vc->vidq.lock = &vc->vb_mutex; - vc->vidq.gfp_flags =GFP_DMA32 ; + vc->vidq.gfp_flags = dev->dma_mode !=TW686X_DMA_MODE_MEMCPY ? +GFP_DMA32 :0 ; vc->vidq.dev = &dev->pci_dev->dev; err =vb2_queue_init (&vc->vidq);
drivers/media/platform/omap3isp/isp.c +4 -3
@@ -1945,6 +1945,7 @@ static int isp_initialize_modules(struct isp_device *isp)static void isp_detach_iommu (struct isp_device *isp) { +arm_iommu_detach_device (isp->dev);arm_iommu_release_mapping (isp->mapping); isp->mapping =NULL ; }
@@ -1961,8 +1962,7 @@ static int isp_attach_iommu(struct isp_device *isp) mapping =arm_iommu_create_mapping (&platform_bus_type,SZ_1G ,SZ_2G );if (IS_ERR (mapping)) {dev_err (isp->dev,"failed to create ARM IOMMU mapping\n" ); - ret =PTR_ERR (mapping); - goto error; +return PTR_ERR (mapping); } isp->mapping = mapping;
@@ -1977,7 +1977,8 @@ static int isp_attach_iommu(struct isp_device *isp)return 0 ; error: -isp_detach_iommu (isp); +arm_iommu_release_mapping (isp->mapping); + isp->mapping =NULL ;return ret; }
drivers/media/platform/rcar_jpu.c +3 -1
@@ -1280,7 +1280,7 @@ static int jpu_open(struct file *file)/* ...issue software reset */ ret =jpu_reset (jpu);if (ret) - goto device_prepare_rollback; + goto jpu_reset_rollback; } jpu->ref_count++;
@@ -1288,6 +1288,8 @@ static int jpu_open(struct file *file)mutex_unlock (&jpu->mutex);return 0 ; +jpu_reset_rollback: +clk_disable_unprepare (jpu->clk); device_prepare_rollback:mutex_unlock (&jpu->mutex); v4l_prepare_rollback:
drivers/media/radio/si470x/radio-si470x-i2c.c +3 -3
@@ -92,7 +92,7 @@ MODULE_PARM_DESC(max_rds_errors, "RDS maximum block errors: *1*");*/ int si470x_get_register (struct si470x_device *radio,int regnr) { -u16 buf[READ_REG_NUM ]; +__be16 buf[READ_REG_NUM ];struct i2c_msg msgs[1 ] = { { .addr = radio->client->addr,
@@ -117,7 +117,7 @@ int si470x_get_register(struct si470x_device *radio, int regnr)int si470x_set_register (struct si470x_device *radio,int regnr) {int i; -u16 buf[WRITE_REG_NUM ]; +__be16 buf[WRITE_REG_NUM ];struct i2c_msg msgs[1 ] = { { .addr = radio->client->addr,
@@ -147,7 +147,7 @@ int si470x_set_register(struct si470x_device *radio, int regnr)static int si470x_get_all_registers (struct si470x_device *radio) {int i; -u16 buf[READ_REG_NUM ]; +__be16 buf[READ_REG_NUM ];struct i2c_msg msgs[1 ] = { { .addr = radio->client->addr,
drivers/media/v4l2-core/videobuf2-core.c +6 -3
@@ -912,9 +912,12 @@ void vb2_buffer_done(struct vb2_buffer *vb, enum vb2_buffer_state state)dprintk (4 ,"done processing on buffer %d, state: %d\n" , vb->index, state); -/* sync buffers */ -for (plane =0 ; plane < vb->num_planes; ++plane) -call_void_memop (vb, finish, vb->planes[plane].mem_priv); +if (state !=VB2_BUF_STATE_QUEUED && + state !=VB2_BUF_STATE_REQUEUEING ) { +/* sync buffers */ +for (plane =0 ; plane < vb->num_planes; ++plane) +call_void_memop (vb, finish, vb->planes[plane].mem_priv); + }spin_lock_irqsave (&q->done_lock, flags); if (state == VB2_BUF_STATE_QUEUED ||
drivers/memory/tegra/mc.c +5 -17
@@ -20,14 +20,6 @@#include "mc.h" #define MC_INTSTATUS 0x000 -#define MC_INT_DECERR_MTS (1 << 16) -#define MC_INT_SECERR_SEC (1 << 13) -#define MC_INT_DECERR_VPR (1 << 12) -#define MC_INT_INVALID_APB_ASID_UPDATE (1 << 11) -#define MC_INT_INVALID_SMMU_PAGE (1 << 10) -#define MC_INT_ARBITRATION_EMEM (1 << 9) -#define MC_INT_SECURITY_VIOLATION (1 << 8) -#define MC_INT_DECERR_EMEM (1 << 6)#define MC_INTMASK 0x004
@@ -248,12 +240,13 @@ static const char *const error_names[8] = {static irqreturn_t tegra_mc_irq (int irq,void *data) {struct tegra_mc *mc = data; -unsigned long status, mask; +unsigned long status;unsigned int bit;/* mask all interrupts to avoid flooding */ - status =mc_readl (mc,MC_INTSTATUS ); - mask =mc_readl (mc,MC_INTMASK ); + status =mc_readl (mc,MC_INTSTATUS ) & mc->soc->intmask; +if (!status) +return IRQ_NONE ;for_each_set_bit (bit, &status,32 ) {const char *error = status_names[bit] ?:"unknown" ;
@@ -346,7 +339,6 @@ static int tegra_mc_probe(struct platform_device *pdev)const struct of_device_id *match;struct resource *res;struct tegra_mc *mc; -u32 value;int err; match =of_match_node (tegra_mc_of_match, pdev->dev.of_node);
@@ -414,11 +406,7 @@ static int tegra_mc_probe(struct platform_device *pdev)WARN (!mc->soc->client_id_mask,"Missing client ID mask for this SoC\n" ); - value =MC_INT_DECERR_MTS |MC_INT_SECERR_SEC |MC_INT_DECERR_VPR | -MC_INT_INVALID_APB_ASID_UPDATE |MC_INT_INVALID_SMMU_PAGE | -MC_INT_SECURITY_VIOLATION |MC_INT_DECERR_EMEM ; - -mc_writel (mc, value,MC_INTMASK ); +mc_writel (mc, mc->soc->intmask,MC_INTMASK );return 0 ; }
drivers/memory/tegra/mc.h +9 -0
@@ -14,6 +14,15 @@#include <soc/tegra/mc.h> +#define MC_INT_DECERR_MTS (1 << 16) +#define MC_INT_SECERR_SEC (1 << 13) +#define MC_INT_DECERR_VPR (1 << 12) +#define MC_INT_INVALID_APB_ASID_UPDATE (1 << 11) +#define MC_INT_INVALID_SMMU_PAGE (1 << 10) +#define MC_INT_ARBITRATION_EMEM (1 << 9) +#define MC_INT_SECURITY_VIOLATION (1 << 8) +#define MC_INT_DECERR_EMEM (1 << 6) +static inline u32 mc_readl (struct tegra_mc *mc,unsigned long offset) {return readl (mc->regs + offset);
drivers/memory/tegra/tegra114.c +2 -0
@@ -930,4 +930,6 @@ const struct tegra_mc_soc tegra114_mc_soc = { .atom_size = 32, .client_id_mask = 0x7f, .smmu = &tegra114_smmu_soc, + .intmask = MC_INT_INVALID_SMMU_PAGE | MC_INT_SECURITY_VIOLATION | + MC_INT_DECERR_EMEM, };
drivers/memory/tegra/tegra124.c +6 -0
@@ -1020,6 +1020,9 @@ const struct tegra_mc_soc tegra124_mc_soc = { .smmu = &tegra124_smmu_soc, .emem_regs = tegra124_mc_emem_regs, .num_emem_regs = ARRAY_SIZE(tegra124_mc_emem_regs), + .intmask =MC_INT_DECERR_MTS |MC_INT_SECERR_SEC |MC_INT_DECERR_VPR | +MC_INT_INVALID_APB_ASID_UPDATE |MC_INT_INVALID_SMMU_PAGE | + MC_INT_SECURITY_VIOLATION | MC_INT_DECERR_EMEM, };#endif /* CONFIG_ARCH_TEGRA_124_SOC */
@@ -1042,5 +1045,8 @@ const struct tegra_mc_soc tegra132_mc_soc = { .atom_size = 32, .client_id_mask = 0x7f, .smmu = &tegra132_smmu_soc, + .intmask =MC_INT_DECERR_MTS |MC_INT_SECERR_SEC |MC_INT_DECERR_VPR | +MC_INT_INVALID_APB_ASID_UPDATE |MC_INT_INVALID_SMMU_PAGE | + MC_INT_SECURITY_VIOLATION | MC_INT_DECERR_EMEM, };#endif /* CONFIG_ARCH_TEGRA_132_SOC */
drivers/memory/tegra/tegra210.c +3 -0
@@ -1077,4 +1077,7 @@ const struct tegra_mc_soc tegra210_mc_soc = { .atom_size = 64, .client_id_mask = 0xff, .smmu = &tegra210_smmu_soc, + .intmask =MC_INT_DECERR_MTS |MC_INT_SECERR_SEC |MC_INT_DECERR_VPR | +MC_INT_INVALID_APB_ASID_UPDATE |MC_INT_INVALID_SMMU_PAGE | + MC_INT_SECURITY_VIOLATION | MC_INT_DECERR_EMEM, };
drivers/memory/tegra/tegra30.c +2 -0
@@ -952,4 +952,6 @@ const struct tegra_mc_soc tegra30_mc_soc = { .atom_size = 16, .client_id_mask = 0x7f, .smmu = &tegra30_smmu_soc, + .intmask = MC_INT_INVALID_SMMU_PAGE | MC_INT_SECURITY_VIOLATION | + MC_INT_DECERR_EMEM, };
drivers/mfd/cros_ec.c +5 -1
@@ -112,7 +112,11 @@ int cros_ec_register(struct cros_ec_device *ec_dev)mutex_init (&ec_dev->lock); -cros_ec_query_all (ec_dev); + err =cros_ec_query_all (ec_dev); +if (err) { +dev_err (dev,"Cannot identify the EC: error %d\n" , err); +return err; + }if (ec_dev->irq) { err = request_threaded_irq(ec_dev->irq, NULL, ec_irq_thread,
drivers/mmc/core/pwrseq_simple.c +9 -5
@@ -40,14 +40,18 @@ static void mmc_pwrseq_simple_set_gpios_value(struct mmc_pwrseq_simple *pwrseq,struct gpio_descs *reset_gpios = pwrseq->reset_gpios;if (!IS_ERR (reset_gpios)) { -int i; -int values[reset_gpios->ndescs]; +int i, *values; +int nvalues = reset_gpios->ndescs; -for (i =0 ; i < reset_gpios->ndescs; i++) + values =kmalloc_array (nvalues,sizeof (int ),GFP_KERNEL ); +if (!values) +return ; + +for (i =0 ; i < nvalues; i++) values[i] = value; -gpiod_set_array_value_cansleep ( - reset_gpios->ndescs, reset_gpios->desc, values); +gpiod_set_array_value_cansleep (nvalues, reset_gpios->desc, values); +kfree (values); } }
drivers/mmc/host/dw_mmc.c +4 -0
@@ -1255,6 +1255,8 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot, bool force_clkinit)if (host->state ==STATE_WAITING_CMD11_DONE ) sdmmc_cmd_bits |=SDMMC_CMD_VOLT_SWITCH ; + slot->mmc->actual_clock =0 ; +if (!clock) {mci_writel (host,CLKENA ,0 );mci_send_cmd (slot, sdmmc_cmd_bits,0 );
@@ -1313,6 +1315,8 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot, bool force_clkinit)/* keep the last clock value that was requested from core */ slot->__clk_old = clock; + slot->mmc->actual_clock = div ? ((host->bus_hz / div) >>1 ) : + host->bus_hz; } host->current_speed = clock;
drivers/mtd/nand/fsl_ifc_nand.c +10 -7
@@ -342,9 +342,16 @@ static void fsl_ifc_cmdfunc(struct mtd_info *mtd, unsigned int command,case NAND_CMD_READID :case NAND_CMD_PARAM : { +/* +* For READID, read 8 bytes that are currently used. +* For PARAM, read all 3 copies of 256-bytes pages. +*/ +int len =8 ;int timing =IFC_FIR_OP_RB ; -if (command ==NAND_CMD_PARAM ) +if (command ==NAND_CMD_PARAM ) { timing =IFC_FIR_OP_RBCD ; + len =256 *3 ; + } ifc_out32((IFC_FIR_OP_CW0 << IFC_NAND_FIR0_OP0_SHIFT) | (IFC_FIR_OP_UA << IFC_NAND_FIR0_OP1_SHIFT) |
@@ -354,12 +361,8 @@ static void fsl_ifc_cmdfunc(struct mtd_info *mtd, unsigned int command, &ifc->ifc_nand.nand_fcr0);ifc_out32 (column, &ifc->ifc_nand.row3); -/* -* although currently it's 8 bytes for READID, we always read -* the maximum 256 bytes(for PARAM) -*/ -ifc_out32 (256 , &ifc->ifc_nand.nand_fbcr); - ifc_nand_ctrl->read_bytes =256 ; +ifc_out32 (len, &ifc->ifc_nand.nand_fbcr); + ifc_nand_ctrl->read_bytes = len;set_addr (mtd,0 ,0 ,0 );fsl_ifc_run_command (mtd);
drivers/net/dsa/qca8k.c +50 -2
94 lines not on this page · raw message
drivers/net/dsa/qca8k.h +5 -2
@@ -51,8 +51,10 @@#define QCA8K_GOL_MAC_ADDR0 0x60#define QCA8K_GOL_MAC_ADDR1 0x64#define QCA8K_REG_PORT_STATUS (_i) (0x07c + (_i) * 4) -#define QCA8K_PORT_STATUS_SPEED GENMASK(2, 0) -#define QCA8K_PORT_STATUS_SPEED_S 0 +#define QCA8K_PORT_STATUS_SPEED GENMASK(1, 0) +#define QCA8K_PORT_STATUS_SPEED_10 0 +#define QCA8K_PORT_STATUS_SPEED_100 0x1 +#define QCA8K_PORT_STATUS_SPEED_1000 0x2#define QCA8K_PORT_STATUS_TXMAC BIT(2)#define QCA8K_PORT_STATUS_RXMAC BIT(3)#define QCA8K_PORT_STATUS_TXFLOW BIT(4)
@@ -165,6 +167,7 @@ struct qca8k_priv {struct ar8xxx_port_status port_sts[QCA8K_NUM_PORTS ];struct dsa_switch *ds;struct mutex reg_mutex; +struct device *dev; };struct qca8k_mib_desc {
drivers/net/ethernet/amazon/ena/ena_com.c +1 -0
@@ -331,6 +331,7 @@ static int ena_com_init_io_sq(struct ena_com_dev *ena_dev,memset (&io_sq->desc_addr,0x0 ,sizeof (io_sq->desc_addr)); + io_sq->dma_addr_bits = ena_dev->dma_addr_bits; io_sq->desc_entry_size = (io_sq->direction ==ENA_COM_IO_QUEUE_DIRECTION_TX ) ? sizeof(struct ena_eth_io_tx_desc) :
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c +2 -2
@@ -1128,14 +1128,14 @@ static void xgbe_phy_adjust_link(struct xgbe_prv_data *pdata)if (pdata->tx_pause != pdata->phy.tx_pause) { new_state =1 ; - pdata->hw_if.config_tx_flow_control (pdata); pdata->tx_pause = pdata->phy.tx_pause; + pdata->hw_if.config_tx_flow_control (pdata); }if (pdata->rx_pause != pdata->phy.rx_pause) { new_state =1 ; - pdata->hw_if.config_rx_flow_control (pdata); pdata->rx_pause = pdata->phy.rx_pause; + pdata->hw_if.config_rx_flow_control (pdata); }/* Speed support */
drivers/net/ethernet/broadcom/bnxt/bnxt.c +3 -0
@@ -5927,6 +5927,9 @@ static int bnxt_update_link(struct bnxt *bp, bool chng_link_state) }mutex_unlock (&bp->hwrm_cmd_lock); +if (!BNXT_SINGLE_PF (bp)) +return 0 ; + diff = link_info->support_auto_speeds ^ link_info->advertising;if ((link_info->support_auto_speeds | diff) != link_info->support_auto_speeds) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +5 -2
@@ -1272,8 +1272,11 @@ static int hclge_alloc_vport(struct hclge_dev *hdev)/* We need to alloc a vport for main NIC of PF */ num_vport = hdev->num_vmdq_vport + hdev->num_req_vfs +1 ; -if (hdev->num_tqps < num_vport) - num_vport = hdev->num_tqps; +if (hdev->num_tqps < num_vport) { +dev_err (&hdev->pdev->dev,"tqps(%d) is less than vports(%d)" , + hdev->num_tqps, num_vport); +return -EINVAL ; + }/* Alloc the same number of TQPs for every vport */ tqp_per_vport = hdev->num_tqps / num_vport;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c +4 -0
@@ -1598,6 +1598,7 @@ static void hns3_replace_buffer(struct hns3_enet_ring *ring, int i,hns3_unmap_buffer (ring, &ring->desc_cb[i]); ring->desc_cb[i] = *res_cb; ring->desc[i].addr =cpu_to_le64 (ring->desc_cb[i].dma); + ring->desc[i].rx.bd_base_info =0 ; }static void hns3_reuse_buffer (struct hns3_enet_ring *ring,int i)
@@ -1605,6 +1606,7 @@ static void hns3_reuse_buffer(struct hns3_enet_ring *ring, int i) ring->desc_cb[i].reuse_flag =0 ; ring->desc[i].addr =cpu_to_le64 (ring->desc_cb[i].dma + ring->desc_cb[i].page_offset); + ring->desc[i].rx.bd_base_info =0 ; } static void hns3_nic_reclaim_one_desc(struct hns3_enet_ring *ring, int *bytes,
@@ -2881,6 +2883,8 @@ static int __init hns3_init_module(void) client.ops = &client_ops; +INIT_LIST_HEAD (&client.node); + ret =hnae3_register_client (&client);if (ret)return ret;
drivers/net/ethernet/intel/e1000e/netdev.c +6 -9
@@ -3558,15 +3558,12 @@ s32 e1000e_get_base_timinca(struct e1000_adapter *adapter, u32 *timinca) }break ;case e1000_pch_spt: -if (er32 (TSYNCRXCTL ) &E1000_TSYNCRXCTL_SYSCFI ) { -/* Stable 24MHz frequency */ - incperiod =INCPERIOD_24MHZ ; - incvalue =INCVALUE_24MHZ ; - shift =INCVALUE_SHIFT_24MHZ ; - adapter->cc.shift = shift; -break ; - } -return -EINVAL ; +/* Stable 24MHz frequency */ + incperiod =INCPERIOD_24MHZ ; + incvalue =INCVALUE_24MHZ ; + shift =INCVALUE_SHIFT_24MHZ ; + adapter->cc.shift = shift; +break ;case e1000_pch_cnp:if (er32 (TSYNCRXCTL ) &E1000_TSYNCRXCTL_SYSCFI ) {/* Stable 24MHz frequency */
drivers/net/ethernet/intel/i40e/i40e_ptp.c +6 -1
@@ -337,6 +337,8 @@ void i40e_ptp_rx_hang(struct i40e_pf *pf)**/ void i40e_ptp_tx_hang (struct i40e_pf *pf) { +struct sk_buff *skb; +if (!(pf->flags &I40E_FLAG_PTP ) || !pf->ptp_tx)return ;
@@ -349,9 +351,12 @@ void i40e_ptp_tx_hang(struct i40e_pf *pf)* within a second it is reasonable to assume that we never will. */ if (time_is_before_jiffies (pf->ptp_tx_start +HZ )) { -dev_kfree_skb_any (pf->ptp_tx_skb); + skb = pf->ptp_tx_skb; pf->ptp_tx_skb =NULL ;clear_bit_unlock (__I40E_PTP_TX_IN_PROGRESS, pf->state); + +/* Free the skb after we clear the bitlock */ +dev_kfree_skb_any (skb); pf->tx_hwtstamp_timeouts++; } }
drivers/net/ethernet/intel/igb/igb_main.c +7 -2
@@ -8376,12 +8376,17 @@ static void igb_rar_set_index(struct igb_adapter *adapter, u32 index)if (is_valid_ether_addr (addr)) rar_high |=E1000_RAH_AV ; -if (hw->mac.type == e1000_82575) +switch (hw->mac.type) { +case e1000_82575: +case e1000_i210: rar_high |=E1000_RAH_POOL_1 * adapter->mac_table[index].queue; -else +break ; +default : rar_high |=E1000_RAH_POOL_1 << adapter->mac_table[index].queue; +break ; + } }wr32 (E1000_RAL (index), rar_low);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +1 -0
@@ -3737,6 +3737,7 @@ static int ixgbevf_set_mac(struct net_device *netdev, void *p)return -EPERM ;ether_addr_copy (hw->mac.addr, addr->sa_data); +ether_addr_copy (hw->mac.perm_addr, addr->sa_data);ether_addr_copy (netdev->dev_addr, addr->sa_data);return 0 ;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c +3 -1
@@ -912,8 +912,10 @@ mlxsw_sp_port_vlan_bridge_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan,int err;/* No need to continue if only VLAN flags were changed */ -if (mlxsw_sp_port_vlan->bridge_port) +if (mlxsw_sp_port_vlan->bridge_port) { +mlxsw_sp_port_vlan_put (mlxsw_sp_port_vlan);return 0 ; + } err =mlxsw_sp_port_vlan_fid_join (mlxsw_sp_port_vlan, bridge_port);if (err)
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +1 -1
@@ -51,7 +51,7 @@#include <linux/of_mdio.h> #include "dwmac1000.h" -#define STMMAC_ALIGN (x) L1_CACHE_ALIGN(x) +#define STMMAC_ALIGN (x) __ALIGN_KERNEL(x, SMP_CACHE_BYTES)#define TSO_MAX_BUFF_SIZE (SZ_16K - 1)/* Module parameters */
drivers/net/ethernet/ti/cpsw-phy-sel.c +7 -1
@@ -177,12 +177,18 @@ void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) } dev =bus_find_device (&platform_bus_type,NULL , node, match); -of_node_put (node); +if (!dev) { +dev_err (dev,"unable to find platform device for %pOF\n" , node); + goto out; + } + priv =dev_get_drvdata (dev); priv->cpsw_phy_sel (priv, phy_mode, slave);put_device (dev); +out: +of_node_put (node); }EXPORT_SYMBOL_GPL (cpsw_phy_sel);
drivers/net/hyperv/hyperv_net.h +2 -0
@@ -724,6 +724,8 @@ struct net_device_context {struct hv_device *device_ctx;/* netvsc_device */ struct netvsc_device __rcu *nvdev; +/* list of netvsc net_devices */ +struct list_head list;/* reconfigure work */ struct delayed_work dwork;/* last reconfig time */
drivers/net/hyperv/netvsc_drv.c +20 -23
85 lines not on this page · raw message
drivers/net/phy/mdio-mux-bcm-iproc.c +1 -1
@@ -218,7 +218,7 @@ static int mdio_mux_iproc_probe(struct platform_device *pdev)static int mdio_mux_iproc_remove (struct platform_device *pdev) { -struct iproc_mdiomux_desc *md =dev_get_platdata (&pdev->dev); +struct iproc_mdiomux_desc *md =platform_get_drvdata (pdev);mdio_mux_uninit (md->mux_handle);mdiobus_unregister (md->mii_bus);
drivers/net/phy/phylink.c +2 -0
@@ -561,6 +561,8 @@ void phylink_destroy(struct phylink *pl) {if (pl->sfp_bus)sfp_unregister_upstream (pl->sfp_bus); +if (!IS_ERR (pl->link_gpio)) +gpiod_put (pl->link_gpio);cancel_work_sync (&pl->resolve);kfree (pl);
drivers/net/usb/lan78xx.c +2 -0
@@ -1216,6 +1216,8 @@ static int lan78xx_link_reset(struct lan78xx_net *dev)mod_timer (&dev->stat_monitor, jiffies +STAT_UPDATE_TIMER ); } + +tasklet_schedule (&dev->bh); }return ret;
drivers/net/wireless/ath/regd.h +5 -0
@@ -68,12 +68,14 @@ enum CountryCode {CTRY_AUSTRALIA =36 ,CTRY_AUSTRIA =40 ,CTRY_AZERBAIJAN =31 , +CTRY_BAHAMAS =44 ,CTRY_BAHRAIN =48 ,CTRY_BANGLADESH =50 ,CTRY_BARBADOS =52 ,CTRY_BELARUS =112 ,CTRY_BELGIUM =56 ,CTRY_BELIZE =84 , +CTRY_BERMUDA =60 ,CTRY_BOLIVIA =68 ,CTRY_BOSNIA_HERZ =70 , CTRY_BRAZIL = 76,
@@ -159,6 +161,7 @@ enum CountryCode {CTRY_ROMANIA =642 ,CTRY_RUSSIA =643 ,CTRY_SAUDI_ARABIA =682 , +CTRY_SERBIA =688 ,CTRY_SERBIA_MONTENEGRO =891 ,CTRY_SINGAPORE =702 , CTRY_SLOVAKIA = 703,
@@ -170,11 +173,13 @@ enum CountryCode {CTRY_SWITZERLAND =756 ,CTRY_SYRIA =760 ,CTRY_TAIWAN =158 , +CTRY_TANZANIA =834 ,CTRY_THAILAND =764 ,CTRY_TRINIDAD_Y_TOBAGO =780 ,CTRY_TUNISIA =788 ,CTRY_TURKEY =792 ,CTRY_UAE =784 , +CTRY_UGANDA =800 ,CTRY_UKRAINE =804 ,CTRY_UNITED_KINGDOM =826 , CTRY_UNITED_STATES = 840,
drivers/net/wireless/ath/regd_common.h +13 -0
@@ -35,6 +35,7 @@ enum EnumRd {FRANCE_RES =0x31 ,FCC3_FCCA =0x3A ,FCC3_WORLD =0x3B , +FCC3_ETSIC =0x3F ,ETSI1_WORLD =0x37 , ETSI3_ETSIA = 0x32,
@@ -44,6 +45,7 @@ enum EnumRd {ETSI4_ETSIC =0x38 ,ETSI5_WORLD =0x39 ,ETSI6_WORLD =0x34 , +ETSI8_WORLD =0x3D ,ETSI_RESERVED =0x33 , MKK1_MKKA = 0x40,
@@ -59,6 +61,7 @@ enum EnumRd {MKK1_MKKA1 =0x4A ,MKK1_MKKA2 =0x4B ,MKK1_MKKC =0x4C , +APL2_FCCA =0x4D ,APL3_FCCA =0x50 , APL1_WORLD = 0x52,
@@ -67,6 +70,7 @@ enum EnumRd {APL1_ETSIC =0x55 ,APL2_ETSIC =0x56 ,APL5_WORLD =0x58 , +APL13_WORLD =0x5A ,APL6_WORLD =0x5B ,APL7_FCCA =0x5C , APL8_WORLD = 0x5D,
@@ -168,6 +172,7 @@ static struct reg_dmn_pair_mapping regDomainPairs[] = { {FCC2_ETSIC, CTL_FCC, CTL_ETSI}, {FCC3_FCCA, CTL_FCC, CTL_FCC}, {FCC3_WORLD, CTL_FCC, CTL_ETSI}, + {FCC3_ETSIC, CTL_FCC, CTL_ETSI}, {FCC4_FCCA, CTL_FCC, CTL_FCC}, {FCC5_FCCA, CTL_FCC, CTL_FCC}, {FCC6_FCCA, CTL_FCC, CTL_FCC},
@@ -179,6 +184,7 @@ static struct reg_dmn_pair_mapping regDomainPairs[] = { {ETSI4_WORLD, CTL_ETSI, CTL_ETSI}, {ETSI5_WORLD, CTL_ETSI, CTL_ETSI}, {ETSI6_WORLD, CTL_ETSI, CTL_ETSI}, + {ETSI8_WORLD, CTL_ETSI, CTL_ETSI},/* XXX: For ETSI3_ETSIA, Was NO_CTL meant for the 2 GHz band ? */ {ETSI3_ETSIA, CTL_ETSI, CTL_ETSI},
@@ -188,9 +194,11 @@ static struct reg_dmn_pair_mapping regDomainPairs[] = { {FCC1_FCCA, CTL_FCC, CTL_FCC}, {APL1_WORLD, CTL_FCC, CTL_ETSI}, {APL2_WORLD, CTL_FCC, CTL_ETSI}, + {APL2_FCCA, CTL_FCC, CTL_FCC}, {APL3_WORLD, CTL_FCC, CTL_ETSI}, {APL4_WORLD, CTL_FCC, CTL_ETSI}, {APL5_WORLD, CTL_FCC, CTL_ETSI}, + {APL13_WORLD, CTL_ETSI, CTL_ETSI}, {APL6_WORLD, CTL_ETSI, CTL_ETSI}, {APL8_WORLD, CTL_ETSI, CTL_ETSI}, {APL9_WORLD, CTL_ETSI, CTL_ETSI},
@@ -298,6 +306,7 @@ static struct country_code_to_enum_rd allCountries[] = { {CTRY_AUSTRALIA2, FCC6_WORLD, "AU"}, {CTRY_AUSTRIA, ETSI1_WORLD, "AT"}, {CTRY_AZERBAIJAN, ETSI4_WORLD, "AZ"}, + {CTRY_BAHAMAS, FCC3_WORLD, "BS"}, {CTRY_BAHRAIN, APL6_WORLD, "BH"}, {CTRY_BANGLADESH, NULL1_WORLD, "BD"}, {CTRY_BARBADOS, FCC2_WORLD, "BB"},
@@ -305,6 +314,7 @@ static struct country_code_to_enum_rd allCountries[] = { {CTRY_BELGIUM, ETSI1_WORLD, "BE"}, {CTRY_BELGIUM2, ETSI4_WORLD, "BL"}, {CTRY_BELIZE, APL1_ETSIC, "BZ"}, + {CTRY_BERMUDA, FCC3_FCCA, "BM"}, {CTRY_BOLIVIA, APL1_ETSIC, "BO"}, {CTRY_BOSNIA_HERZ, ETSI1_WORLD, "BA"}, {CTRY_BRAZIL, FCC3_WORLD, "BR"},
@@ -444,6 +454,7 @@ static struct country_code_to_enum_rd allCountries[] = { {CTRY_ROMANIA, NULL1_WORLD, "RO"}, {CTRY_RUSSIA, NULL1_WORLD, "RU"}, {CTRY_SAUDI_ARABIA, NULL1_WORLD, "SA"}, + {CTRY_SERBIA, ETSI1_WORLD, "RS"}, {CTRY_SERBIA_MONTENEGRO, ETSI1_WORLD, "CS"}, {CTRY_SINGAPORE, APL6_WORLD, "SG"}, {CTRY_SLOVAKIA, ETSI1_WORLD, "SK"},
@@ -455,10 +466,12 @@ static struct country_code_to_enum_rd allCountries[] = { {CTRY_SWITZERLAND, ETSI1_WORLD, "CH"}, {CTRY_SYRIA, NULL1_WORLD, "SY"}, {CTRY_TAIWAN, APL3_FCCA, "TW"}, + {CTRY_TANZANIA, APL1_WORLD, "TZ"}, {CTRY_THAILAND, FCC3_WORLD, "TH"}, {CTRY_TRINIDAD_Y_TOBAGO, FCC3_WORLD, "TT"}, {CTRY_TUNISIA, ETSI3_WORLD, "TN"}, {CTRY_TURKEY, ETSI3_WORLD, "TR"}, + {CTRY_UGANDA, FCC3_WORLD, "UG"}, {CTRY_UKRAINE, NULL1_WORLD, "UA"}, {CTRY_UAE, NULL1_WORLD, "AE"}, {CTRY_UNITED_KINGDOM, ETSI1_WORLD, "GB"},
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c +1 -0
@@ -1098,6 +1098,7 @@ static const struct sdio_device_id brcmf_sdmmc_ids[] = {BRCMF_SDIO_DEVICE (SDIO_DEVICE_ID_BROADCOM_43340 ),BRCMF_SDIO_DEVICE (SDIO_DEVICE_ID_BROADCOM_43341 ),BRCMF_SDIO_DEVICE (SDIO_DEVICE_ID_BROADCOM_43362 ), +BRCMF_SDIO_DEVICE (SDIO_DEVICE_ID_BROADCOM_43364 ),BRCMF_SDIO_DEVICE (SDIO_DEVICE_ID_BROADCOM_4335_4339 ),BRCMF_SDIO_DEVICE (SDIO_DEVICE_ID_BROADCOM_4339 ), BRCMF_SDIO_DEVICE(SDIO_DEVICE_ID_BROADCOM_43430),
drivers/net/wireless/intel/iwlwifi/pcie/rx.c +2 -0
@@ -901,6 +901,8 @@ static int _iwl_pcie_rx_init(struct iwl_trans *trans) } def_rxq = trans_pcie->rxq; +cancel_work_sync (&rba->rx_alloc); +spin_lock (&rba->lock);atomic_set (&rba->req_pending,0 );atomic_set (&rba->req_ready,0 );
drivers/net/wireless/marvell/mwifiex/usb.c +3 -0
@@ -644,6 +644,9 @@ static void mwifiex_usb_disconnect(struct usb_interface *intf) MWIFIEX_FUNC_SHUTDOWN); } +if (adapter->workqueue) +flush_workqueue (adapter->workqueue); +mwifiex_usb_free (card); mwifiex_dbg(adapter, FATAL,
drivers/net/wireless/marvell/mwifiex/util.c +5 -3
@@ -708,12 +708,14 @@ void mwifiex_hist_data_set(struct mwifiex_private *priv, u8 rx_rate, s8 snr, s8 nflr) {struct mwifiex_histogram_data *phist_data = priv->hist_data; +s8 nf = -nflr; +s8 rssi = snr - nflr;atomic_inc (&phist_data->num_samples);atomic_inc (&phist_data->rx_rate[rx_rate]); -atomic_inc (&phist_data->snr[snr]); -atomic_inc (&phist_data->noise_flr[128 + nflr]); -atomic_inc (&phist_data->sig_str[nflr - snr]); +atomic_inc (&phist_data->snr[snr +128 ]); +atomic_inc (&phist_data->noise_flr[nf +128 ]); +atomic_inc (&phist_data->sig_str[rssi +128 ]); }/* function to reset histogram data during init/reset */
drivers/net/wireless/rsi/rsi_91x_hal.c +21 -14
@@ -557,28 +557,32 @@ static int bl_write_header(struct rsi_hw *adapter, u8 *flash_content, u32 content_size) {struct rsi_host_intf_ops *hif_ops = adapter->host_intf_ops; -struct bl_header bl_hdr; +struct bl_header *bl_hdr;u32 write_addr, write_len;int status; - bl_hdr.flags =0 ; - bl_hdr.image_no =cpu_to_le32 (adapter->priv->coex_mode); - bl_hdr.check_sum =cpu_to_le32 ( - *(u32 *)&flash_content[CHECK_SUM_OFFSET ]); - bl_hdr.flash_start_address =cpu_to_le32 ( - *(u32 *)&flash_content[ADDR_OFFSET ]); - bl_hdr.flash_len =cpu_to_le32 (*(u32 *)&flash_content[LEN_OFFSET ]); + bl_hdr =kzalloc (sizeof (*bl_hdr),GFP_KERNEL ); +if (!bl_hdr) +return -ENOMEM ; + + bl_hdr->flags =0 ; + bl_hdr->image_no =cpu_to_le32 (adapter->priv->coex_mode); + bl_hdr->check_sum = +cpu_to_le32 (*(u32 *)&flash_content[CHECK_SUM_OFFSET ]); + bl_hdr->flash_start_address = +cpu_to_le32 (*(u32 *)&flash_content[ADDR_OFFSET ]); + bl_hdr->flash_len =cpu_to_le32 (*(u32 *)&flash_content[LEN_OFFSET ]); write_len =sizeof (struct bl_header );if (adapter->rsi_host_intf ==RSI_HOST_INTF_USB ) { write_addr =PING_BUFFER_ADDRESS ; status = hif_ops->write_reg_multiple (adapter, write_addr, - (u8 *)&bl_hdr, write_len); + (u8 *)bl_hdr, write_len);if (status <0 ) {rsi_dbg (ERR_ZONE ,"%s: Failed to load Version/CRC structure\n" , __func__); -return status; + goto fail; } }else { write_addr =PING_BUFFER_ADDRESS >>16 ;
@@ -587,20 +591,23 @@ static int bl_write_header(struct rsi_hw *adapter, u8 *flash_content,rsi_dbg (ERR_ZONE ,"%s: Unable to set ms word to common reg\n" , __func__); -return status; + goto fail; } write_addr =RSI_SD_REQUEST_MASTER | (PING_BUFFER_ADDRESS &0xFFFF ); status = hif_ops->write_reg_multiple (adapter, write_addr, - (u8 *)&bl_hdr, write_len); + (u8 *)bl_hdr, write_len);if (status <0 ) {rsi_dbg (ERR_ZONE ,"%s: Failed to load Version/CRC structure\n" , __func__); -return status; + goto fail; } } -return 0 ; + status =0 ; +fail: +kfree (bl_hdr); +return status; }static u32 read_flash_capacity (struct rsi_hw *adapter)
drivers/net/wireless/rsi/rsi_91x_sdio.c +14 -9
@@ -161,7 +161,6 @@ static void rsi_reset_card(struct sdio_func *pfunction)int err;struct mmc_card *card = pfunction->card;struct mmc_host *host = card->host; -s32 bit = (fls (host->ocr_avail) -1 );u8 cmd52_resp;u32 clock, resp, i;u16 rca;
@@ -181,7 +180,6 @@ static void rsi_reset_card(struct sdio_func *pfunction)msleep (20 );/* Initialize the SDIO card */ - host->ios.vdd = bit; host->ios.chip_select =MMC_CS_DONTCARE ; host->ios.bus_mode =MMC_BUSMODE_OPENDRAIN ; host->ios.power_mode =MMC_POWER_UP ;
@@ -970,17 +968,21 @@ static void ulp_read_write(struct rsi_hw *adapter, u16 addr, u32 data,/*This function resets and re-initializes the chip.*/ static void rsi_reset_chip (struct rsi_hw *adapter) { -__le32 data; +u8 *data;u8 sdio_interrupt_status =0 ;u8 request =1 ;int ret; + data =kzalloc (sizeof (u32),GFP_KERNEL ); +if (!data) +return ; +rsi_dbg (INFO_ZONE ,"Writing disable to wakeup register\n" ); ret =rsi_sdio_write_register (adapter,0 ,SDIO_WAKEUP_REG , &request);if (ret <0 ) {rsi_dbg (ERR_ZONE ,"%s: Failed to write SDIO wakeup register\n" , __func__); -return ; + goto err; }msleep (20 ); ret = rsi_sdio_read_register(adapter, RSI_FN1_INT_REGISTER,
@@ -988,7 +990,7 @@ static void rsi_reset_chip(struct rsi_hw *adapter)if (ret <0 ) {rsi_dbg (ERR_ZONE ,"%s: Failed to Read Intr Status Register\n" , __func__); -return ; + goto err; }rsi_dbg (INFO_ZONE ,"%s: Intr Status Register value = %d\n" , __func__, sdio_interrupt_status);
@@ -998,17 +1000,17 @@ static void rsi_reset_chip(struct rsi_hw *adapter)rsi_dbg (ERR_ZONE ,"%s: Unable to set ms word to common reg\n" , __func__); -return ; + goto err; } - data =TA_HOLD_THREAD_VALUE ; +put_unaligned_le32 (TA_HOLD_THREAD_VALUE , data);if (rsi_sdio_write_register_multiple (adapter,TA_HOLD_THREAD_REG |RSI_SD_REQUEST_MASTER , - (u8 *)&data,4 )) { + data,4 )) {rsi_dbg (ERR_ZONE ,"%s: Unable to hold Thread-Arch processor threads\n" , __func__); -return ; + goto err; }/* This msleep will ensure Thread-Arch processor to go to hold
@@ -1029,6 +1031,9 @@ static void rsi_reset_chip(struct rsi_hw *adapter)* read write operations to complete for chip reset. */ msleep (500 ); +err: +kfree (data); +return ; }/**
drivers/net/wireless/rsi/rsi_sdio.h +1 -1
@@ -85,7 +85,7 @@ enum sdio_interrupt_type {#define TA_SOFT_RST_CLR 0#define TA_SOFT_RST_SET BIT(0)#define TA_PC_ZERO 0 -#define TA_HOLD_THREAD_VALUE cpu_to_le32(0xF) +#define TA_HOLD_THREAD_VALUE 0xF#define TA_RELEASE_THREAD_VALUE cpu_to_le32(0xF)#define TA_BASE_ADDR 0x2200#define MISC_CFG_BASE_ADDR 0x4105
drivers/net/wireless/ti/wlcore/sdio.c +5 -0
@@ -406,6 +406,11 @@ static int wl1271_suspend(struct device *dev)mmc_pm_flag_t sdio_flags;int ret =0 ; +if (!wl) { +dev_err (dev,"no wilink module was probed\n" ); + goto out; + } +dev_dbg (dev,"wl1271 suspend. wow_enabled: %d\n" , wl->wow_enabled);
drivers/net/xen-netfront.c +8 -2
@@ -87,6 +87,7 @@ struct netfront_cb {/* IRQ name is queue name with "-tx" or "-rx" appended */ #define IRQ_NAME_SIZE (QUEUE_NAME_SIZE + 3) +static DECLARE_WAIT_QUEUE_HEAD (module_load_q);static DECLARE_WAIT_QUEUE_HEAD (module_unload_q);struct netfront_stats {
@@ -239,7 +240,7 @@ static void rx_refill_timeout(unsigned long data)static int netfront_tx_slot_available (struct netfront_queue *queue) {return (queue->tx.req_prod_pvt - queue->tx.rsp_cons) < - (NET_TX_RING_SIZE -MAX_SKB_FRAGS -2 ); + (NET_TX_RING_SIZE -XEN_NETIF_NR_SLOTS_MIN -1 ); }static void xennet_maybe_wake_tx (struct netfront_queue *queue)
@@ -790,7 +791,7 @@ static int xennet_get_responses(struct netfront_queue *queue,RING_IDX cons = queue->rx.rsp_cons;struct sk_buff *skb =xennet_get_rx_skb (queue, cons);grant_ref_t ref =xennet_get_rx_ref (queue, cons); -int max =MAX_SKB_FRAGS + (rx->status <=RX_COPY_THRESHOLD ); +int max =XEN_NETIF_NR_SLOTS_MIN + (rx->status <=RX_COPY_THRESHOLD );int slots =1 ;int err =0 ;unsigned long ret;
@@ -1330,6 +1331,11 @@ static struct net_device *xennet_create_dev(struct xenbus_device *dev)netif_carrier_off (netdev);xenbus_switch_state (dev, XenbusStateInitialising); +wait_event (module_load_q, +xenbus_read_driver_state (dev->otherend) != + XenbusStateClosed && +xenbus_read_driver_state (dev->otherend) != + XenbusStateUnknown);return netdev; exit:
drivers/nvme/host/pci.c +5 -0
@@ -2519,6 +2519,9 @@ static pci_ers_result_t nvme_slot_reset(struct pci_dev *pdev)static void nvme_error_resume (struct pci_dev *pdev) { +struct nvme_dev *dev =pci_get_drvdata (pdev); + +flush_work (&dev->ctrl.reset_work);pci_cleanup_aer_uncorrect_error_status (pdev); }
@@ -2562,6 +2565,8 @@ static const struct pci_device_id nvme_id_table[] = { .driver_data = NVME_QUIRK_LIGHTNVM, }, { PCI_DEVICE(0x1d1d, 0x2807), /* CNEX WL */ .driver_data = NVME_QUIRK_LIGHTNVM, }, + { PCI_DEVICE(0x1d1d, 0x2601), /* CNEX Granby */ + .driver_data = NVME_QUIRK_LIGHTNVM, }, { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, 0xffffff) }, { PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2001) }, { PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2003) },
drivers/nvme/host/rdma.c +6 -4
@@ -796,7 +796,7 @@ static int nvme_rdma_configure_admin_queue(struct nvme_rdma_ctrl *ctrl,if (error) {dev_err (ctrl->ctrl.device,"prop_get NVME_REG_CAP failed\n" ); - goto out_cleanup_queue; + goto out_stop_queue; } ctrl->ctrl.sqsize =
@@ -804,23 +804,25 @@ static int nvme_rdma_configure_admin_queue(struct nvme_rdma_ctrl *ctrl, error =nvme_enable_ctrl (&ctrl->ctrl, ctrl->ctrl.cap);if (error) - goto out_cleanup_queue; + goto out_stop_queue; ctrl->ctrl.max_hw_sectors = (ctrl->max_fr_pages -1 ) << (ilog2 (SZ_4K ) -9 ); error =nvme_init_identify (&ctrl->ctrl);if (error) - goto out_cleanup_queue; + goto out_stop_queue; error =nvme_rdma_alloc_qe (ctrl->queues[0 ].device->dev, &ctrl->async_event_sqe,sizeof (struct nvme_command ),DMA_TO_DEVICE );if (error) - goto out_cleanup_queue; + goto out_stop_queue;return 0 ; +out_stop_queue: +nvme_rdma_stop_queue (&ctrl->queues[0 ]); out_cleanup_queue:if (new)blk_cleanup_queue (ctrl->ctrl.admin_q);
drivers/nvmem/core.c +7 -0
@@ -1049,6 +1049,8 @@ static inline void *nvmem_cell_prepare_write_buffer(struct nvmem_cell *cell,/* setup the first byte with lsb bits from nvmem */ rc =nvmem_reg_read (nvmem, cell->offset, &v,1 ); +if (rc) + goto err; *b++ |=GENMASK (bit_offset -1 ,0 ) & v;/* setup rest of the byte if any */
@@ -1067,11 +1069,16 @@ static inline void *nvmem_cell_prepare_write_buffer(struct nvmem_cell *cell,/* setup the last byte with msb bits from nvmem */ rc =nvmem_reg_read (nvmem, cell->offset + cell->bytes -1 , &v,1 ); +if (rc) + goto err; *p |=GENMASK (7 , (nbits + bit_offset) %BITS_PER_BYTE ) & v; }return buf; +err: +kfree (buf); +return ERR_PTR (rc); }/**
drivers/pci/host/pci-xgene.c +0 -1
@@ -686,7 +686,6 @@ static int xgene_pcie_probe_bridge(struct platform_device *pdev) bus = bridge->bus; -pci_scan_child_bus (bus);pci_assign_unassigned_bus_resources (bus);list_for_each_entry (child, &bus->children, node)pcie_bus_configure_settings (child);
drivers/pci/hotplug/pciehp_hpc.c +7 -0
@@ -863,6 +863,13 @@ struct controller *pcie_init(struct pcie_device *dev)if (pdev->hotplug_user_indicators) slot_cap &= ~(PCI_EXP_SLTCAP_AIP |PCI_EXP_SLTCAP_PIP ); +/* +* We assume no Thunderbolt controllers support Command Complete events, +* but some controllers falsely claim they do. +*/ +if (pdev->is_thunderbolt) + slot_cap |=PCI_EXP_SLTCAP_NCCS ; + ctrl->slot_cap = slot_cap;mutex_init (&ctrl->ctrl_lock);init_waitqueue_head (&ctrl->queue);
drivers/pci/pci-sysfs.c +9 -6
@@ -305,13 +305,16 @@ static ssize_t enable_store(struct device *dev, struct device_attribute *attr,if (!capable (CAP_SYS_ADMIN ))return -EPERM ; -if (!val) { -if (pci_is_enabled (pdev)) -pci_disable_device (pdev); -else - result = -EIO ; - }else +device_lock (dev); +if (dev->driver) + result = -EBUSY ; +else if (val) result =pci_enable_device (pdev); +else if (pci_is_enabled (pdev)) +pci_disable_device (pdev); +else + result = -EIO ; +device_unlock (dev);return result <0 ? result : count; }
drivers/pci/probe.c +3 -1
@@ -516,12 +516,14 @@ static void devm_pci_release_host_bridge_dev(struct device *dev)if (bridge->release_fn) bridge->release_fn (bridge); + +pci_free_resource_list (&bridge->windows); }static void pci_release_host_bridge_dev (struct device *dev) {devm_pci_release_host_bridge_dev (dev); -pci_free_host_bridge (to_pci_host_bridge (dev)); +kfree (to_pci_host_bridge (dev)); }struct pci_host_bridge *pci_alloc_host_bridge (size_t priv)
drivers/pinctrl/pinctrl-at91-pio4.c +3 -1
@@ -576,8 +576,10 @@ static int atmel_pctl_dt_node_to_map(struct pinctrl_dev *pctldev,for_each_child_of_node (np_config, np) { ret =atmel_pctl_dt_subnode_to_map (pctldev, np, map, &reserved_maps, num_maps); -if (ret <0 ) +if (ret <0 ) { +of_node_put (np);break ; + } } }
drivers/regulator/cpcap-regulator.c +1 -1
@@ -222,7 +222,7 @@ static unsigned int cpcap_map_mode(unsigned int mode)case CPCAP_BIT_AUDIO_LOW_PWR :return REGULATOR_MODE_STANDBY ;default : -return -EINVAL ; +return REGULATOR_MODE_INVALID ; } }
drivers/regulator/of_regulator.c +7 -6
@@ -31,6 +31,7 @@ static void of_get_regulation_constraints(struct device_node *np,struct regulation_constraints *constraints = &(*init_data)->constraints;struct regulator_state *suspend_state;struct device_node *suspend_np; +unsigned int mode;int ret, i;u32 pval;
@@ -124,11 +125,11 @@ static void of_get_regulation_constraints(struct device_node *np,if (!of_property_read_u32 (np,"regulator-initial-mode" , &pval)) {if (desc && desc->of_map_mode) { - ret = desc->of_map_mode (pval); -if (ret == -EINVAL ) + mode = desc->of_map_mode (pval); +if (mode ==REGULATOR_MODE_INVALID )pr_err ("%s: invalid mode %u\n" , np->name, pval);else - constraints->initial_mode = ret; + constraints->initial_mode = mode; }else {pr_warn ("%s: mapping for mode %d not defined\n" , np->name, pval);
@@ -163,12 +164,12 @@ static void of_get_regulation_constraints(struct device_node *np,if (!of_property_read_u32 (suspend_np,"regulator-mode" , &pval)) {if (desc && desc->of_map_mode) { - ret = desc->of_map_mode (pval); -if (ret == -EINVAL ) + mode = desc->of_map_mode (pval); +if (mode ==REGULATOR_MODE_INVALID )pr_err ("%s: invalid mode %u\n" , np->name, pval);else - suspend_state->mode = ret; + suspend_state->mode = mode; }else {pr_warn ("%s: mapping for mode %d not defined\n" , np->name, pval);
drivers/regulator/pfuze100-regulator.c +1 -0
@@ -158,6 +158,7 @@ static const struct regulator_ops pfuze100_sw_regulator_ops = {static const struct regulator_ops pfuze100_swb_regulator_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, + .is_enabled = regulator_is_enabled_regmap, .list_voltage = regulator_list_voltage_table, .map_voltage = regulator_map_voltage_ascend, .set_voltage_sel = regulator_set_voltage_sel_regmap,
drivers/regulator/twl-regulator.c +1 -1
@@ -274,7 +274,7 @@ static inline unsigned int twl4030reg_map_mode(unsigned int mode)case RES_STATE_SLEEP :return REGULATOR_MODE_STANDBY ;default : -return -EINVAL ; +return REGULATOR_MODE_INVALID ; } }
drivers/rtc/interface.c +5 -0
@@ -359,6 +359,11 @@ int rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) {int err; +if (!rtc->ops) +return -ENODEV ; +else if (!rtc->ops->set_alarm)
Lines of this file are not shown. View the raw message.
drivers/scsi/megaraid/megaraid_sas_fusion.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c +16 -14
Lines of this file are not shown. View the raw message.
drivers/staging/lustre/lustre/ldlm/ldlm_lock.c +5 -1
Lines of this file are not shown. View the raw message.
drivers/staging/lustre/lustre/llite/xattr.c +5 -1
Lines of this file are not shown. View the raw message.
drivers/staging/media/atomisp/i2c/ov2680.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_ioctl32.c +26 -23
49 lines not on this page · raw message
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/vfio/mdev/mdev_core.c +36 -66
102 lines not on this page · raw message
drivers/vfio/platform/vfio_platform_common.c +10 -5
Lines of this file are not shown. View the raw message.
drivers/vfio/vfio_iommu_type1.c +47 -26
73 lines not on this page · raw message
include/linux/netfilter/ipset/ip_set_timeout.h +8 -2
Lines of this file are not shown. View the raw message.
net/ipv4/tcp_input.c +25 -23
48 lines not on this page · raw message
tools/testing/selftests/intel_pstate/run.sh +14 -15
Lines of this file are not shown. View the raw message.
tools/testing/selftests/memfd/run_tests.sh +9 -5
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.