Linux 4.14.158
Greg KH
maintainerI'm announcing the release of the 4.14.158 kernel.
All users of the 4.14 kernel series must upgrade.
The updated 4.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/hid/uhid.txt | 2 Makefile | 2 arch/arm/Kconfig.debug | 28 arch/arm/boot/dts/gemini-sq201.dts | 37 - arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi | 8 arch/arm/mach-ks8695/board-acs5k.c | 2 arch/arm/mach-omap1/Makefile | 2 arch/arm/mach-omap1/include/mach/usb.h | 2 arch/arm64/kernel/head.S | 26 arch/arm64/kernel/smp.c | 6 arch/microblaze/Makefile | 12 arch/microblaze/boot/Makefile | 4 arch/openrisc/kernel/entry.S | 2 arch/openrisc/kernel/head.S | 2 arch/powerpc/boot/dts/bamboo.dts | 4 arch/powerpc/include/asm/cputable.h | 1 arch/powerpc/include/asm/reg.h | 2 arch/powerpc/kernel/cputable.c | 10 arch/powerpc/kernel/prom.c | 6 arch/powerpc/mm/fault.c | 17 arch/powerpc/mm/ppc_mmu_32.c | 4 arch/powerpc/perf/isa207-common.c | 25 arch/powerpc/perf/isa207-common.h | 4 arch/powerpc/platforms/83xx/misc.c | 17 arch/powerpc/platforms/powernv/eeh-powernv.c | 8 arch/powerpc/platforms/powernv/pci-ioda.c | 4 arch/powerpc/platforms/powernv/pci.c | 4 arch/powerpc/platforms/pseries/dlpar.c | 4 arch/powerpc/platforms/pseries/hotplug-memory.c | 1 arch/powerpc/xmon/xmon.c | 2 arch/s390/kvm/kvm-s390.c | 17 arch/s390/mm/gup.c | 9 arch/um/Kconfig.debug | 1 arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 4 arch/x86/kvm/vmx.c | 14 arch/x86/xen/xen-asm_64.S | 2 crypto/crypto_user.c | 37 - drivers/acpi/acpi_lpss.c | 7 drivers/acpi/apei/ghes.c | 32 - drivers/base/platform.c | 3 drivers/block/drbd/drbd_main.c | 1 drivers/block/drbd/drbd_nl.c | 43 + drivers/block/drbd/drbd_receiver.c | 52 + drivers/block/drbd/drbd_state.h | 2 drivers/bluetooth/hci_bcm.c | 22 drivers/char/hw_random/stm32-rng.c | 8 drivers/clk/at91/clk-generated.c | 28 drivers/clk/at91/clk-main.c | 7 drivers/clk/at91/sckc.c | 20 drivers/clk/meson/gxbb.c | 1 drivers/clk/samsung/clk-exynos5420.c | 6 drivers/clk/sunxi-ng/ccu-sun9i-a80.c | 2 drivers/clk/ti/clk-dra7-atl.c | 6 drivers/clocksource/timer-fttmr010.c | 73 +- drivers/crypto/mxc-scc.c | 12 drivers/crypto/stm32/stm32-hash.c | 2 drivers/gpu/ipu-v3/ipu-pre.c | 6 drivers/hid/hid-core.c | 51 + drivers/hid/intel-ish-hid/ishtp-hid.c | 2 drivers/infiniband/hw/qib/qib_sdma.c | 4 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c | 2 drivers/infiniband/sw/rxe/rxe_hw_counters.c | 2 drivers/infiniband/sw/rxe/rxe_verbs.h | 6 drivers/infiniband/ulp/srp/ib_srp.c | 1 drivers/input/serio/gscps2.c | 4 drivers/input/serio/hp_sdc.c | 4 drivers/iommu/amd_iommu.c | 8 drivers/mailbox/mailbox-test.c | 14 drivers/md/dm-flakey.c | 33 - drivers/media/platform/atmel/atmel-isc.c | 12 drivers/media/platform/stm32/stm32-dcmi.c | 17 drivers/media/v4l2-core/v4l2-ctrls.c | 1 drivers/misc/mei/bus.c | 9 drivers/mmc/host/meson-gx-mmc.c | 73 ++ drivers/mtd/mtdcore.h | 2 drivers/mtd/mtdpart.c | 35 - drivers/mtd/nand/atmel/nand-controller.c | 2 drivers/mtd/nand/atmel/pmecc.c | 21 drivers/mtd/nand/sunxi_nand.c | 2 drivers/mtd/spi-nor/spi-nor.c | 2 drivers/mtd/ubi/build.c | 2 drivers/mtd/ubi/kapi.c | 2 drivers/net/can/c_can/c_can.c | 26 drivers/net/can/rx-offload.c | 96 ++- drivers/net/can/usb/peak_usb/pcan_usb.c | 15 drivers/net/dsa/bcm_sf2.c | 7 drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 4 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 78 +- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 5 drivers/net/ethernet/cadence/macb.h | 6 drivers/net/ethernet/cadence/macb_main.c | 18 drivers/net/ethernet/cadence/macb_ptp.c | 5 drivers/net/ethernet/freescale/fec_main.c | 13 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 2 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 drivers/net/ethernet/mellanox/mlx5/core/main.c | 8 drivers/net/ethernet/sfc/ef10.c | 29 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 4 drivers/net/ethernet/ti/cpts.c | 4 drivers/net/macvlan.c | 3 drivers/net/slip/slip.c | 1 drivers/net/vxlan.c | 13 drivers/net/wan/fsl_ucc_hdlc.c | 1 drivers/net/wireless/ath/ath6kl/cfg80211.c | 4 drivers/net/wireless/intel/iwlwifi/dvm/main.c | 17 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c | 19 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.h | 5 drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 4 drivers/net/wireless/marvell/mwifiex/debugfs.c | 14 drivers/net/wireless/marvell/mwifiex/scan.c | 18 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c | 3 drivers/pci/msi.c | 22 drivers/pinctrl/pinctrl-xway.c | 39 - drivers/pinctrl/sh-pfc/pfc-sh7264.c | 9 drivers/pinctrl/sh-pfc/pfc-sh7734.c | 16 drivers/pinctrl/stm32/pinctrl-stm32.c | 26 drivers/platform/x86/hp-wmi.c | 10 drivers/power/avs/smartreflex.c | 3 drivers/pwm/core.c | 1 drivers/pwm/pwm-bcm-iproc.c | 1 drivers/pwm/pwm-berlin.c | 1 drivers/pwm/pwm-clps711x.c | 4 drivers/pwm/pwm-pca9685.c | 1 drivers/pwm/pwm-samsung.c | 1 drivers/regulator/palmas-regulator.c | 5 drivers/regulator/tps65910-regulator.c | 4 drivers/reset/core.c | 1 drivers/scsi/csiostor/csio_init.c | 2 drivers/scsi/libsas/sas_expander.c | 29 drivers/scsi/lpfc/lpfc.h | 6 drivers/scsi/lpfc/lpfc_attr.c | 4 drivers/scsi/lpfc/lpfc_bsg.c | 6 drivers/scsi/lpfc/lpfc_els.c | 4 drivers/scsi/lpfc/lpfc_hbadisc.c | 2 drivers/scsi/lpfc/lpfc_init.c | 7 drivers/scsi/lpfc/lpfc_scsi.c | 18 drivers/scsi/lpfc/lpfc_sli.c | 2 drivers/scsi/qla2xxx/tcm_qla2xxx.c | 48 - drivers/scsi/qla2xxx/tcm_qla2xxx.h | 3 drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 5 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 7 drivers/tty/serial/8250/8250_core.c | 26 drivers/tty/serial/8250/8250_fsl.c | 23 drivers/tty/serial/8250/8250_of.c | 5 drivers/tty/serial/max310x.c | 7 drivers/usb/serial/ftdi_sio.c | 3 drivers/usb/serial/ftdi_sio_ids.h | 7 drivers/vfio/vfio_iommu_spapr_tce.c | 10 drivers/watchdog/meson_gxbb_wdt.c | 4 drivers/watchdog/sama5d4_wdt.c | 4 drivers/xen/xen-pciback/pci_stub.c | 3 fs/btrfs/delayed-ref.c | 3 fs/ceph/super.c | 11 fs/exec.c | 2 fs/exofs/super.c | 37 - fs/ext4/inode.c | 15 fs/ext4/super.c | 21 fs/f2fs/file.c | 2 fs/gfs2/bmap.c | 2 fs/ocfs2/journal.c | 6 fs/xfs/xfs_ioctl32.c | 40 + fs/xfs/xfs_rtalloc.c | 4 include/linux/blktrace_api.h | 8 include/linux/compat.h | 2 include/linux/futex.h | 44 - include/linux/genalloc.h | 13 include/linux/gpio/consumer.h | 2 include/linux/netdevice.h | 2 include/linux/reset-controller.h | 2 include/linux/sched.h | 3 include/linux/sched/mm.h | 6 include/linux/sched/task.h | 2 include/linux/serial_8250.h | 4 include/linux/swap.h | 6 include/net/sctp/structs.h | 3 include/net/sock.h | 2 init/main.c | 1 kernel/Makefile | 3 kernel/bpf/syscall.c | 6 kernel/exit.c | 30 kernel/fork.c | 45 - kernel/futex.c | 511 +++++++++++++++-- kernel/futex_compat.c | 202 ------ lib/genalloc.c | 25 lib/radix-tree.c | 2 mm/internal.h | 10 net/bridge/netfilter/ebt_dnat.c | 19 net/core/neighbour.c | 13 net/core/net_namespace.c | 3 net/core/sock.c | 2 net/decnet/dn_dev.c | 2 net/ipv4/ip_tunnel.c | 8 net/mac80211/sta_info.c | 3 net/openvswitch/datapath.c | 17 net/psample/psample.c | 2 net/sched/sch_mq.c | 3 net/sched/sch_mqprio.c | 4 net/sched/sch_multiq.c | 2 net/sched/sch_prio.c | 2 net/sctp/associola.c | 1 net/sctp/endpointola.c | 1 net/sctp/input.c | 4 net/sctp/transport.c | 3 net/smc/smc_core.c | 4 net/tipc/link.c | 2 net/tipc/netlink_compat.c | 15 net/vmw_vsock/af_vsock.c | 7 net/xfrm/xfrm_state.c | 2 samples/vfio-mdev/mtty.c | 26 scripts/gdb/linux/symbols.py | 3 security/apparmor/apparmorfs.c | 1 sound/core/compress_offload.c | 2 sound/soc/codecs/msm8916-wcd-analog.c | 4 sound/soc/kirkwood/kirkwood-i2s.c | 8 sound/soc/stm/stm32_i2s.c | 29 virt/kvm/kvm_main.c | 2 216 files changed, 2022 insertions(+), 1028 deletions(-)
Aaro Koskinen (1):
ARM: OMAP1: fix USB configuration for device-only setups
Aaron Ma (1):
iommu/amd: Fix NULL dereference bug in match_hid_uid
Aditya Pakki (2):
net/netlink_compat: Fix a missing check of nla_parse_nested net/net_namespace: Check the return value of register_pernet_subsys()
Ahmed Zaki (1):
mac80211: fix station inactive_time shortly after boot
Al Viro (1):
exofs_mount(): fix leaks on failure exits
Alexander Shiyan (2):
serial: max310x: Fix tx_empty() callback
pwm: clps711x: Fix period calculation
Alexander Usyskin (1):
mei: bus: prefix device names on bus with the bus name
Alexandre Belloni (2):
clk: at91: avoid sleeping early
clk: at91: generated: set audio_pll_allowed in at91_clk_register_generated()
Alexandre Torgue (1):
pinctrl: stm32: fix memory leak issue
Alexey Kardashevskiy (2):
vfio/spapr_tce: Get rid of possible infinite loop powerpc/powernv/eeh/npu: Fix uninitialized variables in opal_pci_eeh_freeze_status
Alexey Skidanov (1):
lib/genalloc.c: fix allocation of aligned buffer from non-aligned chunk
Anatoliy Glagolev (1):
scsi: qla2xxx: deadlock by configfs_depend_item
Andrea Righi (1):
kprobes/x86/xen: blacklist non-attachable xen interrupt functions
Andy Shevchenko (1):
net: dev: Use unsigned integer as an argument to left-shift
Arnd Bergmann (2):
ARM: ks8695: fix section mismatch warning
y2038: futex: Move compat implementation into futex.c
Bart Van Assche (1):
RDMA/srp: Propagate ib_post_send() failures to the SCSI mid-layer
Benjamin Herrenschmidt (1):
powerpc/44x/bamboo: Fix PCI range
Bert Kenward (1):
sfc: initialise found bitmap in efx_ef10_mtd_probe
Bob Peterson (1):
gfs2: take jdata unstuff into account in do_grow
Boris Brezillon (3):
mtd: rawnand: sunxi: Write pageprog related opcodes to WCMD_SET
mtd: Check add_mtd_device() ret code
mtd: Remove a debug trace in mtdpart.c
Brian Norris (1):
mwifiex: debugfs: correct histogram spacing, formatting
Candle Sun (1):
HID: core: check whether Usage Page item is after Usage ID items
Chao Yu (1):
f2fs: fix to dirty inode synchronously
Chris Coulson (1):
apparmor: delete the dentry in aafs_remove() to avoid a leak
Christophe Leroy (5):
powerpc/book3s/32: fix number of bats in p/v_block_mapped() powerpc/xmon: fix dump_segments()
powerpc/prom: fix early DEBUG messages
powerpc/mm: Make NULL pointer deferences explicit on bad page faults. powerpc/83xx: handle machine check caused by watchdog timer
Chuhong Yuan (2):
net: fec: add missed clk_disable_unprepare in remove
net: fec: fix clock count mis-match
Colin Ian King (1):
clk: sunxi-ng: a80: fix the zero'ing of bits 16 and 18
Dan Carpenter (2):
block: drbd: remove a stray unlock in __drbd_send_protocol() IB/qib: Fix an error code in qib_sdma_verbs_send()
Darrick J. Wong (1):
xfs: require both realtime inodes to mount
Darwin Dingel (1):
serial: 8250: Rate limit serial port rx interrupts during input overruns
Doug Berger (1):
net: bcmgenet: reapply manual settings to the PHY
Dust Li (1):
net: sched: fix tc -s class show no bstats on class with nolock subqueues
Edward Cree (1):
sfc: suppress duplicate nvmem partition types in efx_ef10_mtd_probe
Eric Biggers (1):
crypto: user - support incremental algorithm dumps
Eric Dumazet (1):
net: fix possible overflow in __sk_mem_raise_allocated()
Eugen Hristev (5):
clk: at91: fix update bit maps on CFG_MOR write
media: v4l2-ctrl: fix flags for DO_WHITE_BALANCE
media: atmel: atmel-isc: fix asd memory allocation
media: atmel: atmel-isc: fix INIT_WORK misplacement
watchdog: sama5d4: fix WDD value to be always set to max
Fabien Dessenne (1):
mailbox: mailbox-test: fix null pointer if no mmio
Fabio D'Urso (1):
USB: serial: ftdi_sio: add device IDs for U-Blox C099-F9P
Fabio Estevam (2):
ARM: dts: imx53-voipac-dmm-668: Fix memory node duplication
crypto: mxc-scc - fix build warnings on ARM64
Florian Westphal (1):
bridge: ebtables: don't crash when using dnat target in output chains
Gal Pressman (1):
RDMA/vmw_pvrdma: Use atomic memory allocation in create AH
Geert Uytterhoeven (3):
pinctrl: sh-pfc: sh7264: Fix PFCR3 and PFCR0 register configuration
pinctrl: sh-pfc: sh7734: Fix shifted values in IPSR10
openrisc: Fix broken paths to arch/or32
Gen Zhang (1):
powerpc/pseries/dlpar: Fix a missing check in dlpar_parse_cc_property()
Greg Kroah-Hartman (3):
Revert "KVM: nVMX: reset cache/shadows when switching loaded VMCS"
kvm: properly check debugfs dentry before using it Linux 4.14.158
Gustavo A. R. Silva (1):
tipc: fix memory leak in tipc_nl_compat_publ_dump
Hans de Goede (5):
ACPI / LPSS: Ignore acpi_device_fix_up_power() return value
staging: rtl8723bs: Drop ACPI device ids
staging: rtl8723bs: Add 024c:0525 to the list of SDIO device-ids platform/x86: hp-wmi: Fix ACPI errors caused by too small buffer platform/x86: hp-wmi: Fix ACPI errors caused by passing 0 as input size
Harini Katakam (1):
net: macb: Fix SUBNS increment and increase resolution
He Zhe (1):
serial: 8250: Fix serial8250 initialization crash
Helge Deller (2):
parisc: Fix serio address output
parisc: Fix HP SDC hpa address output
Hoang Le (1):
tipc: fix skb may be leaky in tipc_link_input
Huang Shijie (1):
lib/genalloc.c: use vzalloc_node() to allocate the bitmap
Hugues Fruchet (1):
media: stm32-dcmi: fix DMA corruption when stopping streaming
Ilya Leoshkevich (1):
scripts/gdb: fix debugging modules compiled with hot/cold partitioning
James Morse (2):
ACPI / APEI: Don't wait to serialise with oops messages when panic()ing ACPI / APEI: Switch estatus pool to use vmalloc memory
James Smart (3):
scsi: lpfc: Fix kernel Oops due to null pring pointers
scsi: lpfc: Fix dif and first burst use in write commands
scsi: lpfc: Enable Management features for IF_TYPE=6
Jan Kara (1):
blktrace: Show requests without sector
Jeff Layton (1):
ceph: return -EINVAL if given fsc mount option on kernel w/o support
Jeroen Hofstee (3):
can: peak_usb: report bus recovery as well
can: c_can: D_CAN: c_can_chip_config(): perform a sofware reset on open
can: rx-offload: can_rx_offload_irq_offload_timestamp(): continue on error
Jerome Brunet (1):
mmc: meson-gx: make sure the descriptor is stopped on errors
Jim Mattson (1):
kvm: vmx: Set IA32_TSC_AUX for legacy mode guests
Johannes Berg (1):
decnet: fix DN_IFREQ_SIZE
John Garry (2):
scsi: libsas: Support SATA PHY connection rate unmatch fixing during discovery
scsi: libsas: Check SMP PHY control function result
John Rutherford (1):
tipc: fix link name length check
Jonathan Bakker (1):
Bluetooth: hci_bcm: Handle specific unknown packets after firmware loading
Josef Bacik (1):
btrfs: only track ref_heads in delayed_ref_updates
Jouni Hogander (1):
slip: Fix use-after-free Read in slip_open
Junxiao Bi (1):
ocfs2: clear journal dirty flag after shutdown journal
Kangjie Lu (7):
drivers/regulator: fix a missing check of return value
regulator: tps65910: fix a missing check of return value
net: (cpts) fix a missing check of clk_prepare
net: stmicro: fix a missing check of clk_prepare
net: dsa: bcm_sf2: Propagate error value from mdio_write
atl1e: checking the status of atl1e_write_phy_reg
tipc: fix a missing check of genlmsg_put
Karsten Graul (1):
net/smc: prevent races between smc_lgr_terminate() and smc_conn_free()
Kishon Vijay Abraham I (1):
reset: Fix memory leak in reset_control_array_put()
Konstantin Khlebnikov (2):
net/core/neighbour: tell kmemleak about hash tables net/core/neighbour: fix kmemleak minimal reference count for hash tables
Krzysztof Kozlowski (1):
gpiolib: Fix return value of gpio_to_desc() stub if !GPIOLIB
Kyle Roeschley (2):
ath6kl: Only use match sets when firmware supports it
ath6kl: Fix off by one error in scan completion
Lars Ellenberg (3):
drbd: ignore "all zero" peer volume sizes in handshake
drbd: reject attach of unsuitable uuids even if connected
drbd: do not block when adjusting "disk-options" while IO is frozen
Leon Romanovsky (1):
net/mlx5: Continue driver initialization despite debugfs failure
Lepton Wu (1):
VSOCK: bind to random port for VMADDR_PORT_ANY
Linus Walleij (1):
ARM: dts: Fix up SQ201 flash access
Lionel Debieve (2):
crypto: stm32/hash - Fix hmac issue more than 256 bytes
hwrng: stm32 - fix unbalanced pm_runtime_enable
Luc Van Oostenryck (1):
drbd: fix print_st_err()'s prototype to match the definition
Luca Ceresoli (1):
net: macb: fix error format in dev_err()
Luca Coelho (1):
iwlwifi: move iwl_nvm_check_version() into dvm
Lucas Stach (1):
gpu: ipu-v3: pre: don't trigger update if buffer address doesn't change
Maciej Kwiecien (1):
sctp: don't compare hb_timer expire date before starting it
Madhavan Srinivasan (1):
powerpc/perf: Fix unit_sel/cache_sel checks
Marc Kleine-Budde (5):
can: rx-offload: can_rx_offload_queue_tail(): fix error handling, avoid skb mem leak
can: rx-offload: can_rx_offload_offload_one(): do not increase the skb_queue beyond skb_queue_len_max
can: rx-offload: can_rx_offload_offload_one(): increment rx_fifo_errors on queue overflow or OOM
can: rx-offload: can_rx_offload_offload_one(): use ERR_PTR() to propagate error value in case of errors
can: rx-offload: can_rx_offload_irq_offload_fifo(): continue on error
Marek Szyprowski (1):
clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume
Martin Blumenstingl (1):
clk: meson: gxbb: let sar_adc_clk_div set the parent clock rate
Martin Schiller (1):
pinctrl: xway: fix gpio-hog related boot issues
Masahiro Yamada (2):
microblaze: adjust the help to the real behavior
microblaze: move "... is ready" messages to arch/microblaze/Makefile
Matthew Wilcox (Oracle) (1):
idr: Fix idr_alloc_u32 on 32-bit systems
Menglong Dong (1):
macvlan: schedule bc_work even if error
Michael Ellerman (1):
powerpc/pseries: Fix node leak in update_lmb_associativity_index()
Michael Mueller (1):
KVM: s390: unregister debug feature on failing arch init
Ming Lei (1):
PCI/MSI: Return -ENOSPC from pci_alloc_irq_vectors_affinity()
Miquel Raynal (1):
mtd: rawnand: atmel: Fix spelling mistake in error message
Nathan Chancellor (1):
vfio-mdev/samples: Use u8 instead of char for handle functions
Nick Bowler (2):
xfs: Align compat attrlist_by_handle with native implementation.
xfs: Fix bulkstat compat ioctls on x32 userspace.
Nikolay Aleksandrov (1):
net: psample: fix skb_over_panic
Olivier Moysan (3):
ASoC: stm32: i2s: fix dma configuration
ASoC: stm32: i2s: fix 16 bit format support
ASoC: stm32: i2s: fix IRQ clearing
Olof Johansson (1):
lib/genalloc.c: include vmalloc.h
Pan Bian (6):
mwifiex: fix potential NULL dereference and use after free
rtl818x: fix potential use after free
ubi: Put MTD device after it is not used
ubi: Do not drop UBI device reference before using
HID: intel-ish-hid: fixes incorrect error handling
staging: rtl8192e: fix potential use after free
Paolo Abeni (3):
openvswitch: fix flow command message size
openvswitch: drop unneeded BUG_ON() in ovs_flow_cmd_build_info()
openvswitch: remove another BUG_ON()
Parav Pandit (1):
IB/rxe: Make counters thread safe
Paul Thomas (1):
net: macb driver, check for SKBTX_HW_TSTAMP
Peng Sun (2):
bpf: decrease usercnt if bpf_map_new_fd() fails in bpf_map_get_fd_by_id()
bpf: drop refcount if bpf_map_new_fd() fails in map_create()
Peter Hutterer (1):
HID: doc: fix wrong data structure reference for UHID_OUTPUT
Peter Ujfalusi (1):
clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call
Petr Machata (1):
vxlan: Fix error path in __vxlan_dev_create()
Qian Cai (1):
drivers/base/platform.c: kmemleak ignore a known leak
Randy Dunlap (1):
reset: fix reset_control_ops kerneldoc comment
Richard Weinberger (1):
um: Make GCOV depend on !KCOV
Ross Lagerwall (1):
xen/pciback: Check dev_data before using it
Russell King (1):
ASoC: kirkwood: fix external clock probe defer
Steffen Klassert (1):
xfrm: Fix memleak on xfrm state destroy
Stephan Gerhold (1):
ASoC: msm8916-wcd-analog: Fix RX1 selection in RDAC2 MUX
Steve Capper (1):
arm64: mm: Prevent mismatched 52-bit VA support
Suzuki K Poulose (1):
arm64: smp: Handle errors reported by the firmware
Sweet Tea (1):
dm flakey: Properly corrupt multi-page bios.
Tao Ren (1):
clocksource/drivers/fttmr010: Fix invalid interrupt register access
Theodore Ts'o (1):
ext4: add more paranoia checking in ext4_expand_extra_isize handling
Thomas Gleixner (11):
futex: Move futex exit handling into futex code
futex: Replace PF_EXITPIDONE with a state
exit/exec: Seperate mm_release()
futex: Split futex_mm_release() for exit/exec
futex: Set task::futex_state to DEAD right after handling futex exit
futex: Mark the begin of futex exit explicitly
futex: Sanitize exit state handling
futex: Provide state handling for exec() as well
futex: Add mutex around futex exit
futex: Provide distinct return value when owner is exiting
futex: Prevent exit livelock
Thomas Meyer (1):
PM / AVS: SmartReflex: NULL check before some freeing functions is not needed
Uwe Kleine-König (3):
pwm: bcm-iproc: Prevent unloading the driver module while in use
ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed
pwm: Clear chip_data in pwm_put()
Varun Prakash (1):
scsi: csiostor: fix incorrect dma device in case of vport
Vasundhara Volam (2):
bnxt_en: Return linux standard errors in bnxt_ethtool.c
bnxt_en: query force speeds before disabling autoneg mode.
Vlastimil Babka (1):
mm, gup: add missing refcount overflow checks on s390
Wei Yang (1):
vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n
Wen Yang (2):
net/wan/fsl_ucc_hdlc: Avoid double free in ucc_hdlc_probe()
mtd: rawnand: atmel: fix possible object reference leak
Xiaochen Shen (1):
x86/resctrl: Prevent NULL pointer dereference when reading mondata
Xiaojun Sang (1):
ASoC: compress: fix unsigned integer overflow check
Xin Long (1):
sctp: cache netns in sctp_ep_common
Xingyu Chen (1):
watchdog: meson: Fix the wrong value of left time
Yang Tao (1):
futex: Prevent robust futex exit race
Yi Wang (1):
fork: fix some -Wmissing-prototypes warnings
Yunsheng Lin (1):
net: hns3: Change fw error code NOT_EXEC to NOT_SUPPORTED
huijin.park (1):
mtd: spi-nor: cast to u64 to avoid uint overflows
wenxu (1):
ip_tunnel: Make none-tunnel-dst tunnel port work with lwtunnel
Greg KH
maintainerDocumentation/hid/uhid.txt +1 -1
@@ -160,7 +160,7 @@ them but you should handle them according to your needs. UHID_OUTPUT: This is sent if the HID device driver wants to send raw data to the I/O device on the interrupt channel. You should read the payload and forward it to - the device. The payload is of type "struct uhid_data_req". + the device. The payload is of type "struct uhid_output_req". This may be received even though you haven't received UHID_OPEN, yet. UHID_GET_REPORT:
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 157 +SUBLEVEL = 158 EXTRAVERSION = NAME = Petit Gorille
arch/arm/Kconfig.debug +14 -14
@@ -1376,21 +1376,21 @@ config DEBUG_OMAP2PLUS_UART depends on ARCH_OMAP2PLUS config DEBUG_IMX_UART_PORT - int "i.MX Debug UART Port Selection" if DEBUG_IMX1_UART || \ - DEBUG_IMX25_UART || \ - DEBUG_IMX21_IMX27_UART || \ - DEBUG_IMX31_UART || \ - DEBUG_IMX35_UART || \ - DEBUG_IMX50_UART || \ - DEBUG_IMX51_UART || \ - DEBUG_IMX53_UART || \ - DEBUG_IMX6Q_UART || \ - DEBUG_IMX6SL_UART || \ - DEBUG_IMX6SX_UART || \ - DEBUG_IMX6UL_UART || \ - DEBUG_IMX7D_UART + int "i.MX Debug UART Port Selection" + depends on DEBUG_IMX1_UART || \ + DEBUG_IMX25_UART || \ + DEBUG_IMX21_IMX27_UART || \ + DEBUG_IMX31_UART || \ + DEBUG_IMX35_UART || \ + DEBUG_IMX50_UART || \ + DEBUG_IMX51_UART || \ + DEBUG_IMX53_UART || \ + DEBUG_IMX6Q_UART || \ + DEBUG_IMX6SL_UART || \ + DEBUG_IMX6SX_UART || \ + DEBUG_IMX6UL_UART || \ + DEBUG_IMX7D_UART default 1 - depends on ARCH_MXC help Choose UART port on which kernel low-level debug messages should be output.
arch/arm/boot/dts/gemini-sq201.dts +5 -32
@@ -20,7 +20,7 @@ }; chosen { - bootargs = "console=ttyS0,115200n8"; + bootargs = "console=ttyS0,115200n8 root=/dev/mtdblock2 rw rootfstype=squashfs,jffs2 rootwait"; stdout-path = &uart0; };
@@ -71,37 +71,10 @@ /* 16MB of flash */ reg = <0x30000000 0x01000000>; - partition@0 { - label = "RedBoot"; - reg = <0x00000000 0x00120000>; - read-only; - }; - partition@120000 { - label = "Kernel"; - reg = <0x00120000 0x00200000>; - }; - partition@320000 { - label = "Ramdisk"; - reg = <0x00320000 0x00600000>; - }; - partition@920000 { - label = "Application"; - reg = <0x00920000 0x00600000>; - }; - partition@f20000 { - label = "VCTL"; - reg = <0x00f20000 0x00020000>; - read-only; - }; - partition@f40000 { - label = "CurConf"; - reg = <0x00f40000 0x000a0000>; - read-only; - }; - partition@fe0000 { - label = "FIS directory"; - reg = <0x00fe0000 0x00020000>; - read-only; + partitions { + compatible = "redboot-fis"; + /* Eraseblock at 0xfe0000 */ + fis-index-block = <0x1fc>; }; };
arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi +2 -6
@@ -17,12 +17,8 @@ memory@70000000 { device_type = "memory"; - reg = <0x70000000 0x20000000>; - }; - - memory@b0000000 { - device_type = "memory"; - reg = <0xb0000000 0x20000000>; + reg = <0x70000000 0x20000000>, + <0xb0000000 0x20000000>; }; regulators {
arch/arm/mach-ks8695/board-acs5k.c +1 -1
@@ -92,7 +92,7 @@ static struct i2c_board_info acs5k_i2c_devs[] __initdata = { }, }; -static void acs5k_i2c_init (void ) +static void __init acs5k_i2c_init (void ) {/* The gpio interface */ platform_device_register (&acs5k_i2c_device);
arch/arm/mach-omap1/Makefile +1 -1
@@ -25,7 +25,7 @@ obj-y += $(i2c-omap-m) $(i2c-omap-y) led-y := leds.o -usb-fs-$(CONFIG_USB) := usb.o +usb-fs-$(CONFIG_USB_SUPPORT) := usb.o obj-y += $(usb-fs-m) $(usb-fs-y) # Specific board support
arch/arm/mach-omap1/include/mach/usb.h +1 -1
@@ -11,7 +11,7 @@#include <linux/platform_data/usb-omap1.h> -#if IS_ENABLED (CONFIG_USB ) +#if IS_ENABLED (CONFIG_USB_SUPPORT )void omap1_usb_init (struct omap_usb_config *pdata);#else static inline void omap1_usb_init (struct omap_usb_config *pdata)
arch/arm64/kernel/head.S +26 -0
@@ -594,6 +594,7 @@ secondary_startup: /* * Common entry point for secondary CPUs. */ + bl __cpu_secondary_check52bitva bl __cpu_setup // initialise processor bl __enable_mmu ldr x8, =__secondary_switched
@@ -668,6 +669,31 @@ ENTRY(__enable_mmu) ret ENDPROC(__enable_mmu) +ENTRY(__cpu_secondary_check52bitva) +#ifdef CONFIG_ARM64_52BIT_VA + ldr_l x0, vabits_user + cmp x0, #52 + b.ne 2f + + mrs_s x0, SYS_ID_AA64MMFR2_EL1 + and x0, x0, #(0xf << ID_AA64MMFR2_LVA_SHIFT) + cbnz x0, 2f + + adr_l x0, va52mismatch + mov w1, #1 + strb w1, [x0] + dmb sy + dc ivac, x0 // Invalidate potentially stale cache line + + update_early_cpu_boot_status CPU_STUCK_IN_KERNEL, x0, x1 +1: wfe + wfi + b 1b + +#endif +2: ret +ENDPROC(__cpu_secondary_check52bitva) + __no_granule_support: /* Indicate that this CPU can't boot and is stuck in the kernel */ update_early_cpu_boot_status CPU_STUCK_IN_KERNEL, x1, x2
arch/arm64/kernel/smp.c +6 -0
@@ -106,6 +106,7 @@ static int boot_secondary(unsigned int cpu, struct task_struct *idle) }static DECLARE_COMPLETION (cpu_running); +bool va52mismatch__ro_after_init ;int __cpu_up (unsigned int cpu,struct task_struct *idle) {
@@ -135,10 +136,15 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle)if (!cpu_online (cpu)) {pr_crit ("CPU%u: failed to come online\n" , cpu); + +if (IS_ENABLED (CONFIG_ARM64_52BIT_VA ) && va52mismatch) +pr_crit ("CPU%u: does not support 52-bit VAs\n" , cpu); + ret = -EIO ; } }else {pr_err ("CPU%u: failed to boot: %d\n" , cpu, ret); +return ret; } secondary_data.task =NULL ;
arch/microblaze/Makefile +7 -5
@@ -83,19 +83,21 @@ archclean: linux.bin linux.bin.gz linux.bin.ub: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ + @echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')' simpleImage.%: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ + @echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')' define archhelp echo '* linux.bin - Create raw binary' echo ' linux.bin.gz - Create compressed raw binary' echo ' linux.bin.ub - Create U-Boot wrapped raw binary' - echo ' simpleImage.<dt> - ELF image with $(arch)/boot/dts/<dt>.dts linked in' - echo ' - stripped elf with fdt blob' - echo ' simpleImage.<dt>.unstrip - full ELF image with fdt blob' - echo ' *_defconfig - Select default config from arch/microblaze/configs' - echo '' + echo ' simpleImage.<dt> - Create the following images with <dt>.dtb linked in' + echo ' simpleImage.<dt> : raw image' + echo ' simpleImage.<dt>.ub : raw image with U-Boot header' + echo ' simpleImage.<dt>.unstrip: ELF (identical to vmlinux)' + echo ' simpleImage.<dt>.strip : stripped ELF' echo ' Targets with <dt> embed a device tree blob inside the image' echo ' These targets support board with firmware that does not' echo ' support passing a device tree directly. Replace <dt> with the'
arch/microblaze/boot/Makefile +0 -4
@@ -9,15 +9,12 @@ OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary $(obj)/linux.bin: vmlinux FORCE $(call if_changed,objcopy) - @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' $(obj)/linux.bin.ub: $(obj)/linux.bin FORCE $(call if_changed,uimage) - @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE $(call if_changed,gzip) - @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' quiet_cmd_cp = CP $< $@$2 cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
@@ -35,6 +32,5 @@ $(obj)/simpleImage.%: vmlinux FORCE $(call if_changed,objcopy) $(call if_changed,uimage) $(call if_changed,strip,.strip) - @echo 'Kernel: $(UIMAGE_OUT) is ready' ' (#'`cat .version`')' clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb
arch/openrisc/kernel/entry.S +1 -1
@@ -184,7 +184,7 @@ handler: ;\ * occured. in fact they never do. if you need them use * values saved on stack (for SPR_EPC, SPR_ESR) or content * of r4 (for SPR_EEAR). for details look at EXCEPTION_HANDLE() - * in 'arch/or32/kernel/head.S' + * in 'arch/openrisc/kernel/head.S' */ /* =====================================================[ exceptions] === */
arch/openrisc/kernel/head.S +1 -1
@@ -1551,7 +1551,7 @@ _string_nl: /* * .data section should be page aligned - * (look into arch/or32/kernel/vmlinux.lds) + * (look into arch/openrisc/kernel/vmlinux.lds.S) */ .section .data,"aw" .align 8192
arch/powerpc/boot/dts/bamboo.dts +3 -1
@@ -268,8 +268,10 @@ /* Outbound ranges, one memory and one IO, * later cannot be changed. Chip supports a second * IO range but we don't use it for now + * The chip also supports a larger memory range but + * it's not naturally aligned, so our code will break */ - ranges = <0x02000000 0x00000000 0xa0000000 0x00000000 0xa0000000 0x00000000 0x40000000 + ranges = <0x02000000 0x00000000 0xa0000000 0x00000000 0xa0000000 0x00000000 0x20000000 0x02000000 0x00000000 0x00000000 0x00000000 0xe0000000 0x00000000 0x00100000 0x01000000 0x00000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>;
arch/powerpc/include/asm/cputable.h +1 -0
@@ -45,6 +45,7 @@ extern int machine_check_e500(struct pt_regs *regs);extern int machine_check_e200 (struct pt_regs *regs);extern int machine_check_47x (struct pt_regs *regs);int machine_check_8xx (struct pt_regs *regs); +int machine_check_83xx (struct pt_regs *regs);extern void cpu_down_flush_e500v2 (void );extern void cpu_down_flush_e500mc (void );
arch/powerpc/include/asm/reg.h +2 -0
@@ -733,6 +733,8 @@#define SRR1_PROGTRAP 0x00020000/* Trap */ #define SRR1_PROGADDR 0x00010000/* SRR0 contains subsequent addr */ +#define SRR1_MCE_MCP 0x00080000/* Machine check signal caused interrupt */ +#define SPRN_HSRR0 0x13A/* Save/Restore Register 0 */ #define SPRN_HSRR1 0x13B/* Save/Restore Register 1 */ #define HSRR1_DENORM 0x00100000/* Denorm exception */
arch/powerpc/kernel/cputable.c +6 -4
@@ -1185,6 +1185,7 @@ static struct cpu_spec __initdata cpu_specs[] = { .machine_check = machine_check_generic, .platform = "ppc603", }, +#ifdef CONFIG_PPC_83xx {/* e300c1 (a 603e core, plus some) on 83xx */ .pvr_mask = 0x7fff0000, .pvr_value = 0x00830000,
@@ -1195,7 +1196,7 @@ static struct cpu_spec __initdata cpu_specs[] = { .icache_bsize = 32, .dcache_bsize = 32, .cpu_setup = __setup_cpu_603, - .machine_check = machine_check_generic, + .machine_check = machine_check_83xx, .platform = "ppc603", }, {/* e300c2 (an e300c1 core, plus some, minus FPU) on 83xx */
@@ -1209,7 +1210,7 @@ static struct cpu_spec __initdata cpu_specs[] = { .icache_bsize = 32, .dcache_bsize = 32, .cpu_setup = __setup_cpu_603, - .machine_check = machine_check_generic, + .machine_check = machine_check_83xx, .platform = "ppc603", }, {/* e300c3 (e300c1, plus one IU, half cache size) on 83xx */
@@ -1223,7 +1224,7 @@ static struct cpu_spec __initdata cpu_specs[] = { .icache_bsize = 32, .dcache_bsize = 32, .cpu_setup = __setup_cpu_603, - .machine_check = machine_check_generic, + .machine_check = machine_check_83xx, .num_pmcs = 4, .oprofile_cpu_type = "ppc/e300", .oprofile_type = PPC_OPROFILE_FSL_EMB,
@@ -1240,12 +1241,13 @@ static struct cpu_spec __initdata cpu_specs[] = { .icache_bsize = 32, .dcache_bsize = 32, .cpu_setup = __setup_cpu_603, - .machine_check = machine_check_generic, + .machine_check = machine_check_83xx, .num_pmcs = 4, .oprofile_cpu_type = "ppc/e300", .oprofile_type = PPC_OPROFILE_FSL_EMB, .platform = "ppc603", }, +#endif {/* default match, we assume split I/D cache & TB (non-601)... */ .pvr_mask = 0x00000000, .pvr_value = 0x00000000,
arch/powerpc/kernel/prom.c +3 -3
@@ -128,7 +128,7 @@ static void __init move_device_tree(void) p =__va (memblock_alloc (size,PAGE_SIZE ));memcpy (p, initial_boot_params, size); initial_boot_params = p; -DBG ("Moved device tree to 0x%p\n" , p); +DBG ("Moved device tree to 0x%px\n" , p); }DBG ("<- move_device_tree\n" );
@@ -662,7 +662,7 @@ void __init early_init_devtree(void *params) {phys_addr_t limit; -DBG (" -> early_init_devtree(%p)\n" , params); +DBG (" -> early_init_devtree(%px)\n" , params);/* Too early to BUG_ON(), do it by hand */ if (!early_init_dt_verify (params))
@@ -722,7 +722,7 @@ void __init early_init_devtree(void *params)memblock_allow_resize ();memblock_dump_all (); -DBG ("Phys. mem: %llx\n" ,memblock_phys_mem_size ()); +DBG ("Phys. mem: %llx\n" , (unsigned long long )memblock_phys_mem_size ());/* We may need to relocate the flat tree, do it now. * FIXME .. and the initrd too? */
arch/powerpc/mm/fault.c +9 -8
@@ -581,21 +581,22 @@ void bad_page_fault(struct pt_regs *regs, unsigned long address, int sig)switch (regs->trap) {case 0x300 :case 0x380 : -printk (KERN_ALERT "Unable to handle kernel paging request for " -"data at address 0x%08lx\n" , regs->dar); +pr_alert ("BUG: %s at 0x%08lx\n" , + regs->dar <PAGE_SIZE ?"Kernel NULL pointer dereference" : +"Unable to handle kernel data access" , regs->dar);break ;case 0x400 :case 0x480 : -printk (KERN_ALERT "Unable to handle kernel paging request for " -"instruction fetch\n" ); +pr_alert ("BUG: Unable to handle kernel instruction fetch%s" , + regs->nip <PAGE_SIZE ?" (NULL pointer?)\n" :"\n" );break ;case 0x600 : -printk (KERN_ALERT "Unable to handle kernel paging request for " -"unaligned access at address 0x%08lx\n" , regs->dar); +pr_alert ("BUG: Unable to handle kernel unaligned access at 0x%08lx\n" , + regs->dar);break ;default : -printk (KERN_ALERT "Unable to handle kernel paging request for " -"unknown fault\n" ); +pr_alert ("BUG: Unable to handle unknown paging fault at 0x%08lx\n" , + regs->dar);break ; } printk(KERN_ALERT "Faulting instruction address: 0x%08lx\n",
arch/powerpc/mm/ppc_mmu_32.c +2 -2
@@ -52,7 +52,7 @@ struct batrange { /* stores address ranges mapped by BATs */phys_addr_t v_block_mapped (unsigned long va) {int b; -for (b =0 ; b <4 ; ++b) +for (b =0 ; b <ARRAY_SIZE (bat_addrs); ++b)if (va >= bat_addrs[b].start && va < bat_addrs[b].limit)return bat_addrs[b].phys + (va - bat_addrs[b].start);return 0 ;
@@ -64,7 +64,7 @@ phys_addr_t v_block_mapped(unsigned long va)unsigned long p_block_mapped (phys_addr_t pa) {int b; -for (b =0 ; b <4 ; ++b) +for (b =0 ; b <ARRAY_SIZE (bat_addrs); ++b)if (pa >= bat_addrs[b].phys && pa < (bat_addrs[b].limit-bat_addrs[b].start) +bat_addrs[b].phys)
arch/powerpc/perf/isa207-common.c +18 -7
@@ -150,6 +150,14 @@ static bool is_thresh_cmp_valid(u64 event)return true; } +static unsigned int dc_ic_rld_quad_l1_sel (u64 event) +{ +unsigned int cache; + + cache = (event >>EVENT_CACHE_SEL_SHIFT ) &MMCR1_DC_IC_QUAL_MASK ; +return cache; +} +static inline u64 isa207_find_source (u64 idx,u32 sub_idx) {u64 ret =PERF_MEM_NA ;
@@ -290,10 +298,10 @@ int isa207_get_constraint(u64 event, unsigned long *maskp, unsigned long *valp)* have a cache selector of zero. The bank selector (bit 3) is * irrelevant, as long as the rest of the value is 0. */ -if (cache &0x7 ) +if (!cpu_has_feature (CPU_FTR_ARCH_300 ) && (cache &0x7 ))return -1 ; - }else if (event &EVENT_IS_L1 ) { + }else if (cpu_has_feature (CPU_FTR_ARCH_300 ) || (event &EVENT_IS_L1 )) { mask |=CNST_L1_QUAL_MASK ; value |=CNST_L1_QUAL_VAL (cache); }
@@ -396,11 +404,14 @@ int isa207_compute_mmcr(u64 event[], int n_ev,/* In continuous sampling mode, update SDAR on TLB miss */ mmcra_sdar_mode (event[i], &mmcra); -if (event[i] &EVENT_IS_L1 ) { - cache = event[i] >>EVENT_CACHE_SEL_SHIFT ; - mmcr1 |= (cache &1 ) <<MMCR1_IC_QUAL_SHIFT ; - cache >>=1 ; - mmcr1 |= (cache &1 ) <<MMCR1_DC_QUAL_SHIFT ; +if (cpu_has_feature (CPU_FTR_ARCH_300 )) { + cache =dc_ic_rld_quad_l1_sel (event[i]); + mmcr1 |= (cache) <<MMCR1_DC_IC_QUAL_SHIFT ; + }else { +if (event[i] &EVENT_IS_L1 ) { + cache =dc_ic_rld_quad_l1_sel (event[i]); + mmcr1 |= (cache) <<MMCR1_DC_IC_QUAL_SHIFT ; + } }if (is_event_marked (event[i])) {
arch/powerpc/perf/isa207-common.h +2 -2
@@ -232,8 +232,8 @@#define MMCR1_COMBINE_SHIFT (pmc) (35 - ((pmc) - 1))#define MMCR1_PMCSEL_SHIFT (pmc) (24 - (((pmc) - 1)) * 8)#define MMCR1_FAB_SHIFT 36 -#define MMCR1_DC_QUAL_SHIFT 47 -#define MMCR1_IC_QUAL_SHIFT 46 +#define MMCR1_DC_IC_QUAL_MASK 0x3 +#define MMCR1_DC_IC_QUAL_SHIFT 46/* MMCR1 Combine bits macro for power9 */ #define p9_MMCR1_COMBINE_SHIFT (pmc) (38 - ((pmc - 1) * 2))
arch/powerpc/platforms/83xx/misc.c +17 -0
@@ -14,6 +14,7 @@#include <linux/of_platform.h> #include <linux/pci.h> +#include <asm/debug.h> #include <asm/io.h> #include <asm/hw_irq.h> #include <asm/ipic.h>
@@ -150,3 +151,19 @@ void __init mpc83xx_setup_arch(void)mpc83xx_setup_pci (); } + +int machine_check_83xx (struct pt_regs *regs) +{ +u32 mask =1 << (31 -IPIC_MCP_WDT ); + +if (!(regs->msr &SRR1_MCE_MCP ) || !(ipic_get_mcp_status () & mask)) +return machine_check_generic (regs); +ipic_clear_mcp_status (mask); + +if (debugger_fault_handler (regs)) +return 1 ; + +die ("Watchdog NMI Reset" , regs,0 ); + +return 1 ; +}
arch/powerpc/platforms/powernv/eeh-powernv.c +4 -4
@@ -548,8 +548,8 @@ static void pnv_eeh_get_phb_diag(struct eeh_pe *pe)static int pnv_eeh_get_phb_state (struct eeh_pe *pe) {struct pnv_phb *phb = pe->phb->private_data; -u8 fstate; -__be16 pcierr; +u8 fstate =0 ; +__be16 pcierr =0 ;s64 rc;int result =0 ;
@@ -587,8 +587,8 @@ static int pnv_eeh_get_phb_state(struct eeh_pe *pe)static int pnv_eeh_get_pe_state (struct eeh_pe *pe) {struct pnv_phb *phb = pe->phb->private_data; -u8 fstate; -__be16 pcierr; +u8 fstate =0 ; +__be16 pcierr =0 ;s64 rc;int result;
arch/powerpc/platforms/powernv/pci-ioda.c +2 -2
@@ -598,8 +598,8 @@ static int pnv_ioda_unfreeze_pe(struct pnv_phb *phb, int pe_no, int opt)static int pnv_ioda_get_pe_state (struct pnv_phb *phb,int pe_no) {struct pnv_ioda_pe *slave, *pe; -u8 fstate, state; -__be16 pcierr; +u8 fstate =0 , state; +__be16 pcierr =0 ;s64 rc;/* Sanity check on PE number */
arch/powerpc/platforms/powernv/pci.c +2 -2
@@ -600,8 +600,8 @@ static void pnv_pci_handle_eeh_config(struct pnv_phb *phb, u32 pe_no)static void pnv_pci_config_check_eeh (struct pci_dn *pdn) {struct pnv_phb *phb = pdn->phb->private_data; -u8 fstate; -__be16 pcierr; +u8 fstate =0 ; +__be16 pcierr =0 ;unsigned int pe_no;s64 rc;
arch/powerpc/platforms/pseries/dlpar.c +4 -0
@@ -63,6 +63,10 @@ static struct property *dlpar_parse_cc_property(struct cc_workarea *ccwa) name = (char *)ccwa +be32_to_cpu (ccwa->name_offset); prop->name =kstrdup (name,GFP_KERNEL ); +if (!prop->name) { +dlpar_free_cc_property (prop); +return NULL ; + } prop->length =be32_to_cpu (ccwa->prop_length); value = (char *)ccwa +be32_to_cpu (ccwa->prop_offset);
arch/powerpc/platforms/pseries/hotplug-memory.c +1 -0
@@ -295,6 +295,7 @@ static u32 lookup_lmb_associativity_index(struct of_drconf_cell *lmb) aa_index =find_aa_index (dr_node, ala_prop, lmb_assoc); +of_node_put (dr_node);dlpar_free_cc_nodes (lmb_node);return aa_index; }
arch/powerpc/xmon/xmon.c +1 -1
@@ -3293,7 +3293,7 @@ void dump_segments(void)printf ("sr0-15 =" );for (i =0 ; i <16 ; ++i) -printf (" %x" ,mfsrin (i)); +printf (" %x" ,mfsrin (i <<28 )); printf("\n"); }#endif
arch/s390/kvm/kvm-s390.c +14 -3
@@ -361,19 +361,30 @@ static void kvm_s390_cpu_feat_init(void)int kvm_arch_init (void *opaque) { +int rc; + kvm_s390_dbf =debug_register ("kvm-trace" ,32 ,1 ,7 *sizeof (long ));if (!kvm_s390_dbf)return -ENOMEM ;if (debug_register_view (kvm_s390_dbf, &debug_sprintf_view)) { -debug_unregister (kvm_s390_dbf); -return -ENOMEM ; + rc = -ENOMEM ; + goto out_debug_unreg; }kvm_s390_cpu_feat_init ();/* Register floating interrupt controller interface. */ -return kvm_register_device_ops (&kvm_flic_ops,KVM_DEV_TYPE_FLIC ); + rc =kvm_register_device_ops (&kvm_flic_ops,KVM_DEV_TYPE_FLIC ); +if (rc) { +pr_err ("Failed to register FLIC rc=%d\n" , rc); + goto out_debug_unreg; + } +return 0 ; + +out_debug_unreg: +debug_unregister (kvm_s390_dbf); +return rc; }void kvm_arch_exit (void )
arch/s390/mm/gup.c +6 -3
@@ -39,7 +39,8 @@ static inline int gup_pte_range(pmd_t *pmdp, pmd_t pmd, unsigned long addr,VM_BUG_ON (!pfn_valid (pte_pfn (pte))); page =pte_page (pte); head =compound_head (page); -if (!page_cache_get_speculative (head)) +if (unlikely (WARN_ON_ONCE (page_ref_count (head) <0 ) + || !page_cache_get_speculative (head)))return 0 ;if (unlikely (pte_val (pte) !=pte_val (*ptep))) {put_page (head);
@@ -77,7 +78,8 @@ static inline int gup_huge_pmd(pmd_t *pmdp, pmd_t pmd, unsigned long addr, refs++; }while (addr +=PAGE_SIZE , addr != end); -if (!page_cache_add_speculative (head, refs)) { +if (unlikely (WARN_ON_ONCE (page_ref_count (head) <0 ) + || !page_cache_add_speculative (head, refs))) { *nr -= refs;return 0 ; }
@@ -151,7 +153,8 @@ static int gup_huge_pud(pud_t *pudp, pud_t pud, unsigned long addr, refs++; }while (addr +=PAGE_SIZE , addr != end); -if (!page_cache_add_speculative (head, refs)) { +if (unlikely (WARN_ON_ONCE (page_ref_count (head) <0 ) + || !page_cache_add_speculative (head, refs))) { *nr -= refs;return 0 ; }
arch/um/Kconfig.debug +1 -0
@@ -19,6 +19,7 @@ config GPROF config GCOV bool "Enable gcov support" depends on DEBUG_INFO + depends on !KCOV help This option allows developers to retrieve coverage data from a UML session.
arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c +4 -0
@@ -313,6 +313,10 @@ int rdtgroup_mondata_show(struct seq_file *m, void *arg)int ret =0 ; rdtgrp =rdtgroup_kn_lock_live (of->kn); +if (!rdtgrp) { + ret = -ENOENT ; + goto out; + } md.priv = of->kn->priv; resid = md.u.rid;
arch/x86/kvm/vmx.c +7 -7
@@ -2818,9 +2818,6 @@ static void setup_msrs(struct vcpu_vmx *vmx) index =__find_msr_index (vmx,MSR_CSTAR );if (index >=0 )move_msr_up (vmx, index, save_nmsrs++); - index =__find_msr_index (vmx,MSR_TSC_AUX ); -if (index >=0 &&guest_cpuid_has (&vmx->vcpu,X86_FEATURE_RDTSCP )) -move_msr_up (vmx, index, save_nmsrs++);/* * MSR_STAR is only needed on long mode guests, and only * if efer.sce is enabled.
@@ -2833,6 +2830,9 @@ static void setup_msrs(struct vcpu_vmx *vmx) index =__find_msr_index (vmx,MSR_EFER );if (index >=0 &&update_transition_efer (vmx, index))move_msr_up (vmx, index, save_nmsrs++); + index =__find_msr_index (vmx,MSR_TSC_AUX ); +if (index >=0 &&guest_cpuid_has (&vmx->vcpu,X86_FEATURE_RDTSCP )) +move_msr_up (vmx, index, save_nmsrs++); vmx->save_nmsrs = save_nmsrs;
@@ -10000,10 +10000,6 @@ static void vmx_switch_vmcs(struct kvm_vcpu *vcpu, struct loaded_vmcs *vmcs)vmx_vcpu_load (vcpu, cpu); vcpu->cpu = cpu;put_cpu (); - -vm_entry_controls_reset_shadow (vmx); -vm_exit_controls_reset_shadow (vmx); -vmx_segment_cache_clear (vmx); }/*
@@ -11432,6 +11428,7 @@ static int enter_vmx_non_root_mode(struct kvm_vcpu *vcpu, bool from_vmentry) vmx->nested.vmcs01_debugctl =vmcs_read64 (GUEST_IA32_DEBUGCTL );vmx_switch_vmcs (vcpu, &vmx->nested.vmcs02); +vmx_segment_cache_clear (vmx);if (prepare_vmcs02 (vcpu, vmcs12, from_vmentry, &exit_qual)) {leave_guest_mode (vcpu);
@@ -12175,6 +12172,9 @@ static void nested_vmx_vmexit(struct kvm_vcpu *vcpu, u32 exit_reason, }vmx_switch_vmcs (vcpu, &vmx->vmcs01); +vm_entry_controls_reset_shadow (vmx); +vm_exit_controls_reset_shadow (vmx); +vmx_segment_cache_clear (vmx);/* Update any VMCS fields that might have changed while L2 ran */ vmcs_write32 (VM_EXIT_MSR_LOAD_COUNT , vmx->msr_autoload.host.nr);
arch/x86/xen/xen-asm_64.S +2 -0
@@ -12,6 +12,7 @@ #include <asm/segment.h> #include <asm/asm-offsets.h> #include <asm/thread_info.h> +#include <asm/asm.h> #include <xen/interface/xen.h>
@@ -24,6 +25,7 @@ ENTRY(xen_\name) pop %r11 jmp \name END(xen_\name) +_ASM_NOKPROBE(xen_\name) .endm xen_pv_trap divide_error
crypto/crypto_user.c +20 -17
@@ -296,30 +296,33 @@ static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh,static int crypto_dump_report (struct sk_buff *skb,struct netlink_callback *cb) { -struct crypto_alg *alg; +const size_t start_pos = cb->args[0 ]; +size_t pos =0 ;struct crypto_dump_info info; -int err; - -if (cb->args[0 ]) - goto out; - - cb->args[0 ] =1 ; +struct crypto_alg *alg; +int res; info.in_skb = cb->skb; info.out_skb = skb; info.nlmsg_seq = cb->nlh->nlmsg_seq; info.nlmsg_flags =NLM_F_MULTI ; +down_read (&crypto_alg_sem);list_for_each_entry (alg, &crypto_alg_list, cra_list) { - err =crypto_report_alg (alg, &info); -if (err) - goto out_err; +if (pos >= start_pos) { + res =crypto_report_alg (alg, &info); +if (res == -EMSGSIZE ) +break ; +if (res) + goto out; + } + pos++; } - + cb->args[0 ] = pos; + res = skb->len; out: -return skb->len; -out_err: -return err; +up_read (&crypto_alg_sem); +return res; }static int crypto_dump_report_done (struct netlink_callback *cb)
@@ -503,7 +506,7 @@ static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,if ((type == (CRYPTO_MSG_GETALG -CRYPTO_MSG_BASE ) && (nlh->nlmsg_flags &NLM_F_DUMP ))) {struct crypto_alg *alg; -u16 dump_alloc =0 ; +unsigned long dump_alloc =0 ;if (link->dump ==NULL )return -EINVAL ;
@@ -511,16 +514,16 @@ static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,down_read (&crypto_alg_sem);list_for_each_entry (alg, &crypto_alg_list, cra_list) dump_alloc +=CRYPTO_REPORT_MAXSIZE ; +up_read (&crypto_alg_sem); {struct netlink_dump_control c = { .dump = link->dump, .done = link->done, - .min_dump_alloc = dump_alloc, + .min_dump_alloc =min (dump_alloc,65535UL ), }; err =netlink_dump_start (crypto_nlsk, skb, nlh, &c); } -up_read (&crypto_alg_sem);return err; }
drivers/acpi/acpi_lpss.c +1 -6
@@ -518,12 +518,7 @@ static int acpi_lpss_create_device(struct acpi_device *adev,* have _PS0 and _PS3 without _PSC (and no power resources), so * acpi_bus_init_power() will assume that the BIOS has put them into D0. */ - ret =acpi_device_fix_up_power (adev); -if (ret) { -/* Skip the device, but continue the namespace scan. */ - ret =0 ; - goto err_out; - } +acpi_device_fix_up_power (adev); adev->driver_data = pdata; pdev =acpi_create_platform_device (adev, dev_desc->properties);
drivers/acpi/apei/ghes.c +15 -17
@@ -33,7 +33,6 @@#include <linux/interrupt.h> #include <linux/timer.h> #include <linux/cper.h> -#include <linux/kdebug.h> #include <linux/platform_device.h> #include <linux/mutex.h> #include <linux/ratelimit.h>
@@ -171,40 +170,40 @@ static int ghes_estatus_pool_init(void)return 0 ; } -static void ghes_estatus_pool_free_chunk_page (struct gen_pool *pool, +static void ghes_estatus_pool_free_chunk (struct gen_pool *pool,struct gen_pool_chunk *chunk,void *data) { -free_page (chunk->start_addr); +vfree ((void *)chunk->start_addr); }static void ghes_estatus_pool_exit (void ) {gen_pool_for_each_chunk (ghes_estatus_pool, - ghes_estatus_pool_free_chunk_page,NULL ); + ghes_estatus_pool_free_chunk,NULL );gen_pool_destroy (ghes_estatus_pool); }static int ghes_estatus_pool_expand (unsigned long len) { -unsigned long i, pages, size, addr; -int ret; +unsigned long size, addr; ghes_estatus_pool_size_request +=PAGE_ALIGN (len); size =gen_pool_size (ghes_estatus_pool);if (size >= ghes_estatus_pool_size_request)return 0 ; - pages = (ghes_estatus_pool_size_request - size) /PAGE_SIZE ; -for (i =0 ; i < pages; i++) { - addr =__get_free_page (GFP_KERNEL ); -if (!addr) -return -ENOMEM ; - ret =gen_pool_add (ghes_estatus_pool, addr,PAGE_SIZE ,-1 ); -if (ret) -return ret; - } -return 0 ; + addr = (unsigned long )vmalloc (PAGE_ALIGN (len)); +if (!addr) +return -ENOMEM ; + +/* +* New allocation must be visible in all pgd before it can be found by +* an NMI allocating from the pool. +*/ +vmalloc_sync_all (); + +return gen_pool_add (ghes_estatus_pool, addr,PAGE_ALIGN (len),-1 ); }static int map_gen_v2 (struct ghes *ghes)
@@ -936,7 +935,6 @@ static int ghes_notify_nmi(unsigned int cmd, struct pt_regs *regs) sev =ghes_severity (ghes->estatus->error_severity);if (sev >=GHES_SEV_PANIC ) { -oops_begin ();ghes_print_queued_estatus ();__ghes_panic (ghes); }
drivers/base/platform.c +3 -0
@@ -27,6 +27,7 @@#include <linux/clk/clk-conf.h> #include <linux/limits.h> #include <linux/property.h> +#include <linux/kmemleak.h> #include "base.h" #include "power/power.h"
@@ -526,6 +527,8 @@ struct platform_device *platform_device_register_full(if (!pdev->dev.dma_mask) goto err; +kmemleak_ignore (pdev->dev.dma_mask); + *pdev->dev.dma_mask = pdevinfo->dma_mask; pdev->dev.coherent_dma_mask = pdevinfo->dma_mask; }
drivers/block/drbd/drbd_main.c +0 -1
@@ -795,7 +795,6 @@ int __drbd_send_protocol(struct drbd_connection *connection, enum drbd_packet cmif (nc->tentative && connection->agreed_pro_version <92 ) {rcu_read_unlock (); -mutex_unlock (&sock->mutex);drbd_err (connection,"--dry-run is not supported by peer" );return -EOPNOTSUPP ; }
drivers/block/drbd/drbd_nl.c +32 -11
62 lines not on this page · raw message
drivers/block/drbd/drbd_receiver.c +49 -3
90 lines not on this page · raw message
drivers/block/drbd/drbd_state.h +1 -1
@@ -131,7 +131,7 @@ extern enum drbd_state_rv _drbd_set_state(struct drbd_device *, union drbd_state enum chg_state_flags, struct completion *done);extern void print_st_err (struct drbd_device *,union drbd_state , -union drbd_state ,int ); +union drbd_state ,enum drbd_state_rv ); enum drbd_state_rv _conn_request_state(struct drbd_connection *connection, union drbd_state mask, union drbd_state val,
drivers/bluetooth/hci_bcm.c +22 -0
@@ -50,6 +50,12 @@#define BCM_LM_DIAG_PKT 0x07#define BCM_LM_DIAG_SIZE 63 +#define BCM_TYPE49_PKT 0x31 +#define BCM_TYPE49_SIZE 0 + +#define BCM_TYPE52_PKT 0x34 +#define BCM_TYPE52_SIZE 0 +#define BCM_AUTOSUSPEND_DELAY 5000/* default autosleep delay */ /* platform device driver resources */
@@ -483,12 +489,28 @@ static int bcm_setup(struct hci_uart *hu) .lsize = 0, \ .maxlen = BCM_NULL_SIZE +#define BCM_RECV_TYPE49 \ + .type = BCM_TYPE49_PKT, \ + .hlen = BCM_TYPE49_SIZE, \ + .loff = 0, \ + .lsize = 0, \ + .maxlen = BCM_TYPE49_SIZE + +#define BCM_RECV_TYPE52 \ + .type = BCM_TYPE52_PKT, \ + .hlen = BCM_TYPE52_SIZE, \ + .loff = 0, \ + .lsize = 0, \ + .maxlen = BCM_TYPE52_SIZE +static const struct h4_recv_pkt bcm_recv_pkts[] = { {H4_RECV_ACL , .recv = hci_recv_frame }, {H4_RECV_SCO , .recv = hci_recv_frame }, {H4_RECV_EVENT , .recv = hci_recv_frame }, {BCM_RECV_LM_DIAG , .recv = hci_recv_diag }, {BCM_RECV_NULL , .recv = hci_recv_diag }, + {BCM_RECV_TYPE49 , .recv = hci_recv_diag }, + {BCM_RECV_TYPE52 , .recv = hci_recv_diag }, };static int bcm_recv (struct hci_uart *hu,const void *data,int count)
drivers/char/hw_random/stm32-rng.c +8 -0
@@ -166,6 +166,13 @@ static int stm32_rng_probe(struct platform_device *ofdev)return devm_hwrng_register (dev, &priv->rng); } +static int stm32_rng_remove (struct platform_device *ofdev) +{ +pm_runtime_disable (&ofdev->dev); + +return 0 ; +} +#ifdef CONFIG_PM static int stm32_rng_runtime_suspend (struct device *dev) {
@@ -202,6 +209,7 @@ static struct platform_driver stm32_rng_driver = { .of_match_table = stm32_rng_match, }, .probe = stm32_rng_probe, + .remove = stm32_rng_remove, };module_platform_driver (stm32_rng_driver);
drivers/clk/at91/clk-generated.c +10 -18
@@ -284,7 +284,7 @@ static void clk_generated_startup(struct clk_generated *gck)static struct clk_hw *__init at91_clk_register_generated (struct regmap *regmap,spinlock_t *lock,const char *name,const char **parent_names, -u8 num_parents,u8 id, +u8 num_parents,u8 id,bool pll_audio,const struct clk_range *range) {struct clk_generated *gck;
@@ -308,6 +308,7 @@ at91_clk_register_generated(struct regmap *regmap, spinlock_t *lock, gck->regmap = regmap; gck->lock = lock; gck->range = *range; + gck->audio_pll_allowed = pll_audio;clk_generated_startup (gck); hw = &gck->hw;
@@ -333,7 +334,6 @@ static void __init of_sama5d2_clk_generated_setup(struct device_node *np)struct device_node *gcknp;struct clk_range range =CLK_RANGE (0 ,0 );struct regmap *regmap; -struct clk_generated *gck; num_parents =of_clk_get_parent_count (np);if (num_parents ==0 || num_parents >GENERATED_SOURCE_MAX )
@@ -350,6 +350,8 @@ static void __init of_sama5d2_clk_generated_setup(struct device_node *np)return ;for_each_child_of_node (np, gcknp) { +bool pll_audio = false; +if (of_property_read_u32 (gcknp,"reg" , &id))continue ;
@@ -362,24 +364,14 @@ static void __init of_sama5d2_clk_generated_setup(struct device_node *np)of_at91_get_clk_range (gcknp,"atmel,clk-output-range" , &range); +if (of_device_is_compatible (np,"atmel,sama5d2-clk-generated" ) && + (id ==GCK_ID_I2S0 || id ==GCK_ID_I2S1 || + id ==GCK_ID_CLASSD )) + pll_audio = true; + hw =at91_clk_register_generated (regmap, &pmc_pcr_lock, name, parent_names, num_parents, - id, &range); - - gck =to_clk_generated (hw); - -if (of_device_is_compatible (np, -"atmel,sama5d2-clk-generated" )) { -if (gck->id ==GCK_ID_SSC0 || gck->id ==GCK_ID_SSC1 || - gck->id ==GCK_ID_I2S0 || gck->id ==GCK_ID_I2S1 || - gck->id ==GCK_ID_CLASSD ) - gck->audio_pll_allowed = true; -else - gck->audio_pll_allowed = false; - }else { - gck->audio_pll_allowed = false; - } - + id, pll_audio, &range);if (IS_ERR (hw))continue ;
drivers/clk/at91/clk-main.c +5 -2
@@ -162,7 +162,7 @@ at91_clk_register_main_osc(struct regmap *regmap,if (bypass)regmap_update_bits (regmap,AT91_CKGR_MOR ,MOR_KEY_MASK | -AT91_PMC_MOSCEN , +AT91_PMC_OSCBYPASS ,AT91_PMC_OSCBYPASS |AT91_PMC_KEY ); hw = &osc->hw;
@@ -354,7 +354,10 @@ static int clk_main_probe_frequency(struct regmap *regmap)regmap_read (regmap,AT91_CKGR_MCFR , &mcfr);if (mcfr &AT91_PMC_MAINRDY )return 0 ; -usleep_range (MAINF_LOOP_MIN_WAIT ,MAINF_LOOP_MAX_WAIT ); +if (system_state <SYSTEM_RUNNING ) +udelay (MAINF_LOOP_MIN_WAIT ); +else +usleep_range (MAINF_LOOP_MIN_WAIT ,MAINF_LOOP_MAX_WAIT ); }while (time_before (prep_time, timeout));return -ETIMEDOUT ;
drivers/clk/at91/sckc.c +16 -4
@@ -74,7 +74,10 @@ static int clk_slow_osc_prepare(struct clk_hw *hw)writel (tmp |AT91_SCKC_OSC32EN , sckcr); -usleep_range (osc->startup_usec, osc->startup_usec +1 ); +if (system_state <SYSTEM_RUNNING ) +udelay (osc->startup_usec); +else +usleep_range (osc->startup_usec, osc->startup_usec +1 );return 0 ; }
@@ -197,7 +200,10 @@ static int clk_slow_rc_osc_prepare(struct clk_hw *hw)writel (readl (sckcr) |AT91_SCKC_RCEN , sckcr); -usleep_range (osc->startup_usec, osc->startup_usec +1 ); +if (system_state <SYSTEM_RUNNING ) +udelay (osc->startup_usec); +else +usleep_range (osc->startup_usec, osc->startup_usec +1 );return 0 ; }
@@ -310,7 +316,10 @@ static int clk_sam9x5_slow_set_parent(struct clk_hw *hw, u8 index)writel (tmp, sckcr); -usleep_range (SLOWCK_SW_TIME_USEC ,SLOWCK_SW_TIME_USEC +1 ); +if (system_state <SYSTEM_RUNNING ) +udelay (SLOWCK_SW_TIME_USEC ); +else +usleep_range (SLOWCK_SW_TIME_USEC ,SLOWCK_SW_TIME_USEC +1 );return 0 ; }
@@ -443,7 +452,10 @@ static int clk_sama5d4_slow_osc_prepare(struct clk_hw *hw)return 0 ; } -usleep_range (osc->startup_usec, osc->startup_usec +1 ); +if (system_state <SYSTEM_RUNNING ) +udelay (osc->startup_usec); +else +usleep_range (osc->startup_usec, osc->startup_usec +1 ); osc->prepared = true;return 0 ;
drivers/clk/meson/gxbb.c +1 -0
@@ -687,6 +687,7 @@ static struct clk_divider gxbb_sar_adc_clk_div = { .ops = &clk_divider_ops, .parent_names = (const char *[]){ "sar_adc_clk_sel" }, .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, }, };
drivers/clk/samsung/clk-exynos5420.c +6 -0
@@ -170,12 +170,18 @@ static const unsigned long exynos5x_clk_regs[] __initconst = {GATE_BUS_CPU ,GATE_SCLK_CPU ,CLKOUT_CMU_CPU , +CPLL_CON0 , +DPLL_CON0 ,EPLL_CON0 ,EPLL_CON1 ,EPLL_CON2 ,RPLL_CON0 ,RPLL_CON1 ,RPLL_CON2 , +IPLL_CON0 , +SPLL_CON0 , +VPLL_CON0 , +MPLL_CON0 ,SRC_TOP0 ,SRC_TOP1 , SRC_TOP2,
drivers/clk/sunxi-ng/ccu-sun9i-a80.c +1 -1
@@ -1231,7 +1231,7 @@ static int sun9i_a80_ccu_probe(struct platform_device *pdev)/* Enforce d1 = 0, d2 = 0 for Audio PLL */ val =readl (reg +SUN9I_A80_PLL_AUDIO_REG ); - val &= (BIT (16 ) &BIT (18 )); + val &= ~(BIT (16 ) |BIT (18 ));writel (val, reg +SUN9I_A80_PLL_AUDIO_REG );/* Enforce P = 1 for both CPU cluster PLLs */
drivers/clk/ti/clk-dra7-atl.c +0 -6
@@ -174,7 +174,6 @@ static void __init of_dra7_atl_clock_setup(struct device_node *node)struct clk_init_data init = {NULL };const char **parent_names =NULL ;struct clk *clk; -int ret; clk_hw =kzalloc (sizeof (*clk_hw),GFP_KERNEL );if (!clk_hw) {
@@ -207,11 +206,6 @@ static void __init of_dra7_atl_clock_setup(struct device_node *node) clk =ti_clk_register (NULL , &clk_hw->hw, node->name);if (!IS_ERR (clk)) { - ret =ti_clk_add_alias (NULL , clk, node->name); -if (ret) { -clk_unregister (clk); - goto cleanup; - }of_clk_add_provider (node, of_clk_src_simple_get, clk);kfree (parent_names);return ;
drivers/clocksource/timer-fttmr010.c +42 -31
157 lines not on this page · raw message
drivers/crypto/mxc-scc.c +6 -6
@@ -178,12 +178,12 @@ static int mxc_scc_get_data(struct mxc_scc_ctx *ctx,else from = scc->black_memory; -dev_dbg (scc->dev,"pcopy: from 0x%p %d bytes\n" , from, +dev_dbg (scc->dev,"pcopy: from 0x%p %zu bytes\n" , from, ctx->dst_nents *8 ); len =sg_pcopy_from_buffer (ablkreq->dst, ctx->dst_nents, from, ctx->size, ctx->offset);if (!len) { -dev_err (scc->dev,"pcopy err from 0x%p (len=%d)\n" , from, len); +dev_err (scc->dev,"pcopy err from 0x%p (len=%zu)\n" , from, len);return -EINVAL ; }
@@ -274,7 +274,7 @@ static int mxc_scc_put_data(struct mxc_scc_ctx *ctx, len =sg_pcopy_to_buffer (req->src, ctx->src_nents, to, len, ctx->offset);if (!len) { -dev_err (scc->dev,"pcopy err to 0x%p (len=%d)\n" , to, len); +dev_err (scc->dev,"pcopy err to 0x%p (len=%zu)\n" , to, len);return -EINVAL ; }
@@ -335,9 +335,9 @@ static void mxc_scc_ablkcipher_next(struct mxc_scc_ctx *ctx,return ; } -dev_dbg (scc->dev,"Start encryption (0x%p/0x%p)\n" , - (void *)readl (scc->base +SCC_SCM_RED_START ), - (void *)readl (scc->base +SCC_SCM_BLACK_START )); +dev_dbg (scc->dev,"Start encryption (0x%x/0x%x)\n" , +readl (scc->base +SCC_SCM_RED_START ), +readl (scc->base +SCC_SCM_BLACK_START ));/* clear interrupt control registers */ writel(SCC_SCM_INTR_CTRL_CLR_INTR,
drivers/crypto/stm32/stm32-hash.c +1 -1
@@ -361,7 +361,7 @@ static int stm32_hash_xmit_cpu(struct stm32_hash_dev *hdev,return -ETIMEDOUT ;if ((hdev->flags &HASH_FLAGS_HMAC ) && - (hdev->flags & ~HASH_FLAGS_HMAC_KEY )) { + (!(hdev->flags &HASH_FLAGS_HMAC_KEY ))) { hdev->flags |=HASH_FLAGS_HMAC_KEY ;stm32_hash_write_key (hdev);if (stm32_hash_wait_busy (hdev))
drivers/gpu/ipu-v3/ipu-pre.c +6 -0
@@ -102,6 +102,7 @@ struct ipu_pre {void *buffer_virt;bool in_use;unsigned int safe_window_end; +unsigned int last_bufaddr; };static DEFINE_MUTEX (ipu_pre_list_mutex);
@@ -177,6 +178,7 @@ void ipu_pre_configure(struct ipu_pre *pre, unsigned int width,writel (bufaddr, pre->regs +IPU_PRE_CUR_BUF );writel (bufaddr, pre->regs +IPU_PRE_NEXT_BUF ); + pre->last_bufaddr = bufaddr; val =IPU_PRE_PREF_ENG_CTRL_INPUT_PIXEL_FORMAT (0 ) | IPU_PRE_PREF_ENG_CTRL_INPUT_ACTIVE_BPP(active_bpp) |
@@ -218,7 +220,11 @@ void ipu_pre_update(struct ipu_pre *pre, unsigned int bufaddr)unsigned short current_yblock;u32 val; +if (bufaddr == pre->last_bufaddr) +return ; +writel (bufaddr, pre->regs +IPU_PRE_NEXT_BUF ); + pre->last_bufaddr = bufaddr; do { if (time_after(jiffies, timeout)) {
drivers/hid/hid-core.c +45 -6
84 lines not on this page · raw message
drivers/hid/intel-ish-hid/ishtp-hid.c +1 -1
@@ -222,7 +222,7 @@ int ishtp_hid_probe(unsigned int cur_hid_dev, err_hid_device:kfree (hid_data); err_hid_data: -kfree (hid); +hid_destroy_device (hid);return rv; }
drivers/infiniband/hw/qib/qib_sdma.c +3 -1
@@ -600,8 +600,10 @@ int qib_sdma_verbs_send(struct qib_pportdata *ppd, dw = (len +3 ) >>2 ; addr =dma_map_single (&ppd->dd->pcidev->dev, sge->vaddr, dw <<2 ,DMA_TO_DEVICE ); -if (dma_mapping_error (&ppd->dd->pcidev->dev, addr)) +if (dma_mapping_error (&ppd->dd->pcidev->dev, addr)) { + ret = -ENOMEM ; goto unmap; + } sdmadesc[0 ] =0 ;make_sdma_desc (ppd, sdmadesc, (u64 ) addr, dw, dwoffset);/* SDmaUseLargeBuf has to be set in every descriptor */
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c +1 -1
@@ -550,7 +550,7 @@ struct ib_ah *pvrdma_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr,if (!atomic_add_unless (&dev->num_ahs,1 , dev->dsr->caps.max_ah))return ERR_PTR (-ENOMEM ); - ah =kzalloc (sizeof (*ah),GFP_KERNEL ); + ah =kzalloc (sizeof (*ah),GFP_ATOMIC );if (!ah) {atomic_dec (&dev->num_ahs);return ERR_PTR (-ENOMEM );
drivers/infiniband/sw/rxe/rxe_hw_counters.c +1 -1
@@ -59,7 +59,7 @@ int rxe_ib_get_hw_stats(struct ib_device *ibdev,return -EINVAL ;for (cnt =0 ; cnt <ARRAY_SIZE (rxe_counter_name); cnt++) - stats->value[cnt] = dev->stats_counters[cnt]; + stats->value[cnt] =atomic64_read (&dev->stats_counters[cnt]);return ARRAY_SIZE (rxe_counter_name); }
drivers/infiniband/sw/rxe/rxe_verbs.h +3 -3
@@ -410,16 +410,16 @@ struct rxe_dev {spinlock_t mmap_offset_lock;/* guard mmap_offset */ int mmap_offset; -u64 stats_counters[RXE_NUM_OF_COUNTERS ]; +atomic64_t stats_counters[RXE_NUM_OF_COUNTERS ];struct rxe_port port;struct list_head list;struct crypto_shash *tfm; }; -static inline void rxe_counter_inc (struct rxe_dev *rxe,enum rxe_counters cnt) +static inline void rxe_counter_inc (struct rxe_dev *rxe,enum rxe_counters index) { - rxe->stats_counters[cnt]++; +atomic64_inc (&rxe->stats_counters[index]); }static inline struct rxe_dev *to_rdev (struct ib_device *dev)
drivers/infiniband/ulp/srp/ib_srp.c +1 -0
@@ -2210,6 +2210,7 @@ static int srp_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scmnd)if (srp_post_send (ch, iu, len)) {shost_printk (KERN_ERR , target->scsi_host,PFX "Send failed\n" ); + scmnd->result =DID_ERROR <<16 ; goto err_unmap; }
drivers/input/serio/gscps2.c +2 -2
@@ -382,9 +382,9 @@ static int __init gscps2_probe(struct parisc_device *dev) goto fail;#endif -printk (KERN_INFO "serio: %s port at 0x%p irq %d @ %s\n" , +pr_info ("serio: %s port at 0x%08lx irq %d @ %s\n" , ps2port->port->name, - ps2port->addr, + hpa, ps2port->padev->irq, ps2port->port->phys);
drivers/input/serio/hp_sdc.c +2 -2
@@ -887,8 +887,8 @@ static int __init hp_sdc_init(void) "HP SDC NMI", &hp_sdc)) goto err2; - printk(KERN_INFO PREFIX "HP SDC at 0x%p, IRQ %d (NMI IRQ %d)\n", - (void *)hp_sdc.base_io, hp_sdc.irq, hp_sdc.nmi); +pr_info (PREFIX "HP SDC at 0x%08lx, IRQ %d (NMI IRQ %d)\n" , + hp_sdc.base_io, hp_sdc.irq, hp_sdc.nmi);hp_sdc_status_in8 ();hp_sdc_data_in8 ();
drivers/iommu/amd_iommu.c +6 -2
@@ -139,10 +139,14 @@ static struct lock_class_key reserved_rbtree_key;static inline int match_hid_uid (struct device *dev,struct acpihid_map_entry *entry) { +struct acpi_device *adev =ACPI_COMPANION (dev);const char *hid, *uid; - hid =acpi_device_hid (ACPI_COMPANION (dev)); - uid =acpi_device_uid (ACPI_COMPANION (dev)); +if (!adev) +return -ENODEV ; + + hid =acpi_device_hid (adev); + uid =acpi_device_uid (adev);if (!hid || !(*hid))return -ENODEV ;
drivers/mailbox/mailbox-test.c +8 -6
@@ -363,22 +363,24 @@ static int mbox_test_probe(struct platform_device *pdev)/* It's okay for MMIO to be NULL */ res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); - size =resource_size (res); tdev->tx_mmio =devm_ioremap_resource (&pdev->dev, res); -if (PTR_ERR (tdev->tx_mmio) == -EBUSY ) +if (PTR_ERR (tdev->tx_mmio) == -EBUSY ) {/* if reserved area in SRAM, try just ioremap */ + size =resource_size (res); tdev->tx_mmio =devm_ioremap (&pdev->dev, res->start, size); -else if (IS_ERR (tdev->tx_mmio)) + }else if (IS_ERR (tdev->tx_mmio)) { tdev->tx_mmio =NULL ; + }/* If specified, second reg entry is Rx MMIO */ res =platform_get_resource (pdev,IORESOURCE_MEM ,1 ); - size =resource_size (res); tdev->rx_mmio =devm_ioremap_resource (&pdev->dev, res); -if (PTR_ERR (tdev->rx_mmio) == -EBUSY ) +if (PTR_ERR (tdev->rx_mmio) == -EBUSY ) { + size =resource_size (res); tdev->rx_mmio =devm_ioremap (&pdev->dev, res->start, size); -else if (IS_ERR (tdev->rx_mmio)) + }else if (IS_ERR (tdev->rx_mmio)) { tdev->rx_mmio = tdev->tx_mmio; + } tdev->tx_channel =mbox_test_request_channel (pdev,"tx" ); tdev->rx_channel =mbox_test_request_channel (pdev,"rx" );
drivers/md/dm-flakey.c +22 -11
@@ -282,20 +282,31 @@ static void flakey_map_bio(struct dm_target *ti, struct bio *bio)static void corrupt_bio_data (struct bio *bio,struct flakey_c *fc) { -unsigned bio_bytes =bio_cur_bytes (bio); -char *data =bio_data (bio); +unsigned int corrupt_bio_byte = fc->corrupt_bio_byte -1 ; + +struct bvec_iter iter; +struct bio_vec bvec; + +if (!bio_has_data (bio)) +return ;/* -* Overwrite the Nth byte of the data returned. +* Overwrite the Nth byte of the bio's data, on whichever page +* it falls. */ -if (data && bio_bytes >= fc->corrupt_bio_byte) { - data[fc->corrupt_bio_byte -1 ] = fc->corrupt_bio_value; - -DMDEBUG ("Corrupting data bio=%p by writing %u to byte %u " -"(rw=%c bi_opf=%u bi_sector=%llu cur_bytes=%u)\n" , - bio, fc->corrupt_bio_value, fc->corrupt_bio_byte, - (bio_data_dir (bio) ==WRITE ) ?'w' :'r' , bio->bi_opf, - (unsigned long long )bio->bi_iter.bi_sector, bio_bytes); +bio_for_each_segment (bvec, bio, iter) { +if (bio_iter_len (bio, iter) > corrupt_bio_byte) { +char *segment = (page_address (bio_iter_page (bio, iter)) + +bio_iter_offset (bio, iter)); + segment[corrupt_bio_byte] = fc->corrupt_bio_value; +DMDEBUG ("Corrupting data bio=%p by writing %u to byte %u " +"(rw=%c bi_opf=%u bi_sector=%llu size=%u)\n" , + bio, fc->corrupt_bio_value, fc->corrupt_bio_byte, + (bio_data_dir (bio) ==WRITE ) ?'w' :'r' , bio->bi_opf, + (unsigned long long )bio->bi_iter.bi_sector, bio->bi_iter.bi_size); +break ; + } + corrupt_bio_byte -=bio_iter_len (bio, iter); } }
drivers/media/platform/atmel/atmel-isc.c +8 -4
@@ -1555,6 +1555,8 @@ static int isc_async_complete(struct v4l2_async_notifier *notifier)struct vb2_queue *q = &isc->vb2_vidq;int ret; +INIT_WORK (&isc->awb_work, isc_awb_work); + ret =v4l2_device_register_subdev_nodes (&isc->v4l2_dev);if (ret <0 ) {v4l2_err (&isc->v4l2_dev,"Failed to register subdev nodes\n" );
@@ -1614,8 +1616,6 @@ static int isc_async_complete(struct v4l2_async_notifier *notifier)return ret; } -INIT_WORK (&isc->awb_work, isc_awb_work); -/* Register video device */ strlcpy (vdev->name,ATMEL_ISC_NAME ,sizeof (vdev->name)); vdev->release = video_device_release_empty;
@@ -1722,8 +1722,11 @@ static int isc_parse_dt(struct device *dev, struct isc_device *isc)break ; } - subdev_entity->asd =devm_kzalloc (dev, -sizeof (*subdev_entity->asd),GFP_KERNEL ); +/* asd will be freed by the subsystem once it's added to the +* notifier list +*/ + subdev_entity->asd =kzalloc (sizeof (*subdev_entity->asd), +GFP_KERNEL );if (subdev_entity->asd ==NULL ) {of_node_put (rem); ret = -ENOMEM ;
@@ -1859,6 +1862,7 @@ static int atmel_isc_probe(struct platform_device *pdev) &subdev_entity->notifier);if (ret) {dev_err (dev,"fail to register async notifier\n" ); +kfree (subdev_entity->asd); goto cleanup_subdev; }
drivers/media/platform/stm32/stm32-dcmi.c +17 -0
@@ -161,6 +161,9 @@ struct stm32_dcmi {u32 misr;int errors_count;int buffers_count; + +/* Ensure DMA operations atomicity */ +struct mutex dma_lock; };static inline struct stm32_dcmi *notifier_to_dcmi (struct v4l2_async_notifier *n)
@@ -291,6 +294,13 @@ static int dcmi_start_dma(struct stm32_dcmi *dcmi,return ret; } +/* +* Avoid call of dmaengine_terminate_all() between +* dmaengine_prep_slave_single() and dmaengine_submit() +* by locking the whole DMA submission sequence +*/ +mutex_lock (&dcmi->dma_lock); +/* Prepare a DMA transaction */ desc = dmaengine_prep_slave_single(dcmi->dma_chan, buf->paddr, buf->size,
@@ -298,6 +308,7 @@ static int dcmi_start_dma(struct stm32_dcmi *dcmi,if (!desc) {dev_err (dcmi->dev,"%s: DMA dmaengine_prep_slave_single failed for buffer size %zu\n" , __func__, buf->size); +mutex_unlock (&dcmi->dma_lock);return -EINVAL ; }
@@ -309,9 +320,12 @@ static int dcmi_start_dma(struct stm32_dcmi *dcmi, dcmi->dma_cookie =dmaengine_submit (desc);if (dma_submit_error (dcmi->dma_cookie)) {dev_err (dcmi->dev,"%s: DMA submission failed\n" , __func__); +mutex_unlock (&dcmi->dma_lock);return -ENXIO ; } +mutex_unlock (&dcmi->dma_lock); +dma_async_issue_pending (dcmi->dma_chan);return 0 ;
@@ -690,7 +704,9 @@ static void dcmi_stop_streaming(struct vb2_queue *vq)spin_unlock_irq (&dcmi->irqlock);/* Stop all pending DMA operations */ +mutex_lock (&dcmi->dma_lock);dmaengine_terminate_all (dcmi->dma_chan); +mutex_unlock (&dcmi->dma_lock);clk_disable (dcmi->mclk);
@@ -1662,6 +1678,7 @@ static int dcmi_probe(struct platform_device *pdev)spin_lock_init (&dcmi->irqlock);mutex_init (&dcmi->lock); +mutex_init (&dcmi->dma_lock);init_completion (&dcmi->complete);INIT_LIST_HEAD (&dcmi->buffers);
drivers/media/v4l2-core/v4l2-ctrls.c +1 -0
@@ -1014,6 +1014,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type,case V4L2_CID_FLASH_STROBE_STOP :case V4L2_CID_AUTO_FOCUS_START :case V4L2_CID_AUTO_FOCUS_STOP : +case V4L2_CID_DO_WHITE_BALANCE : *type =V4L2_CTRL_TYPE_BUTTON ; *flags |=V4L2_CTRL_FLAG_WRITE_ONLY |V4L2_CTRL_FLAG_EXECUTE_ON_WRITE ;
drivers/misc/mei/bus.c +5 -4
@@ -850,15 +850,16 @@ static const struct device_type mei_cl_device_type = {/** * mei_cl_bus_set_name - set device name for me client device +* <controller>-<client device> +* Example: 0000:00:16.0-55213584-9a29-4916-badf-0fb7ed682aeb * * @cldev: me client device */ static inline void mei_cl_bus_set_name (struct mei_cl_device *cldev) { -dev_set_name (&cldev->dev,"mei:%s:%pUl:%02X" , - cldev->name, -mei_me_cl_uuid (cldev->me_cl), -mei_me_cl_ver (cldev->me_cl)); +dev_set_name (&cldev->dev,"%s-%pUl" , +dev_name (cldev->bus->dev), +mei_me_cl_uuid (cldev->me_cl)); }/**
drivers/mmc/host/meson-gx-mmc.c +63 -10
141 lines not on this page · raw message
drivers/mtd/mtdcore.h +1 -1
@@ -7,7 +7,7 @@extern struct mutex mtd_table_mutex;struct mtd_info *__mtd_next_device (int i); -int add_mtd_device (struct mtd_info *mtd); +int __must_check add_mtd_device (struct mtd_info *mtd);int del_mtd_device (struct mtd_info *mtd);int add_mtd_partitions (struct mtd_info *,const struct mtd_partition *,int );int del_mtd_partitions (struct mtd_info *);
drivers/mtd/mtdpart.c +30 -5
@@ -684,10 +684,21 @@ int mtd_add_partition(struct mtd_info *parent, const char *name,list_add (&new->list, &mtd_partitions);mutex_unlock (&mtd_partitions_mutex); -add_mtd_device (&new->mtd); + ret =add_mtd_device (&new->mtd); +if (ret) + goto err_remove_part;mtd_add_partition_attrs (new); +return 0 ; + +err_remove_part: +mutex_lock (&mtd_partitions_mutex); +list_del (&new->list); +mutex_unlock (&mtd_partitions_mutex); + +free_partition (new); +return ret; }EXPORT_SYMBOL_GPL (mtd_add_partition);
@@ -778,22 +789,31 @@ int add_mtd_partitions(struct mtd_info *master, {struct mtd_part *slave;uint64_t cur_offset =0 ; -int i; +int i, ret;printk (KERN_NOTICE "Creating %d MTD partitions on \"%s\":\n" , nbparts, master->name);for (i =0 ; i < nbparts; i++) { slave =allocate_partition (master, parts + i, i, cur_offset);if (IS_ERR (slave)) { -del_mtd_partitions (master); -return PTR_ERR (slave); + ret =PTR_ERR (slave); + goto err_del_partitions; }mutex_lock (&mtd_partitions_mutex);list_add (&slave->list, &mtd_partitions);mutex_unlock (&mtd_partitions_mutex); -add_mtd_device (&slave->mtd); + ret =add_mtd_device (&slave->mtd); +if (ret) { +mutex_lock (&mtd_partitions_mutex); +list_del (&slave->list); +mutex_unlock (&mtd_partitions_mutex); + +free_partition (slave); + goto err_del_partitions; + } +mtd_add_partition_attrs (slave);if (parts[i].types)mtd_parse_part (slave, parts[i].types);
@@ -802,6 +822,11 @@ int add_mtd_partitions(struct mtd_info *master, }return 0 ; + +err_del_partitions: +del_mtd_partitions (master); + +return ret; }static DEFINE_SPINLOCK (part_parser_lock);
drivers/mtd/nand/atmel/nand-controller.c +1 -1
@@ -1888,7 +1888,7 @@ static int atmel_nand_controller_add_nands(struct atmel_nand_controller *nc) ret =of_property_read_u32 (np,"#size-cells" , &val);if (ret) { -dev_err (dev,"missing #address-cells property\n" ); +dev_err (dev,"missing #size-cells property\n" );return ret; }
drivers/mtd/nand/atmel/pmecc.c +15 -6
@@ -875,23 +875,32 @@ static struct atmel_pmecc *atmel_pmecc_get_by_node(struct device *userdev, {struct platform_device *pdev;struct atmel_pmecc *pmecc, **ptr; +int ret; pdev =of_find_device_by_node (np); -if (!pdev || !platform_get_drvdata (pdev)) +if (!pdev)return ERR_PTR (-EPROBE_DEFER ); + pmecc =platform_get_drvdata (pdev); +if (!pmecc) { + ret = -EPROBE_DEFER ; + goto err_put_device; + } ptr =devres_alloc (devm_atmel_pmecc_put,sizeof (*ptr),GFP_KERNEL ); -if (!ptr) -return ERR_PTR (-ENOMEM ); - -get_device (&pdev->dev); - pmecc =platform_get_drvdata (pdev); +if (!ptr) { + ret = -ENOMEM ; + goto err_put_device; + } *ptr = pmecc;devres_add (userdev, ptr);return pmecc; + +err_put_device: +put_device (&pdev->dev); +return ERR_PTR (ret); }static const int atmel_pmecc_strengths[] = {2 ,4 ,8 ,12 ,24 ,32 };
drivers/mtd/nand/sunxi_nand.c +1 -1
@@ -1435,7 +1435,7 @@ static int sunxi_nfc_hw_ecc_write_page_dma(struct mtd_info *mtd,sunxi_nfc_randomizer_enable (mtd);writel ((NAND_CMD_RNDIN <<8 ) |NAND_CMD_PAGEPROG , - nfc->regs +NFC_REG_RCMD_SET ); + nfc->regs +NFC_REG_WCMD_SET );dma_async_issue_pending (nfc->dmac);
drivers/mtd/spi-nor/spi-nor.c +1 -1
@@ -2382,7 +2382,7 @@ static int spi_nor_init_params(struct spi_nor *nor,memset (params,0 ,sizeof (*params));/* Set SPI NOR sizes. */ - params->size = info->sector_size * info->n_sectors; + params->size = (u64 )info->sector_size * info->n_sectors; params->page_size = info->page_size;/* (Fast) Read settings. */
drivers/mtd/ubi/build.c +1 -1
@@ -1092,10 +1092,10 @@ int ubi_detach_mtd_dev(int ubi_num, int anyway)ubi_wl_close (ubi);ubi_free_internal_volumes (ubi);vfree (ubi->vtbl); -put_mtd_device (ubi->mtd);vfree (ubi->peb_buf);vfree (ubi->fm_buf);ubi_msg (ubi,"mtd%d is detached" , ubi->mtd->index); +put_mtd_device (ubi->mtd);put_device (&ubi->dev);return 0 ; }
drivers/mtd/ubi/kapi.c +1 -1
@@ -227,9 +227,9 @@ struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode) out_free:kfree (desc); out_put_ubi: -ubi_put_device (ubi);ubi_err (ubi,"cannot open device %d, volume %d, error %d" , ubi_num, vol_id, err); +ubi_put_device (ubi);return ERR_PTR (err); }EXPORT_SYMBOL_GPL (ubi_open_volume);
drivers/net/can/c_can/c_can.c +26 -0
@@ -52,6 +52,7 @@#define CONTROL_EX_PDR BIT(8)/* control register */ +#define CONTROL_SWR BIT(15)#define CONTROL_TEST BIT(7)#define CONTROL_CCE BIT(6)#define CONTROL_DISABLE_AR BIT(5)
@@ -572,6 +573,26 @@ static void c_can_configure_msg_objects(struct net_device *dev) IF_MCONT_RCV_EOB); } +static int c_can_software_reset (struct net_device *dev) +{ +struct c_can_priv *priv =netdev_priv (dev); +int retry =0 ; + +if (priv->type !=BOSCH_D_CAN ) +return 0 ; + + priv->write_reg (priv,C_CAN_CTRL_REG ,CONTROL_SWR |CONTROL_INIT ); +while (priv->read_reg (priv,C_CAN_CTRL_REG ) &CONTROL_SWR ) { +msleep (20 ); +if (retry++ >100 ) { +netdev_err (dev,"CCTRL: software reset failed\n" ); +return -EIO ; + } + } + +return 0 ; +} +/* * Configure C_CAN chip: * - enable/disable auto-retransmission
@@ -581,6 +602,11 @@ static void c_can_configure_msg_objects(struct net_device *dev)static int c_can_chip_config (struct net_device *dev) {struct c_can_priv *priv =netdev_priv (dev); +int err; + + err =c_can_software_reset (dev); +if (err) +return err;/* enable automatic retransmission */ priv->write_reg (priv,C_CAN_CTRL_REG ,CONTROL_ENABLE_AR );
drivers/net/can/rx-offload.c +81 -15
141 lines not on this page · raw message
drivers/net/can/usb/peak_usb/pcan_usb.c +10 -5
@@ -441,8 +441,8 @@ static int pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n, }if ((n &PCAN_USB_ERROR_BUS_LIGHT ) ==0 ) {/* no error (back to active state) */ - mc->pdev->dev.can.state =CAN_STATE_ERROR_ACTIVE ; -return 0 ; + new_state =CAN_STATE_ERROR_ACTIVE ; +break ; }break ;
@@ -465,9 +465,9 @@ static int pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n, }if ((n &PCAN_USB_ERROR_BUS_HEAVY ) ==0 ) { -/* no error (back to active state) */ - mc->pdev->dev.can.state =CAN_STATE_ERROR_ACTIVE ; -return 0 ; +/* no error (back to warning state) */ + new_state =CAN_STATE_ERROR_WARNING ; +break ; }break ;
@@ -506,6 +506,11 @@ static int pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n, mc->pdev->dev.can.can_stats.error_warning++;break ; +case CAN_STATE_ERROR_ACTIVE : + cf->can_id |=CAN_ERR_CRTL ; + cf->data[1 ] =CAN_ERR_CRTL_ACTIVE ; +break ; +default :/* CAN_STATE_MAX (trick to handle other errors) */ cf->can_id |=CAN_ERR_CRTL ;
drivers/net/dsa/bcm_sf2.c +3 -4
@@ -432,11 +432,10 @@ static int bcm_sf2_sw_mdio_write(struct mii_bus *bus, int addr, int regnum,* send them to our master MDIO bus controller */ if (addr ==BRCM_PSEUDO_PHY_ADDR && priv->indir_phy_mask &BIT (addr)) -bcm_sf2_sw_indir_rw (priv,0 , addr, regnum, val); +return bcm_sf2_sw_indir_rw (priv,0 , addr, regnum, val);else -mdiobus_write_nested (priv->master_mii_bus, addr, regnum, val); - -return 0 ; +return mdiobus_write_nested (priv->master_mii_bus, addr, + regnum, val); }static irqreturn_t bcm_sf2_switch_0_isr (int irq,void *dev_id)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +3 -1
@@ -472,7 +472,9 @@ static void atl1e_mdio_write(struct net_device *netdev, int phy_id, {struct atl1e_adapter *adapter =netdev_priv (netdev); -atl1e_write_phy_reg (&adapter->hw, reg_num &MDIO_REG_ADDR_MASK , val); +if (atl1e_write_phy_reg (&adapter->hw, + reg_num &MDIO_REG_ADDR_MASK , val)) +netdev_err (netdev,"write phy register failed\n" ); } static int atl1e_mii_ioctl(struct net_device *netdev,
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +60 -18
152 lines not on this page · raw message
drivers/net/ethernet/broadcom/genet/bcmgenet.c +4 -1
@@ -2611,8 +2611,10 @@ static void bcmgenet_irq_task(struct work_struct *work) }if (status &UMAC_IRQ_PHY_DET_R && - priv->dev->phydev->autoneg !=AUTONEG_ENABLE ) + priv->dev->phydev->autoneg !=AUTONEG_ENABLE ) {phy_init_hw (priv->dev->phydev); +genphy_config_aneg (priv->dev->phydev); + }/* Link UP/DOWN event */ if (status &UMAC_IRQ_LINK_EVENT )
@@ -3688,6 +3690,7 @@ static int bcmgenet_resume(struct device *d)phy_init_hw (priv->phydev);/* Speed settings must be restored */ +genphy_config_aneg (dev->phydev);bcmgenet_mii_config (priv->dev, false);/* disable ethernet MAC while updating its registers */
drivers/net/ethernet/cadence/macb.h +5 -1
@@ -457,7 +457,11 @@/* Bitfields in TISUBN */ #define GEM_SUBNSINCR_OFFSET 0 -#define GEM_SUBNSINCR_SIZE 16 +#define GEM_SUBNSINCRL_OFFSET 24 +#define GEM_SUBNSINCRL_SIZE 8 +#define GEM_SUBNSINCRH_OFFSET 0 +#define GEM_SUBNSINCRH_SIZE 16 +#define GEM_SUBNSINCR_SIZE 24/* Bitfields in TI */ #define GEM_NSINCR_OFFSET 0
drivers/net/ethernet/cadence/macb_main.c +10 -8
@@ -852,7 +852,9 @@ static void macb_tx_interrupt(struct macb_queue *queue)/* First, update TX stats if needed */ if (skb) { -if (gem_ptp_do_txstamp (queue, skb, desc) ==0 ) { +if (unlikely (skb_shinfo (skb)->tx_flags & +SKBTX_HW_TSTAMP ) && +gem_ptp_do_txstamp (queue, skb, desc) ==0 ) {/* skb now belongs to timestamp buffer * and will be removed later */
@@ -2822,7 +2824,7 @@ static int macb_clk_init(struct platform_device *pdev, struct clk **pclk,if (!err) err = -ENODEV ; -dev_err (&pdev->dev,"failed to get macb_clk (%u)\n" , err); +dev_err (&pdev->dev,"failed to get macb_clk (%d)\n" , err);return err; }
@@ -2831,7 +2833,7 @@ static int macb_clk_init(struct platform_device *pdev, struct clk **pclk,if (!err) err = -ENODEV ; -dev_err (&pdev->dev,"failed to get hclk (%u)\n" , err); +dev_err (&pdev->dev,"failed to get hclk (%d)\n" , err);return err; }
@@ -2845,25 +2847,25 @@ static int macb_clk_init(struct platform_device *pdev, struct clk **pclk, err =clk_prepare_enable (*pclk);if (err) { -dev_err (&pdev->dev,"failed to enable pclk (%u)\n" , err); +dev_err (&pdev->dev,"failed to enable pclk (%d)\n" , err);return err; } err =clk_prepare_enable (*hclk);if (err) { -dev_err (&pdev->dev,"failed to enable hclk (%u)\n" , err); +dev_err (&pdev->dev,"failed to enable hclk (%d)\n" , err); goto err_disable_pclk; } err =clk_prepare_enable (*tx_clk);if (err) { -dev_err (&pdev->dev,"failed to enable tx_clk (%u)\n" , err); +dev_err (&pdev->dev,"failed to enable tx_clk (%d)\n" , err); goto err_disable_hclk; } err =clk_prepare_enable (*rx_clk);if (err) { -dev_err (&pdev->dev,"failed to enable rx_clk (%u)\n" , err); +dev_err (&pdev->dev,"failed to enable rx_clk (%d)\n" , err); goto err_disable_txclk; }
@@ -3298,7 +3300,7 @@ static int at91ether_clk_init(struct platform_device *pdev, struct clk **pclk, err =clk_prepare_enable (*pclk);if (err) { -dev_err (&pdev->dev,"failed to enable pclk (%u)\n" , err); +dev_err (&pdev->dev,"failed to enable pclk (%d)\n" , err);return err; }
drivers/net/ethernet/cadence/macb_ptp.c +4 -1
@@ -115,7 +115,10 @@ static int gem_tsu_incr_set(struct macb *bp, struct tsu_incr *incr_spec)* to take effect. */ spin_lock_irqsave (&bp->tsu_clk_lock, flags); -gem_writel (bp,TISUBN ,GEM_BF (SUBNSINCR , incr_spec->sub_ns)); +/* RegBit[15:0] = Subns[23:8]; RegBit[31:24] = Subns[7:0] */ +gem_writel (bp,TISUBN ,GEM_BF (SUBNSINCRL , incr_spec->sub_ns) | +GEM_BF (SUBNSINCRH , (incr_spec->sub_ns >> +GEM_SUBNSINCRL_SIZE )));gem_writel (bp,TI ,GEM_BF (NSINCR , incr_spec->ns));spin_unlock_irqrestore (&bp->tsu_clk_lock, flags);
drivers/net/ethernet/freescale/fec_main.c +11 -2
@@ -3565,6 +3565,11 @@ fec_drv_remove(struct platform_device *pdev)struct net_device *ndev =platform_get_drvdata (pdev);struct fec_enet_private *fep =netdev_priv (ndev);struct device_node *np = pdev->dev.of_node; +int ret; + + ret =pm_runtime_get_sync (&pdev->dev); +if (ret <0 ) +return ret;cancel_work_sync (&fep->tx_timeout_work);fec_ptp_stop (pdev);
@@ -3572,13 +3577,17 @@ fec_drv_remove(struct platform_device *pdev)fec_enet_mii_remove (fep);if (fep->reg_phy)regulator_disable (fep->reg_phy); -pm_runtime_put (&pdev->dev); -pm_runtime_disable (&pdev->dev); +if (of_phy_is_fixed_link (np))of_phy_deregister_fixed_link (np);of_node_put (fep->phy_node);free_netdev (ndev); +clk_disable_unprepare (fep->clk_ahb); +clk_disable_unprepare (fep->clk_ipg); +pm_runtime_put_noidle (&pdev->dev); +pm_runtime_disable (&pdev->dev); +return 0 ; }
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c +2 -0
@@ -251,6 +251,8 @@ int hclge_cmd_send(struct hclge_hw *hw, struct hclge_desc *desc, int num)if ((enum hclge_cmd_return_status )desc_ret ==HCLGE_CMD_EXEC_SUCCESS ) retval =0 ; +else if (desc_ret ==HCLGE_CMD_NOT_SUPPORTED ) + retval = -EOPNOTSUPP ;else retval = -EIO ; hw->cmq.last_status = (enum hclge_cmd_status )desc_ret;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +1 -1
@@ -52,7 +52,7 @@ struct hclge_cmq_ring {enum hclge_cmd_return_status {HCLGE_CMD_EXEC_SUCCESS =0 ,HCLGE_CMD_NO_AUTH =1 , -HCLGE_CMD_NOT_EXEC =2 , +HCLGE_CMD_NOT_SUPPORTED =2 ,HCLGE_CMD_QUEUE_FULL =3 , };
drivers/net/ethernet/mellanox/mlx5/core/main.c +3 -5
@@ -838,11 +838,9 @@ static int mlx5_pci_init(struct mlx5_core_dev *dev, struct mlx5_priv *priv) priv->numa_node =dev_to_node (&dev->pdev->dev); - priv->dbg_root =debugfs_create_dir (dev_name (&pdev->dev), mlx5_debugfs_root); -if (!priv->dbg_root) { -dev_err (&pdev->dev,"Cannot create debugfs dir, aborting\n" ); -return -ENOMEM ; - } +if (mlx5_debugfs_root) + priv->dbg_root = +debugfs_create_dir (pci_name (pdev), mlx5_debugfs_root); err =mlx5_pci_enable_device (dev);if (err) {
drivers/net/ethernet/sfc/ef10.c +21 -8
@@ -5852,22 +5852,25 @@ static const struct efx_ef10_nvram_type_info efx_ef10_nvram_types[] = { { NVRAM_PARTITION_TYPE_LICENSE, 0, 0, "sfc_license" }, { NVRAM_PARTITION_TYPE_PHY_MIN, 0xff, 0, "sfc_phy_fw" }, }; +#define EF10_NVRAM_PARTITION_COUNT ARRAY_SIZE(efx_ef10_nvram_types)static int efx_ef10_mtd_probe_partition (struct efx_nic *efx,struct efx_mcdi_mtd_partition *part, -unsigned int type) +unsigned int type, +unsigned long *found) {MCDI_DECLARE_BUF (inbuf,MC_CMD_NVRAM_METADATA_IN_LEN );MCDI_DECLARE_BUF (outbuf,MC_CMD_NVRAM_METADATA_OUT_LENMAX );const struct efx_ef10_nvram_type_info *info;size_t size, erase_size, outlen; +int type_idx =0 ;bool protected;int rc; -for (info = efx_ef10_nvram_types; ; info++) { -if (info == - efx_ef10_nvram_types +ARRAY_SIZE (efx_ef10_nvram_types)) +for (type_idx =0 ; ; type_idx++) { +if (type_idx ==EF10_NVRAM_PARTITION_COUNT )return -ENODEV ; + info = efx_ef10_nvram_types + type_idx;if ((type & ~info->type_mask) == info->type)break ; }
@@ -5880,6 +5883,13 @@ static int efx_ef10_mtd_probe_partition(struct efx_nic *efx,if (protected)return -ENODEV ;/* hide it */ +/* If we've already exposed a partition of this type, hide this +* duplicate. All operations on MTDs are keyed by the type anyway, +* so we can't act on the duplicate. +*/ +if (__test_and_set_bit (type_idx, found)) +return -EEXIST ; + part->nvram_type = type;MCDI_SET_DWORD (inbuf,NVRAM_METADATA_IN_TYPE , type);
@@ -5908,6 +5918,7 @@ static int efx_ef10_mtd_probe_partition(struct efx_nic *efx,static int efx_ef10_mtd_probe (struct efx_nic *efx) {MCDI_DECLARE_BUF (outbuf,MC_CMD_NVRAM_PARTITIONS_OUT_LENMAX ); + DECLARE_BITMAP(found, EF10_NVRAM_PARTITION_COUNT) = { 0 };struct efx_mcdi_mtd_partition *parts;size_t outlen, n_parts_total, i, n_parts;unsigned int type;
@@ -5936,11 +5947,13 @@ static int efx_ef10_mtd_probe(struct efx_nic *efx)for (i =0 ; i < n_parts_total; i++) { type =MCDI_ARRAY_DWORD (outbuf,NVRAM_PARTITIONS_OUT_TYPE_ID , i); - rc =efx_ef10_mtd_probe_partition (efx, &parts[n_parts], type); -if (rc ==0 ) - n_parts++; -else if (rc != -ENODEV ) + rc =efx_ef10_mtd_probe_partition (efx, &parts[n_parts], type, + found); +if (rc == -EEXIST || rc == -ENODEV ) +continue ; +if (rc) goto fail; + n_parts++; } rc =efx_mtd_add (efx, &parts[0 ].common, n_parts,sizeof (*parts));
drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c +3 -1
@@ -59,7 +59,9 @@ static int sun7i_gmac_init(struct platform_device *pdev, void *priv) gmac->clk_enabled =1 ; }else {clk_set_rate (gmac->tx_clk,SUN7I_GMAC_MII_RATE ); -clk_prepare (gmac->tx_clk); + ret =clk_prepare (gmac->tx_clk); +if (ret) +return ret; }return 0 ;
drivers/net/ethernet/ti/cpts.c +3 -1
@@ -567,7 +567,9 @@ struct cpts *cpts_create(struct device *dev, void __iomem *regs,return ERR_PTR (PTR_ERR (cpts->refclk)); } -clk_prepare (cpts->refclk); + ret =clk_prepare (cpts->refclk); +if (ret) +return ERR_PTR (ret); cpts->cc.read = cpts_systim_read; cpts->cc.mask =CLOCKSOURCE_MASK (32 );
drivers/net/macvlan.c +2 -1
@@ -363,10 +363,11 @@ static void macvlan_broadcast_enqueue(struct macvlan_port *port, }spin_unlock (&port->bc_queue.lock); +schedule_work (&port->bc_work); +if (err) goto free_nskb; -schedule_work (&port->bc_work);return ; free_nskb:
drivers/net/slip/slip.c +1 -0
@@ -859,6 +859,7 @@ static int slip_open(struct tty_struct *tty) sl->tty =NULL ; tty->disc_data =NULL ;clear_bit (SLF_INUSE , &sl->flags); +sl_free_netdev (sl->dev);free_netdev (sl->dev); err_exit:
drivers/net/vxlan.c +10 -3
@@ -3217,6 +3217,7 @@ static int __vxlan_dev_create(struct net *net, struct net_device *dev,struct vxlan_net *vn =net_generic (net, vxlan_net_id);struct vxlan_dev *vxlan =netdev_priv (dev);struct vxlan_fdb *f =NULL ; +bool unregister = false;int err; err =vxlan_dev_configure (net, dev, conf, false, extack);
@@ -3242,12 +3243,11 @@ static int __vxlan_dev_create(struct net *net, struct net_device *dev, err =register_netdevice (dev);if (err) goto errout; + unregister = true; err =rtnl_configure_link (dev,NULL ); -if (err) { -unregister_netdevice (dev); +if (err) goto errout; - }/* notify default fdb entry */ if (f)
@@ -3255,9 +3255,16 @@ static int __vxlan_dev_create(struct net *net, struct net_device *dev,list_add (&vxlan->next, &vn->vxlan_list);return 0 ; + errout: +/* unregister_netdevice() destroys the default FDB entry with deletion +* notification. But the addition notification was not sent yet, so +* destroy the entry by hand here. +*/ if (f)vxlan_fdb_destroy (vxlan, f, false); +if (unregister) +unregister_netdevice (dev);return err; }
drivers/net/wan/fsl_ucc_hdlc.c +0 -1
@@ -1114,7 +1114,6 @@ static int ucc_hdlc_probe(struct platform_device *pdev)if (register_hdlc_device (dev)) { ret = -ENOBUFS ;pr_err ("ucc_hdlc: unable to register hdlc device\n" ); -free_netdev (dev); goto free_dev; }
drivers/net/wireless/ath/ath6kl/cfg80211.c +2 -2
@@ -939,7 +939,7 @@ static int ath6kl_set_probed_ssids(struct ath6kl *ar,else ssid_list[i].flag =ANY_SSID_FLAG ; -if (n_match_ssid ==0 ) +if (ar->wiphy->max_match_sets !=0 && n_match_ssid ==0 ) ssid_list[i].flag |=MATCH_SSID_FLAG ; }
@@ -1093,7 +1093,7 @@ void ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, bool aborted)if (vif->scan_req->n_ssids && vif->scan_req->ssids[0 ].ssid_len) {for (i =0 ; i < vif->scan_req->n_ssids; i++) {ath6kl_wmi_probedssid_cmd (ar->wmi, vif->fw_vif_idx, - i +1 ,DISABLE_SSID_FLAG , + i,DISABLE_SSID_FLAG ,0 ,NULL ); } }
drivers/net/wireless/intel/iwlwifi/dvm/main.c +17 -0
@@ -1229,6 +1229,23 @@ static int iwl_eeprom_init_hw_params(struct iwl_priv *priv)return 0 ; } +static int iwl_nvm_check_version (struct iwl_nvm_data *data, +struct iwl_trans *trans) +{ +if (data->nvm_version >= trans->cfg->nvm_ver || + data->calib_version >= trans->cfg->nvm_calib_ver) { +IWL_DEBUG_INFO (trans,"device EEPROM VER=0x%x, CALIB=0x%x\n" , + data->nvm_version, data->calib_version); +return 0 ; + } + +IWL_ERR (trans, +"Unsupported (too old) EEPROM VER=0x%x < 0x%x CALIB=0x%x < 0x%x\n" , + data->nvm_version, trans->cfg->nvm_ver, + data->calib_version, trans->cfg->nvm_calib_ver); +return -EINVAL ; +} + static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg, const struct iwl_fw *fw,
drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c +0 -19
@@ -928,22 +928,3 @@ iwl_parse_eeprom_data(struct device *dev, const struct iwl_cfg *cfg,return NULL ; }IWL_EXPORT_SYMBOL (iwl_parse_eeprom_data); - -/* helper functions */ -int iwl_nvm_check_version (struct iwl_nvm_data *data, -struct iwl_trans *trans) -{ -if (data->nvm_version >= trans->cfg->nvm_ver || - data->calib_version >= trans->cfg->nvm_calib_ver) { -IWL_DEBUG_INFO (trans,"device EEPROM VER=0x%x, CALIB=0x%x\n" , - data->nvm_version, data->calib_version); -return 0 ; - } - -IWL_ERR (trans, -"Unsupported (too old) EEPROM VER=0x%x < 0x%x CALIB=0x%x < 0x%x\n" , - data->nvm_version, trans->cfg->nvm_ver, - data->calib_version, trans->cfg->nvm_calib_ver); -return -EINVAL ; -} -IWL_EXPORT_SYMBOL (iwl_nvm_check_version);
drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.h +2 -3
@@ -7,6 +7,7 @@* * Copyright(c) 2008 - 2014 Intel Corporation. All rights reserved. * Copyright(c) 2015 Intel Mobile Communications GmbH +* Copyright (C) 2018 Intel Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as
@@ -33,6 +34,7 @@* * Copyright(c) 2005 - 2014 Intel Corporation. All rights reserved. * Copyright(c) 2015 Intel Mobile Communications GmbH +* Copyright (C) 2018 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without
@@ -121,9 +123,6 @@ struct iwl_nvm_data * iwl_parse_eeprom_data(struct device *dev, const struct iwl_cfg *cfg, const u8 *eeprom, size_t eeprom_size); -int iwl_nvm_check_version (struct iwl_nvm_data *data, -struct iwl_trans *trans); -int iwl_init_sband_channels (struct iwl_nvm_data *data,struct ieee80211_supported_band *sband,int n_channels,enum nl80211_band band);
drivers/net/wireless/intel/iwlwifi/mvm/fw.c +3 -1
@@ -501,7 +501,9 @@ int iwl_run_init_mvm_ucode(struct iwl_mvm *mvm, bool read_nvm)if (mvm->nvm_file_name)iwl_mvm_load_nvm_to_nic (mvm); -WARN_ON (iwl_nvm_check_version (mvm->nvm_data, mvm->trans)); +WARN_ONCE (mvm->nvm_data->nvm_version < mvm->trans->cfg->nvm_ver, +"Too old NVM version (0x%0x, required = 0x%0x)" , + mvm->nvm_data->nvm_version, mvm->trans->cfg->nvm_ver);/* * abort after reading the nvm in case RF Kill is on, we will complete
drivers/net/wireless/marvell/mwifiex/debugfs.c +6 -8
@@ -296,15 +296,13 @@ mwifiex_histogram_read(struct file *file, char __user *ubuf,"total samples = %d\n" , atomic_read(&phist_data->num_samples)); - p +=sprintf (p,"rx rates (in Mbps): 0=1M 1=2M" ); - p +=sprintf (p,"2=5.5M 3=11M 4=6M 5=9M 6=12M\n" ); - p +=sprintf (p,"7=18M 8=24M 9=36M 10=48M 11=54M" ); - p +=sprintf (p,"12-27=MCS0-15(BW20) 28-43=MCS0-15(BW40)\n" ); + p +=sprintf (p, +"rx rates (in Mbps): 0=1M 1=2M 2=5.5M 3=11M 4=6M 5=9M 6=12M\n" +"7=18M 8=24M 9=36M 10=48M 11=54M 12-27=MCS0-15(BW20) 28-43=MCS0-15(BW40)\n" );if (ISSUPP_11ACENABLED (priv->adapter->fw_cap_info)) { - p +=sprintf (p,"44-53=MCS0-9(VHT:BW20)" ); - p +=sprintf (p,"54-63=MCS0-9(VHT:BW40)" ); - p +=sprintf (p,"64-73=MCS0-9(VHT:BW80)\n\n" ); + p +=sprintf (p, +"44-53=MCS0-9(VHT:BW20) 54-63=MCS0-9(VHT:BW40) 64-73=MCS0-9(VHT:BW80)\n\n" ); }else { p +=sprintf (p,"\n" ); }
@@ -333,7 +331,7 @@ mwifiex_histogram_read(struct file *file, char __user *ubuf,for (i =0 ; i <MWIFIEX_MAX_NOISE_FLR ; i++) { value =atomic_read (&phist_data->noise_flr[i]);if (value) - p +=sprintf (p,"noise_flr[-%02ddBm] = %d\n" , + p +=sprintf (p,"noise_flr[%02ddBm] = %d\n" , (int )(i-128 ), value); }for (i =0 ; i <MWIFIEX_MAX_SIG_STRENGTH ; i++) {
drivers/net/wireless/marvell/mwifiex/scan.c +10 -8
@@ -1901,15 +1901,17 @@ mwifiex_parse_single_response_buf(struct mwifiex_private *priv, u8 **bss_info, ETH_ALEN))mwifiex_update_curr_bss_params (priv ,bss ); -cfg80211_put_bss (priv->wdev.wiphy, bss); - } -if ((chan->flags &IEEE80211_CHAN_RADAR ) || - (chan->flags &IEEE80211_CHAN_NO_IR )) { -mwifiex_dbg (adapter,INFO , -"radar or passive channel %d\n" , - channel); -mwifiex_save_hidden_ssid_channels (priv, bss); +if ((chan->flags &IEEE80211_CHAN_RADAR ) || + (chan->flags &IEEE80211_CHAN_NO_IR )) { +mwifiex_dbg (adapter,INFO , +"radar or passive channel %d\n" , + channel); +mwifiex_save_hidden_ssid_channels (priv, + bss);
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/pinctrl/stm32/pinctrl-stm32.c +16 -10
Lines of this file are not shown. View the raw message.
drivers/scsi/qla2xxx/tcm_qla2xxx.c +8 -40
48 lines not on this page · raw message
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +1 -6
Lines of this file are not shown. View the raw message.
include/linux/futex.h +27 -17
44 lines not on this page · raw message
kernel/fork.c +15 -30
45 lines not on this page · raw message
kernel/futex.c +469 -42
511 lines not on this page · raw message
kernel/futex_compat.c deleted +0 -202
202 lines not on this page · 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.