Linux 4.19.9
Greg KH
maintainerI'm announcing the release of the 4.19.9 kernel.
All users of the 4.19 kernel series must upgrade.
The updated 4.19.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/probes/kprobes/opt-arm.c | 2 arch/arm64/boot/dts/rockchip/rk3399-ficus.dts | 12 - arch/arm64/kernel/hibernate.c | 2 arch/parisc/Makefile | 7 arch/riscv/include/asm/module.h | 1 arch/x86/boot/compressed/eboot.c | 65 +++-- arch/x86/kernel/e820.c | 15 - arch/x86/kernel/kprobes/opt.c | 2 crypto/cbc.c | 6 crypto/cfb.c | 6 crypto/pcbc.c | 6 drivers/cpufreq/ti-cpufreq.c | 26 +- drivers/dma/dw/core.c | 6 drivers/dma/imx-sdma.c | 69 +++--- drivers/dma/ti/cppi41.c | 16 + drivers/gnss/sirf.c | 6 drivers/gpio/gpio-mockup.c | 6 drivers/gpio/gpio-pxa.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 7 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 44 ++- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 16 + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 1 drivers/gpu/drm/drm_internal.h | 2 drivers/gpu/drm/drm_lease.c | 2 drivers/gpu/drm/drm_sysfs.c | 10 drivers/gpu/drm/i915/intel_pm.c | 4 drivers/gpu/drm/msm/msm_gem_submit.c | 15 - drivers/hid/hid-ids.h | 8 drivers/hid/hid-input.c | 3 drivers/hid/hid-multitouch.c | 6 drivers/hid/hid-quirks.c | 2 drivers/hid/uhid.c | 13 - drivers/hv/channel_mgmt.c | 189 +++++++++++------ drivers/hv/connection.c | 24 +- drivers/hv/hyperv_vmbus.h | 7 drivers/iommu/amd_iommu_init.c | 3 drivers/iommu/intel-iommu.c | 2 drivers/iommu/intel-svm.c | 2 drivers/iommu/ipmmu-vmsa.c | 3 drivers/media/cec/cec-adap.c | 47 +++- drivers/media/dvb-frontends/dvb-pll.c | 106 ++++----- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 4 drivers/media/platform/omap3isp/isp.c | 3 drivers/media/platform/vicodec/vicodec-core.c | 5 drivers/media/usb/gspca/gspca.c | 11 drivers/mfd/cros_ec_dev.c | 8 drivers/mtd/nand/raw/qcom_nandc.c | 32 +- drivers/mtd/spi-nor/cadence-quadspi.c | 19 + drivers/net/can/rcar/rcar_can.c | 5 drivers/net/can/usb/ucan.c | 3 drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 drivers/net/ethernet/amd/sunlance.c | 4 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 7 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c | 1 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 4 drivers/net/ethernet/faraday/ftmac100.c | 7 drivers/net/ethernet/ibm/ibmvnic.c | 72 ++---- drivers/net/ethernet/ibm/ibmvnic.h | 2 drivers/net/ethernet/mellanox/mlx4/alloc.c | 2 drivers/net/ethernet/mellanox/mlx4/mlx4.h | 4 drivers/net/ethernet/mellanox/mlx4/mr.c | 1 drivers/net/ethernet/qlogic/qed/qed_dcbx.c | 14 - drivers/net/ethernet/qlogic/qed/qed_dev.c | 44 +++ drivers/net/ethernet/qlogic/qed/qed_int.c | 2 drivers/net/ethernet/qlogic/qed/qed_main.c | 2 drivers/net/ethernet/qlogic/qed/qed_rdma.c | 50 ++-- drivers/net/ethernet/qlogic/qed/qed_rdma.h | 5 drivers/net/team/team.c | 2 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c | 3 drivers/net/wireless/mac80211_hwsim.c | 8 drivers/net/wireless/mediatek/mt76/Kconfig | 6 drivers/net/wireless/mediatek/mt76/mac80211.c | 8 drivers/net/wireless/mediatek/mt76/mt76x2_init.c | 6 drivers/nvdimm/nd-core.h | 2 drivers/nvdimm/pfn_devs.c | 64 +++-- drivers/nvdimm/region_devs.c | 41 +++ drivers/nvme/host/fc.c | 73 +++++- drivers/s390/net/ism_drv.c | 2 drivers/s390/virtio/virtio_ccw.c | 17 + drivers/scsi/ufs/ufs-hisi.c | 9 drivers/scsi/ufs/ufs_quirks.h | 6 drivers/scsi/ufs/ufshcd.c | 2 drivers/staging/rtl8712/mlme_linux.c | 2 drivers/staging/rtl8712/rtl871x_mlme.c | 2 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 2 drivers/tty/serial/8250/8250_mtk.c | 16 - drivers/tty/serial/kgdboc.c | 4 drivers/tty/tty_io.c | 11 drivers/tty/tty_port.c | 3 drivers/usb/core/hub.c | 2 drivers/usb/core/quirks.c | 4 drivers/usb/core/usb.c | 6 drivers/usb/dwc2/pci.c | 1 drivers/usb/gadget/function/f_fs.c | 26 -- drivers/usb/host/hwa-hc.c | 2 drivers/usb/host/xhci-pci.c | 4 drivers/usb/host/xhci.c | 42 +++ drivers/usb/host/xhci.h | 3 drivers/usb/misc/appledisplay.c | 1 drivers/usb/serial/console.c | 2 drivers/vhost/vsock.c | 57 ++--- fs/cifs/dir.c | 2 fs/nfs/callback_proc.c | 22 - fs/nfs/flexfilelayout/flexfilelayout.c | 21 - fs/nfs/flexfilelayout/flexfilelayout.h | 4 fs/nfs/flexfilelayout/flexfilelayoutdev.c | 19 + fs/nfs/nfs42proc.c | 19 - fs/nfs/nfs4_fs.h | 2 fs/nfs/nfs4state.c | 16 - include/linux/hyperv.h | 7 include/linux/tty.h | 1 include/linux/usb.h | 4 include/sound/pcm_params.h | 4 lib/test_firmware.c | 1 net/batman-adv/bat_v_elp.c | 6 net/batman-adv/fragmentation.c | 2 net/mac80211/iface.c | 2 net/mac80211/rx.c | 5 net/mac80211/status.c | 2 net/mac80211/tx.c | 4 net/sunrpc/auth_gss/auth_gss.c | 4 net/wireless/util.c | 2 sound/core/pcm_native.c | 14 - sound/pci/hda/hda_intel.c | 4 sound/pci/hda/patch_realtek.c | 27 ++ sound/usb/card.c | 5 sound/usb/quirks.c | 1 tools/testing/selftests/tc-testing/tdc.py | 18 + 130 files changed, 1177 insertions(+), 570 deletions(-)
Alex Deucher (2):
drm/amdgpu/gmc8: update MC firmware for polaris drm/amdgpu/gmc8: always load MC firmware in the driver
Alexander Theissen (1):
usb: appledisplay: Add 27" Apple Cinema Display
Andrew Morton (1):
drivers/net/ethernet/qlogic/qed/qed_rdma.h: fix typo
Andy Shevchenko (1):
dmaengine: dw: Fix FIFO size for Intel Merrifield
Arnd Bergmann (1):
mt76: fix building without CONFIG_LEDS_CLASS
Arthur Kiyanovski (1):
net: ena: fix crash during failed resume from hibernation
Aya Levin (1):
net/mlx4: Fix UBSAN warning of signed integer overflow
Bartosz Golaszewski (1):
gpio: mockup: fix indicated direction
Ben Greear (1):
mac80211: Clear beacon_int in ieee80211_do_stop
Benson Leung (1):
HID: input: Ignore battery reported by Symbol DS4308
Bin Liu (1):
dmaengine: cppi41: delete channel from pending list when stop channel
Brenda J. Butler (1):
tc-testing: tdc.py: Guard against lack of returncode in executed command
Chanho Min (1):
ALSA: pcm: Fix starvation on down_write_nonblock()
Chanho Park (1):
tty: do not set TTY_IO_ERROR flag if console port
Chris Chiu (4):
ALSA: hda/realtek: ALC286 mic and headset-mode fixups for Acer Aspire U27-880
ALSA: hda/realtek - Add support for Acer Aspire C24-860 headset mic
ALSA: hda/realtek: Fix mic issue on Acer AIO Veriton Z4660G
ALSA: hda/realtek: Fix mic issue on Acer AIO Veriton Z4860G/Z6860G
Chris Wilson (1):
drm/i915: Downgrade Gen9 Plane WM latency error
Chuck Lever (1):
SUNRPC: Fix leak of krb5p encode pages
Colin Ian King (1):
test_firmware: fix error return getting clobbered
Dan Carpenter (1):
usb: dwc2: pci: Fix an error code in probe
Dan Williams (1):
libnvdimm, pfn: Pad pfn namespaces relative to other regions
Daniel Vetter (1):
drm/lease: Send a distinct uevent
Dave Gerlach (1):
cpufreq: ti-cpufreq: Only register platform_device when supported
David Abdurachmanov (1):
riscv: fix warning in arch/riscv/include/asm/module.h
David Herrmann (1):
Revert "HID: uhid: use strlcpy() instead of strncpy()"
Denis Bolotin (5):
qed: Fix PTT leak in qed_drain()
qed: Fix overriding offload_tc by protocols without APP TLV
qed: Fix reading wrong value in loop condition
qed: Fix bitmap_weight() check
qed: Fix QM getters to always return a valid pq
Dexuan Cui (1):
Drivers: hv: vmbus: Offload the handling of channels to two workqueues
Emmanuel Grumbach (1):
mac80211: ignore NullFunc frames in the duplicate detection
Enric Balletbo i Serra (1):
Revert "mfd: cros_ec: Use devm_kzalloc for private data"
Eric Snowberg (1):
x86/efi: Allocate e820 buffer before calling efi_exit_boot_service
Fabrizio Castro (1):
can: rcar_can: Fix erroneous registration
Felix Fietkau (2):
mac80211: ignore tx status for PS stations in ieee80211_tx_status_ext
mac80211: fix reordering of buffered broadcast packets
Filippo Sironi (1):
amd/iommu: Fix Guest Virtual APIC Log Tail Address Register
Geert Uytterhoeven (1):
iommu/ipmmu-vmsa: Fix crash on early domain free
Greg Kroah-Hartman (1):
Linux 4.19.9
Halil Pasic (2):
virtio/s390: avoid race on vcdev->config
virtio/s390: fix race in ccw_io_helper()
Hangbin Liu (1):
team: no need to do team_notify_peers or team_mcast_rejoin when disabling port
Hans Verkuil (4):
media: vicodec: lower minimum height to 360
media: cec: check for non-OK/NACK conditions while claiming a LA
media: gspca: fix frame overflow error
media: vicodec: fix memchr() kernel oops
Harry Pan (1):
usb: quirk: add no-LPM quirk on SanDisk Ultra Flair device
Helge Deller (1):
parisc: Enable -ffunction-sections for modules on 32-bit kernel
Hui Peng (1):
ALSA: usb-audio: Fix UAF decrement if card has no live interfaces in card.c
Jack Morgenstein (1):
net/mlx4_core: Zero out lkey field in SW2HW_MPT fw command
James Smart (1):
nvme-fc: resolve io failures during connect
Johan Hovold (2):
USB: serial: console: fix reported terminal settings
gnss: sirf: fix activation retry handling
Jouni Malinen (1):
cfg80211: Fix busy loop regression in ieee80211_ie_split_ric()
Juliet Kim (1):
net/ibmnvic: Fix deadlock problem in reset
Junwei Zhang (1):
drm/amdgpu: update mc firmware image for polaris12 variants
Kai-Heng Feng (2):
HID: multitouch: Add pointstick support for Cirque Touchpad
ALSA: hda: Add support for AMD Stoney Ridge
Kees Cook (1):
ARM: 8806/1: kprobes: Fix false positive with FORTIFY_SOURCE
Lu Baolu (1):
iommu/vt-d: Fix NULL pointer dereference in prq_event_thread()
Lucas Bates (1):
tc-testing: tdc.py: ignore errors when decoding stdout/stderr
Lucas Stach (4):
Revert "dmaengine: imx-sdma: Use GFP_NOWAIT for dma allocations" Revert "dmaengine: imx-sdma: alloclate bd memory from dma pool"
dmaengine: imx-sdma: implement channel termination via worker
dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations
Macpaul Lin (1):
kgdboc: fix KASAN global-out-of-bounds bug in param_set_kgdboc_var()
Masami Hiramatsu (1):
kprobes/x86: Fix instruction patching corruption when copying more than one RIP-relative instruction
Masayoshi Mizuma (1):
Revert "x86/e820: put !E820_TYPE_RAM regions into memblock.reserved"
Mathias Nyman (1):
xhci: Prevent U1/U2 link pm states if exit latency is too long
Mathias Payer (1):
USB: check usb_get_extra_descriptor for proper size
Mauro Carvalho Chehab (2):
media: dvb-pll: fix tuner frequency ranges
media: dvb-pll: don't re-validate tuner frequencies
Michal Kalderon (1):
qed: Fix rdma_info structure allocation
Nic Soudée (1):
HID: quirks: fix RetroUSB.com devices
Nicholas Kazlauskas (2):
drm/amdgpu: Add amdgpu "max bpc" connector property (v2) drm/amd/display: Support amdgpu "max bpc" connector property (v2)
Olga Kornievskaia (1):
NFSv4.2 copy do not allocate memory under the lock
Olof Johansson (1):
mtd: rawnand: qcom: Namespace prefix some commands
Pan Bian (2):
iommu/vt-d: Use memunmap to free memremap
crypto: do not free algorithm before using
Paulo Alcantara (1):
cifs: Fix separator when building path from dentry
Peter Shih (1):
tty: serial: 8250_mtk: always resume the device in probe.
Rafał Miłecki (1):
brcmutil: really fix decoding channel info for 160 MHz bandwidth
Robert Foss (1):
drm/msm: Move fence put to where failure occurs
Robert Jarzmik (1):
gpio: pxa: fix legacy non pinctrl aware builds again
Sakari Ailus (2):
media: omap3isp: Unregister media device as first
media: ipu3-cio2: Unregister device nodes first, then release resources
Sandeep Singh (1):
xhci: workaround CSS timeout on AMD SNPS 3.0 xHC
Sasha Levin (1):
arm64: dts: rockchip: remove vdd_log from rock960 to fix a stability issues
Shen Jing (1):
Revert "usb: gadget: ffs: Fix BUG when userland exits with submitted AIO transfers"
Stefan Hajnoczi (1):
vhost/vsock: fix use-after-free in network stack callers
Sudarsana Reddy Kalluru (1):
bnx2x: Assign unique DMAE channel number for FW DMAE transactions.
Sven Eckelmann (2):
batman-adv: Use explicit tvlv padding for ELP packets
batman-adv: Expand merged fragment buffer for full packet
Takashi Iwai (3):
ALSA: pcm: Call snd_pcm_unlink() conditionally at closing
ALSA: pcm: Fix interval evaluation with openmin/max
ALSA: hda/realtek - Fix speaker output regression on Thinkpad T570
Tariq Toukan (1):
net/mlx4_core: Fix uninitialized variable compilation warning
Thomas Falcon (2):
ibmvnic: Fix RX queue buffer cleanup
ibmvnic: Update driver queues after change in ring size support
Thor Thayer (1):
mtd: spi-nor: Fix Cadence QSPI page fault kernel panic
Tigran Mkrtchyan (1):
flexfiles: use per-mirror specified stateid for IO
Tony Das (1):
ALSA: usb-audio: Add SMSL D1 to quirks for native DSD support
Trond Myklebust (1):
NFSv4: Fix a NFSv4 state manager deadlock
Ursula Braun (1):
s390/ism: clear dmbe_mask bit before SMC IRQ handling
Vasundhara Volam (1):
bnxt_en: Fix filling time in bnxt_fill_coredump_record()
Vasyl Vavrychuk (1):
mac80211_hwsim: Timer should be initialized before device registered
Vincent Chen (1):
net: faraday: ftmac100: remove netif_running(netdev) check before disabling interrupts
Wei Li (1):
scsi: ufs: Fix hynix ufs bug with quirk on hi36xx SoC
Will Deacon (1):
arm64: hibernate: Avoid sending cross-calling with interrupts disabled
Yan-Hsuan Chuang (1):
mac80211: fix GFP_KERNEL under tasklet context
Yangtao Li (1):
net: amd: add missing of_node_put()
Young Xiao (2):
staging: rtl8712: Fix possible buffer overrun
Revert commit ef9209b642f "staging: rtl8723bs: Fix indenting errors and an off-by-one mistake in core/rtw_mlme_ext.c"
YueHaibing (1):
can: ucan: remove set but not used variable 'udev'
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 8 +SUBLEVEL = 9 EXTRAVERSION = NAME = "People's Front"
arch/arm/probes/kprobes/opt-arm.c +1 -1
@@ -247,7 +247,7 @@ int arch_prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *or }/* Copy arch-dep-instance from template. */ -memcpy (code, &optprobe_template_entry, +memcpy (code, (unsigned char *)optprobe_template_entry,TMPL_END_IDX *sizeof (kprobe_opcode_t));/* Adjust buffer according to instruction. */
arch/arm64/boot/dts/rockchip/rk3399-ficus.dts +0 -12
@@ -75,18 +75,6 @@ regulator-always-on; vin-supply = <&vcc_sys>; }; - - vdd_log: vdd-log { - compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 0>; - regulator-name = "vdd_log"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <1400000>; - regulator-always-on; - regulator-boot-on; - vin-supply = <&vcc_sys>; - }; - }; &cpu_l0 {
arch/arm64/kernel/hibernate.c +1 -1
@@ -214,7 +214,7 @@ static int create_safe_exec_page(void *src_start, size_t length, }memcpy ((void *)dst, src_start, length); -flush_icache_range (dst, dst + length); +__flush_icache_range (dst, dst + length); pgdp =pgd_offset_raw (allocator (mask), dst_addr);if (pgd_none (READ_ONCE (*pgdp))) {
arch/parisc/Makefile +7 -0
@@ -71,6 +71,13 @@ ifdef CONFIG_MLONGCALLS KBUILD_CFLAGS_KERNEL += -mlong-calls endif +# Without this, "ld -r" results in .text sections that are too big (> 0x40000) +# for branches to reach stubs. And multiple .text sections trigger a warning +# when creating the sysfs module information section. +ifndef CONFIG_64BIT +KBUILD_CFLAGS_MODULE += -ffunction-sections +endif + # select which processor to optimise for cflags-$(CONFIG_PA7000) += -march=1.1 -mschedule=7100 cflags-$(CONFIG_PA7200) += -march=1.1 -mschedule=7200
arch/riscv/include/asm/module.h +1 -0
@@ -8,6 +8,7 @@#define MODULE_ARCH_VERMAGIC "riscv" +struct module ;u64 module_emit_got_entry (struct module *mod,u64 val);u64 module_emit_plt_entry (struct module *mod,u64 val);
arch/x86/boot/compressed/eboot.c +41 -24
106 lines not on this page · raw message
arch/x86/kernel/e820.c +3 -12
@@ -1248,7 +1248,6 @@ void __init e820__memblock_setup(void) {int i;u64 end; -u64 addr =0 ;/* * The bootstrap memblock region count maximum is 128 entries
@@ -1265,21 +1264,13 @@ void __init e820__memblock_setup(void)struct e820_entry *entry = &e820_table->entries[i]; end = entry->addr + entry->size; -if (addr < entry->addr) -memblock_reserve (addr, entry->addr - addr); - addr = end;if (end != (resource_size_t )end)continue ; -/* -* all !E820_TYPE_RAM ranges (including gap ranges) are put -* into memblock.reserved to make sure that struct pages in -* such regions are not left uninitialized after bootup. -*/ if (entry->type !=E820_TYPE_RAM && entry->type !=E820_TYPE_RESERVED_KERN ) -memblock_reserve (entry->addr, entry->size); -else -memblock_add (entry->addr, entry->size); +continue ; + +memblock_add (entry->addr, entry->size); }/* Throw away partial pages: */
arch/x86/kernel/kprobes/opt.c +1 -1
@@ -189,7 +189,7 @@ static int copy_optimized_instructions(u8 *dest, u8 *src, u8 *real)int len =0 , ret;while (len <RELATIVEJUMP_SIZE ) { - ret =__copy_instruction (dest + len, src + len, real, &insn); + ret =__copy_instruction (dest + len, src + len, real + len, &insn);if (!ret || !can_boost (&insn, src + len))return -EINVAL ; len += ret;
crypto/cbc.c +4 -2
@@ -140,9 +140,8 @@ static int crypto_cbc_create(struct crypto_template *tmpl, struct rtattr **tb) spawn =skcipher_instance_ctx (inst); err =crypto_init_spawn (spawn, alg,skcipher_crypto_instance (inst),CRYPTO_ALG_TYPE_MASK ); -crypto_mod_put (alg);if (err) - goto err_free_inst; + goto err_put_alg; err =crypto_inst_setname (skcipher_crypto_instance (inst),"cbc" , alg);if (err)
@@ -174,12 +173,15 @@ static int crypto_cbc_create(struct crypto_template *tmpl, struct rtattr **tb) err =skcipher_register_instance (tmpl, inst);if (err) goto err_drop_spawn; +crypto_mod_put (alg); out:return err; err_drop_spawn:crypto_drop_spawn (spawn); +err_put_alg: +crypto_mod_put (alg); err_free_inst:kfree (inst); goto out;
crypto/cfb.c +4 -2
@@ -286,9 +286,8 @@ static int crypto_cfb_create(struct crypto_template *tmpl, struct rtattr **tb) spawn =skcipher_instance_ctx (inst); err =crypto_init_spawn (spawn, alg,skcipher_crypto_instance (inst),CRYPTO_ALG_TYPE_MASK ); -crypto_mod_put (alg);if (err) - goto err_free_inst; + goto err_put_alg; err =crypto_inst_setname (skcipher_crypto_instance (inst),"cfb" , alg);if (err)
@@ -317,12 +316,15 @@ static int crypto_cfb_create(struct crypto_template *tmpl, struct rtattr **tb) err =skcipher_register_instance (tmpl, inst);if (err) goto err_drop_spawn; +crypto_mod_put (alg); out:return err; err_drop_spawn:crypto_drop_spawn (spawn); +err_put_alg: +crypto_mod_put (alg); err_free_inst:kfree (inst); goto out;
crypto/pcbc.c +4 -2
@@ -244,9 +244,8 @@ static int crypto_pcbc_create(struct crypto_template *tmpl, struct rtattr **tb) spawn =skcipher_instance_ctx (inst); err =crypto_init_spawn (spawn, alg,skcipher_crypto_instance (inst),CRYPTO_ALG_TYPE_MASK ); -crypto_mod_put (alg);if (err) - goto err_free_inst; + goto err_put_alg; err =crypto_inst_setname (skcipher_crypto_instance (inst),"pcbc" , alg);if (err)
@@ -275,12 +274,15 @@ static int crypto_pcbc_create(struct crypto_template *tmpl, struct rtattr **tb) err =skcipher_register_instance (tmpl, inst);if (err) goto err_drop_spawn; +crypto_mod_put (alg); out:return err; err_drop_spawn:crypto_drop_spawn (spawn); +err_put_alg: +crypto_mod_put (alg); err_free_inst:kfree (inst); goto out;
drivers/cpufreq/ti-cpufreq.c +21 -5
@@ -201,19 +201,28 @@ static const struct of_device_id ti_cpufreq_of_match[] = { {}, }; +static const struct of_device_id *ti_cpufreq_match_node (void ) +{ +struct device_node *np; +const struct of_device_id *match; + + np =of_find_node_by_path ("/" ); + match =of_match_node (ti_cpufreq_of_match, np); +of_node_put (np); + +return match; +} +static int ti_cpufreq_probe (struct platform_device *pdev) {u32 version[VERSION_COUNT ]; -struct device_node *np;const struct of_device_id *match;struct opp_table *ti_opp_table;struct ti_cpufreq_data *opp_data;const char *const reg_names[] = {"vdd" ,"vbb" };int ret; - np =of_find_node_by_path ("/" ); - match =of_match_node (ti_cpufreq_of_match, np); -of_node_put (np); + match =dev_get_platdata (&pdev->dev);if (!match)return -ENODEV ;
@@ -290,7 +299,14 @@ static int ti_cpufreq_probe(struct platform_device *pdev)static int ti_cpufreq_init (void ) { -platform_device_register_simple ("ti-cpufreq" ,-1 ,NULL ,0 ); +const struct of_device_id *match; + +/* Check to ensure we are on a compatible platform */ + match =ti_cpufreq_match_node (); +if (match) +platform_device_register_data (NULL ,"ti-cpufreq" ,-1 , match, +sizeof (*match)); +return 0 ; }module_init (ti_cpufreq_init);
drivers/dma/dw/core.c +3 -3
@@ -1064,12 +1064,12 @@ static void dwc_issue_pending(struct dma_chan *chan)/* * Program FIFO size of channels. * -* By default full FIFO (1024 bytes) is assigned to channel 0. Here we +* By default full FIFO (512 bytes) is assigned to channel 0. Here we * slice FIFO on equal parts between channels. */ static void idma32_fifo_partition (struct dw_dma *dw) { -u64 value =IDMA32C_FP_PSIZE_CH0 (128 ) |IDMA32C_FP_PSIZE_CH1 (128 ) | +u64 value =IDMA32C_FP_PSIZE_CH0 (64 ) |IDMA32C_FP_PSIZE_CH1 (64 ) |IDMA32C_FP_UPDATE ;u64 fifo_partition =0 ;
@@ -1082,7 +1082,7 @@ static void idma32_fifo_partition(struct dw_dma *dw)/* Fill FIFO_PARTITION high bits (Channels 2..3, 6..7) */ fifo_partition |= value <<32 ; -/* Program FIFO Partition registers - 128 bytes for each channel */ +/* Program FIFO Partition registers - 64 bytes per channel */ idma32_writeq (dw,FIFO_PARTITION1 , fifo_partition);idma32_writeq (dw,FIFO_PARTITION0 , fifo_partition); }
drivers/dma/imx-sdma.c +44 -25
151 lines not on this page · raw message
drivers/dma/ti/cppi41.c +15 -1
@@ -723,8 +723,22 @@ static int cppi41_stop_chan(struct dma_chan *chan) desc_phys =lower_32_bits (c->desc_phys); desc_num = (desc_phys - cdd->descs_phys) /sizeof (struct cppi41_desc ); -if (!cdd->chan_busy[desc_num]) +if (!cdd->chan_busy[desc_num]) { +struct cppi41_channel *cc, *_ct; + +/* +* channels might still be in the pendling list if +* cppi41_dma_issue_pending() is called after +* cppi41_runtime_suspend() is called +*/ +list_for_each_entry_safe (cc, _ct, &cdd->pending, node) { +if (cc != c) +continue ; +list_del (&cc->node); +break ; + }return 0 ; + } ret =cppi41_tear_down_chan (c);if (ret)
drivers/gnss/sirf.c +3 -3
@@ -168,7 +168,7 @@ static int sirf_set_active(struct sirf_data *data, bool active)else timeout =SIRF_HIBERNATE_TIMEOUT ; -while (retries-- >0 ) { + do { sirf_pulse_on_off(data); ret = sirf_wait_for_power_state(data, active, timeout); if (ret < 0) {
@@ -179,9 +179,9 @@ static int sirf_set_active(struct sirf_data *data, bool active) }break ; - } + }while (retries--); -if (retries ==0 ) +if (retries <0 )return -ETIMEDOUT ;return 0 ;
drivers/gpio/gpio-mockup.c +3 -3
@@ -32,8 +32,8 @@#define gpio_mockup_err (...) pr_err(GPIO_MOCKUP_NAME ": " __VA_ARGS__)enum { -GPIO_MOCKUP_DIR_OUT =0 , -GPIO_MOCKUP_DIR_IN =1 , +GPIO_MOCKUP_DIR_IN =0 , +GPIO_MOCKUP_DIR_OUT =1 , };/*
@@ -135,7 +135,7 @@ static int gpio_mockup_get_direction(struct gpio_chip *gc, unsigned int offset) {struct gpio_mockup_chip *chip =gpiochip_get_data (gc); -return chip->lines[offset].dir; +return !chip->lines[offset].dir; }static int gpio_mockup_to_irq (struct gpio_chip *gc,unsigned int offset)
drivers/gpio/gpio-pxa.c +2 -2
@@ -268,8 +268,8 @@ static int pxa_gpio_direction_input(struct gpio_chip *chip, unsigned offset)if (pxa_gpio_has_pinctrl ()) { ret =pinctrl_gpio_direction_input (chip->base + offset); -if (!ret) -return 0 ; +if (ret) +return ret; }spin_lock_irqsave (&gpio_lock, flags);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +7 -0
@@ -626,6 +626,13 @@ int amdgpu_display_modeset_create_props(struct amdgpu_device *adev)"dither" , amdgpu_dither_enum_list, sz); +if (amdgpu_device_has_dc_support (adev)) { + adev->mode_info.max_bpc_property = +drm_property_create_range (adev->ddev,0 ,"max bpc" ,8 ,16 ); +if (!adev->mode_info.max_bpc_property) +return -ENOMEM ; + } +return 0 ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +2 -0
@@ -339,6 +339,8 @@ struct amdgpu_mode_info {struct drm_property *audio_property;/* FMT dithering */ struct drm_property *dither_property; +/* maximum number of bits per channel for monitor color */ +struct drm_property *max_bpc_property;/* hardcoded DFP edid from BIOS */ struct edid *bios_hardcoded_edid;int bios_hardcoded_edid_size;
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +33 -11
72 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +16 -0
@@ -2213,8 +2213,15 @@ static void update_stream_scaling_settings(const struct drm_display_mode *mode,static enum dc_color_depth convert_color_depth_from_display_info (const struct drm_connector *connector) { +struct dm_connector_state *dm_conn_state = +to_dm_connector_state (connector->state);uint32_t bpc = connector->display_info.bpc; +/* TODO: Remove this when there's support for max_bpc in drm */ +if (dm_conn_state && bpc > dm_conn_state->max_bpc) +/* Round down to nearest even number. */ + bpc = dm_conn_state->max_bpc - (dm_conn_state->max_bpc &1 ); +switch (bpc) {case 0 :/* Temporary Work around, DRM don't parse color depth for
@@ -2796,6 +2803,9 @@ int amdgpu_dm_connector_atomic_set_property(struct drm_connector *connector, }else if (property == adev->mode_info.underscan_property) { dm_new_state->underscan_enable = val; ret =0 ; + }else if (property == adev->mode_info.max_bpc_property) { + dm_new_state->max_bpc = val; + ret =0 ; }return ret;
@@ -2838,6 +2848,9 @@ int amdgpu_dm_connector_atomic_get_property(struct drm_connector *connector, }else if (property == adev->mode_info.underscan_property) { *val = dm_state->underscan_enable; ret =0 ; + }else if (property == adev->mode_info.max_bpc_property) { + *val = dm_state->max_bpc; + ret =0 ; }return ret; }
@@ -3658,6 +3671,9 @@ void amdgpu_dm_connector_init_helper(struct amdgpu_display_manager *dm,drm_object_attach_property (&aconnector->base.base, adev->mode_info.underscan_vborder_property,0 ); +drm_object_attach_property (&aconnector->base.base, + adev->mode_info.max_bpc_property, +0 ); }
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +1 -0
@@ -213,6 +213,7 @@ struct dm_connector_state {enum amdgpu_rmx_type scaling;uint8_t underscan_vborder;uint8_t underscan_hborder; +uint8_t max_bpc;bool underscan_enable;struct mod_freesync_user_enable user_enable;bool freesync_capable;
drivers/gpu/drm/drm_internal.h +2 -0
@@ -99,6 +99,8 @@ struct device *drm_sysfs_minor_alloc(struct drm_minor *minor);int drm_sysfs_connector_add (struct drm_connector *connector);void drm_sysfs_connector_remove (struct drm_connector *connector); +void drm_sysfs_lease_event (struct drm_device *dev); +/* drm_gem.c */ int drm_gem_init (struct drm_device *dev);void drm_gem_destroy (struct drm_device *dev);
drivers/gpu/drm/drm_lease.c +1 -1
@@ -296,7 +296,7 @@ void drm_lease_destroy(struct drm_master *master)if (master->lessor) {/* Tell the master to check the lessee list */ -drm_sysfs_hotplug_event (dev); +drm_sysfs_lease_event (dev);drm_master_put (&master->lessor); }
drivers/gpu/drm/drm_sysfs.c +10 -0
@@ -301,6 +301,16 @@ void drm_sysfs_connector_remove(struct drm_connector *connector) connector->kdev =NULL ; } +void drm_sysfs_lease_event (struct drm_device *dev) +{ +char *event_string ="LEASE=1" ; +char *envp[] = { event_string,NULL }; + +DRM_DEBUG ("generating lease event\n" ); + +kobject_uevent_env (&dev->primary->kdev->kobj,KOBJ_CHANGE , envp); +} +/** * drm_sysfs_hotplug_event - generate a DRM uevent * @dev: DRM device
drivers/gpu/drm/i915/intel_pm.c +2 -2
@@ -2951,8 +2951,8 @@ static void intel_print_wm_latency(struct drm_i915_private *dev_priv,unsigned int latency = wm[level];if (latency ==0 ) { -DRM_ERROR ("%s WM%d latency not provided\n" , - name, level); +DRM_DEBUG_KMS ("%s WM%d latency not provided\n" , + name, level);continue ; }
drivers/gpu/drm/msm/msm_gem_submit.c +8 -7
@@ -410,7 +410,6 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data,struct msm_file_private *ctx = file->driver_priv;struct msm_gem_submit *submit;struct msm_gpu *gpu = priv->gpu; -struct dma_fence *in_fence =NULL ;struct sync_file *sync_file =NULL ;struct msm_gpu_submitqueue *queue;struct msm_ringbuffer *ring;
@@ -443,6 +442,8 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data, ring = gpu->rb[queue->prio];if (args->flags &MSM_SUBMIT_FENCE_FD_IN ) { +struct dma_fence *in_fence; + in_fence =sync_file_get_fence (args->fence_fd);if (!in_fence)
@@ -452,11 +453,13 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data,* Wait if the fence is from a foreign context, or if the fence * array contains any fence from a foreign context. */ -if (!dma_fence_match_context (in_fence, ring->fctx->context)) { + ret =0 ; +if (!dma_fence_match_context (in_fence, ring->fctx->context)) ret =dma_fence_wait (in_fence, true); -if (ret) -return ret; - } + +dma_fence_put (in_fence); +if (ret) +return ret; } ret =mutex_lock_interruptible (&dev->struct_mutex);
@@ -582,8 +585,6 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data, } out: -if (in_fence) -dma_fence_put (in_fence);submit_cleanup (submit);if (ret)msm_gem_submit_free (submit);
drivers/hid/hid-ids.h +8 -0
@@ -271,6 +271,9 @@#define USB_VENDOR_ID_CIDC 0x1677 +#define I2C_VENDOR_ID_CIRQUE 0x0488 +#define I2C_PRODUCT_ID_CIRQUE_121F 0x121F +#define USB_VENDOR_ID_CJTOUCH 0x24b8#define USB_DEVICE_ID_CJTOUCH_MULTI_TOUCH_0020 0x0020#define USB_DEVICE_ID_CJTOUCH_MULTI_TOUCH_0040 0x0040
@@ -931,6 +934,10 @@#define USB_VENDOR_ID_REALTEK 0x0bda#define USB_DEVICE_ID_REALTEK_READER 0x0152 +#define USB_VENDOR_ID_RETROUSB 0xf000 +#define USB_DEVICE_ID_RETROUSB_SNES_RETROPAD 0x0003 +#define USB_DEVICE_ID_RETROUSB_SNES_RETROPORT 0x00f1 +#define USB_VENDOR_ID_ROCCAT 0x1e7d#define USB_DEVICE_ID_ROCCAT_ARVO 0x30d4#define USB_DEVICE_ID_ROCCAT_ISKU 0x319c
@@ -1038,6 +1045,7 @@#define USB_VENDOR_ID_SYMBOL 0x05e0#define USB_DEVICE_ID_SYMBOL_SCANNER_1 0x0800#define USB_DEVICE_ID_SYMBOL_SCANNER_2 0x1300 +#define USB_DEVICE_ID_SYMBOL_SCANNER_3 0x1200#define USB_VENDOR_ID_SYNAPTICS 0x06cb#define USB_DEVICE_ID_SYNAPTICS_TP 0x0001
drivers/hid/hid-input.c +3 -0
@@ -325,6 +325,9 @@ static const struct hid_device_id hid_battery_quirks[] = { {HID_BLUETOOTH_DEVICE (USB_VENDOR_ID_ELECOM ,USB_DEVICE_ID_ELECOM_BM084 ), HID_BATTERY_QUIRK_IGNORE }, + { HID_USB_DEVICE(USB_VENDOR_ID_SYMBOL, +USB_DEVICE_ID_SYMBOL_SCANNER_3 ), + HID_BATTERY_QUIRK_IGNORE }, {} };
drivers/hid/hid-multitouch.c +6 -0
@@ -1822,6 +1822,12 @@ static const struct hid_device_id mt_devices[] = { MT_USB_DEVICE(USB_VENDOR_ID_CHUNGHWAT, USB_DEVICE_ID_CHUNGHWAT_MULTITOUCH) }, +/* Cirque devices */ + { .driver_data = MT_CLS_WIN_8_DUAL, +HID_DEVICE (BUS_I2C ,HID_GROUP_MULTITOUCH_WIN_8 , +I2C_VENDOR_ID_CIRQUE , + I2C_PRODUCT_ID_CIRQUE_121F) }, + /* CJTouch panels */ { .driver_data = MT_CLS_NSMU, MT_USB_DEVICE(USB_VENDOR_ID_CJTOUCH,
drivers/hid/hid-quirks.c +2 -0
@@ -136,6 +136,8 @@ static const struct hid_device_id hid_quirks[] = { { HID_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3003), HID_QUIRK_NOGET }, { HID_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3008), HID_QUIRK_NOGET }, { HID_USB_DEVICE(USB_VENDOR_ID_REALTEK, USB_DEVICE_ID_REALTEK_READER), HID_QUIRK_NO_INIT_REPORTS }, + { HID_USB_DEVICE(USB_VENDOR_ID_RETROUSB, USB_DEVICE_ID_RETROUSB_SNES_RETROPAD), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE }, + { HID_USB_DEVICE(USB_VENDOR_ID_RETROUSB, USB_DEVICE_ID_RETROUSB_SNES_RETROPORT), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE }, { HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RUMBLEPAD), HID_QUIRK_BADPAD }, { HID_USB_DEVICE(USB_VENDOR_ID_SEMICO, USB_DEVICE_ID_SEMICO_USB_KEYKOARD2), HID_QUIRK_NO_INIT_REPORTS }, { HID_USB_DEVICE(USB_VENDOR_ID_SEMICO, USB_DEVICE_ID_SEMICO_USB_KEYKOARD), HID_QUIRK_NO_INIT_REPORTS },
drivers/hid/uhid.c +7 -6
@@ -497,12 +497,13 @@ static int uhid_dev_create2(struct uhid_device *uhid, goto err_free; } - len =min (sizeof (hid->name),sizeof (ev->u.create2.name)); -strlcpy (hid->name, ev->u.create2.name, len); - len =min (sizeof (hid->phys),sizeof (ev->u.create2.phys)); -strlcpy (hid->phys, ev->u.create2.phys, len); - len =min (sizeof (hid->uniq),sizeof (ev->u.create2.uniq)); -strlcpy (hid->uniq, ev->u.create2.uniq, len); +/* @hid is zero-initialized, strncpy() is correct, strlcpy() not */ + len =min (sizeof (hid->name),sizeof (ev->u.create2.name)) -1 ; +strncpy (hid->name, ev->u.create2.name, len); + len =min (sizeof (hid->phys),sizeof (ev->u.create2.phys)) -1 ; +strncpy (hid->phys, ev->u.create2.phys, len); + len =min (sizeof (hid->uniq),sizeof (ev->u.create2.uniq)) -1 ; +strncpy (hid->uniq, ev->u.create2.uniq, len); hid->ll_driver = &uhid_hid_driver; hid->bus = ev->u.create2.bus;
drivers/hv/channel_mgmt.c +126 -63
253 lines not on this page · raw message
drivers/hv/connection.c +21 -3
@@ -190,6 +190,20 @@ int vmbus_connect(void) goto cleanup; } + vmbus_connection.handle_primary_chan_wq = +create_workqueue ("hv_pri_chan" ); +if (!vmbus_connection.handle_primary_chan_wq) { + ret = -ENOMEM ; + goto cleanup; + } + + vmbus_connection.handle_sub_chan_wq = +create_workqueue ("hv_sub_chan" ); +if (!vmbus_connection.handle_sub_chan_wq) { + ret = -ENOMEM ; + goto cleanup; + } +INIT_LIST_HEAD (&vmbus_connection.chn_msg_list);spin_lock_init (&vmbus_connection.channelmsg_lock);
@@ -280,10 +294,14 @@ void vmbus_disconnect(void)*/ vmbus_initiate_unload (false); -if (vmbus_connection.work_queue) { -drain_workqueue (vmbus_connection.work_queue); +if (vmbus_connection.handle_sub_chan_wq) +destroy_workqueue (vmbus_connection.handle_sub_chan_wq); + +if (vmbus_connection.handle_primary_chan_wq) +destroy_workqueue (vmbus_connection.handle_primary_chan_wq); + +if (vmbus_connection.work_queue)destroy_workqueue (vmbus_connection.work_queue); - }if (vmbus_connection.int_page) {free_pages ((unsigned long )vmbus_connection.int_page,0 );
drivers/hv/hyperv_vmbus.h +7 -0
@@ -335,7 +335,14 @@ struct vmbus_connection {struct list_head chn_list;struct mutex channel_mutex; +/* +* An offer message is handled first on the work_queue, and then +* is further handled on handle_primary_chan_wq or +* handle_sub_chan_wq. +*/ struct workqueue_struct *work_queue; +struct workqueue_struct *handle_primary_chan_wq; +struct workqueue_struct *handle_sub_chan_wq; };
drivers/iommu/amd_iommu_init.c +2 -1
@@ -797,7 +797,8 @@ static int iommu_init_ga_log(struct amd_iommu *iommu) entry =iommu_virt_to_phys (iommu->ga_log) |GA_LOG_SIZE_512 ;memcpy_toio (iommu->mmio_base +MMIO_GA_LOG_BASE_OFFSET , &entry,sizeof (entry)); - entry = (iommu_virt_to_phys (iommu->ga_log) &0xFFFFFFFFFFFFFULL ) & ~7ULL ; + entry = (iommu_virt_to_phys (iommu->ga_log_tail) & + (BIT_ULL (52 )-1 )) & ~7ULL ;memcpy_toio (iommu->mmio_base +MMIO_GA_LOG_TAIL_OFFSET , &entry,sizeof (entry));writel (0x00 , iommu->mmio_base +MMIO_GA_HEAD_OFFSET );
drivers/iommu/intel-iommu.c +1 -1
@@ -3100,7 +3100,7 @@ static int copy_context_table(struct intel_iommu *iommu, }if (old_ce) -iounmap (old_ce); +memunmap (old_ce); ret =0 ;if (devfn <0x80 )
drivers/iommu/intel-svm.c +1 -1
@@ -596,7 +596,7 @@ static irqreturn_t prq_event_thread(int irq, void *d)pr_err ("%s: Page request without PASID: %08llx %08llx\n" , iommu->name, ((unsigned long long *)req)[0 ], ((unsigned long long *)req)[1 ]); - goto bad_req; + goto no_pasid; }if (!svm || svm->pasid != req->pasid) {
drivers/iommu/ipmmu-vmsa.c +3 -0
@@ -501,6 +501,9 @@ static int ipmmu_domain_init_context(struct ipmmu_vmsa_domain *domain)static void ipmmu_domain_destroy_context (struct ipmmu_vmsa_domain *domain) { +if (!domain->mmu) +return ; +/* * Disable the context. Flush the TLB as required when modifying the * context registers.
drivers/media/cec/cec-adap.c +37 -10
62 lines not on this page · raw message
drivers/media/dvb-frontends/dvb-pll.c +48 -58
250 lines not on this page · raw message
drivers/media/pci/intel/ipu3/ipu3-cio2.c +2 -2
@@ -1846,12 +1846,12 @@ static void cio2_pci_remove(struct pci_dev *pci_dev)struct cio2_device *cio2 =pci_get_drvdata (pci_dev);unsigned int i; +media_device_unregister (&cio2->media_dev);cio2_notifier_exit (cio2); -cio2_fbpt_exit_dummy (cio2);for (i =0 ; i <CIO2_QUEUES ; i++)cio2_queue_exit (cio2, &cio2->queue[i]); +cio2_fbpt_exit_dummy (cio2);v4l2_device_unregister (&cio2->v4l2_dev); -media_device_unregister (&cio2->media_dev);media_device_cleanup (&cio2->media_dev);mutex_destroy (&cio2->lock); }
drivers/media/platform/omap3isp/isp.c +2 -1
@@ -1587,6 +1587,8 @@ static void isp_pm_complete(struct device *dev)static void isp_unregister_entities (struct isp_device *isp) { +media_device_unregister (&isp->media_dev); +omap3isp_csi2_unregister_entities (&isp->isp_csi2a);omap3isp_ccp2_unregister_entities (&isp->isp_ccp2);omap3isp_ccdc_unregister_entities (&isp->isp_ccdc);
@@ -1597,7 +1599,6 @@ static void isp_unregister_entities(struct isp_device *isp)omap3isp_stat_unregister_entities (&isp->isp_hist);v4l2_device_unregister (&isp->v4l2_dev); -media_device_unregister (&isp->media_dev);media_device_cleanup (&isp->media_dev); }
drivers/media/platform/vicodec/vicodec-core.c +3 -2
@@ -42,7 +42,7 @@ MODULE_PARM_DESC(debug, " activates debug info");#define MAX_WIDTH 4096U#define MIN_WIDTH 640U#define MAX_HEIGHT 2160U -#define MIN_HEIGHT 480U +#define MIN_HEIGHT 360U #define dprintk(dev, fmt, arg...) \ v4l2_dbg(1, debug, &dev->v4l2_dev, "%s: " fmt, __func__, ## arg)
@@ -438,7 +438,8 @@ static int job_ready(void *priv)for (; p < p_out + sz; p++) {u32 copy; - p =memchr (p, magic[ctx->comp_magic_cnt], sz); + p =memchr (p, magic[ctx->comp_magic_cnt], + p_out + sz - p);if (!p) { ctx->comp_magic_cnt =0 ;break ;
drivers/media/usb/gspca/gspca.c +6 -5
@@ -426,10 +426,10 @@ void gspca_frame_add(struct gspca_dev *gspca_dev,/* append the packet to the frame buffer */ if (len >0 ) { -if (gspca_dev->image_len + len > gspca_dev->pixfmt.sizeimage) { +if (gspca_dev->image_len + len >PAGE_ALIGN (gspca_dev->pixfmt.sizeimage)) {gspca_err (gspca_dev,"frame overflow %d > %d\n" , gspca_dev->image_len + len, - gspca_dev->pixfmt.sizeimage); +PAGE_ALIGN (gspca_dev->pixfmt.sizeimage)); packet_type =DISCARD_PACKET ; }else {/* !! image is NULL only when last pkt is LAST or DISCARD
@@ -1297,18 +1297,19 @@ static int gspca_queue_setup(struct vb2_queue *vq, unsigned int sizes[], struct device *alloc_devs[]) { struct gspca_dev *gspca_dev = vb2_get_drv_priv(vq); +unsigned int size =PAGE_ALIGN (gspca_dev->pixfmt.sizeimage);if (*nplanes) -return sizes[0 ] < gspca_dev->pixfmt.sizeimage ? -EINVAL :0 ; +return sizes[0 ] < size ? -EINVAL :0 ; *nplanes =1 ; - sizes[0 ] = gspca_dev->pixfmt.sizeimage; + sizes[0 ] = size;return 0 ; }static int gspca_buffer_prepare (struct vb2_buffer *vb) {struct gspca_dev *gspca_dev =vb2_get_drv_priv (vb->vb2_queue); -unsigned long size = gspca_dev->pixfmt.sizeimage; +unsigned long size =PAGE_ALIGN (gspca_dev->pixfmt.sizeimage);if (vb2_plane_size (vb,0 ) < size) { gspca_err(gspca_dev, "buffer too small (%lu < %lu)\n",
drivers/mfd/cros_ec_dev.c +7 -1
@@ -263,6 +263,11 @@ static const struct file_operations fops = {#endif }; +static void cros_ec_class_release (struct device *dev) +{ +kfree (to_cros_ec_dev (dev)); +} +static void cros_ec_sensors_register (struct cros_ec_dev *ec) {/*
@@ -395,7 +400,7 @@ static int ec_device_probe(struct platform_device *pdev)int retval = -ENOMEM ;struct device *dev = &pdev->dev;struct cros_ec_platform *ec_platform =dev_get_platdata (dev); -struct cros_ec_dev *ec =devm_kzalloc (dev,sizeof (*ec),GFP_KERNEL ); +struct cros_ec_dev *ec =kzalloc (sizeof (*ec),GFP_KERNEL );if (!ec)return retval;
@@ -417,6 +422,7 @@ static int ec_device_probe(struct platform_device *pdev) ec->class_dev.devt =MKDEV (ec_major, pdev->id); ec->class_dev.class = &cros_class; ec->class_dev.parent = dev; + ec->class_dev.release = cros_ec_class_release; retval =dev_set_name (&ec->class_dev,"%s" , ec_platform->ec_name);if (retval) {
drivers/mtd/nand/raw/qcom_nandc.c +16 -16
@@ -151,15 +151,15 @@#define NAND_VERSION_MINOR_SHIFT 16/* NAND OP_CMDs */ -#define PAGE_READ 0x2 -#define PAGE_READ_WITH_ECC 0x3 -#define PAGE_READ_WITH_ECC_SPARE 0x4 -#define PROGRAM_PAGE 0x6 -#define PAGE_PROGRAM_WITH_ECC 0x7 -#define PROGRAM_PAGE_SPARE 0x9 -#define BLOCK_ERASE 0xa -#define FETCH_ID 0xb -#define RESET_DEVICE 0xd +#define OP_PAGE_READ 0x2 +#define OP_PAGE_READ_WITH_ECC 0x3 +#define OP_PAGE_READ_WITH_ECC_SPARE 0x4 +#define OP_PROGRAM_PAGE 0x6 +#define OP_PAGE_PROGRAM_WITH_ECC 0x7 +#define OP_PROGRAM_PAGE_SPARE 0x9 +#define OP_BLOCK_ERASE 0xa +#define OP_FETCH_ID 0xb +#define OP_RESET_DEVICE 0xd/* Default Value for NAND_DEV_CMD_VLD */ #define NAND_DEV_CMD_VLD_VAL (READ_START_VLD | WRITE_START_VLD | \
@@ -692,11 +692,11 @@ static void update_rw_regs(struct qcom_nand_host *host, int num_cw, bool read)if (read) {if (host->use_ecc) - cmd =PAGE_READ_WITH_ECC |PAGE_ACC |LAST_PAGE ; + cmd =OP_PAGE_READ_WITH_ECC |PAGE_ACC |LAST_PAGE ;else - cmd =PAGE_READ |PAGE_ACC |LAST_PAGE ; + cmd =OP_PAGE_READ |PAGE_ACC |LAST_PAGE ; }else { - cmd =PROGRAM_PAGE |PAGE_ACC |LAST_PAGE ; + cmd =OP_PROGRAM_PAGE |PAGE_ACC |LAST_PAGE ; }if (host->use_ecc) {
@@ -1170,7 +1170,7 @@ static int nandc_param(struct qcom_nand_host *host)* in use. we configure the controller to perform a raw read of 512 * bytes to read onfi params */ -nandc_set_reg (nandc,NAND_FLASH_CMD ,PAGE_READ |PAGE_ACC |LAST_PAGE ); +nandc_set_reg (nandc,NAND_FLASH_CMD ,OP_PAGE_READ |PAGE_ACC |LAST_PAGE );nandc_set_reg (nandc,NAND_ADDR0 ,0 );nandc_set_reg (nandc,NAND_ADDR1 ,0 ); nandc_set_reg(nandc, NAND_DEV0_CFG0, 0 << CW_PER_PAGE
@@ -1224,7 +1224,7 @@ static int erase_block(struct qcom_nand_host *host, int page_addr)struct qcom_nand_controller *nandc =get_qcom_nand_controller (chip);nandc_set_reg (nandc,NAND_FLASH_CMD , -BLOCK_ERASE |PAGE_ACC |LAST_PAGE ); +OP_BLOCK_ERASE |PAGE_ACC |LAST_PAGE );nandc_set_reg (nandc,NAND_ADDR0 , page_addr);nandc_set_reg (nandc,NAND_ADDR1 ,0 ); nandc_set_reg(nandc, NAND_DEV0_CFG0,
@@ -1255,7 +1255,7 @@ static int read_id(struct qcom_nand_host *host, int column)if (column ==-1 )return 0 ; -nandc_set_reg (nandc,NAND_FLASH_CMD ,FETCH_ID ); +nandc_set_reg (nandc,NAND_FLASH_CMD ,OP_FETCH_ID );nandc_set_reg (nandc,NAND_ADDR0 , column);nandc_set_reg (nandc,NAND_ADDR1 ,0 ); nandc_set_reg(nandc, NAND_FLASH_CHIP_SELECT,
@@ -1276,7 +1276,7 @@ static int reset(struct qcom_nand_host *host)struct nand_chip *chip = &host->chip;struct qcom_nand_controller *nandc =get_qcom_nand_controller (chip); -nandc_set_reg (nandc,NAND_FLASH_CMD ,RESET_DEVICE ); +nandc_set_reg (nandc,NAND_FLASH_CMD ,OP_RESET_DEVICE );nandc_set_reg (nandc,NAND_EXEC_CMD ,1 );write_reg_dma (nandc,NAND_FLASH_CMD ,1 ,NAND_BAM_NEXT_SGL );
drivers/mtd/spi-nor/cadence-quadspi.c +16 -3
@@ -644,9 +644,23 @@ static int cqspi_indirect_write_execute(struct spi_nor *nor, loff_t to_addr,ndelay (cqspi->wr_delay);while (remaining >0 ) { +size_t write_words, mod_bytes; + write_bytes = remaining > page_size ? page_size : remaining; -iowrite32_rep (cqspi->ahb_base, txbuf, -DIV_ROUND_UP (write_bytes,4 )); + write_words = write_bytes /4 ; + mod_bytes = write_bytes %4 ; +/* Write 4 bytes at a time then single bytes. */ +if (write_words) { +iowrite32_rep (cqspi->ahb_base, txbuf, write_words); + txbuf += (write_words *4 ); + } +if (mod_bytes) { +unsigned int temp =0xFFFFFFFF ; + +memcpy (&temp, txbuf, mod_bytes); +iowrite32 (temp, cqspi->ahb_base); + txbuf += mod_bytes; + }if (!wait_for_completion_timeout (&cqspi->transfer_complete,msecs_to_jiffies (CQSPI_TIMEOUT_MS ))) {
@@ -655,7 +669,6 @@ static int cqspi_indirect_write_execute(struct spi_nor *nor, loff_t to_addr, goto failwr; } - txbuf += write_bytes; remaining -= write_bytes;if (remaining >0 )
drivers/net/can/rcar/rcar_can.c +4 -1
@@ -24,6 +24,9 @@#define RCAR_CAN_DRV_NAME "rcar_can" +#define RCAR_SUPPORTED_CLOCKS (BIT(CLKR_CLKP1) | BIT(CLKR_CLKP2) | \ + BIT(CLKR_CLKEXT)) +/* Mailbox configuration: * mailbox 60 - 63 - Rx FIFO mailboxes * mailbox 56 - 59 - Tx FIFO mailboxes
@@ -789,7 +792,7 @@ static int rcar_can_probe(struct platform_device *pdev) goto fail_clk; } -if (clock_select >=ARRAY_SIZE (clock_names)) { +if (!(BIT (clock_select) &RCAR_SUPPORTED_CLOCKS )) { err = -EINVAL ;dev_err (&pdev->dev,"invalid CAN clock selected\n" ); goto fail_clk;
drivers/net/can/usb/ucan.c +0 -3
@@ -1575,11 +1575,8 @@ static int ucan_probe(struct usb_interface *intf,/* disconnect the device */ static void ucan_disconnect (struct usb_interface *intf) { -struct usb_device *udev;struct ucan_priv *up =usb_get_intfdata (intf); - udev =interface_to_usbdev (intf); -usb_set_intfdata (intf,NULL );if (up) {
drivers/net/ethernet/amazon/ena/ena_netdev.c +1 -1
@@ -2627,8 +2627,8 @@ static int ena_restore_device(struct ena_adapter *adapter)ena_com_abort_admin_commands (ena_dev);ena_com_wait_for_abort_completion (ena_dev);ena_com_admin_destroy (ena_dev); -ena_com_mmio_reg_read_request_destroy (ena_dev);ena_com_dev_reset (ena_dev,ENA_REGS_RESET_DRIVER_INVALID_STATE ); +ena_com_mmio_reg_read_request_destroy (ena_dev); err:clear_bit (ENA_FLAG_DEVICE_RUNNING , &adapter->flags);clear_bit (ENA_FLAG_ONGOING_RESET , &adapter->flags);
drivers/net/ethernet/amd/sunlance.c +3 -1
@@ -1419,7 +1419,7 @@ static int sparc_lance_probe_one(struct platform_device *op, prop =of_get_property (nd,"tpe-link-test?" ,NULL );if (!prop) - goto no_link_test; + goto node_put;if (strcmp (prop,"true" )) { printk(KERN_NOTICE "SunLance: warning: overriding option "
@@ -1428,6 +1428,8 @@ static int sparc_lance_probe_one(struct platform_device *op, "to [email protected]\n");auxio_set_lte (AUXIO_LTE_ON ); } +node_put: +of_node_put (nd); no_link_test: lp->auto_select =1 ; lp->tpe =0 ;
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +7 -0
@@ -2191,6 +2191,13 @@ void bnx2x_igu_clear_sb_gen(struct bnx2x *bp, u8 func, u8 idu_sb_id,#define PMF_DMAE_C (bp) (BP_PORT(bp) * MAX_DMAE_C_PER_PORT + \ E1HVN_MAX) +/* Following is the DMAE channel number allocation for the clients. +* MFW: OCBB/OCSD implementations use DMAE channels 14/15 respectively. +* Driver: 0-3 and 8-11 (for PF dmae operations) +* 4 and 12 (for stats requests) +*/ +#define BNX2X_FW_DMAE_C 13/* Channel for FW DMAE operations */ +/* PCIE link and speed */ #define PCICFG_LINK_WIDTH 0x1f00000#define PCICFG_LINK_WIDTH_SHIFT 20
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c +1 -0
@@ -6149,6 +6149,7 @@ static inline int bnx2x_func_send_start(struct bnx2x *bp, rdata->sd_vlan_tag =cpu_to_le16 (start_params->sd_vlan_tag); rdata->path_id =BP_PATH (bp); rdata->network_cos_mode = start_params->network_cos_mode; + rdata->dmae_cmd_id =BNX2X_FW_DMAE_C ; rdata->vxlan_dst_port =cpu_to_le16 (start_params->vxlan_dst_port); rdata->geneve_dst_port =cpu_to_le16 (start_params->geneve_dst_port);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +2 -2
@@ -2862,8 +2862,8 @@ bnxt_fill_coredump_record(struct bnxt *bp, struct bnxt_coredump_record *record, record->asic_state =0 ;strlcpy (record->system_name,utsname ()->nodename,sizeof (record->system_name)); - record->year =cpu_to_le16 (tm.tm_year); - record->month =cpu_to_le16 (tm.tm_mon); + record->year =cpu_to_le16 (tm.tm_year +1900 ); + record->month =cpu_to_le16 (tm.tm_mon +1 ); record->day =cpu_to_le16 (tm.tm_mday); record->hour =cpu_to_le16 (tm.tm_hour); record->minute =cpu_to_le16 (tm.tm_min);
drivers/net/ethernet/faraday/ftmac100.c +3 -4
@@ -872,11 +872,10 @@ static irqreturn_t ftmac100_interrupt(int irq, void *dev_id)struct net_device *netdev = dev_id;struct ftmac100 *priv =netdev_priv (netdev); -if (likely (netif_running (netdev))) { -/* Disable interrupts for polling */ -ftmac100_disable_all_int (priv); +/* Disable interrupts for polling */ +ftmac100_disable_all_int (priv); +if (likely (netif_running (netdev)))napi_schedule (&priv->napi); - }return IRQ_HANDLED ; }
drivers/net/ethernet/ibm/ibmvnic.c +31 -41
174 lines not on this page · raw message
drivers/net/ethernet/ibm/ibmvnic.h +1 -1
@@ -1068,7 +1068,7 @@ struct ibmvnic_adapter {struct tasklet_struct tasklet;enum vnic_state state;enum ibmvnic_reset_reason reset_reason; -struct mutex reset_lock, rwi_lock; +struct mutex rwi_lock;struct list_head rwi_list;struct work_struct ibmvnic_reset;bool resetting;
drivers/net/ethernet/mellanox/mlx4/alloc.c +1 -1
@@ -337,7 +337,7 @@ void mlx4_zone_allocator_destroy(struct mlx4_zone_allocator *zone_alloc)static u32 __mlx4_alloc_from_zone (struct mlx4_zone_entry *zone,int count,int align,u32 skip_mask,u32 *puid) { -u32 uid; +u32 uid =0 ;u32 res;struct mlx4_zone_allocator *zone_alloc = zone->allocator;struct mlx4_zone_entry *curr_node;
drivers/net/ethernet/mellanox/mlx4/mlx4.h +2 -2
@@ -540,8 +540,8 @@ struct slave_list {struct resource_allocator {spinlock_t alloc_lock;/* protect quotas */ union { -int res_reserved; -int res_port_rsvd[MLX4_MAX_PORTS ]; +unsigned int res_reserved; +unsigned int res_port_rsvd[MLX4_MAX_PORTS ]; };union {int res_free;
drivers/net/ethernet/mellanox/mlx4/mr.c +1 -0
@@ -363,6 +363,7 @@ int mlx4_mr_hw_write_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr, container_of((void *)mpt_entry, struct mlx4_cmd_mailbox, buf); + (*mpt_entry)->lkey =0 ; err =mlx4_SW2HW_MPT (dev, mailbox, key); }
drivers/net/ethernet/qlogic/qed/qed_dcbx.c +7 -7
@@ -191,7 +191,7 @@ qed_dcbx_dp_protocol(struct qed_hwfn *p_hwfn, struct qed_dcbx_results *p_data)static void qed_dcbx_set_params (struct qed_dcbx_results *p_data,struct qed_hwfn *p_hwfn,struct qed_ptt *p_ptt, -bool enable,u8 prio,u8 tc, +bool app_tlv,bool enable,u8 prio,u8 tc,enum dcbx_protocol_type type,enum qed_pci_personality personality) {
@@ -210,7 +210,7 @@ qed_dcbx_set_params(struct qed_dcbx_results *p_data, p_data->arr[type].dont_add_vlan0 = true;/* QM reconf data */ -if (p_hwfn->hw_info.personality == personality) +if (app_tlv && p_hwfn->hw_info.personality == personality)qed_hw_info_set_offload_tc (&p_hwfn->hw_info, tc);/* Configure dcbx vlan priority in doorbell block for roce EDPM */
@@ -225,7 +225,7 @@ qed_dcbx_set_params(struct qed_dcbx_results *p_data,static void qed_dcbx_update_app_info (struct qed_dcbx_results *p_data,struct qed_hwfn *p_hwfn,struct qed_ptt *p_ptt, -bool enable,u8 prio,u8 tc, +bool app_tlv,bool enable,u8 prio,u8 tc,enum dcbx_protocol_type type) {enum qed_pci_personality personality;
@@ -240,7 +240,7 @@ qed_dcbx_update_app_info(struct qed_dcbx_results *p_data, personality = qed_dcbx_app_update[i].personality; -qed_dcbx_set_params (p_data, p_hwfn, p_ptt, enable, +qed_dcbx_set_params (p_data, p_hwfn, p_ptt, app_tlv, enable, prio, tc, type, personality); } }
@@ -318,8 +318,8 @@ qed_dcbx_process_tlv(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, enable = true; } -qed_dcbx_update_app_info (p_data, p_hwfn, p_ptt, enable, - priority, tc, type); +qed_dcbx_update_app_info (p_data, p_hwfn, p_ptt, true, + enable, priority, tc, type); } }
@@ -340,7 +340,7 @@ qed_dcbx_process_tlv(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,continue ; enable = (type ==DCBX_PROTOCOL_ETH ) ? false : !!dcbx_version; -qed_dcbx_update_app_info (p_data, p_hwfn, p_ptt, enable, +qed_dcbx_update_app_info (p_data, p_hwfn, p_ptt, false, enable, priority, tc, type); }
drivers/net/ethernet/qlogic/qed/qed_dev.c +35 -9
94 lines not on this page · raw message
drivers/net/ethernet/qlogic/qed/qed_int.c +2 -0
@@ -992,6 +992,8 @@ static int qed_int_attentions(struct qed_hwfn *p_hwfn)*/ do { index = p_sb_attn->sb_index; +/* finish reading index before the loop condition */ +dma_rmb (); attn_bits =le32_to_cpu (p_sb_attn->atten_bits); attn_acks =le32_to_cpu (p_sb_attn->atten_ack); }while (index != p_sb_attn->sb_index);
drivers/net/ethernet/qlogic/qed/qed_main.c +1 -1
@@ -1634,9 +1634,9 @@ static int qed_drain(struct qed_dev *cdev)return -EBUSY ; } rc =qed_mcp_drain (hwfn, ptt); +qed_ptt_release (hwfn, ptt);if (rc)return rc; -qed_ptt_release (hwfn, ptt); }return 0 ;
drivers/net/ethernet/qlogic/qed/qed_rdma.c +29 -21
117 lines not on this page · raw message
drivers/net/ethernet/qlogic/qed/qed_rdma.h +5 -0
@@ -102,6 +102,7 @@ struct qed_rdma_info {u16 max_queue_zones;enum protocol_type proto;struct qed_iwarp_info iwarp; + u8 active:1; };struct qed_rdma_qp {
@@ -176,10 +177,14 @@ struct qed_rdma_qp {#if IS_ENABLED (CONFIG_QED_RDMA )void qed_rdma_dpm_bar (struct qed_hwfn *p_hwfn,struct qed_ptt *p_ptt);void qed_rdma_dpm_conf (struct qed_hwfn *p_hwfn,struct qed_ptt *p_ptt); +int qed_rdma_info_alloc (struct qed_hwfn *p_hwfn); +void qed_rdma_info_free (struct qed_hwfn *p_hwfn);#else static inline void qed_rdma_dpm_conf (struct qed_hwfn *p_hwfn,struct qed_ptt *p_ptt) {}static inline void qed_rdma_dpm_bar (struct qed_hwfn *p_hwfn,struct qed_ptt *p_ptt) {} +static inline int qed_rdma_info_alloc (struct qed_hwfn *p_hwfn) {return -EINVAL ;} +static inline void qed_rdma_info_free (struct qed_hwfn *p_hwfn) {}#endif int
drivers/net/team/team.c +0 -2
@@ -985,8 +985,6 @@ static void team_port_disable(struct team *team, team->en_port_count--;team_queue_override_port_del (team, port);team_adjust_ops (team); -team_notify_peers (team); -team_mcast_rejoin (team);team_lower_state_changed (port); }
drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c +3 -0
@@ -193,6 +193,9 @@ static void brcmu_d11ac_decchspec(struct brcmu_chan *ch) }break ;case BRCMU_CHSPEC_D11AC_BW_160 : + ch->bw =BRCMU_CHAN_BW_160 ; + ch->sb =brcmu_maskget16 (ch->chspec,BRCMU_CHSPEC_D11AC_SB_MASK , +BRCMU_CHSPEC_D11AC_SB_SHIFT );switch (ch->sb) {case BRCMU_CHAN_SB_LLL : ch->control_ch_num -=CH_70MHZ_APART ;
drivers/net/wireless/mac80211_hwsim.c +4 -4
@@ -2889,6 +2889,10 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,wiphy_ext_feature_set (hw->wiphy,NL80211_EXT_FEATURE_CQM_RSSI_LIST ); +tasklet_hrtimer_init (&data->beacon_timer, + mac80211_hwsim_beacon, +CLOCK_MONOTONIC ,HRTIMER_MODE_ABS ); + err =ieee80211_register_hw (hw);if (err <0 ) { pr_debug("mac80211_hwsim: ieee80211_register_hw failed (%d)\n",
@@ -2913,10 +2917,6 @@ static int mac80211_hwsim_new_radio(struct genl_info *info, data->debugfs, data, &hwsim_simulate_radar); -tasklet_hrtimer_init (&data->beacon_timer, - mac80211_hwsim_beacon, -CLOCK_MONOTONIC ,HRTIMER_MODE_ABS ); -spin_lock_bh (&hwsim_radio_lock); err =rhashtable_insert_fast (&hwsim_radios_rht, &data->rht, hwsim_rht_params);
drivers/net/wireless/mediatek/mt76/Kconfig +6 -0
@@ -1,6 +1,12 @@ config MT76_CORE tristate +config MT76_LEDS + bool + depends on MT76_CORE + depends on LEDS_CLASS=y || MT76_CORE=LEDS_CLASS + default y + config MT76_USB tristate depends on MT76_CORE
drivers/net/wireless/mediatek/mt76/mac80211.c +5 -3
@@ -342,9 +342,11 @@ int mt76_register_device(struct mt76_dev *dev, bool vht,mt76_check_sband (dev,NL80211_BAND_2GHZ );mt76_check_sband (dev,NL80211_BAND_5GHZ ); - ret =mt76_led_init (dev); -if (ret) -return ret; +if (IS_ENABLED (CONFIG_MT76_LEDS )) { + ret =mt76_led_init (dev); +if (ret) +return ret; + }return ieee80211_register_hw (hw); }
drivers/net/wireless/mediatek/mt76/mt76x2_init.c +4 -2
@@ -581,8 +581,10 @@ int mt76x2_register_device(struct mt76x2_dev *dev)mt76x2_dfs_init_detector (dev);/* init led callbacks */ - dev->mt76.led_cdev.brightness_set = mt76x2_led_set_brightness; - dev->mt76.led_cdev.blink_set = mt76x2_led_set_blink; +if (IS_ENABLED (CONFIG_MT76_LEDS )) { + dev->mt76.led_cdev.brightness_set = mt76x2_led_set_brightness; + dev->mt76.led_cdev.blink_set = mt76x2_led_set_blink; + } ret =mt76_register_device (&dev->mt76, true, mt76x2_rates,ARRAY_SIZE (mt76x2_rates));
drivers/nvdimm/nd-core.h +2 -0
@@ -112,6 +112,8 @@ resource_size_t nd_pmem_available_dpa(struct nd_region *nd_region, struct nd_mapping *nd_mapping, resource_size_t *overlap);resource_size_t nd_blk_available_dpa (struct nd_region *nd_region);resource_size_t nd_region_available_dpa (struct nd_region *nd_region); +int nd_region_conflict (struct nd_region *nd_region,resource_size_t start, +resource_size_t size);resource_size_t nvdimm_allocated_dpa (struct nvdimm_drvdata *ndd,struct nd_label_id *label_id);int alias_dpa_busy (struct device *dev,void *data);
drivers/nvdimm/pfn_devs.c +37 -27
88 lines not on this page · raw message
drivers/nvdimm/region_devs.c +41 -0
47 lines not on this page · raw message
drivers/nvme/host/fc.c +63 -10
141 lines not on this page · raw message
drivers/s390/net/ism_drv.c +1 -1
@@ -415,9 +415,9 @@ static irqreturn_t ism_handle_irq(int irq, void *data)break ;clear_bit_inv (bit, bv); + ism->sba->dmbe_mask[bit +ISM_DMB_BIT_OFFSET ] =0 ;barrier ();smcd_handle_irq (ism->smcd, bit +ISM_DMB_BIT_OFFSET ); - ism->sba->dmbe_mask[bit +ISM_DMB_BIT_OFFSET ] =0 ; }if (ism->sba->e) {
drivers/s390/virtio/virtio_ccw.c +14 -3
@@ -56,6 +56,7 @@ struct virtio_ccw_device {unsigned int revision;/* Transport revision */ wait_queue_head_t wait_q;spinlock_t lock; +struct mutex io_lock;/* Serializes I/O requests */ struct list_head virtqueues;unsigned long indicators;unsigned long indicators2;
@@ -296,6 +297,7 @@ static int ccw_io_helper(struct virtio_ccw_device *vcdev,unsigned long flags;int flag = intparm &VIRTIO_CCW_INTPARM_MASK ; +mutex_lock (&vcdev->io_lock); do { spin_lock_irqsave(get_ccwdev_lock(vcdev->cdev), flags); ret = ccw_device_start(vcdev->cdev, ccw, intparm, 0, 0);
@@ -308,7 +310,9 @@ static int ccw_io_helper(struct virtio_ccw_device *vcdev,cpu_relax (); }while (ret == -EBUSY );wait_event (vcdev->wait_q,doing_io (vcdev, flag) ==0 ); -return ret ? ret : vcdev->err; + ret = ret ? ret : vcdev->err; +mutex_unlock (&vcdev->io_lock); +return ret; } static void virtio_ccw_drop_indicator(struct virtio_ccw_device *vcdev,
@@ -828,6 +832,7 @@ static void virtio_ccw_get_config(struct virtio_device *vdev,int ret;struct ccw1 *ccw;void *config_area; +unsigned long flags; ccw =kzalloc (sizeof (*ccw),GFP_DMA |GFP_KERNEL );if (!ccw)
@@ -846,11 +851,13 @@ static void virtio_ccw_get_config(struct virtio_device *vdev,if (ret) goto out_free; +spin_lock_irqsave (&vcdev->lock, flags);memcpy (vcdev->config, config_area, offset + len); -if (buf) -memcpy (buf, &vcdev->config[offset], len);if (vcdev->config_ready < offset + len) vcdev->config_ready = offset + len; +spin_unlock_irqrestore (&vcdev->lock, flags); +if (buf) +memcpy (buf, config_area + offset, len); out_free:kfree (config_area);
@@ -864,6 +871,7 @@ static void virtio_ccw_set_config(struct virtio_device *vdev,struct virtio_ccw_device *vcdev =to_vc_device (vdev);struct ccw1 *ccw;void *config_area; +unsigned long flags; ccw =kzalloc (sizeof (*ccw),GFP_DMA |GFP_KERNEL );if (!ccw)
@@ -876,9 +884,11 @@ static void virtio_ccw_set_config(struct virtio_device *vdev,/* Make sure we don't overwrite fields. */ if (vcdev->config_ready < offset)virtio_ccw_get_config (vdev,0 ,NULL , offset); +spin_lock_irqsave (&vcdev->lock, flags);memcpy (&vcdev->config[offset], buf, len);/* Write the config area to the host. */ memcpy (config_area, vcdev->config,sizeof (vcdev->config)); +spin_unlock_irqrestore (&vcdev->lock, flags); ccw->cmd_code =CCW_CMD_WRITE_CONF ; ccw->flags =0 ; ccw->count = offset + len;
@@ -1247,6 +1257,7 @@ static int virtio_ccw_online(struct ccw_device *cdev)init_waitqueue_head (&vcdev->wait_q);INIT_LIST_HEAD (&vcdev->virtqueues);spin_lock_init (&vcdev->lock); +mutex_init (&vcdev->io_lock);spin_lock_irqsave (get_ccwdev_lock (cdev), flags);dev_set_drvdata (&cdev->dev, vcdev);
drivers/scsi/ufs/ufs-hisi.c +9 -0
@@ -20,6 +20,7 @@#include "unipro.h" #include "ufs-hisi.h" #include "ufshci.h" +#include "ufs_quirks.h" static int ufs_hisi_check_hibern8 (struct ufs_hba *hba) {
@@ -390,6 +391,14 @@ static void ufs_hisi_set_dev_cap(struct ufs_hisi_dev_params *hisi_param)static void ufs_hisi_pwr_change_pre_change (struct ufs_hba *hba) { +if (hba->dev_quirks &UFS_DEVICE_QUIRK_HOST_VS_DEBUGSAVECONFIGTIME ) { +pr_info ("ufs flash device must set VS_DebugSaveConfigTime 0x10\n" ); +/* VS_DebugSaveConfigTime */ +ufshcd_dme_set (hba,UIC_ARG_MIB (0xD0A0 ),0x10 ); +/* sync length */ +ufshcd_dme_set (hba,UIC_ARG_MIB (0x1556 ),0x48 ); + } +/* update */ ufshcd_dme_set (hba,UIC_ARG_MIB (0x15A8 ),0x1 );/* PA_TxSkip */
drivers/scsi/ufs/ufs_quirks.h +6 -0
@@ -131,4 +131,10 @@ struct ufs_dev_fix {*/ #define UFS_DEVICE_QUIRK_HOST_PA_SAVECONFIGTIME (1 << 8) +/* +* Some UFS devices require VS_DebugSaveConfigTime is 0x10, +* enabling this quirk ensure this. +*/ +#define UFS_DEVICE_QUIRK_HOST_VS_DEBUGSAVECONFIGTIME (1 << 9) +#endif /* UFS_QUIRKS_H_ */
drivers/scsi/ufs/ufshcd.c +2 -0
@@ -230,6 +230,8 @@ static struct ufs_dev_fix ufs_fixups[] = {UFS_FIX (UFS_VENDOR_SKHYNIX ,UFS_ANY_MODEL ,UFS_DEVICE_NO_VCCQ ),UFS_FIX (UFS_VENDOR_SKHYNIX ,UFS_ANY_MODEL ,UFS_DEVICE_QUIRK_HOST_PA_SAVECONFIGTIME ), +UFS_FIX (UFS_VENDOR_SKHYNIX ,"hB8aL1" /*H28U62301AMR*/ , +UFS_DEVICE_QUIRK_HOST_VS_DEBUGSAVECONFIGTIME ), END_FIX };
drivers/staging/rtl8712/mlme_linux.c +1 -1
@@ -158,7 +158,7 @@ void r8712_report_sec_ie(struct _adapter *adapter, u8 authmode, u8 *sec_ie) p = buff; p +=sprintf (p,"ASSOCINFO(ReqIEs=" ); len = sec_ie[1 ] +2 ; - len = (len <IW_CUSTOM_MAX ) ? len :IW_CUSTOM_MAX -1 ; + len = (len <IW_CUSTOM_MAX ) ? len :IW_CUSTOM_MAX ;for (i =0 ; i < len; i++) p +=sprintf (p,"%02x" , sec_ie[i]); p +=sprintf (p,")" );
drivers/staging/rtl8712/rtl871x_mlme.c +1 -1
@@ -1358,7 +1358,7 @@ sint r8712_restruct_sec_ie(struct _adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_len) {u8 authmode =0 , match; -u8 sec_ie[255 ], uncst_oui[4 ], bkup_ie[255 ]; +u8 sec_ie[IW_CUSTOM_MAX ], uncst_oui[4 ], bkup_ie[255 ];u8 wpa_oui[4 ] = {0x0 ,0x50 ,0xf2 ,0x01 };uint ielength, cnt, remove_cnt;int iEntry;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +1 -1
@@ -1566,7 +1566,7 @@ unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)if (pstat->aid >0 ) {DBG_871X (" old AID %d\n" , pstat->aid); }else { -for (pstat->aid =1 ; pstat->aid <NUM_STA ; pstat->aid++) +for (pstat->aid =1 ; pstat->aid <=NUM_STA ; pstat->aid++)if (pstapriv->sta_aid[pstat->aid -1 ] ==NULL )break ;
drivers/tty/serial/8250/8250_mtk.c +7 -9
@@ -213,17 +213,17 @@ static int mtk8250_probe(struct platform_device *pdev)platform_set_drvdata (pdev, data); -pm_runtime_enable (&pdev->dev); -if (!pm_runtime_enabled (&pdev->dev)) { - err =mtk8250_runtime_resume (&pdev->dev); -if (err) -return err; - } + err =mtk8250_runtime_resume (&pdev->dev); +if (err) +return err; data->line =serial8250_register_8250_port (&uart);if (data->line <0 )return data->line; +pm_runtime_set_active (&pdev->dev); +pm_runtime_enable (&pdev->dev); +return 0 ; }
@@ -234,13 +234,11 @@ static int mtk8250_remove(struct platform_device *pdev)pm_runtime_get_sync (&pdev->dev);serial8250_unregister_port (data->line); +mtk8250_runtime_suspend (&pdev->dev);pm_runtime_disable (&pdev->dev);pm_runtime_put_noidle (&pdev->dev); -if (!pm_runtime_status_suspended (&pdev->dev)) -mtk8250_runtime_suspend (&pdev->dev); -return 0 ; }
drivers/tty/serial/kgdboc.c +2 -2
@@ -230,7 +230,7 @@ static void kgdboc_put_char(u8 chr)static int param_set_kgdboc_var (const char *kmessage,const struct kernel_param *kp) { -int len =strlen (kmessage); +size_t len =strlen (kmessage);if (len >=MAX_CONFIG_LEN ) {printk (KERN_ERR "kgdboc: config string too long\n" );
@@ -252,7 +252,7 @@ static int param_set_kgdboc_var(const char *kmessage,strcpy (config, kmessage);/* Chop out \n char as a result of echo */ -if (config[len -1 ] =='\n' ) +if (len && config[len -1 ] =='\n' ) config[len -1 ] ='\0' ;if (configured ==1 )
drivers/tty/tty_io.c +9 -2
@@ -1372,7 +1372,13 @@ struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx)return ERR_PTR (retval); } -static void tty_free_termios (struct tty_struct *tty) +/** +* tty_save_termios() - save tty termios data in driver table +* @tty: tty whose termios data to save +* +* Locking: Caller guarantees serialisation with tty_init_termios(). +*/ +void tty_save_termios (struct tty_struct *tty) {struct ktermios *tp;int idx = tty->index;
@@ -1391,6 +1397,7 @@ static void tty_free_termios(struct tty_struct *tty) } *tp = tty->termios; } +EXPORT_SYMBOL_GPL (tty_save_termios);/** * tty_flush_works - flush all works of a tty/pty pair
@@ -1490,7 +1497,7 @@ static void release_tty(struct tty_struct *tty, int idx)WARN_ON (!mutex_is_locked (&tty_mutex));if (tty->ops->shutdown) tty->ops->shutdown (tty); -tty_free_termios (tty); +tty_save_termios (tty);tty_driver_remove_tty (tty->driver, tty); tty->port->itty =NULL ;if (tty->link)
drivers/tty/tty_port.c +2 -1
@@ -640,7 +640,8 @@ void tty_port_close(struct tty_port *port, struct tty_struct *tty,if (tty_port_close_start (port, tty, filp) ==0 )return ;tty_port_shutdown (port, tty); -set_bit (TTY_IO_ERROR , &tty->flags); +if (!port->console) +set_bit (TTY_IO_ERROR , &tty->flags);tty_port_close_end (port, tty);tty_port_tty_set (port,NULL ); }
drivers/usb/core/hub.c +1 -1
@@ -2250,7 +2250,7 @@ static int usb_enumerate_device_otg(struct usb_device *udev)/* descriptor may appear anywhere in config */ err =__usb_get_extra_descriptor (udev->rawdescriptors[0 ],le16_to_cpu (udev->config[0 ].desc.wTotalLength), -USB_DT_OTG , (void **) &desc); +USB_DT_OTG , (void **) &desc,sizeof (*desc));if (err || !(desc->bmAttributes &USB_OTG_HNP ))return 0 ;
drivers/usb/core/quirks.c +4 -0
@@ -333,6 +333,10 @@ static const struct usb_device_id usb_quirk_list[] = {/* Midiman M-Audio Keystation 88es */ { USB_DEVICE(0x0763, 0x0192), .driver_info = USB_QUIRK_RESET_RESUME }, + /* SanDisk Ultra Fit and Ultra Flair */ + { USB_DEVICE(0x0781, 0x5583), .driver_info = USB_QUIRK_NO_LPM }, + { USB_DEVICE(0x0781, 0x5591), .driver_info = USB_QUIRK_NO_LPM }, + /* M-Systems Flash Disk Pioneers */ { USB_DEVICE(0x08ec, 0x1000), .driver_info = USB_QUIRK_RESET_RESUME },
drivers/usb/core/usb.c +3 -3
@@ -832,14 +832,14 @@ EXPORT_SYMBOL_GPL(usb_get_current_frame_number);*/ int __usb_get_extra_descriptor (char *buffer,unsigned size, -unsigned char type,void **ptr) +unsigned char type,void **ptr,size_t minsize) {struct usb_descriptor_header *header;while (size >=sizeof (struct usb_descriptor_header )) { header = (struct usb_descriptor_header *)buffer; -if (header->bLength <2 ) { +if (header->bLength <2 || header->bLength > size) { printk(KERN_ERR "%s: bogus descriptor, type %d length %d\n", usbcore_name,
@@ -848,7 +848,7 @@ int __usb_get_extra_descriptor(char *buffer, unsigned size,return -1 ; } -if (header->bDescriptorType == type) { +if (header->bDescriptorType == type && header->bLength >= minsize) { *ptr = header;return 0 ; }
drivers/usb/dwc2/pci.c +1 -0
@@ -120,6 +120,7 @@ static int dwc2_pci_probe(struct pci_dev *pci, dwc2 =platform_device_alloc ("dwc2" ,PLATFORM_DEVID_AUTO );if (!dwc2) {dev_err (dev,"couldn't allocate dwc2 device\n" ); + ret = -ENOMEM ; goto err; }
drivers/usb/gadget/function/f_fs.c +8 -18
@@ -215,7 +215,6 @@ struct ffs_io_data {struct mm_struct *mm;struct work_struct work; -struct work_struct cancellation_work;struct usb_ep *ep;struct usb_request *req;
@@ -1073,31 +1072,22 @@ ffs_epfile_open(struct inode *inode, struct file *file)return 0 ; } -static void ffs_aio_cancel_worker (struct work_struct *work) -{ - struct ffs_io_data *io_data = container_of(work, struct ffs_io_data, - cancellation_work); - -ENTER (); - -usb_ep_dequeue (io_data->ep, io_data->req); -} -static int ffs_aio_cancel (struct kiocb *kiocb) {struct ffs_io_data *io_data = kiocb->private; -struct ffs_data *ffs = io_data->ffs; +struct ffs_epfile *epfile = kiocb->ki_filp->private_data;
Lines of this file are not shown. View the raw message.
drivers/usb/host/xhci.c +38 -4
42 lines not on this page · raw message
drivers/vhost/vsock.c +33 -24
57 lines not on this page · raw message
fs/nfs/flexfilelayout/flexfilelayout.c +9 -12
Lines of this file are not shown. View the raw message.
fs/nfs/flexfilelayout/flexfilelayoutdev.c +19 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/tc-testing/tdc.py +13 -5
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.