Linux 3.16.44
I'm announcing the release of the 3.16.44 kernel.
All users of the 3.16 kernel series should upgrade.
The updated 3.16.y git tree can be found at:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.16.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
The diff from 3.16.43 is attached to this message.
Ben.
------------
Documentation/i2c/muxes/i2c-mux-gpio | 20 +-- Documentation/kernel-parameters.txt | 4 + Makefile | 2 +- arch/arm/include/asm/kvm_mmu.h | 3 +- arch/arm64/include/asm/kvm_mmu.h | 3 +- arch/mips/Makefile | 4 +- arch/mips/bcm47xx/buttons.c | 10 +- arch/mips/cavium-octeon/octeon-memcpy.S | 20 +-- arch/mips/configs/ip27_defconfig | 1 - arch/mips/include/asm/checksum.h | 2 + arch/mips/kernel/process.c | 153 +++++++++++++-------- arch/mips/netlogic/common/smpboot.S | 4 +- arch/powerpc/kernel/hw_breakpoint.c | 4 +- arch/s390/kvm/kvm-s390.c | 3 + arch/x86/include/uapi/asm/hyperv.h | 2 + arch/x86/kernel/pci-calgary_64.c | 2 +- arch/x86/kvm/vmx.c | 2 +- arch/x86/platform/goldfish/goldfish.c | 14 +- arch/xtensa/kernel/setup.c | 4 +- block/blk-mq-tag.c | 44 +++++-- crypto/ahash.c | 79 +++++++---- drivers/base/power/qos.c | 2 +- drivers/bcma/main.c | 4 + drivers/bluetooth/ath3k.c | 2 + drivers/bluetooth/btusb.c | 1 + drivers/char/virtio_console.c | 12 +- drivers/clk/clk-wm831x.c | 3 +- drivers/clk/hisilicon/clkgate-separated.c | 1 + drivers/clk/samsung/clk-s3c2410.c | 4 +- drivers/clk/samsung/clk-s3c2412.c | 4 +- drivers/clk/samsung/clk-s3c2443.c | 4 +- drivers/clk/samsung/clk-s3c64xx.c | 4 +- drivers/clk/shmobile/clk-mstp.c | 6 + drivers/cpufreq/s3c2416-cpufreq.c | 1 - drivers/gpu/drm/ast/ast_post.c | 38 +++++- drivers/gpu/drm/i915/intel_dsi_pll.c | 6 +- drivers/gpu/drm/radeon/radeon_bios.c | 64 +++++---- drivers/gpu/drm/ttm/ttm_bo.c | 4 +- drivers/gpu/drm/ttm/ttm_bo_vm.c | 12 ++ drivers/gpu/drm/vmwgfx/vmwgfx_surface.c | 9 +- drivers/hv/channel.c | 15 ++- drivers/hv/channel_mgmt.c | 7 +- drivers/hv/connection.c | 27 +++- drivers/hv/hv.c | 10 +- drivers/hv/hyperv_vmbus.h | 2 +- drivers/i2c/busses/i2c-riic.c | 30 ++++- drivers/iio/pressure/mpl115.c | 1 + drivers/iio/pressure/mpl3115.c | 4 +- drivers/iio/pressure/st_pressure_core.c | 8 +- drivers/infiniband/core/cma.c | 3 + drivers/infiniband/hw/mlx5/qp.c | 29 ++-- drivers/infiniband/hw/mlx5/srq.c | 11 +- drivers/infiniband/ulp/ipoib/ipoib_cm.c | 14 +- drivers/infiniband/ulp/ipoib/ipoib_main.c | 21 +-- drivers/infiniband/ulp/ipoib/ipoib_vlan.c | 10 +- drivers/iommu/intel-iommu.c | 2 +- drivers/md/dm-cache-target.c | 6 +- drivers/md/linear.c | 29 +++- drivers/md/linear.h | 1 + drivers/md/md.c | 7 + drivers/media/i2c/adv7604.c | 3 + drivers/media/pci/dm1105/Kconfig | 2 +- drivers/media/usb/dvb-usb-v2/dvb_usb_core.c | 9 +- drivers/media/usb/uvc/uvc_queue.c | 2 +- drivers/mmc/host/omap_hsmmc.c | 7 +- drivers/net/can/usb/usb_8dev.c | 9 +- drivers/net/ethernet/broadcom/bgmac.c | 6 +- drivers/net/ethernet/mellanox/mlx4/cmd.c | 22 +++- drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 6 +- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 8 +- drivers/net/ethernet/mellanox/mlx4/main.c | 2 - drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 3 +- drivers/net/ethernet/sfc/efx.c | 10 +- drivers/net/ethernet/sfc/efx.h | 6 + drivers/net/ethernet/sfc/selftest.c | 2 +- drivers/net/vxlan.c | 2 +- drivers/net/wireless/adm8211.c | 3 +- drivers/net/wireless/ath/ath5k/mac80211-ops.c | 3 +- drivers/net/wireless/ath/ath9k/ar9003_eeprom.h | 4 +- drivers/net/wireless/ath/ath9k/ath9k.h | 1 + drivers/net/wireless/ath/ath9k/init.c | 1 + drivers/net/wireless/ath/ath9k/mac.c | 44 +++++-- drivers/net/wireless/ath/ath9k/mac.h | 1 + drivers/net/wireless/ath/ath9k/main.c | 27 ++-- drivers/net/wireless/iwlwifi/mvm/rs.c | 4 +- drivers/net/wireless/mwifiex/debugfs.c | 3 +- drivers/net/wireless/mwifiex/sta_ioctl.c | 2 - drivers/platform/goldfish/pdev_bus.c | 13 +- drivers/platform/x86/acer-wmi.c | 22 +++- drivers/power/bq24190_charger.c | 175 ++++++++++--------------- drivers/s390/cio/ioasm.h | 8 +- drivers/s390/cio/qdio_thinint.c | 8 +- drivers/scsi/aacraid/commsup.c | 36 ++--- drivers/scsi/aacraid/src.c | 21 ++- drivers/scsi/storvsc_drv.c | 37 +++++- drivers/staging/rtl8188eu/core/rtw_recv.c | 4 + drivers/staging/rtl8192ee/rtl8192ee/hw.c | 2 +- drivers/staging/rtl8712/rtl871x_recv.c | 7 +- drivers/staging/rtl8821ae/rtl8821ae/hw.c | 2 +- drivers/staging/wlan-ng/p80211netdev.c | 2 +- drivers/tty/serial/8250/8250_pci.c | 36 +++-- drivers/tty/serial/msm_serial.c | 1 + drivers/usb/dwc3/gadget.c | 6 + drivers/usb/gadget/f_hid.c | 101 ++++++++++---- drivers/usb/gadget/f_midi.c | 6 - drivers/usb/gadget/f_sourcesink.c | 6 - drivers/usb/gadget/g_zero.h | 1 - drivers/usb/gadget/u_f.c | 1 - drivers/usb/gadget/u_f.h | 10 +- drivers/usb/misc/adutux.c | 4 - drivers/usb/misc/iowarrior.c | 13 +- drivers/usb/serial/ark3116.c | 38 ++++-- drivers/usb/serial/ch341.c | 27 ++-- drivers/usb/serial/cp210x.c | 2 + drivers/usb/serial/digi_acceleport.c | 52 +++++--- drivers/usb/serial/ftdi_sio.c | 38 ++++-- drivers/usb/serial/io_edgeport.c | 48 ++++--- drivers/usb/serial/io_ti.c | 2 +- drivers/usb/serial/keyspan_pda.c | 19 ++- drivers/usb/serial/mct_u232.c | 6 +- drivers/usb/serial/mos7840.c | 4 +- drivers/usb/serial/omninet.c | 6 - drivers/usb/serial/opticon.c | 2 +- drivers/usb/serial/quatech2.c | 24 ++-- drivers/usb/serial/sierra.c | 28 +--- drivers/usb/serial/spcp8x5.c | 8 +- drivers/usb/serial/ssu100.c | 31 ++++- drivers/usb/serial/ti_usb_3410_5052.c | 12 +- drivers/w1/masters/ds2490.c | 141 ++++++++++++-------- drivers/w1/w1.c | 1 + fs/ext4/inline.c | 75 +++++------ fs/ext4/inode.c | 69 ++++++++-- fs/ext4/mballoc.c | 7 + fs/ext4/super.c | 11 +- fs/ext4/xattr.c | 35 ++--- fs/ext4/xattr.h | 32 +++++ fs/f2fs/f2fs.h | 3 + fs/f2fs/gc.c | 28 +++- fs/f2fs/segment.c | 13 +- fs/f2fs/segment.h | 9 ++ fs/fuse/file.c | 1 + fs/jbd2/transaction.c | 4 +- fs/nfs/nfs4proc.c | 10 +- fs/nfs/nfs4xdr.c | 4 +- fs/nfsd/nfs3xdr.c | 12 +- fs/nfsd/nfssvc.c | 36 +++++ fs/nfsd/nfsxdr.c | 10 +- fs/nfsd/vfs.c | 63 ++++++--- include/crypto/internal/hash.h | 10 ++ include/linux/jump_label.h | 20 +++ include/linux/lockd/lockd.h | 3 +- include/linux/mlx4/cmd.h | 2 +- include/linux/mlx4/driver.h | 10 ++ include/linux/pagemap.h | 1 - include/linux/ww_mutex.h | 8 +- include/rdma/ib_sa.h | 6 +- kernel/sched/core.c | 6 +- kernel/trace/trace.c | 2 +- mm/filemap.c | 7 +- mm/huge_memory.c | 2 +- mm/mempolicy.c | 20 ++- mm/page_alloc.c | 2 +- mm/vmpressure.c | 10 +- net/batman-adv/fragmentation.c | 16 ++- net/batman-adv/routing.c | 8 +- net/core/dev.c | 35 ++++- net/dccp/ipv4.c | 6 + net/dccp/ipv6.c | 12 ++ net/ipv4/inet_connection_sock.c | 2 + net/ipv4/ping.c | 5 +- net/ipv4/route.c | 1 + net/ipv4/tcp_minisocks.c | 3 +- net/ipv6/ip6_offload.c | 7 +- net/ipv6/ip6_output.c | 20 +-- net/ipv6/output_core.c | 14 +- net/ipv6/route.c | 2 + net/ipv6/tcp_ipv6.c | 2 + net/ipv6/udp_offload.c | 6 +- net/ipx/af_ipx.c | 5 +- net/l2tp/l2tp_core.c | 4 +- net/mac80211/pm.c | 1 + net/packet/af_packet.c | 8 +- net/sched/act_api.c | 5 +- net/sctp/ipv6.c | 3 + net/xfrm/xfrm_user.c | 9 +- samples/seccomp/bpf-helper.h | 125 ++++++++++-------- security/keys/encrypted-keys/encrypted.c | 2 +- security/keys/keyctl.c | 24 ++-- security/keys/process_keys.c | 44 ++++--- sound/core/seq/seq_fifo.c | 3 + sound/core/timer.c | 18 ++- sound/pci/ctxfi/cthw20k1.c | 19 +-- sound/pci/ctxfi/cthw20k2.c | 18 +-- sound/soc/codecs/rt5640.c | 4 +- tools/perf/Documentation/perf-script.txt | 4 +- tools/perf/tests/parse-events.c | 6 +- tools/perf/util/evlist.c | 2 +- tools/testing/ktest/ktest.pl | 2 +- 198 files changed, 1922 insertions(+), 1055 deletions(-)
Alex Deucher (1):
drm/radeon: handle vfct with multiple vbios images
Alexander Stein (1):
W1: ds2490: Increase timeout when waiting for status
Alexey Kodanev (1):
tcp: account for ts offset only if tsecr not zero
Amey Telawane (1):
tracing: Use strlcpy() instead of strcpy() in __trace_find_cmdline()
Andrey Konovalov (3):
net/packet: fix overflow in check for priv area size net/packet: fix overflow in check for tp_frame_nr net/packet: fix overflow in check for tp_reserve
Andrey Ryabinin (1):
net/dccp: fix use after free in tw_timer_handler()
Andy Whitcroft (2):
xfrm_user: validate XFRM_MSG_NEWAE XFRMA_REPLAY_ESN_VAL replay_window
xfrm_user: validate XFRM_MSG_NEWAE incoming ESN size harder
Arnaldo Carvalho de Melo (1):
perf tests: Avoid possible truncation with dirent->d_name + snprintf
Arnd Bergmann (4):
staging: rtl: fix possible NULL pointer dereference
MIPS: 'make -s' should be silent
MIPS: ip27: Disable qlge driver in defconfig
dvb-usb-v2: avoid use-after-free
Bart Van Assche (1):
blk-mq: Make bt_clear_tag() easier to read
Ben Hutchings (1):
Linux 3.16.44
Brian Norris (1):
mwifiex: debugfs: Fix (sometimes) off-by-1 SSID print
Chao Peng (1):
KVM: VMX: use correct vmcs_read/write for guest segment selector/base
Chao Yu (1):
f2fs: use for_each_set_bit to simplify the code
Chris Brandt (2):
i2c: riic: correctly finish transfers
clk: renesas: mstp: ensure register writes complete
Chris Salls (1):
mm/mempolicy.c: fix error handling in set_mempolicy and mbind.
Chris Wilson (1):
locking/ww_mutex: Fix compilation of __WW_MUTEX_INITIALIZER
Christian Lamparter (1):
ath9k: use correct OTP register offsets for the AR9340 and AR9550
Christoph Hellwig (3):
nfsd: update mtime on truncate
nfsd: minor nfsd_setattr cleanup
nfsd: special case truncates some more
Colin Ian King (1):
usb: misc: adutux: remove redundant error check on copy_to_user return code
Craig Gallek (1):
ipv6: Prevent overrun when parsing v6 header options
Dan Carpenter (5):
adm80211: return an error if adm8211_alloc_rings() fails
cpufreq: s3c2416: double free on driver init error path
KEYS: Fix an error code in request_master_key() net/mlx4: && vs & typo
ipx: call ipxitf_put() in ioctl error path
David Dillow (1):
iommu/vt-d: Don't over-free page table directories
David Howells (2):
KEYS: Reinstate EPERM for a key type name beginning with a '.'
KEYS: Disallow keyrings beginning with '.' to be joined as session keyrings
David S. Miller (1):
ipv6: Check ip6_find_1stfragopt() return value properly.
Dexuan Cui (1):
hv: vmbus_post_msg: retry the hypercall on some transient errors
Dmitry Tunin (1):
Bluetooth: Add another AR3012 04ca:3018 device
Eli Cohen (1):
IB/mlx5: Fix retrieval of index to first hi class bfreg
Eric Biggers (1):
KEYS: fix keyctl_set_reqkey_keyring() to not leak thread keyrings
Eric Dumazet (7):
mlx4: reduce OOM risk on arches with large pages net/mlx4_en: Use __skb_fill_page_desc()
net: net_enable_timestamp() can be called from irq contexts
ping: implement proper locking
dccp/tcp: do not inherit mc_list from parent
sctp: do not inherit ipv6_{mc|ac|fl}_list from parent
ipv6: fix out of bound writes in __ip6_append_data()
Eugenia Emantayev (1):
net/mlx4: Spoofcheck and zero MAC can't coexist
Felipe Balbi (1):
usb: dwc3: gadget: skip Set/Clear Halt when invalid
Felipe F. Tonello (1):
usb: gadget: define free_ep_req as universal function
Felix Fietkau (2):
ath5k: drop bogus warning on drv_set_key with unsupported cipher
ath9k: fix race condition in enabling/disabling IRQs
Feras Daoud (6):
IB/ipoib: Set device connection mode only when needed IB/ipoib: Fix deadlock over vlan_mutex
IB/ipoib: Fix deadlock between rmmod and set_mode IB/ipoib: rtnl_unlock can not come after free_netdev IB/ipoib: Replace list_del of the neigh->list with list_del_init IB/ipoib: Change list_del to list_del_init in the tx object
Ganapathi Bhat (1):
mwifiex: Avoid skipping WEP key deletion for AP
Gavin Shan (1):
mm/page_alloc: fix nodes for reclaim in fast path
Guennadi Liakhovetski (1):
uvcvideo: Fix a wrong macro
Haiyang Zhang (1):
hv_vmbus: Add gradually increased delay for retries in vmbus_post_msg()
Hari Vyas (1):
net: ethernet: bgmac: mac address change bug
Herbert Xu (1):
crypto: ahash - Fix EINPROGRESS notification callback
Hou Pengyang (1):
f2fs: add ovp valid_blocks check for bg gc victim to fg_gc
Ian Abbott (1):
serial: 8250_pci: Add MKS Tenta SCOM-0800 and SCOM-0801 cards
Igor Pylypiv (1):
staging: wlan-ng: add missing byte order conversion
J. Bruce Fields (4):
NFSv4: fix getacl head length estimation
nfsd: check for oversized NFSv2/v3 arguments
nfsd4: minor NFSv2/v3 write decoding cleanup
nfsd: stricter decoding of write-like NFSv2/v3 ops
James Cowgill (1):
MIPS: OCTEON: Fix copy_from_user fault handling for large buffers
Jan Kara (3):
ext4: avoid deadlock when expanding inode size
ext4: trim allocation requests to group size
ext4: fix data corruption in data=journal mode
Jan Kiszka (1):
serial: exar: Fix initialization of EXAR registers for ports > 0
Janosch Frank (1):
KVM: s390: Disable dirty log retrieval for UCONTROL guests
Jason Gunthorpe (1):
RDMA/core: Fix incorrect structure packing for booleans
Javier Martinez Canillas (1):
tty: serial: msm: Fix module autoload
Joe Thornber (1):
dm cache: fix corruption seen when using cache > 2TB
Johan Hovold (23):
USB: serial: ch341: fix modem-status handling
USB: serial: ark3116: fix register-accessor error handling
USB: serial: ark3116: fix open error handling
USB: serial: ftdi_sio: fix modem-status error handling
USB: serial: ftdi_sio: fix latency-timer error handling
USB: serial: io_edgeport: fix epic-descriptor handling
USB: serial: io_edgeport: fix descriptor error handling
USB: serial: mct_u232: fix modem-status error handling
USB: serial: quatech2: fix control-message error handling
USB: serial: spcp8x5: fix modem-status handling
USB: serial: ssu100: fix control-message error handling
USB: serial: ti_usb_3410_5052: fix control-message error handling
USB: serial: opticon: fix CTS retrieval at open
USB: serial: ftdi_sio: fix extreme low-latency setting
USB: serial: digi_acceleport: fix OOB data sanity check
USB: serial: digi_acceleport: fix incomplete rx sanity check
USB: serial: keyspan_pda: fix receive sanity checks
USB: serial: ftdi_sio: fix line-status over-reporting
USB: serial: sierra: fix bogus alternate-setting assumption
USB: serial: mos7840: fix another NULL-deref at open
USB: iowarrior: fix NULL-deref at probe
USB: serial: io_ti: fix information leak in completion handler
USB: serial: omninet: fix reference leaks at open
John Keeping (1):
PM / QoS: Fix memory leak on resume_latency.notifiers
Julian Anastasov (1):
ipv4: mask tos for input route
Julian Wiedmann (1):
s390/qdio: clear DSCI prior to scanning multiple input queues
K. Y. Srinivasan (3):
scsi: storvsc: Fix a bug in the handling of SRB status flags
Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg()
drivers: hv: Turn off write permission on the hypercall page
Ken Lin (1):
USB: serial: cp210x: add new IDs for GE Bx50v3 boards
Kirtika Ruchandani (1):
iwlwifi: mvm: rs: Remove unused 'mcs' variable
Krzysztof Opasiak (3):
usb: gadget: f_hid: fix: Free out requests
usb: gadget: f_hid: fix: Prevent accessing released memory
usb: gadget: f_hid: Use spinlock instead of mutex
Lars-Peter Clausen (1):
adv7604: Initialize drive strength to default when using DT
Lee, Chun-Yi (1):
platform/x86: acer-wmi: setup accelerometer when machine has appropriate notify event
Leo Yan (1):
clk: hisilicon: fix lock assignment
Leon Romanovsky (2):
IB/mlx5: Fix out-of-bound access
IB/mlx5: Return error for unsupported signature type
Li Qiang (1):
drm/vmwgfx: fix integer overflow in vmw_surface_define_ioctl()
Liam Breck (6):
power: supply: bq24190_charger: Fix irq trigger to IRQF_TRIGGER_FALLING
power: supply: bq24190_charger: Call set_mode_host() on pm_resume()
power: supply: bq24190_charger: Install irq_handler_thread() at end of probe()
power: supply: bq24190_charger: Call power_supply_changed() for relevant component
power: supply: bq24190_charger: Don't read fault register outside irq_handle_thread()
power: supply: bq24190_charger: Handle fault before status on interrupt
Linus Lüssing (1):
batman-adv: Fix transmission of final, 16th fragment
Long Li (3):
scsi: storvsc: use tagged SRB requests if supported by the device
scsi: storvsc: properly handle SRB_ERROR when sense message is present
scsi: storvsc: properly set residual data length on errors
Maciej S. Szmigiero (2):
w1: ds2490: USB transfer buffers need to be DMAable
w1: don't leak refcount on slave attach failure in w1_attach_slave_device()
Majd Dibbiny (1):
net/mlx4_core: Fix VF overwrite of module param which disables DMFS on new probed PFs
Mantas M (1):
net: ipv6: check route protocol when deleting routes
Marc Kleine-Budde (1):
can: usb_8dev: Fix memory leak of priv->cmd_msg_buffer
Marc Zyngier (1):
arm/arm64: KVM: Enforce unconditional flush to PoC when mapping to stage-2
Marcin Niestroj (1):
iio: st_pressure: Fix data sign
Martin Kaiser (1):
clk: samsung: mark s3c...._clk_sleep_init() as __init
Mathias Svensson (1):
samples/seccomp: fix 64-bit comparison macros
Matt Chen (1):
mac80211: flush delayed work when entering suspend
Matthias Schiffer (1):
vxlan: correctly validate VXLAN ID against VXLAN_N_VID
Max Filippov (1):
xtensa: move parse_tag_fdt out of #ifdef CONFIG_BLK_DEV_INITRD
Michael Petlan (1):
perf script: Fix man page about --dump-raw-trace option
Michal Hocko (1):
mm/huge_memory.c: fix up "mm/huge_memory.c: respect FOLL_FORCE/FOLL_COW for thp" backport
Michel Dänzer (1):
drm/ttm: Make sure BOs being swapped out are cacheable
Miklos Szeredi (1):
fuse: add missing FR_FORCE
Mimi Zohar (1):
KEYS: special dot prefixed keyring name bug fix
Minchan Kim (1):
mm: do not access page->mapping directly on page_endio
Mirko Parthey (1):
MIPS: BCM47XX: Fix button inversion for Asus WL-500W
Murray McAllister (1):
drm/vmwgfx: NULL pointer dereference in vmw_surface_define_ioctl()
NeilBrown (1):
md: ensure md devices are freed before module is unloaded.
Nicholas Mc Guire (3):
drm/i915: relax uncritical udelay_range()
clk: wm831x: fix usleep_range with bad range
ASoC: rt5640: use msleep() for long delays
Nicolai Hähnle (1):
drm/ttm: fix use-after-free races in vm fault handling
Nikola Pajkovsky (1):
x86/pci-calgary: Fix iommu_free() comparison of unsigned expression >= 0
Omar Sandoval (2):
sbitmap: fix wakeup hang after sbq resize
virtio-console: avoid DMA from stack
Paul Burton (7):
MIPS: Clear ISA bit correctly in get_frame_info()
MIPS: Prevent unaligned accesses during stack unwinding
MIPS: Fix get_frame_info() handling of microMIPS function size
MIPS: Fix is_jump_ins() handling of 16b microMIPS instructions
MIPS: Calculate microMIPS ra properly when unwinding the stack
MIPS: Handle microMIPS jumps in the same way as MIPS32/MIPS64 jumps
MIPS: Netlogic: Fix assembler warning from smpboot.S
Peter Dunning (1):
sfc: do not device_attach if a reset is pending
Peter Oberparleiter (1):
s390/chsc: Add exception handler for CHSC instruction
Peter Rosin (3):
i2c: i2c-mux-gpio: rename i2c-gpio-mux to i2c-mux-gpio
iio: pressure: mpl3115: do not rely on structure field ordering
iio: pressure: mpl115: do not rely on structure field ordering
Peter Zijlstra (1):
locking/static_keys: Add static_key_{en,dis}able() helpers
Ping-Ke Shih (1):
rtlwifi: Fix alignment issues
Rafał Miłecki (1):
bcma: use (get|put)_device when probing/removing device driver
Raghava Aditya Renukunta (2):
scsi: aacraid: Fix memory leak in fib init path
scsi: aacraid: Reorder Adapter status check
Ralf Baechle (1):
MIPS: Fix special case in 64 bit IP checksumming.
Randy Dunlap (2):
media: fix dm1105.c build error
mm: fix <linux/pagemap.h> stray kernel-doc notation
Ravi Bangoria (1):
powerpc/xmon: Fix data-breakpoint
Ravikumar Kattekola (1):
mmc: host: omap_hsmmc: avoid possible overflow of timeout value
Ridge Kennedy (1):
l2tp: Avoid schedule while atomic in exit_net
Roman Mashak (1):
net sched actions: decrement module reference count after table flush.
Soramichi Akiyama (1):
perf evlist: Fix typo in perf_evlist__start_workload()
Steve Wise (1):
rdma_cm: fail iwarp accepts w/o connection params
Steven Rostedt (VMware) (1):
ktest: Fix child exit code processing
Sven Eckelmann (1):
batman-adv: Fix double free during fragment merge error
Takashi Iwai (3):
ALSA: timer: Reject user params with too small ticks
ALSA: ctxfi: Fallback DMA mask to 32bit
ALSA: seq: Fix link corruption by event error handling
Theodore Ts'o (7):
ext4: fix deadlock between inline_data and ext4_expand_extra_isize_ea()
ext4: use private version of page_zero_new_buffers() for data=journal mode
ext4: fix inline data error paths
jbd2: don't leak modified metadata buffers on an aborted journal
ext4: preserve the needs_recovery flag when the journal is aborted
ext4: return EROFS if device is r/o and journal replay is needed
ext4: fix fencepost in s_first_meta_bg validation
Thomas Elste (1):
power: bq24190_charger: Change first_time flag reset condition
Thomas Gleixner (2):
x86/platform/goldfish: Prevent unconditional loading
goldfish: Sanitize the broken interrupt handler
Trond Myklebust (3):
NFSv4: Fix memory and state leak in _nfs4_open_and_get_state
nlm: Ensure callback code also checks that the files match
NFSv4: Fix the underestimation of delegation XDR space reservation
Vinayak Menon (1):
mm: vmpressure: fix sending wrong events on underflow
Vitaly Kuznetsov (3):
Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()
hv: allocate synic pages for all present CPUs
hv: init percpu_list in hv_synic_alloc()
WANG Cong (1):
ipv6/dccp: do not inherit ipv6_mc_list from parent
Weston Andros Adamson (1):
NFSv4: fix getacl ERANGE for some ACL buffer sizes
Y.C. Chen (1):
drm/ast: Fix AST2400 POST failure without BMC FW or VBIOS
[email protected] (1):
md linear: fix a race between linear_add() and linear_congested()
Documentation/i2c/muxes/i2c-mux-gpio +10 -10
@@ -1,11 +1,11 @@ -Kernel driver i2c-gpio-mux +Kernel driver i2c-mux-gpio Author: Peter Korsgaard <[email protected]> Description ----------- -i2c-gpio-mux is an i2c mux driver providing access to I2C bus segments +i2c-mux-gpio is an i2c mux driver providing access to I2C bus segments from a master I2C bus and a hardware MUX controlled through GPIO pins. E.G.:
@@ -26,16 +26,16 @@ according to the settings of the GPIO pins 1..N. Usage ----- -i2c-gpio-mux uses the platform bus, so you need to provide a struct +i2c-mux-gpio uses the platform bus, so you need to provide a struct platform_device with the platform_data pointing to a struct -gpio_i2cmux_platform_data with the I2C adapter number of the master +i2c_mux_gpio_platform_data with the I2C adapter number of the master bus, the number of bus segments to create and the GPIO pins used -to control it. See include/linux/i2c-gpio-mux.h for details. +to control it. See include/linux/i2c-mux-gpio.h for details. E.G. something like this for a MUX providing 4 bus segments controlled through 3 GPIO pins: -#include <linux/i2c-gpio-mux.h> +#include <linux/i2c-mux-gpio.h> #include <linux/platform_device.h> static const unsigned myboard_gpiomux_gpios[] = {
@@ -46,7 +46,7 @@ static const unsigned myboard_gpiomux_values[] = { 0, 1, 2, 3 }; -static struct gpio_i2cmux_platform_data myboard_i2cmux_data = { +static struct i2c_mux_gpio_platform_data myboard_i2cmux_data = { .parent = 1, .base_nr = 2, /* optional */ .values = myboard_gpiomux_values,
@@ -57,7 +57,7 @@ static struct gpio_i2cmux_platform_data myboard_i2cmux_data = { }; static struct platform_device myboard_i2cmux = { - .name = "i2c-gpio-mux", + .name = "i2c-mux-gpio", .id = 0, .dev = { .platform_data = &myboard_i2cmux_data,
@@ -66,14 +66,14 @@ static struct platform_device myboard_i2cmux = { If you don't know the absolute GPIO pin numbers at registration time, you can instead provide a chip name (.chip_name) and relative GPIO pin -numbers, and the i2c-gpio-mux driver will do the work for you, +numbers, and the i2c-mux-gpio driver will do the work for you, including deferred probing if the GPIO chip isn't immediately available. Device Registration ------------------- -When registering your i2c-gpio-mux device, you should pass the number +When registering your i2c-mux-gpio device, you should pass the number of any GPIO pin it uses as the device ID. This guarantees that every instance has a different ID.
Documentation/kernel-parameters.txt +4 -0
@@ -1115,6 +1115,10 @@ bytes respectively. Such letter suffixes can also be entirely omitted. When zero, profiling data is discarded and associated debugfs files are removed at module unload time. + goldfish [X86] Enable the goldfish android emulator platform. + Don't use this when you are not running on the + android emulator + gpt [EFI] Forces disk with valid GPT signature but invalid Protective MBR to be treated as GPT. If the primary GPT is corrupted, it enables the backup/alternate
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 16 -SUBLEVEL = 43 +SUBLEVEL = 44 EXTRAVERSION = NAME = Museum of Fishiegoodies
arch/arm/include/asm/kvm_mmu.h +1 -2
@@ -142,8 +142,7 @@ static inline bool vcpu_has_cache_enabled(struct kvm_vcpu *vcpu)static inline void coherent_cache_guest_page (struct kvm_vcpu *vcpu,hva_t hva,unsigned long size) { -if (!vcpu_has_cache_enabled (vcpu)) -kvm_flush_dcache_to_poc ((void *)hva, size); +kvm_flush_dcache_to_poc ((void *)hva, size);/* * If we are going to insert an instruction page and the icache is
arch/arm64/include/asm/kvm_mmu.h +1 -2
@@ -141,8 +141,7 @@ static inline bool vcpu_has_cache_enabled(struct kvm_vcpu *vcpu)static inline void coherent_cache_guest_page (struct kvm_vcpu *vcpu,hva_t hva,unsigned long size) { -if (!vcpu_has_cache_enabled (vcpu)) -kvm_flush_dcache_to_poc ((void *)hva, size); +kvm_flush_dcache_to_poc ((void *)hva, size);if (!icache_is_aliasing ()) {/* PIPT */ flush_icache_range (hva, hva + size);
arch/mips/Makefile +2 -2
@@ -333,11 +333,11 @@ CLEAN_FILES += vmlinux.32 vmlinux.64 archprepare: ifdef CONFIG_MIPS32_N32 - @echo ' Checking missing-syscalls for N32' + @$(kecho) ' Checking missing-syscalls for N32' $(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_flags="-mabi=n32" endif ifdef CONFIG_MIPS32_O32 - @echo ' Checking missing-syscalls for O32' + @$(kecho) ' Checking missing-syscalls for O32' $(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_flags="-mabi=32" endif
arch/mips/bcm47xx/buttons.c +8 -2
@@ -17,6 +17,12 @@ .active_low = 1, \ } +#define BCM47XX_GPIO_KEY_H (_gpio, _code) \ + { \ + .code = _code, \ + .gpio = _gpio, \ + } +/* Asus */ static const struct gpio_keys_button
@@ -74,8 +80,8 @@ bcm47xx_buttons_asus_wl500gpv2[] __initconst = {static const struct gpio_keys_button bcm47xx_buttons_asus_wl500w[]__initconst = { -BCM47XX_GPIO_KEY (6 ,KEY_RESTART ), -BCM47XX_GPIO_KEY (7 ,KEY_WPS_BUTTON ), +BCM47XX_GPIO_KEY_H (6 ,KEY_RESTART ), +BCM47XX_GPIO_KEY_H (7 ,KEY_WPS_BUTTON ), }; static const struct gpio_keys_button
arch/mips/cavium-octeon/octeon-memcpy.S +12 -8
@@ -208,18 +208,18 @@ EXC( STORE t2, UNIT(6)(dst), s_exc_p10u) ADD src, src, 16*NBYTES EXC( STORE t3, UNIT(7)(dst), s_exc_p9u) ADD dst, dst, 16*NBYTES -EXC( LOAD t0, UNIT(-8)(src), l_exc_copy) -EXC( LOAD t1, UNIT(-7)(src), l_exc_copy) -EXC( LOAD t2, UNIT(-6)(src), l_exc_copy) -EXC( LOAD t3, UNIT(-5)(src), l_exc_copy) +EXC( LOAD t0, UNIT(-8)(src), l_exc_copy_rewind16) +EXC( LOAD t1, UNIT(-7)(src), l_exc_copy_rewind16) +EXC( LOAD t2, UNIT(-6)(src), l_exc_copy_rewind16) +EXC( LOAD t3, UNIT(-5)(src), l_exc_copy_rewind16) EXC( STORE t0, UNIT(-8)(dst), s_exc_p8u) EXC( STORE t1, UNIT(-7)(dst), s_exc_p7u) EXC( STORE t2, UNIT(-6)(dst), s_exc_p6u) EXC( STORE t3, UNIT(-5)(dst), s_exc_p5u) -EXC( LOAD t0, UNIT(-4)(src), l_exc_copy) -EXC( LOAD t1, UNIT(-3)(src), l_exc_copy) -EXC( LOAD t2, UNIT(-2)(src), l_exc_copy) -EXC( LOAD t3, UNIT(-1)(src), l_exc_copy) +EXC( LOAD t0, UNIT(-4)(src), l_exc_copy_rewind16) +EXC( LOAD t1, UNIT(-3)(src), l_exc_copy_rewind16) +EXC( LOAD t2, UNIT(-2)(src), l_exc_copy_rewind16) +EXC( LOAD t3, UNIT(-1)(src), l_exc_copy_rewind16) EXC( STORE t0, UNIT(-4)(dst), s_exc_p4u) EXC( STORE t1, UNIT(-3)(dst), s_exc_p3u) EXC( STORE t2, UNIT(-2)(dst), s_exc_p2u)
@@ -383,6 +383,10 @@ done: nop END(memcpy) +l_exc_copy_rewind16: + /* Rewind src and dst by 16*NBYTES for l_exc_copy */ + SUB src, src, 16*NBYTES + SUB dst, dst, 16*NBYTES l_exc_copy: /* * Copy bytes from src until faulting load address (or until a
arch/mips/configs/ip27_defconfig +0 -1
@@ -206,7 +206,6 @@ CONFIG_MLX4_EN=m # CONFIG_MLX4_DEBUG is not set CONFIG_TEHUTI=m CONFIG_BNX2X=m -CONFIG_QLGE=m CONFIG_SFC=m CONFIG_BE2NET=m CONFIG_LIBERTAS_THINFIRM=m
arch/mips/include/asm/checksum.h +2 -0
@@ -185,7 +185,9 @@ static inline __wsum csum_tcpudp_nofold(__be32 saddr," daddu %0, %4 \n" " dsll32 $1, %0, 0 \n" " daddu %0, $1 \n" +" sltu $1, %0, $1 \n" " dsra32 %0, %0, 0 \n" + " addu %0, $1 \n"#endif " .set pop" : "=r" (sum)
arch/mips/kernel/process.c +99 -54
208 lines not on this page · raw message
arch/mips/netlogic/common/smpboot.S +2 -2
@@ -61,8 +61,8 @@ NESTED(xlp_boot_core0_siblings, PT_SIZE, sp) sync /* find the location to which nlm_boot_siblings was relocated */ li t0, CKSEG1ADDR(RESET_VEC_PHYS) - dla t1, nlm_reset_entry - dla t2, nlm_boot_siblings + PTR_LA t1, nlm_reset_entry + PTR_LA t2, nlm_boot_siblings dsubu t2, t1 daddu t2, t0 /* call it */
arch/powerpc/kernel/hw_breakpoint.c +3 -1
@@ -227,8 +227,10 @@ int __kprobes hw_breakpoint_handler(struct die_args *args)rcu_read_lock (); bp =__get_cpu_var (bp_per_reg); -if (!bp) +if (!bp) { + rc =NOTIFY_DONE ; goto out; + } info =counter_arch_bp (bp);/*
arch/s390/kvm/kvm-s390.c +3 -0
@@ -216,6 +216,9 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm,struct kvm_memory_slot *memslot;int is_dirty =0 ; +if (kvm_is_ucontrol (kvm)) +return -EINVAL ; +mutex_lock (&kvm->slots_lock); r = -EINVAL ;
arch/x86/include/uapi/asm/hyperv.h +2 -0
@@ -214,6 +214,8 @@#define HV_STATUS_INVALID_HYPERCALL_CODE 2#define HV_STATUS_INVALID_HYPERCALL_INPUT 3#define HV_STATUS_INVALID_ALIGNMENT 4 +#define HV_STATUS_INSUFFICIENT_MEMORY 11 +#define HV_STATUS_INVALID_CONNECTION_ID 18#define HV_STATUS_INSUFFICIENT_BUFFERS 19 typedef struct _HV_REFERENCE_TSC_PAGE {
arch/x86/kernel/pci-calgary_64.c +1 -1
@@ -296,7 +296,7 @@ static void iommu_free(struct iommu_table *tbl, dma_addr_t dma_addr,/* were we called with bad_dma_address? */ badend =DMA_ERROR_CODE + (EMERGENCY_PAGES *PAGE_SIZE ); -if (unlikely ((dma_addr >=DMA_ERROR_CODE ) && (dma_addr < badend))) { +if (unlikely (dma_addr < badend)) {WARN (1 ,KERN_ERR "Calgary: driver tried unmapping bad DMA " "address 0x%Lx\n" , dma_addr);return ;
arch/x86/kvm/vmx.c +1 -1
@@ -3231,7 +3231,7 @@ static void fix_rmode_seg(int seg, struct kvm_segment *save) }vmcs_write16 (sf->selector, var.selector); -vmcs_write32 (sf->base, var.base); +vmcs_writel (sf->base, var.base);vmcs_write32 (sf->limit, var.limit);vmcs_write32 (sf->ar_bytes,vmx_segment_access_rights (&var)); }
arch/x86/platform/goldfish/goldfish.c +13 -1
@@ -42,10 +42,22 @@ static struct resource goldfish_pdev_bus_resources[] = { } }; +static bool goldfish_enable__initdata ; + +static int __init goldfish_setup (char *str) +{ + goldfish_enable = true; +return 0 ; +} +__setup ("goldfish" , goldfish_setup); +static int __init goldfish_init (void ) { +if (!goldfish_enable) +return -ENODEV ; +platform_device_register_simple ("goldfish_pdev_bus" ,-1 , - goldfish_pdev_bus_resources,2 ); + goldfish_pdev_bus_resources,2 );return 0 ; }device_initcall (goldfish_init);
arch/xtensa/kernel/setup.c +2 -2
@@ -133,6 +133,8 @@ static int __init parse_tag_initrd(const bp_tag_t* tag)__tagtable (BP_TAG_INITRD , parse_tag_initrd); +#endif /* CONFIG_BLK_DEV_INITRD */ +#ifdef CONFIG_OF static int __init parse_tag_fdt (const bp_tag_t *tag)
@@ -145,8 +147,6 @@ __tagtable(BP_TAG_FDT, parse_tag_fdt);#endif /* CONFIG_OF */ -#endif /* CONFIG_BLK_DEV_INITRD */ -static int __init parse_tag_cmdline (const bp_tag_t * tag) {strlcpy (command_line, (char *)(tag->data),COMMAND_LINE_SIZE );
block/blk-mq-tag.c +32 -12
73 lines not on this page · raw message
crypto/ahash.c +50 -29
163 lines not on this page · raw message
drivers/base/power/qos.c +1 -1
@@ -277,7 +277,7 @@ void dev_pm_qos_constraints_destroy(struct device *dev) dev->power.qos =ERR_PTR (-ENODEV );spin_unlock_irq (&dev->power.lock); -kfree (c->notifiers); +kfree (qos->resume_latency.notifiers);kfree (qos); out:
drivers/bcma/main.c +4 -0
@@ -450,8 +450,11 @@ static int bcma_device_probe(struct device *dev) drv);int err =0 ; +get_device (dev);if (adrv->probe) err = adrv->probe (core); +if (err) +put_device (dev);return err; }
@@ -464,6 +467,7 @@ static int bcma_device_remove(struct device *dev)if (adrv->remove) adrv->remove (core); +put_device (dev);return 0 ; }
drivers/bluetooth/ath3k.c +2 -0
@@ -94,6 +94,7 @@ static const struct usb_device_id ath3k_table[] = { { USB_DEVICE(0x04CA, 0x300f) }, { USB_DEVICE(0x04CA, 0x3010) }, { USB_DEVICE(0x04CA, 0x3014) }, + { USB_DEVICE(0x04CA, 0x3018) }, { USB_DEVICE(0x0930, 0x0219) }, { USB_DEVICE(0x0930, 0x021c) }, { USB_DEVICE(0x0930, 0x0220) },
@@ -162,6 +163,7 @@ static const struct usb_device_id ath3k_blist_tbl[] = { { USB_DEVICE(0x04ca, 0x300f), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3010), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3014), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x04ca, 0x3018), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x021c), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0220), .driver_info = BTUSB_ATH3012 },
drivers/bluetooth/btusb.c +1 -0
@@ -188,6 +188,7 @@ static const struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x04ca, 0x300f), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3010), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3014), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x04ca, 0x3018), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x021c), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0220), .driver_info = BTUSB_ATH3012 },
drivers/char/virtio_console.c +10 -2
@@ -1129,6 +1129,8 @@ static int put_chars(u32 vtermno, const char *buf, int count) {struct port *port;struct scatterlist sg[1 ]; +void *data; +int ret;if (unlikely (early_put_chars))return early_put_chars (vtermno, buf, count);
@@ -1137,8 +1139,14 @@ static int put_chars(u32 vtermno, const char *buf, int count)if (!port)return -EPIPE ; -sg_init_one (sg, buf, count); -return __send_to_port (port, sg,1 , count, (void *)buf, false); + data =kmemdup (buf, count,GFP_ATOMIC ); +if (!data) +return -ENOMEM ; + +sg_init_one (sg, data, count); + ret =__send_to_port (port, sg,1 , count, data, false); +kfree (data); +return ret; }/*
drivers/clk/clk-wm831x.c +2 -1
@@ -102,7 +102,8 @@ static int wm831x_fll_prepare(struct clk_hw *hw)if (ret !=0 )dev_crit (wm831x->dev,"Failed to enable FLL: %d\n" , ret); -usleep_range (2000 ,2000 ); +/* wait 2-3 ms for new frequency taking effect */ +usleep_range (2000 ,3000 );return ret; }
drivers/clk/hisilicon/clkgate-separated.c +1 -0
@@ -122,6 +122,7 @@ struct clk *hisi_register_clkgate_sep(struct device *dev, const char *name, sclk->bit_idx = bit_idx; sclk->flags = clk_gate_flags; sclk->hw.init = &init; + sclk->lock = lock; clk =clk_register (dev, &sclk->hw);if (IS_ERR (clk))
drivers/clk/samsung/clk-s3c2410.c +2 -2
@@ -78,7 +78,7 @@ static struct syscore_ops s3c2410_clk_syscore_ops = { .resume = s3c2410_clk_resume, }; -static void s3c2410_clk_sleep_init (void ) +static void __init s3c2410_clk_sleep_init (void ) { s3c2410_save =samsung_clk_alloc_reg_dump (s3c2410_clk_regs,ARRAY_SIZE (s3c2410_clk_regs));
@@ -92,7 +92,7 @@ static void s3c2410_clk_sleep_init(void) return; }#else -static void s3c2410_clk_sleep_init (void ) {} +static void __init s3c2410_clk_sleep_init (void ) {}#endif PNAME (fclk_p) = {"mpll" ,"div_slow" };
drivers/clk/samsung/clk-s3c2412.c +2 -2
@@ -69,7 +69,7 @@ static struct syscore_ops s3c2412_clk_syscore_ops = { .resume = s3c2412_clk_resume, }; -static void s3c2412_clk_sleep_init (void ) +static void __init s3c2412_clk_sleep_init (void ) { s3c2412_save =samsung_clk_alloc_reg_dump (s3c2412_clk_regs,ARRAY_SIZE (s3c2412_clk_regs));
@@ -83,7 +83,7 @@ static void s3c2412_clk_sleep_init(void)return ; }#else -static void s3c2412_clk_sleep_init (void ) {} +static void __init s3c2412_clk_sleep_init (void ) {}#endif static struct clk_div_table divxti_d[] = {
drivers/clk/samsung/clk-s3c2443.c +2 -2
@@ -89,7 +89,7 @@ static struct syscore_ops s3c2443_clk_syscore_ops = { .resume = s3c2443_clk_resume, }; -static void s3c2443_clk_sleep_init (void ) +static void __init s3c2443_clk_sleep_init (void ) { s3c2443_save =samsung_clk_alloc_reg_dump (s3c2443_clk_regs,ARRAY_SIZE (s3c2443_clk_regs));
@@ -103,7 +103,7 @@ static void s3c2443_clk_sleep_init(void) return; }#else -static void s3c2443_clk_sleep_init (void ) {} +static void __init s3c2443_clk_sleep_init (void ) {}#endif PNAME (epllref_p) = {"mpllref" ,"mpllref" ,"xti" ,"ext" };
drivers/clk/samsung/clk-s3c64xx.c +2 -2
@@ -122,7 +122,7 @@ static struct syscore_ops s3c64xx_clk_syscore_ops = { .resume = s3c64xx_clk_resume, }; -static void s3c64xx_clk_sleep_init (void ) +static void __init s3c64xx_clk_sleep_init (void ) { s3c64xx_save_common =samsung_clk_alloc_reg_dump (s3c64xx_clk_regs,ARRAY_SIZE (s3c64xx_clk_regs));
@@ -146,7 +146,7 @@ err_warn: __func__); }#else -static void s3c64xx_clk_sleep_init (void ) {} +static void __init s3c64xx_clk_sleep_init (void ) {}#endif /* List of parent clocks common for all S3C64xx SoCs. */
drivers/clk/shmobile/clk-mstp.c +6 -0
@@ -85,6 +85,12 @@ static int cpg_mstp_clock_endisable(struct clk_hw *hw, bool enable) value |= bitmask;cpg_mstp_write (group, value, group->smstpcr); +if (!group->mstpsr) { +/* dummy read to ensure write has completed */ +cpg_mstp_read (group, group->smstpcr); +barrier (); + } +spin_unlock_irqrestore (&group->lock, flags);if (!enable || !group->mstpsr)
drivers/cpufreq/s3c2416-cpufreq.c +0 -1
@@ -400,7 +400,6 @@ static int s3c2416_cpufreq_driver_init(struct cpufreq_policy *policy) rate =clk_get_rate (s3c_freq->hclk);if (rate <133 *1000 *1000 ) {pr_err ("cpufreq: HCLK not at 133MHz\n" ); -clk_put (s3c_freq->hclk); ret = -EINVAL ; goto err_armclk; }
drivers/gpu/drm/ast/ast_post.c +35 -3
@@ -1625,12 +1625,44 @@ static void ast_init_dram_2300(struct drm_device *dev) temp |=0x73 ;ast_write32 (ast,0x12008 , temp); + param.dram_freq =396 ; param.dram_type =AST_DDR3 ; + temp =ast_mindwm (ast,0x1e6e2070 );if (temp &0x01000000 ) param.dram_type =AST_DDR2 ; - param.dram_chipid = ast->dram_type; - param.dram_freq = ast->mclk; - param.vram_size = ast->vram_size; +switch (temp &0x18000000 ) { +case 0 : + param.dram_chipid = AST_DRAM_512Mx16; +break ; +default : +case 0x08000000 : + param.dram_chipid = AST_DRAM_1Gx16; +break ; +case 0x10000000 : + param.dram_chipid = AST_DRAM_2Gx16; +break ; +case 0x18000000 : + param.dram_chipid = AST_DRAM_4Gx16; +break ; + } +switch (temp &0x0c ) { +default : +case 0x00 : + param.vram_size =AST_VIDMEM_SIZE_8M ; +break ; + +case 0x04 : + param.vram_size =AST_VIDMEM_SIZE_16M ; +break ; + +case 0x08 : + param.vram_size =AST_VIDMEM_SIZE_32M ; +break ; + +case 0x0c : + param.vram_size =AST_VIDMEM_SIZE_64M ; +break ; + }if (param.dram_type ==AST_DDR3 ) {get_ddr3_info (ast, ¶m);
drivers/gpu/drm/i915/intel_dsi_pll.c +4 -2
@@ -265,8 +265,10 @@ void vlv_enable_dsi_pll(struct intel_encoder *encoder)vlv_configure_dsi_pll (encoder); -/* wait at least 0.5 us after ungating before enabling VCO */ -usleep_range (1 ,10 ); +/* wait at least 0.5 us after ungating before enabling VCO, +* allow hrtimer subsystem optimization by relaxing timing +*/ +usleep_range (10 ,50 ); tmp =vlv_cck_read (dev_priv,CCK_REG_DSI_PLL_CONTROL ); tmp |=DSI_PLL_VCO_EN ;
drivers/gpu/drm/radeon/radeon_bios.c +35 -29
86 lines not on this page · raw message
drivers/gpu/drm/ttm/ttm_bo.c +2 -2
@@ -1641,7 +1641,6 @@ static int ttm_bo_swapout(struct ttm_mem_shrink *shrink)struct ttm_buffer_object *bo;int ret = -EBUSY ;int put_count; -uint32_t swap_placement = (TTM_PL_FLAG_CACHED |TTM_PL_FLAG_SYSTEM );spin_lock (&glob->lru_lock);list_for_each_entry (bo, &glob->swap_lru, swap) {
@@ -1679,7 +1678,8 @@ static int ttm_bo_swapout(struct ttm_mem_shrink *shrink)if (unlikely (ret !=0 )) goto out; -if ((bo->mem.placement & swap_placement) != swap_placement) { +if (bo->mem.mem_type !=TTM_PL_SYSTEM || + bo->ttm->caching_state != tt_cached) {struct ttm_mem_reg evict_mem; evict_mem = bo->mem;
drivers/gpu/drm/ttm/ttm_bo_vm.c +12 -0
@@ -68,8 +68,11 @@ static int ttm_bo_vm_fault_idle(struct ttm_buffer_object *bo,if (vmf->flags &FAULT_FLAG_RETRY_NOWAIT ) goto out_unlock; +ttm_bo_reference (bo);up_read (&vma->vm_mm->mmap_sem); (void )ttm_bo_wait (bo, false, true, false); +ttm_bo_unreserve (bo); +ttm_bo_unref (&bo); goto out_unlock; }
@@ -117,8 +120,10 @@ static int ttm_bo_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)if (vmf->flags &FAULT_FLAG_ALLOW_RETRY ) {if (!(vmf->flags &FAULT_FLAG_RETRY_NOWAIT )) { +ttm_bo_reference (bo);up_read (&vma->vm_mm->mmap_sem); (void )ttm_bo_wait_unreserved (bo); +ttm_bo_unref (&bo); }return VM_FAULT_RETRY ;
@@ -163,6 +168,13 @@ static int ttm_bo_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) ret =ttm_bo_vm_fault_idle (bo, vma, vmf);if (unlikely (ret !=0 )) { retval = ret; + +if (retval ==VM_FAULT_RETRY && + !(vmf->flags &FAULT_FLAG_RETRY_NOWAIT )) { +/* The BO has already been unreserved. */ +return retval; + } + goto out_unlock; }
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c +6 -3
@@ -711,11 +711,14 @@ int vmw_surface_define_ioctl(struct drm_device *dev, void *data,128 ; num_sizes =0 ; -for (i =0 ; i <DRM_VMW_MAX_SURFACE_FACES ; ++i) +for (i =0 ; i <DRM_VMW_MAX_SURFACE_FACES ; ++i) { +if (req->mip_levels[i] >DRM_VMW_MAX_MIP_LEVELS ) +return -EINVAL ; num_sizes += req->mip_levels[i]; + } -if (num_sizes >DRM_VMW_MAX_SURFACE_FACES * -DRM_VMW_MAX_MIP_LEVELS ) +if (num_sizes >DRM_VMW_MAX_SURFACE_FACES *DRM_VMW_MAX_MIP_LEVELS || + num_sizes ==0 )return -EINVAL ; size = vmw_user_surface_size + 128 +
drivers/hv/channel.c +8 -7
@@ -163,7 +163,7 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags); ret =vmbus_post_msg (open_msg, -sizeof (struct vmbus_channel_open_channel )); +sizeof (struct vmbus_channel_open_channel ), true);if (ret !=0 ) { err = ret;
@@ -391,7 +391,7 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer,spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags); ret =vmbus_post_msg (gpadlmsg, msginfo->msgsize - -sizeof (*msginfo)); +sizeof (*msginfo), true);if (ret !=0 ) goto cleanup;
@@ -407,8 +407,8 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer, gpadl_body->gpadl = next_gpadl_handle; ret =vmbus_post_msg (gpadl_body, - submsginfo->msgsize - -sizeof (*submsginfo)); + submsginfo->msgsize -sizeof (*submsginfo), + true);if (ret !=0 ) goto cleanup;
@@ -456,8 +456,8 @@ int vmbus_teardown_gpadl(struct vmbus_channel *channel, u32 gpadl_handle)list_add_tail (&info->msglistentry, &vmbus_connection.chn_msg_list);spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags); - ret =vmbus_post_msg (msg, -sizeof (struct vmbus_channel_gpadl_teardown )); + ret =vmbus_post_msg (msg,sizeof (struct vmbus_channel_gpadl_teardown ), + true);if (ret) goto post_msg_err;
@@ -502,7 +502,8 @@ static int vmbus_close_internal(struct vmbus_channel *channel) msg->header.msgtype =CHANNELMSG_CLOSECHANNEL ; msg->child_relid = channel->offermsg.child_relid; - ret =vmbus_post_msg (msg,sizeof (struct vmbus_channel_close_channel )); + ret =vmbus_post_msg (msg,sizeof (struct vmbus_channel_close_channel ), + true);if (ret) {pr_err ("Close failed: close post msg return is %d\n" , ret);
drivers/hv/channel_mgmt.c +4 -3
@@ -229,7 +229,8 @@ static void vmbus_process_rescind_offer(struct work_struct *work)memset (&msg,0 ,sizeof (struct vmbus_channel_relid_released )); msg.child_relid = channel->offermsg.child_relid; msg.header.msgtype =CHANNELMSG_RELID_RELEASED ; -vmbus_post_msg (&msg,sizeof (struct vmbus_channel_relid_released )); +vmbus_post_msg (&msg,sizeof (struct vmbus_channel_relid_released ), + true);if (channel->target_cpu !=smp_processor_id ()) smp_call_function_single(channel->target_cpu,
@@ -771,8 +772,8 @@ int vmbus_request_offers(void) msg->msgtype =CHANNELMSG_REQUESTOFFERS ; - ret =vmbus_post_msg (msg, -sizeof (struct vmbus_channel_message_header )); + ret =vmbus_post_msg (msg,sizeof (struct vmbus_channel_message_header ), + true);if (ret !=0 ) {pr_err ("Unable to request offers - %d\n" , ret);
drivers/hv/connection.c +22 -5
@@ -94,7 +94,8 @@ static int vmbus_negotiate_version(struct vmbus_channel_msginfo *msginfo,spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags); ret =vmbus_post_msg (msg, -sizeof (struct vmbus_channel_initiate_contact )); +sizeof (struct vmbus_channel_initiate_contact ), + true);if (ret !=0 ) {spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags);list_del (&msginfo->msglistentry);
@@ -413,11 +414,12 @@ void vmbus_on_event(unsigned long data)/* * vmbus_post_msg - Send a msg on the vmbus's message connection */ -int vmbus_post_msg (void *buffer,size_t buflen) +int vmbus_post_msg (void *buffer,size_t buflen,bool can_sleep) {union hv_connection_id conn_id;int ret =0 ;int retries =0 ; +u32 usec =1 ; conn_id.asu32 =0 ; conn_id.u.id =VMBUS_MESSAGE_CONNECTION_ID ;
@@ -427,13 +429,20 @@ int vmbus_post_msg(void *buffer, size_t buflen)* insufficient resources. Retry the operation a couple of * times before giving up. */ -while (retries <10 ) { +while (retries <100 ) { ret =hv_post_message (conn_id,1 , buffer, buflen);switch (ret) { +case HV_STATUS_INVALID_CONNECTION_ID : +/* +* We could get this if we send messages too +* frequently. +*/ + ret = -EAGAIN ; +break ; +case HV_STATUS_INSUFFICIENT_MEMORY :case HV_STATUS_INSUFFICIENT_BUFFERS : ret = -ENOMEM ; -case -ENOMEM :break ;case HV_STATUS_SUCCESS :return ret;
@@ -443,7 +452,15 @@ int vmbus_post_msg(void *buffer, size_t buflen) } retries++; -msleep (100 ); +if (can_sleep && usec >1000 ) +msleep (usec /1000 ); +else if (usec <MAX_UDELAY_MS *1000 ) +udelay (usec); +else +mdelay (usec /1000 ); + +if (usec <256000 ) + usec *=2 ; }return ret; }
drivers/hv/hv.c +5 -5
@@ -156,7 +156,7 @@ int hv_init(void)/* See if the hypercall page is already set */ rdmsrl (HV_X64_MSR_HYPERCALL , hypercall_msr.as_uint64); - virtaddr =__vmalloc (PAGE_SIZE ,GFP_KERNEL ,PAGE_KERNEL_EXEC ); + virtaddr =__vmalloc (PAGE_SIZE ,GFP_KERNEL ,PAGE_KERNEL_RX );if (!virtaddr) goto cleanup;
@@ -264,7 +264,7 @@ int hv_synic_alloc(void)size_t size =sizeof (struct tasklet_struct );int cpu; -for_each_online_cpu (cpu) { +for_each_present_cpu (cpu) { hv_context.event_dpc[cpu] =kmalloc (size,GFP_ATOMIC );if (hv_context.event_dpc[cpu] ==NULL ) {pr_err ("Unable to allocate event dpc\n" );
@@ -295,6 +295,8 @@ int hv_synic_alloc(void)pr_err ("Unable to allocate post msg page\n" ); goto err; } + +INIT_LIST_HEAD (&hv_context.percpu_list[cpu]); }return 0 ;
@@ -317,7 +319,7 @@ void hv_synic_free(void) {int cpu; -for_each_online_cpu (cpu) +for_each_present_cpu (cpu)hv_synic_free_cpu (cpu); }
@@ -386,8 +388,6 @@ void hv_synic_init(void *arg)*/ rdmsrl (HV_X64_MSR_VP_INDEX , vp_index); hv_context.vp_index[cpu] = (u32 )vp_index; - -INIT_LIST_HEAD (&hv_context.percpu_list[cpu]);return ; }
drivers/hv/hyperv_vmbus.h +1 -1
@@ -672,7 +672,7 @@ void vmbus_free_channels(void);int vmbus_connect (void ); -int vmbus_post_msg (void *buffer,size_t buflen); +int vmbus_post_msg (void *buffer,size_t buflen,bool can_sleep);int vmbus_set_event (struct vmbus_channel *channel);
drivers/i2c/busses/i2c-riic.c +23 -7
@@ -80,6 +80,7 @@#define ICIER_TEIE 0x40#define ICIER_RIE 0x20#define ICIER_NAKIE 0x10 +#define ICIER_SPIE 0x08#define ICSR2_NACKF 0x10
@@ -216,11 +217,10 @@ static irqreturn_t riic_tend_isr(int irq, void *data)return IRQ_NONE ; } -if (riic->is_last || riic->err) +if (riic->is_last || riic->err) { +riic_clear_set_bit (riic,0 ,ICIER_SPIE ,RIIC_ICIER );writeb (ICCR2_SP , riic->base +RIIC_ICCR2 ); - -writeb (0 , riic->base +RIIC_ICIER ); -complete (&riic->msg_done); + }return IRQ_HANDLED ; }
@@ -240,13 +240,13 @@ static irqreturn_t riic_rdrf_isr(int irq, void *data)if (riic->bytes_left ==1 ) {/* STOP must come before we set ACKBT! */ -if (riic->is_last) +if (riic->is_last) { +riic_clear_set_bit (riic,0 ,ICIER_SPIE ,RIIC_ICIER );writeb (ICCR2_SP , riic->base +RIIC_ICCR2 ); + }riic_clear_set_bit (riic,0 ,ICMR3_ACKBT ,RIIC_ICMR3 ); -writeb (0 , riic->base +RIIC_ICIER ); -complete (&riic->msg_done); }else {riic_clear_set_bit (riic,ICMR3_ACKBT ,0 ,RIIC_ICMR3 ); }
@@ -259,6 +259,21 @@ static irqreturn_t riic_rdrf_isr(int irq, void *data)return IRQ_HANDLED ; } +static irqreturn_t riic_stop_isr (int irq,void *data) +{ +struct riic_dev *riic = data; + +/* read back registers to confirm writes have fully propagated */ +writeb (0 , riic->base +RIIC_ICSR2 ); +readb (riic->base +RIIC_ICSR2 ); +writeb (0 , riic->base +RIIC_ICIER ); +readb (riic->base +RIIC_ICIER ); + +complete (&riic->msg_done); + +return IRQ_HANDLED ; +} +static u32 riic_func (struct i2c_adapter *adap) {return I2C_FUNC_I2C |I2C_FUNC_SMBUS_EMUL ;
@@ -326,6 +341,7 @@ static struct riic_irq_desc riic_irqs[] = { { .res_num = 0, .isr = riic_tend_isr, .name = "riic-tend" }, { .res_num = 1, .isr = riic_rdrf_isr, .name = "riic-rdrf" }, { .res_num = 2, .isr = riic_tdre_isr, .name = "riic-tdre" }, + { .res_num = 3, .isr = riic_stop_isr, .name = "riic-stop" }, { .res_num = 5, .isr = riic_tend_isr, .name = "riic-nack" }, };
drivers/iio/pressure/mpl115.c +1 -0
@@ -136,6 +136,7 @@ static const struct iio_chan_spec mpl115_channels[] = { { .type = IIO_TEMP, .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), + .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_OFFSET) | BIT(IIO_CHAN_INFO_SCALE), }, };
drivers/iio/pressure/mpl3115.c +2 -2
@@ -182,7 +182,7 @@ static const struct iio_chan_spec mpl3115_channels[] = { { .type = IIO_PRESSURE, .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), -BIT (IIO_CHAN_INFO_SCALE ), + .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), .scan_index = 0, .scan_type = { .sign = 'u',
@@ -195,7 +195,7 @@ static const struct iio_chan_spec mpl3115_channels[] = { { .type = IIO_TEMP, .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), -BIT (IIO_CHAN_INFO_SCALE ), + .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), .scan_index = 1, .scan_type = { .sign = 's',
drivers/iio/pressure/st_pressure_core.c +4 -4
@@ -116,7 +116,7 @@ static const struct iio_chan_spec st_press_1_channels[] = { .address = ST_PRESS_1_OUT_XL_ADDR, .scan_index = ST_SENSORS_SCAN_X, .scan_type = { - .sign = 'u', + .sign = 's', .realbits = 24, .storagebits = 24, .endianness = IIO_LE,
@@ -131,7 +131,7 @@ static const struct iio_chan_spec st_press_1_channels[] = { .address = ST_TEMP_1_OUT_L_ADDR, .scan_index = -1, .scan_type = { - .sign = 'u', + .sign = 's', .realbits = 16, .storagebits = 16, .endianness = IIO_LE,
@@ -152,7 +152,7 @@ static const struct iio_chan_spec st_press_lps001wp_channels[] = { .address = ST_PRESS_LPS001WP_OUT_L_ADDR, .scan_index = ST_SENSORS_SCAN_X, .scan_type = { - .sign = 'u', + .sign = 's', .realbits = 16, .storagebits = 16, .endianness = IIO_LE,
@@ -168,7 +168,7 @@ static const struct iio_chan_spec st_press_lps001wp_channels[] = { .address = ST_TEMP_LPS001WP_OUT_L_ADDR, .scan_index = -1, .scan_type = { - .sign = 'u', + .sign = 's', .realbits = 16, .storagebits = 16, .endianness = IIO_LE,
drivers/infiniband/core/cma.c +3 -0
@@ -2952,6 +2952,9 @@ static int cma_accept_iw(struct rdma_id_private *id_priv,struct iw_cm_conn_param iw_param;int ret; +if (!conn_param) +return -EINVAL ; + ret =cma_modify_qp_rtr (id_priv, conn_param);if (ret)return ret;
drivers/infiniband/hw/mlx5/qp.c +17 -12
@@ -367,12 +367,21 @@ static int next_uuar(int n)return n; } +enum { +/* this is the first blue flame register in the array of bfregs assigned +* to a processes. Since we do not use it for blue flame but rather +* regular 64 bit doorbells, we do not need a lock for maintaiing +* "odd/even" order +*/ +NUM_NON_BLUE_FLAME_BFREGS =1 , +}; +static int num_med_uuar (struct mlx5_uuar_info *uuari) {int n; n = uuari->num_uars *MLX5_NON_FP_BF_REGS_PER_PAGE - - uuari->num_low_latency_uuars -1 ; + uuari->num_low_latency_uuars -NUM_NON_BLUE_FLAME_BFREGS ;return n >=0 ? n :0 ; }
@@ -385,17 +394,9 @@ static int max_uuari(struct mlx5_uuar_info *uuari)static int first_hi_uuar (struct mlx5_uuar_info *uuari) {int med; -int i; -int t; med =num_med_uuar (uuari); -for (t =0 , i =first_med_uuar ();; i =next_uuar (i)) { - t++; -if (t == med) -return next_uuar (i); - } - -return 0 ; +return next_uuar (med); }static int alloc_high_class_uuar (struct mlx5_uuar_info *uuari)
@@ -421,6 +422,8 @@ static int alloc_med_class_uuar(struct mlx5_uuar_info *uuari)for (i =first_med_uuar (); i <first_hi_uuar (uuari); i =next_uuar (i)) {if (uuari->count[i] < uuari->count[minidx]) minidx = i; +if (!uuari->count[minidx]) +break ; } uuari->count[minidx]++;
@@ -435,6 +438,7 @@ static int alloc_uuar(struct mlx5_uuar_info *uuari,mutex_lock (&uuari->lock);switch (lat) {case MLX5_IB_LATENCY_CLASS_LOW : +BUILD_BUG_ON (NUM_NON_BLUE_FLAME_BFREGS !=1 ); uuarn =0 ; uuari->count[uuarn]++;break ;
@@ -2332,8 +2336,9 @@ static int set_psv_wr(struct ib_sig_domain *domain,break ;default : -pr_err ("Bad signature type given.\n" ); -return 1 ; +pr_err ("Bad signature type (%d) is given.\n" , + domain->sig_type); +return -EINVAL ; }return 0 ;
drivers/infiniband/hw/mlx5/srq.c +3 -8
@@ -156,8 +156,6 @@ static int create_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq,int err;int i;struct mlx5_wqe_srq_next_seg *next; -int page_shift; -int npages; err =mlx5_db_alloc (&dev->mdev, &srq->db);if (err) {
@@ -172,7 +170,6 @@ static int create_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq, err = -ENOMEM ; goto err_db; } - page_shift = srq->buf.page_shift; srq->head =0 ; srq->tail = srq->msrq.max -1 ;
@@ -184,10 +181,8 @@ static int create_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq,cpu_to_be16 ((i +1 ) & (srq->msrq.max -1 )); } - npages =DIV_ROUND_UP (srq->buf.npages,1 << (page_shift -PAGE_SHIFT )); -mlx5_ib_dbg (dev,"buf_size %d, page_shift %d, npages %d, calc npages %d\n" , - buf_size, page_shift, srq->buf.npages, npages); - *inlen =sizeof (**in) +sizeof (*(*in)->pas) * npages; +mlx5_ib_dbg (dev,"srq->buf.page_shift = %d\n" , srq->buf.page_shift); + *inlen =sizeof (**in) +sizeof (*(*in)->pas) * srq->buf.npages; *in =mlx5_vzalloc (*inlen);if (!*in) { err = -ENOMEM ;
@@ -204,7 +199,7 @@ static int create_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq, } srq->wq_sig = !!srq_signature; - (*in)->ctx.log_pg_sz = page_shift -MLX5_ADAPTER_PAGE_SHIFT ; + (*in)->ctx.log_pg_sz = srq->buf.page_shift -MLX5_ADAPTER_PAGE_SHIFT ;return 0 ;
drivers/infiniband/ulp/ipoib/ipoib_cm.c +8 -6
@@ -1376,7 +1376,7 @@ static void ipoib_cm_tx_reap(struct work_struct *work)while (!list_empty (&priv->cm.reap_list)) { p =list_entry (priv->cm.reap_list.next,typeof (*p), list); -list_del (&p->list); +list_del_init (&p->list);spin_unlock_irqrestore (&priv->lock, flags);netif_tx_unlock_bh (dev);ipoib_cm_tx_destroy (p);
@@ -1496,12 +1496,14 @@ static ssize_t set_mode(struct device *d, struct device_attribute *attr, ret =ipoib_set_mode (dev, buf); -rtnl_unlock (); - -if (!ret) -return count; +/* The assumption is that the function ipoib_set_mode returned +* with the rtnl held by it, if not the value -EBUSY returned, +* then no need to rtnl_unlock +*/ +if (ret != -EBUSY ) +rtnl_unlock (); -return ret; +return (!ret || ret == -EBUSY ) ? count : ret; } static DEVICE_ATTR(mode, S_IWUSR | S_IRUGO, show_mode, set_mode);
drivers/infiniband/ulp/ipoib/ipoib_main.c +13 -8
@@ -226,6 +226,13 @@ int ipoib_set_mode(struct net_device *dev, const char *buf) {struct ipoib_dev_priv *priv =netdev_priv (dev); +if ((test_bit (IPOIB_FLAG_ADMIN_CM , &priv->flags) && + !strcmp (buf,"connected\n" )) || + (!test_bit (IPOIB_FLAG_ADMIN_CM , &priv->flags) && + !strcmp (buf,"datagram\n" ))) { +return 0 ; + } +/* flush paths if we switch modes so that connections are restarted */ if (IPOIB_CM_SUPPORTED (dev->dev_addr) && !strcmp (buf,"connected\n" )) {set_bit (IPOIB_FLAG_ADMIN_CM , &priv->flags);
@@ -236,8 +243,7 @@ int ipoib_set_mode(struct net_device *dev, const char *buf) priv->tx_wr.send_flags &= ~IB_SEND_IP_CSUM ;ipoib_flush_paths (dev); -rtnl_lock (); -return 0 ; +return (!rtnl_trylock ()) ? -EBUSY :0 ; }if (!strcmp (buf,"datagram\n" )) {
@@ -246,8 +252,7 @@ int ipoib_set_mode(struct net_device *dev, const char *buf)dev_set_mtu (dev,min (priv->mcast_mtu, dev->mtu));rtnl_unlock ();ipoib_flush_paths (dev); -rtnl_lock (); -return 0 ; +return (!rtnl_trylock ()) ? -EBUSY :0 ; }return -EINVAL ;
@@ -935,7 +940,7 @@ static void __ipoib_reap_neigh(struct ipoib_dev_priv *priv)rcu_dereference_protected (neigh->hnext, lockdep_is_held(&priv->lock)));/* remove from path/mc list */ -list_del (&neigh->list); +list_del_init (&neigh->list);call_rcu (&neigh->rcu, ipoib_neigh_reclaim); }else { np = &neigh->hnext;
@@ -1098,7 +1103,7 @@ void ipoib_neigh_free(struct ipoib_neigh *neigh)rcu_dereference_protected (neigh->hnext, lockdep_is_held(&priv->lock)));/* remove from parent list */ -list_del (&neigh->list); +list_del_init (&neigh->list);call_rcu (&neigh->rcu, ipoib_neigh_reclaim);return ; }else {
@@ -1183,7 +1188,7 @@ void ipoib_del_neighs_by_gid(struct net_device *dev, u8 *gid)rcu_dereference_protected (neigh->hnext, lockdep_is_held(&priv->lock)));/* remove from parent list */ -list_del (&neigh->list); +list_del_init (&neigh->list);call_rcu (&neigh->rcu, ipoib_neigh_reclaim); }else { np = &neigh->hnext;
@@ -1225,7 +1230,7 @@ static void ipoib_flush_neighs(struct ipoib_dev_priv *priv)rcu_dereference_protected (neigh->hnext, lockdep_is_held(&priv->lock)));/* remove from path/mc list */ -list_del (&neigh->list); +list_del_init (&neigh->list);call_rcu (&neigh->rcu, ipoib_neigh_reclaim); } }
drivers/infiniband/ulp/ipoib/ipoib_vlan.c +7 -3
@@ -168,11 +168,11 @@ int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) out:up_write (&ppriv->vlan_rwsem); +rtnl_unlock (); +if (result)free_netdev (priv->dev); -rtnl_unlock (); -return result; }
@@ -196,7 +196,6 @@ int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey)list_for_each_entry_safe (priv, tpriv, &ppriv->child_intfs, list) {if (priv->pkey == pkey && priv->child_type ==IPOIB_LEGACY_CHILD ) { -unregister_netdevice (priv->dev);list_del (&priv->list); dev = priv->dev;break ;
@@ -204,6 +203,11 @@ int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) }up_write (&ppriv->vlan_rwsem); +if (dev) { +ipoib_dbg (ppriv,"delete child vlan %s\n" , dev->name); +unregister_netdevice (dev); + } +rtnl_unlock ();if (dev) {
drivers/iommu/intel-iommu.c +1 -1
@@ -972,7 +972,7 @@ static void dma_pte_free_level(struct dmar_domain *domain, int level,if (!dma_pte_present (pte) ||dma_pte_superpage (pte)) goto next; - level_pfn = pfn &level_mask (level -1 ); + level_pfn = pfn &level_mask (level); level_pte =phys_to_virt (dma_pte_addr (pte));if (level >2 )
drivers/md/dm-cache-target.c +3 -3
@@ -210,7 +210,7 @@ struct cache {/* * Fields for converting from sectors to blocks. */ -uint32_t sectors_per_block; +sector_t sectors_per_block;int sectors_per_block_shift;spinlock_t lock;
@@ -2823,11 +2823,11 @@ static void cache_status(struct dm_target *ti, status_type_t type, residency =policy_residency (cache->policy); - DMEMIT("%u %llu/%llu %u %llu/%llu %u %u %u %u %u %u %lu ", + DMEMIT("%u %llu/%llu %llu %llu/%llu %u %u %u %u %u %u %lu ", (unsigned)(DM_CACHE_METADATA_BLOCK_SIZE >> SECTOR_SHIFT), (unsigned long long)(nr_blocks_metadata - nr_free_blocks_metadata), (unsigned long long)nr_blocks_metadata, - cache->sectors_per_block, + (unsigned long long)cache->sectors_per_block, (unsigned long long) from_cblock(residency), (unsigned long long) from_cblock(cache->cache_size), (unsigned) atomic_read(&cache->stats.read_hit),
drivers/md/linear.c +28 -1
@@ -97,6 +97,12 @@ static int linear_mergeable_bvec(struct request_queue *q,return maxsectors <<9 ; } +/* +* In linear_congested() conf->raid_disks is used as a copy of +* mddev->raid_disks to iterate conf->disks[], because conf->raid_disks +* and conf->disks[] are created in linear_conf(), they are always +* consitent with each other, but mddev->raid_disks does not. +*/ static int linear_congested (void *data,int bits) {struct mddev *mddev = data;
@@ -109,7 +115,7 @@ static int linear_congested(void *data, int bits)rcu_read_lock (); conf =rcu_dereference (mddev->private); -for (i =0 ; i < mddev->raid_disks && !ret ; i++) { +for (i =0 ; i < conf->raid_disks && !ret ; i++) {struct request_queue *q =bdev_get_queue (conf->disks[i].rdev->bdev); ret |=bdi_congested (&q->backing_dev_info, bits); }
@@ -196,6 +202,19 @@ static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks) conf->disks[i-1 ].end_sector + conf->disks[i].rdev->sectors; +/* +* conf->raid_disks is copy of mddev->raid_disks. The reason to +* keep a copy of mddev->raid_disks in struct linear_conf is, +* mddev->raid_disks may not be consistent with pointers number of +* conf->disks[] when it is updated in linear_add() and used to +* iterate old conf->disks[] earray in linear_congested(). +* Here conf->raid_disks is always consitent with number of +* pointers in conf->disks[] array, and mddev->private is updated +* with rcu_assign_pointer() in linear_addr(), such race can be +* avoided. +*/ + conf->raid_disks = raid_disks; +return conf; out:
@@ -252,10 +271,18 @@ static int linear_add(struct mddev *mddev, struct md_rdev *rdev)if (!newconf)return -ENOMEM ; +/* newconf->raid_disks already keeps a copy of * the increased +* value of mddev->raid_disks, WARN_ONCE() is just used to make +* sure of this. It is possible that oldconf is still referenced +* in linear_congested(), therefore kfree_rcu() is used to free +* oldconf until no one uses it anymore. +*/ oldconf =rcu_dereference_protected (mddev->private,lockdep_is_held ( &mddev->reconfig_mutex)); mddev->raid_disks++; +WARN_ONCE (mddev->raid_disks != newconf->raid_disks, +"copied raid_disks doesn't match mddev->raid_disks" );rcu_assign_pointer (mddev->private, newconf);md_set_array_sectors (mddev,linear_size (mddev,0 ,0 ));set_capacity (mddev->gendisk, mddev->array_sectors);
drivers/md/linear.h +1 -0
@@ -10,6 +10,7 @@ struct linear_conf {struct rcu_head rcu;sector_t array_sectors; +int raid_disks;/* a copy of mddev->raid_disks */ struct dev_info disks[0 ]; };#endif
drivers/md/md.c +7 -0
@@ -8714,7 +8714,14 @@ static __exit void md_exit(void)for_each_mddev (mddev, tmp) {export_array (mddev); + mddev->ctime =0 ; mddev->hold_active =0 ; +/* +* for_each_mddev() will call mddev_put() at the end of each +* iteration. As the mddev is now fully clear, this will +* schedule the mddev for destruction by a workqueue, and the +* destroy_workqueue() below will wait for that to complete. +*/ }destroy_workqueue (md_misc_wq);destroy_workqueue (md_wq);
drivers/media/i2c/adv7604.c +3 -0
@@ -2735,6 +2735,9 @@ static int adv7604_parse_dt(struct adv7604_state *state) state->pdata.alt_data_sat =1 ; state->pdata.op_format_mode_sel =ADV7604_OP_FORMAT_MODE0 ; state->pdata.bus_order =ADV7604_BUS_ORDER_RGB ; + state->pdata.dr_str_data =ADV76XX_DR_STR_MEDIUM_HIGH ; + state->pdata.dr_str_clk =ADV76XX_DR_STR_MEDIUM_HIGH ; + state->pdata.dr_str_sync =ADV76XX_DR_STR_MEDIUM_HIGH ;return 0 ; }
drivers/media/pci/dm1105/Kconfig +1 -1
@@ -1,6 +1,6 @@ config DVB_DM1105 tristate "SDMC DM1105 based PCI cards" - depends on DVB_CORE && PCI && I2C + depends on DVB_CORE && PCI && I2C && I2C_ALGOBIT select DVB_PLL if MEDIA_SUBDRV_AUTOSELECT select DVB_STV0299 if MEDIA_SUBDRV_AUTOSELECT select DVB_STV0288 if MEDIA_SUBDRV_AUTOSELECT
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c +5 -4
@@ -942,8 +942,8 @@ EXPORT_SYMBOL(dvb_usbv2_probe);void dvb_usbv2_disconnect (struct usb_interface *intf) {struct dvb_usb_device *d =usb_get_intfdata (intf); -const char *name = d->name; -struct device dev = d->udev->dev; +const char *devname =kstrdup (dev_name (&d->udev->dev),GFP_KERNEL ); +const char *drvname = d->name;dev_dbg (&d->udev->dev,"%s: bInterfaceNumber=%d\n" , __func__, intf->cur_altsetting->desc.bInterfaceNumber);
@@ -952,8 +952,9 @@ void dvb_usbv2_disconnect(struct usb_interface *intf)dvb_usbv2_exit (d); -dev_info (&dev,"%s: '%s' successfully deinitialized and disconnected\n" , -KBUILD_MODNAME , name); +pr_info ("%s: '%s:%s' successfully deinitialized and disconnected\n" , +KBUILD_MODNAME , drvname, devname); +kfree (devname); }EXPORT_SYMBOL (dvb_usbv2_disconnect);
drivers/media/usb/uvc/uvc_queue.c +1 -1
@@ -390,7 +390,7 @@ struct uvc_buffer *uvc_queue_next_buffer(struct uvc_video_queue *queue, nextbuf =NULL ;spin_unlock_irqrestore (&queue->irqlock, flags); - buf->state = buf->error ?VB2_BUF_STATE_ERROR :UVC_BUF_STATE_DONE ; + buf->state = buf->error ?UVC_BUF_STATE_ERROR :UVC_BUF_STATE_DONE ;vb2_set_plane_payload (&buf->buf,0 , buf->bytesused);vb2_buffer_done (&buf->buf,VB2_BUF_STATE_DONE );
drivers/mmc/host/omap_hsmmc.c +4 -3
@@ -1393,10 +1393,11 @@ static int omap_hsmmc_setup_dma_transfer(struct omap_hsmmc_host *host, }static void set_data_timeout (struct omap_hsmmc_host *host, -unsigned int timeout_ns, +unsigned long long timeout_ns,unsigned int timeout_clks) { -unsigned int timeout, cycle_ns; +unsigned long long timeout = timeout_ns; +unsigned int cycle_ns;uint32_t reg, clkd, dto =0 ; reg =OMAP_HSMMC_READ (host->base,SYSCTL );
@@ -1405,7 +1406,7 @@ static void set_data_timeout(struct omap_hsmmc_host *host, clkd =1 ; cycle_ns =1000000000 / (host->clk_rate / clkd); - timeout = timeout_ns / cycle_ns; +do_div (timeout, cycle_ns); timeout += timeout_clks;if (timeout) {while ((timeout &0x80000000 ) ==0 ) {
drivers/net/can/usb/usb_8dev.c +3 -6
@@ -957,8 +957,8 @@ static int usb_8dev_probe(struct usb_interface *intf,for (i =0 ; i <MAX_TX_URBS ; i++) priv->tx_contexts[i].echo_index =MAX_TX_URBS ; - priv->cmd_msg_buffer =kzalloc (sizeof (struct usb_8dev_cmd_msg ), -GFP_KERNEL ); + priv->cmd_msg_buffer =devm_kzalloc (&intf->dev,sizeof (struct usb_8dev_cmd_msg ), +GFP_KERNEL );if (!priv->cmd_msg_buffer) goto cleanup_candev;
@@ -972,7 +972,7 @@ static int usb_8dev_probe(struct usb_interface *intf,if (err) {netdev_err (netdev,"couldn't register CAN device: %d\n" , err); - goto cleanup_cmd_msg_buffer; + goto cleanup_candev; } err =usb_8dev_cmd_version (priv, &version);
@@ -993,9 +993,6 @@ static int usb_8dev_probe(struct usb_interface *intf, cleanup_unregister_candev:unregister_netdev (priv->netdev); -cleanup_cmd_msg_buffer: -kfree (priv->cmd_msg_buffer); - cleanup_candev:free_candev (netdev);
drivers/net/ethernet/broadcom/bgmac.c +5 -1
@@ -1238,12 +1238,16 @@ static netdev_tx_t bgmac_start_xmit(struct sk_buff *skb,static int bgmac_set_mac_address (struct net_device *net_dev,void *addr) {struct bgmac *bgmac =netdev_priv (net_dev); +struct sockaddr *sa = addr;int ret; ret =eth_prepare_mac_addr_change (net_dev, addr);if (ret <0 )return ret; -bgmac_write_mac_address (bgmac, (u8 *)addr); + +ether_addr_copy (net_dev->dev_addr, sa->sa_data); +bgmac_write_mac_address (bgmac, net_dev->dev_addr); +eth_commit_mac_addr_change (net_dev, addr);return 0 ; }
drivers/net/ethernet/mellanox/mlx4/cmd.c +20 -2
@@ -42,6 +42,7 @@#include <linux/mlx4/device.h> #include <linux/semaphore.h> #include <rdma/ib_smi.h> +#include <linux/etherdevice.h> #include <asm/io.h>
@@ -2409,7 +2410,7 @@ static int mlx4_slaves_closest_port(struct mlx4_dev *dev, int slave, int port)return port; } -int mlx4_set_vf_mac (struct mlx4_dev *dev,int port,int vf,u64 mac) +int mlx4_set_vf_mac (struct mlx4_dev *dev,int port,int vf,u8 *mac) {struct mlx4_priv *priv =mlx4_priv (dev);struct mlx4_vport_state *s_info;
@@ -2418,13 +2419,22 @@ int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u64 mac)if (!mlx4_is_master (dev))return -EPROTONOSUPPORT ; +if (is_multicast_ether_addr (mac)) +return -EINVAL ; + slave =mlx4_get_slave_indx (dev, vf);if (slave <0 )return -EINVAL ; port =mlx4_slaves_closest_port (dev, slave, port); s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; - s_info->mac = mac; + +if (s_info->spoofchk &&is_zero_ether_addr (mac)) { +mlx4_info (dev,"MAC invalidation is not allowed when spoofchk is on\n" ); +return -EPERM ; + } + + s_info->mac =mlx4_mac_to_u64 (mac);mlx4_info (dev,"default mac on vf %d port %d to %llX will take afect only after vf restart\n" , vf, port, s_info->mac);return 0 ;
@@ -2496,6 +2506,7 @@ int mlx4_set_vf_spoofchk(struct mlx4_dev *dev, int port, int vf, bool setting)struct mlx4_priv *priv =mlx4_priv (dev);struct mlx4_vport_state *s_info;int slave; +u8 mac[ETH_ALEN ];if ((!mlx4_is_master (dev)) || !(dev->caps.flags2 &MLX4_DEV_CAP_FLAG2_FSM ))
@@ -2507,6 +2518,13 @@ int mlx4_set_vf_spoofchk(struct mlx4_dev *dev, int port, int vf, bool setting) port =mlx4_slaves_closest_port (dev, slave, port); s_info = &priv->mfunc.master.vf_admin[slave].vport[port]; + +mlx4_u64_to_mac (mac, s_info->mac); +if (setting && !is_valid_ether_addr (mac)) { +mlx4_info (dev,"Illegal MAC with spoofchk\n" ); +return -EPERM ; + } + s_info->spoofchk = setting;return 0 ;
drivers/net/ethernet/mellanox/mlx4/en_netdev.c +1 -5
@@ -2253,12 +2253,8 @@ static int mlx4_en_set_vf_mac(struct net_device *dev, int queue, u8 *mac) {struct mlx4_en_priv *en_priv =netdev_priv (dev);struct mlx4_en_dev *mdev = en_priv->mdev; -u64 mac_u64 =mlx4_mac_to_u64 (mac); -if (is_multicast_ether_addr (mac)) -return -EINVAL ; - -return mlx4_set_vf_mac (mdev->dev, en_priv->port, queue, mac_u64); +return mlx4_set_vf_mac (mdev->dev, en_priv->port, queue, mac); }static int mlx4_en_set_vf_vlan (struct net_device *dev,int vf,u16 vlan,u8 qos)
drivers/net/ethernet/mellanox/mlx4/en_rx.c +4 -4
@@ -565,10 +565,10 @@ static int mlx4_en_complete_rx_desc(struct mlx4_en_priv *priv,dma_sync_single_for_cpu (priv->ddev, dma, frag_info->frag_size,DMA_FROM_DEVICE ); -/* Save page reference in skb */ -__skb_frag_set_page (&skb_frags_rx[nr], frags[nr].page); -skb_frag_size_set (&skb_frags_rx[nr], frag_info->frag_size); - skb_frags_rx[nr].page_offset = frags[nr].page_offset; +__skb_fill_page_desc (skb, nr, frags[nr].page, + frags[nr].page_offset, + frag_info->frag_size); + skb->truesize += frag_info->frag_stride; frags[nr].page =NULL ; }
drivers/net/ethernet/mellanox/mlx4/main.c +0 -2
@@ -585,8 +585,6 @@ static int mlx4_slave_cap(struct mlx4_dev *dev)return -ENOSYS ; } - mlx4_log_num_mgm_entry_size = hca_param.log_mc_entry_sz; - dev->caps.hca_core_clock = hca_param.hca_core_clock;memset (&dev_cap,0 ,sizeof (dev_cap));
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h +2 -1
@@ -98,7 +98,8 @@/* Use the maximum between 16384 and a single page */ #define MLX4_EN_ALLOC_SIZE PAGE_ALIGN(16384) -#define MLX4_EN_ALLOC_PREFER_ORDER PAGE_ALLOC_COSTLY_ORDER +#define MLX4_EN_ALLOC_PREFER_ORDER min_t(int, get_order(32768), \ + PAGE_ALLOC_COSTLY_ORDER)/* Receive fragment sizes; we use at most 3 fragments (for 9600 byte MTU * and 4K allocations) */
drivers/net/ethernet/sfc/efx.c +6 -4
@@ -833,7 +833,7 @@ out:efx_schedule_reset (efx,RESET_TYPE_DISABLE ); }else {efx_start_all (efx); -netif_device_attach (efx->net_dev); +efx_device_attach_if_not_resetting (efx); }return rc;
@@ -2036,6 +2036,8 @@ static int efx_net_open(struct net_device *net_dev)efx_link_status_changed (efx);efx_start_all (efx); +if (efx->state ==STATE_DISABLED || efx->reset_pending) +netif_device_detach (efx->net_dev);efx_selftest_async_start (efx);return 0 ; }
@@ -2106,7 +2108,7 @@ static int efx_change_mtu(struct net_device *net_dev, int new_mtu)mutex_unlock (&efx->mac_lock);efx_start_all (efx); -netif_device_attach (efx->net_dev); +efx_device_attach_if_not_resetting (efx);return 0 ; }
@@ -2455,7 +2457,7 @@ out: efx->state =STATE_DISABLED ; }else {netif_dbg (efx, drv, efx->net_dev,"reset complete\n" ); -netif_device_attach (efx->net_dev); +efx_device_attach_if_not_resetting (efx); }return rc; }
@@ -3035,7 +3037,7 @@ static int efx_pm_thaw(struct device *dev)efx_start_all (efx); -netif_device_attach (efx->net_dev); +efx_device_attach_if_not_resetting (efx); efx->state =STATE_READY ;
drivers/net/ethernet/sfc/efx.h +6 -0
@@ -247,4 +247,10 @@ static inline void efx_device_detach_sync(struct efx_nic *efx) netif_tx_unlock_bh(dev); } +static inline void efx_device_attach_if_not_resetting (struct efx_nic *efx) +{ +if ((efx->state !=STATE_DISABLED ) && !efx->reset_pending) +netif_device_attach (efx->net_dev); +} +#endif /* EFX_EFX_H */
drivers/net/ethernet/sfc/selftest.c +1 -1
@@ -749,7 +749,7 @@ int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests,__efx_reconfigure_port (efx);mutex_unlock (&efx->mac_lock); -netif_device_attach (efx->net_dev); +efx_device_attach_if_not_resetting (efx);return rc_test; }
drivers/net/vxlan.c +1 -1
@@ -2326,7 +2326,7 @@ static int vxlan_validate(struct nlattr *tb[], struct nlattr *data[])if (data[IFLA_VXLAN_ID ]) {__u32 id =nla_get_u32 (data[IFLA_VXLAN_ID ]); -if (id >=VXLAN_VID_MASK ) +if (id >=VXLAN_N_VID )return -ERANGE ; }
drivers/net/wireless/adm8211.c +2 -1
@@ -1843,7 +1843,8 @@ static int adm8211_probe(struct pci_dev *pdev, priv->rx_ring_size = rx_ring_size; priv->tx_ring_size = tx_ring_size; -if (adm8211_alloc_rings (dev)) { + err =adm8211_alloc_rings (dev); +if (err) {printk (KERN_ERR "%s (adm8211): Cannot allocate TX/RX ring\n" ,pci_name (pdev)); goto err_iounmap;
drivers/net/wireless/ath/ath5k/mac80211-ops.c +1 -2
@@ -511,8 +511,7 @@ ath5k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,break ;return -EOPNOTSUPP ;default : -WARN_ON (1 ); -return -EINVAL ; +return -EOPNOTSUPP ; }mutex_lock (&ah->lock);
drivers/net/wireless/ath/ath9k/ar9003_eeprom.h +2 -2
@@ -73,13 +73,13 @@#define AR9300_OTP_BASE \ ((AR_SREV_9340(ah) || AR_SREV_9550(ah)) ? 0x30000 : 0x14000)#define AR9300_OTP_STATUS \ - ((AR_SREV_9340(ah) || AR_SREV_9550(ah)) ? 0x30018 : 0x15f18) + ((AR_SREV_9340(ah) || AR_SREV_9550(ah)) ? 0x31018 : 0x15f18)#define AR9300_OTP_STATUS_TYPE 0x7#define AR9300_OTP_STATUS_VALID 0x4#define AR9300_OTP_STATUS_ACCESS_BUSY 0x2#define AR9300_OTP_STATUS_SM_BUSY 0x1#define AR9300_OTP_READ_DATA \ - ((AR_SREV_9340(ah) || AR_SREV_9550(ah)) ? 0x3001c : 0x15f1c) + ((AR_SREV_9340(ah) || AR_SREV_9550(ah)) ? 0x3101c : 0x15f1c)enum targetPowerHTRates {HT_TARGET_RATE_0_8_16 ,
drivers/net/wireless/ath/ath9k/ath9k.h +1 -0
@@ -709,6 +709,7 @@ struct ath_softc {struct survey_info *cur_survey;struct survey_info survey[ATH9K_NUM_CHANNELS ]; +spinlock_t intr_lock;struct tasklet_struct intr_tq;struct tasklet_struct bcon_tasklet;struct ath_hw *sc_ah;
drivers/net/wireless/ath/ath9k/init.c +1 -0
@@ -554,6 +554,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, common->bt_ant_diversity =1 ;spin_lock_init (&common->cc_lock); +spin_lock_init (&sc->intr_lock);spin_lock_init (&sc->sc_serial_rw);spin_lock_init (&sc->sc_pm_lock);mutex_init (&sc->mutex);
drivers/net/wireless/ath/ath9k/mac.c +34 -10
61 lines not on this page · raw message
drivers/net/wireless/ath/ath9k/mac.h +1 -0
@@ -737,6 +737,7 @@ void ath9k_hw_set_interrupts(struct ath_hw *ah);void ath9k_hw_enable_interrupts (struct ath_hw *ah);void ath9k_hw_disable_interrupts (struct ath_hw *ah);void ath9k_hw_kill_interrupts (struct ath_hw *ah); +void ath9k_hw_resume_interrupts (struct ath_hw *ah);void ar9002_hw_attach_mac_ops (struct ath_hw *ah);
drivers/net/wireless/ath/ath9k/main.c +11 -16
@@ -441,21 +441,20 @@ void ath9k_tasklet(unsigned long data)struct ath_common *common =ath9k_hw_common (ah);enum ath_reset_type type;unsigned long flags; -u32 status = sc->intrstatus; +u32 status;u32 rxmask; +spin_lock_irqsave (&sc->intr_lock, flags); + status = sc->intrstatus; + sc->intrstatus =0 ; +spin_unlock_irqrestore (&sc->intr_lock, flags); +ath9k_ps_wakeup (sc);spin_lock (&sc->sc_pcu_lock);if (status &ATH9K_INT_FATAL ) { type =RESET_TYPE_FATAL_INT ;ath9k_queue_reset (sc, type); - -/* -* Increment the ref. counter here so that -* interrupts are enabled in the reset routine. -*/ -atomic_inc (&ah->intr_ref_cnt);ath_dbg (common,RESET ,"FATAL: Skipping interrupts\n" ); goto out; }
@@ -471,11 +470,6 @@ void ath9k_tasklet(unsigned long data) type =RESET_TYPE_BB_WATCHDOG ;ath9k_queue_reset (sc, type); -/* -* Increment the ref. counter here so that -* interrupts are enabled in the reset routine. -*/ -atomic_inc (&ah->intr_ref_cnt);ath_dbg (common,RESET ,"BB_WATCHDOG: Skipping interrupts\n" ); goto out;
@@ -488,7 +482,6 @@ void ath9k_tasklet(unsigned long data)if ((sc->gtt_cnt >=MAX_GTT_CNT ) && !ath9k_hw_check_alive (ah)) { type =RESET_TYPE_TX_GTT ;ath9k_queue_reset (sc, type); -atomic_inc (&ah->intr_ref_cnt);ath_dbg (common,RESET ,"GTT: Skipping interrupts\n" ); goto out;
@@ -545,7 +538,7 @@ void ath9k_tasklet(unsigned long data)ath9k_btcoex_handle_interrupt (sc, status);/* re-enable hardware interrupt */ -ath9k_hw_enable_interrupts (ah); +ath9k_hw_resume_interrupts (ah); out:spin_unlock (&sc->sc_pcu_lock);ath9k_ps_restore (sc);
@@ -612,7 +605,9 @@ irqreturn_t ath_isr(int irq, void *dev)return IRQ_NONE ;/* Cache the status */ - sc->intrstatus = status; +spin_lock (&sc->intr_lock); + sc->intrstatus |= status; +spin_unlock (&sc->intr_lock);if (status &SCHED_INTR ) sched = true;
@@ -668,7 +663,7 @@ chip_reset:if (sched) {/* turn off every interrupt */ -ath9k_hw_disable_interrupts (ah); +ath9k_hw_kill_interrupts (ah);tasklet_schedule (&sc->intr_tq); }
drivers/net/wireless/iwlwifi/mvm/rs.c +1 -3
@@ -2481,7 +2481,7 @@ void iwl_mvm_update_frame_stats(struct iwl_mvm *mvm,struct iwl_mvm_frame_stats *stats, u32 rate, bool agg) { - u8 nss = 0, mcs = 0; + u8 nss = 0;spin_lock (&mvm->drv_stats_lock);
@@ -2506,11 +2506,9 @@ void iwl_mvm_update_frame_stats(struct iwl_mvm *mvm,if (rate &RATE_MCS_HT_MSK ) { stats->ht_frames++; - mcs = rate &RATE_HT_MCS_RATE_CODE_MSK ; nss = ((rate &RATE_HT_MCS_NSS_MSK ) >>RATE_HT_MCS_NSS_POS ) +1 ; }else if (rate &RATE_MCS_VHT_MSK ) { stats->vht_frames++; - mcs = rate &RATE_VHT_MCS_RATE_CODE_MSK ; nss = ((rate &RATE_VHT_MCS_NSS_MSK ) >>RATE_VHT_MCS_NSS_POS ) +1 ; }else {
drivers/net/wireless/mwifiex/debugfs.c +2 -1
@@ -220,7 +220,8 @@ mwifiex_info_read(struct file *file, char __user *ubuf,if (GET_BSS_ROLE (priv) ==MWIFIEX_BSS_ROLE_STA ) { p +=sprintf (p,"multicast_count=\"%d\"\n" ,netdev_mc_count (netdev)); - p +=sprintf (p,"essid=\"%s\"\n" , info.ssid.ssid); + p +=sprintf (p,"essid=\"%.*s\"\n" , info.ssid.ssid_len, + info.ssid.ssid); p +=sprintf (p,"bssid=\"%pM\"\n" , info.bssid); p +=sprintf (p,"channel=\"%d\"\n" , (int ) info.bss_chan); p +=sprintf (p,"country_code = \"%s\"\n" , info.country_code);
drivers/net/wireless/mwifiex/sta_ioctl.c +0 -2
@@ -1082,8 +1082,6 @@ int mwifiex_set_encode(struct mwifiex_private *priv, struct key_params *kp, encrypt_key.is_rx_seq_valid = true; } }else { -if (GET_BSS_ROLE (priv) ==MWIFIEX_BSS_ROLE_UAP ) -return 0 ; encrypt_key.key_disable = true;if (mac_addr)memcpy (encrypt_key.mac_addr, mac_addr,ETH_ALEN );
drivers/platform/goldfish/pdev_bus.c +8 -5
@@ -157,23 +157,26 @@ static int goldfish_new_pdev(void)static irqreturn_t goldfish_pdev_bus_interrupt (int irq,void *dev_id) {irqreturn_t ret =IRQ_NONE ; +while (1 ) {u32 op =readl (pdev_bus_base +PDEV_BUS_OP ); -switch (op) { -case PDEV_BUS_OP_DONE : -return IRQ_NONE ; +switch (op) {case PDEV_BUS_OP_REMOVE_DEV :goldfish_pdev_remove (); + ret =IRQ_HANDLED ;break ;case PDEV_BUS_OP_ADD_DEV :goldfish_new_pdev (); + ret =IRQ_HANDLED ;break ; + +case PDEV_BUS_OP_DONE : +default : +return ret; } - ret =IRQ_HANDLED ; } -return ret; }static int goldfish_pdev_bus_probe (struct platform_device *pdev)
drivers/platform/x86/acer-wmi.c +18 -4
@@ -1866,11 +1866,24 @@ static int acer_wmi_enable_lm(void)return status; } +#define ACER_WMID_ACCEL_HID "BST0001" +static acpi_status __init acer_wmi_get_handle_cb (acpi_handle ah,u32 level,void *ctx,void **retval) { +struct acpi_device *dev; + +if (!strcmp (ctx,"SENR" )) { +if (acpi_bus_get_device (ah, &dev)) +return AE_OK ; +if (!strcmp (ACER_WMID_ACCEL_HID ,acpi_device_hid (dev))) +return AE_OK ; + }else +return AE_OK ; + *(acpi_handle *)retval = ah; -return AE_OK ; + +return AE_CTRL_TERMINATE ; } static int __init acer_wmi_get_handle(const char *name, const char *prop,
@@ -1897,7 +1910,7 @@ static int __init acer_wmi_accel_setup(void) {int err; - err =acer_wmi_get_handle ("SENR" ,"BST0001" , &gsensor_handle); + err =acer_wmi_get_handle ("SENR" ,ACER_WMID_ACCEL_HID , &gsensor_handle);if (err)return err;
@@ -2268,10 +2281,11 @@ static int __init acer_wmi_init(void) err =acer_wmi_input_setup ();if (err)return err; + err =acer_wmi_accel_setup (); +if (err) +return err; } -acer_wmi_accel_setup (); - err =platform_driver_register (&acer_platform_driver);if (err) {pr_err ("Unable to register platform driver\n" );
drivers/power/bq24190_charger.c +72 -103
292 lines not on this page · raw message
drivers/s390/cio/ioasm.h +5 -3
@@ -138,13 +138,15 @@ static inline int tpi(struct tpi_info *addr)static inline int chsc (void *chsc_area) {typedef struct {char _[4096 ]; }addr_type ; -int cc; +int cc = -EIO ; asmvolatile (" .insn rre,0xb25f0000,%2,0\n" -" ipm %0\n" +"0: ipm %0\n" " srl %0,28\n" - :"=d" (cc),"=m" (*(addr_type *) chsc_area) +"1:\n" + EX_TABLE(0b, 1b) + : "+d" (cc), "=m" (*(addr_type *) chsc_area) : "d" (chsc_area), "m" (*(addr_type *) chsc_area) : "cc"); return cc;
drivers/s390/cio/qdio_thinint.c +4 -4
@@ -147,11 +147,11 @@ static inline void tiqdio_call_inq_handlers(struct qdio_irq *irq)struct qdio_q *q;int i; -for_each_input_queue (irq, q, i) { -if (!references_shared_dsci (irq) && -has_multiple_inq_on_dsci (irq)) -xchg (q->irq_ptr->dsci,0 ); +if (!references_shared_dsci (irq) && +has_multiple_inq_on_dsci (irq)) +xchg (irq->dsci,0 ); +for_each_input_queue (irq, q, i) {if (q->u.in.queue_start_poll) {/* skip if polling is enabled or already in work */ if (test_and_set_bit(QDIO_QUEUE_IRQS_DISABLED,
drivers/scsi/aacraid/commsup.c +21 -15
@@ -83,12 +83,20 @@ static int fib_map_alloc(struct aac_dev *dev)void aac_fib_map_free (struct aac_dev *dev) { -if (dev->hw_fib_va && dev->max_fib_size) { -pci_free_consistent (dev->pdev, - (dev->max_fib_size * - (dev->scsi_host_ptr->can_queue +AAC_NUM_MGT_FIB )), - dev->hw_fib_va, dev->hw_fib_pa); - } +size_t alloc_size; +size_t fib_size; +int num_fibs; + +if (!dev->hw_fib_va || !dev->max_fib_size) +return ; + + num_fibs = dev->scsi_host_ptr->can_queue +AAC_NUM_MGT_FIB ; + fib_size = dev->max_fib_size +sizeof (struct aac_fib_xporthdr ); + alloc_size = fib_size * num_fibs +ALIGN32 -1 ; + +pci_free_consistent (dev->pdev, alloc_size, dev->hw_fib_va, + dev->hw_fib_pa); + dev->hw_fib_va =NULL ; dev->hw_fib_pa =0 ; }
@@ -116,22 +124,20 @@ int aac_fib_setup(struct aac_dev * dev)if (i<0 )return -ENOMEM ; -/* 32 byte alignment for PMC */ - hw_fib_pa = (dev->hw_fib_pa + (ALIGN32 -1 )) & ~(ALIGN32 -1 ); - dev->hw_fib_va = (struct hw_fib *)((unsigned char *)dev->hw_fib_va + - (hw_fib_pa - dev->hw_fib_pa)); - dev->hw_fib_pa = hw_fib_pa;memset (dev->hw_fib_va,0 , (dev->max_fib_size +sizeof (struct aac_fib_xporthdr )) * (dev->scsi_host_ptr->can_queue +AAC_NUM_MGT_FIB )); +/* 32 byte alignment for PMC */ + hw_fib_pa = (dev->hw_fib_pa + (ALIGN32 -1 )) & ~(ALIGN32 -1 ); + hw_fib = (struct hw_fib *)((unsigned char *)dev->hw_fib_va + + (hw_fib_pa - dev->hw_fib_pa)); +/* add Xport header */ - dev->hw_fib_va = (struct hw_fib *)((unsigned char *)dev->hw_fib_va + + hw_fib = (struct hw_fib *)((unsigned char *)hw_fib +sizeof (struct aac_fib_xporthdr )); - dev->hw_fib_pa +=sizeof (struct aac_fib_xporthdr ); + hw_fib_pa +=sizeof (struct aac_fib_xporthdr ); - hw_fib = dev->hw_fib_va; - hw_fib_pa = dev->hw_fib_pa;/* * Initialise the fibs */
drivers/scsi/aacraid/src.c +17 -4
@@ -359,16 +359,23 @@ static int aac_src_check_health(struct aac_dev *dev)u32 status =src_readl (dev, MUnit.OMR);/* +* Check to see if the board panic'd. +*/ +if (unlikely (status &KERNEL_PANIC )) + goto err_blink; + +/* * Check to see if the board failed any self tests. */ if (unlikely (status &SELF_TEST_FAILED )) -return -1 ; + goto err_out;/* -* Check to see if the board panic'd. +* Check to see if the board failed any self tests. */ -if (unlikely (status &KERNEL_PANIC )) -return (status >>16 ) &0xFF ; +if (unlikely (status &MONITOR_PANIC )) + goto err_out; +/* * Wait for the adapter to be up and running. */
@@ -378,6 +385,12 @@ static int aac_src_check_health(struct aac_dev *dev)* Everything is OK */ return 0 ; + +err_out: +return -1 ; + +err_blink: +return (status >16 ) &0xFF ; }/**
drivers/scsi/storvsc_drv.c +33 -4
@@ -133,6 +133,8 @@ struct hv_fc_wwn_packet {#define SRB_FLAGS_PORT_DRIVER_RESERVED 0x0F000000#define SRB_FLAGS_CLASS_DRIVER_RESERVED 0xF0000000 +#define SP_UNTAGGED ((unsigned char) ~0) +#define SRB_SIMPLE_TAG_REQUEST 0x20/* * Platform neutral description of a scsi request -
@@ -300,11 +302,15 @@ enum storvsc_request_type {*/ #define SRB_STATUS_AUTOSENSE_VALID 0x80 +#define SRB_STATUS_QUEUE_FROZEN 0x40#define SRB_STATUS_INVALID_LUN 0x20#define SRB_STATUS_SUCCESS 0x01#define SRB_STATUS_ABORTED 0x02#define SRB_STATUS_ERROR 0x04 +#define SRB_STATUS_DATA_OVERRUN 0x12 +#define SRB_STATUS (status) \ + (status & ~(SRB_STATUS_AUTOSENSE_VALID | SRB_STATUS_QUEUE_FROZEN))/* * This is the end of Protocol specific defines. */
@@ -1006,9 +1012,16 @@ static void storvsc_handle_error(struct vmscsi_request *vm_srb,void (*process_err_fn)(struct work_struct *work);bool do_work = false; -switch (vm_srb->srb_status) { +switch (SRB_STATUS (vm_srb->srb_status)) {case SRB_STATUS_ERROR :/* +* Let upper layer deal with error when +* sense message is present. +*/ + +if (vm_srb->srb_status &SRB_STATUS_AUTOSENSE_VALID ) +break ; +/* * If there is an error; offline the device since all * error recovery strategies would have already been * deployed on the host side. However, if the command
@@ -1072,6 +1085,7 @@ static void storvsc_command_completion(struct storvsc_cmd_request *cmd_request)void (*scsi_done_fn)(struct scsi_cmnd *);struct scsi_sense_hdr sense_hdr;struct vmscsi_request *vm_srb; +u32 data_transfer_length;struct stor_mem_pools *memp = scmnd->device->hostdata;struct Scsi_Host *host;struct storvsc_device *stor_dev;
@@ -1081,6 +1095,7 @@ static void storvsc_command_completion(struct storvsc_cmd_request *cmd_request) host = stor_dev->host; vm_srb = &cmd_request->vstor_packet.vm_srb; + data_transfer_length = vm_srb->data_transfer_length;if (cmd_request->bounce_sgl_count) {if (vm_srb->data_in ==READ_TYPE ) copy_from_bounce_buffer(scsi_sglist(scmnd),
@@ -1099,13 +1114,20 @@ static void storvsc_command_completion(struct storvsc_cmd_request *cmd_request)scsi_print_sense_hdr ("storvsc" , &sense_hdr); } -if (vm_srb->srb_status !=SRB_STATUS_SUCCESS ) +if (vm_srb->srb_status !=SRB_STATUS_SUCCESS ) {storvsc_handle_error (vm_srb, scmnd, host, sense_hdr.asc, sense_hdr.ascq); +/* +* The Windows driver set data_transfer_length on +* SRB_STATUS_DATA_OVERRUN. On other errors, this value +* is untouched. In these cases we set it to 0. +*/ +if (vm_srb->srb_status !=SRB_STATUS_DATA_OVERRUN ) + data_transfer_length =0 ; + }scsi_set_resid (scmnd, - cmd_request->data_buffer.len - - vm_srb->data_transfer_length); + cmd_request->data_buffer.len - data_transfer_length); scsi_done_fn = scmnd->scsi_done;
@@ -1612,6 +1634,13 @@ static int storvsc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scmnd) vm_srb->win8_extension.srb_flags |=SRB_FLAGS_DISABLE_SYNCH_TRANSFER ; +if (scmnd->device->tagged_supported) { + vm_srb->win8_extension.srb_flags |= + (SRB_FLAGS_QUEUE_ACTION_ENABLE |SRB_FLAGS_NO_QUEUE_FREEZE ); + vm_srb->win8_extension.queue_tag =SP_UNTAGGED ; + vm_srb->win8_extension.queue_action =SRB_SIMPLE_TAG_REQUEST ; + } +/* Build the SRB */ switch (scmnd->sc_data_direction) {case DMA_TO_DEVICE :
drivers/staging/rtl8188eu/core/rtw_recv.c +4 -0
@@ -1419,10 +1419,14 @@ static int wlanhdr_to_ethhdr(struct recv_frame *precvframe) eth_type =0x8712 ;/* append rx status for mp test packets */ ptr =recvframe_pull (precvframe, (rmv_len-sizeof (struct ethhdr )+2 )-24 ); +if (!ptr) +return _FAIL;memcpy (ptr,get_rxmem (precvframe),24 ); ptr +=24 ; }else { ptr =recvframe_pull (precvframe, (rmv_len-sizeof (struct ethhdr ) + (bsnaphdr ?2 :0 ))); +if (!ptr) +return _FAIL; }memcpy (ptr, pattrib->dst,ETH_ALEN );
drivers/staging/rtl8192ee/rtl8192ee/hw.c +1 -1
@@ -1006,7 +1006,7 @@ static void _rtl92ee_hw_configure(struct ieee80211_hw *hw)rtl_write_word (rtlpriv,REG_SIFS_TRX ,0x100a );/* Note Data sheet don't define */ -rtl_write_word (rtlpriv,0x4C7 ,0x80 ); +rtl_write_byte (rtlpriv,0x4C7 ,0x80 );rtl_write_byte (rtlpriv,REG_RX_PKT_LIMIT ,0x20 );
drivers/staging/rtl8712/rtl871x_recv.c +6 -1
@@ -639,11 +639,16 @@ sint r8712_wlanhdr_to_ethhdr(union recv_frame *precvframe)/* append rx status for mp test packets */ ptr =recvframe_pull (precvframe, (rmv_len -sizeof (struct ethhdr ) +2 ) -24 ); +if (!ptr) +return _FAIL;memcpy (ptr,get_rxmem (precvframe),24 ); ptr +=24 ; - }else + }else { ptr =recvframe_pull (precvframe, (rmv_len -sizeof (struct ethhdr ) + (bsnaphdr ?2 :0 ))); +if (!ptr) +return _FAIL; + }memcpy (ptr, pattrib->dst,ETH_ALEN );memcpy (ptr+ETH_ALEN , pattrib->src,ETH_ALEN );
drivers/staging/rtl8821ae/rtl8821ae/hw.c +1 -1
@@ -1098,7 +1098,7 @@ static u8 _rtl8821ae_dbi_read(struct rtl_priv *rtlpriv, u16 addr) }if (0 == tmp) { read_addr =REG_DBI_RDATA + addr %4 ; - ret =rtl_read_word (rtlpriv, read_addr); + ret =rtl_read_byte (rtlpriv, read_addr); }return ret; }
drivers/staging/wlan-ng/p80211netdev.c +1 -1
@@ -257,7 +257,7 @@ static int p80211_convert_to_ether(wlandevice_t *wlandev, struct sk_buff *skb)struct p80211_hdr_a3 *hdr; hdr = (struct p80211_hdr_a3 *) skb->data; -if (p80211_rx_typedrop (wlandev, hdr->fc)) +if (p80211_rx_typedrop (wlandev,le16_to_cpu (hdr->fc)))return CONV_TO_ETHER_SKIPPED ;/* perform mcast filtering: allow my local address through but reject
drivers/tty/serial/8250/8250_pci.c +26 -10
@@ -1661,10 +1661,7 @@ pci_xr17v35x_setup(struct serial_private *priv, struct uart_8250_port *port, int idx) {u8 __iomem *p; - - p =pci_ioremap_bar (priv->dev,0 ); -if (p ==NULL ) -return -ENOMEM ; +int ret; port->port.flags |=UPF_EXAR_EFR ;
@@ -1675,6 +1672,17 @@ pci_xr17v35x_setup(struct serial_private *priv,if (xr17v35x_has_slave (priv) && idx >=8 ) port->port.uartclk = (7812500 *16 /2 ); + ret =pci_default_setup (priv, board, port, idx); +if (ret) +return ret; + + p = port->port.membase; + +writeb (0x00 , p +UART_EXAR_8XMODE ); +writeb (UART_FCTR_EXAR_TRGD , p +UART_EXAR_FCTR ); +writeb (128 , p +UART_EXAR_TXTRG ); +writeb (128 , p +UART_EXAR_RXTRG ); +/* * Setup Multipurpose Input/Output pins. */
@@ -1692,13 +1700,8 @@ pci_xr17v35x_setup(struct serial_private *priv,writeb (0x00 , p +0x99 );/*MPIOSEL[15:8]*/ writeb (0x00 , p +0x9a );/*MPIOOD[15:8]*/ } -writeb (0x00 , p +UART_EXAR_8XMODE ); -writeb (UART_FCTR_EXAR_TRGD , p +UART_EXAR_FCTR ); -writeb (128 , p +UART_EXAR_TXTRG ); -writeb (128 , p +UART_EXAR_RXTRG ); -iounmap (p); -return pci_default_setup (priv, board, port, idx); +return 0 ; }#define PCI_DEVICE_ID_COMMTECH_4222PCI335 0x0004
@@ -2697,6 +2700,8 @@ enum pci_board_num_t { pbn_b0_4_1152000_200, pbn_b0_8_1152000_200, + pbn_b0_4_1250000, + pbn_b0_2_1843200, pbn_b0_4_1843200,
@@ -2927,6 +2932,13 @@ static struct pciserial_board pci_boards[] = { .uart_offset = 0x200, }, + [pbn_b0_4_1250000] = { + .flags = FL_BASE0, + .num_ports = 4, + .base_baud = 1250000, + .uart_offset = 8, + }, + [pbn_b0_2_1843200] = { .flags = FL_BASE0, .num_ports = 2,
@@ -5526,6 +5538,10 @@ static struct pci_device_id serial_pci_tbl[] = { { PCI_DEVICE(0x1c29, 0x1108), .driver_data = pbn_fintek_8 }, { PCI_DEVICE(0x1c29, 0x1112), .driver_data = pbn_fintek_12 }, + /* MKS Tenta SCOM-080x serial cards */ + { PCI_DEVICE(0x1601, 0x0800), .driver_data = pbn_b0_4_1250000 }, + { PCI_DEVICE(0x1601, 0xa801), .driver_data = pbn_b0_4_1250000 }, +/* * These entries match devices with class COMMUNICATION_SERIAL, * COMMUNICATION_MODEM or COMMUNICATION_MULTISERIAL
drivers/tty/serial/msm_serial.c +1 -0
@@ -1054,6 +1054,7 @@ static struct of_device_id msm_match_table[] = { { .compatible = "qcom,msm-uartdm" }, {} }; +MODULE_DEVICE_TABLE (of, msm_match_table);static struct platform_driver msm_platform_driver = { .remove = msm_serial_remove,
drivers/usb/dwc3/gadget.c +6 -0
@@ -1346,6 +1346,9 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value, int protocol)memset (¶ms,0x00 ,sizeof (params));if (value) { +if (dep->flags &DWC3_EP_STALL ) +return 0 ; +if (!protocol && ((dep->direction && dep->flags &DWC3_EP_BUSY ) || (!list_empty (&dep->req_queued) || !list_empty (&dep->request_list)))) {
@@ -1362,6 +1365,9 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value, int protocol)else dep->flags |=DWC3_EP_STALL ; }else { +if (!(dep->flags &DWC3_EP_STALL )) +return 0 ; + ret =dwc3_send_gadget_ep_cmd (dwc, dep->number,DWC3_DEPCMD_CLEARSTALL , ¶ms);if (ret)
drivers/usb/gadget/f_hid.c +72 -29
25 lines not on this page · raw message
drivers/usb/serial/digi_acceleport.c +32 -20
52 lines not on this page · raw message
drivers/usb/serial/io_edgeport.c +33 -15
48 lines not on this page · raw message
drivers/w1/masters/ds2490.c +84 -57
141 lines not on this page · raw message
fs/ext4/inline.c +38 -37
75 lines not on this page · raw message
fs/ext4/inode.c +56 -13
69 lines not on this page · raw message
fs/nfsd/vfs.c +44 -19
63 lines not on this page · raw message
samples/seccomp/bpf-helper.h +72 -53
125 lines not on this page · raw message
security/keys/encrypted-keys/encrypted.c +1 -1
Lines of this file are not shown. View the raw message.
security/keys/process_keys.c +27 -17
44 lines not on this page · raw message
tools/perf/Documentation/perf-script.txt +2 -2
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.