Linux 3.14.3
Greg KH
maintainerI'm announcing the release of the 3.14.3 kernel.
All users of the 3.14 kernel series must upgrade.
The updated 3.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.14.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/spi/efm32-spi.txt | 4 Documentation/sysctl/kernel.txt | 1 Documentation/video4linux/gspca.txt | 1 Makefile | 2 arch/arm/Kconfig | 2 arch/arm/boot/dts/am335x-bone-common.dtsi | 4 arch/arm/boot/dts/am335x-evm.dts | 4 arch/arm/boot/dts/am335x-evmsk.dts | 2 arch/arm/boot/dts/am335x-igep0033.dtsi | 4 arch/arm/boot/dts/am33xx.dtsi | 4 arch/arm/boot/dts/armada-370-xp.dtsi | 1 arch/arm/boot/dts/exynos5250-arndale.dts | 1 arch/arm/boot/dts/omap4.dtsi | 2 arch/arm/boot/dts/omap5.dtsi | 2 arch/arm/boot/dts/tegra124.dtsi | 13 - arch/arm/include/asm/div64.h | 2 arch/arm/include/asm/futex.h | 6 arch/arm/include/asm/pgtable-2level.h | 1 arch/arm/include/asm/unistd.h | 1 arch/arm/kernel/machine_kexec.c | 7 arch/arm/mach-omap2/irq.c | 8 arch/arm/mach-omap2/omap_hwmod.c | 3 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 4 arch/arm/mach-omap2/pm.h | 2 arch/arm/mach-pxa/include/mach/hx4700.h | 1 arch/arm/mm/Kconfig | 3 arch/arm/mm/mmu.c | 10 + arch/arm/mm/proc-macros.S | 19 - arch/arm/mm/proc-v7-2level.S | 7 arch/arm64/include/asm/pgtable.h | 8 arch/arm64/include/asm/unistd32.h | 2 arch/s390/include/asm/atomic.h | 70 ++++--- arch/s390/include/asm/bitops.h | 41 ++-- arch/s390/include/asm/ccwdev.h | 2 arch/s390/kernel/ptrace.c | 2 arch/s390/kvm/kvm-s390.c | 3 arch/sh/kernel/dumpstack.c | 2 arch/x86/Makefile | 1 arch/x86/boot/compressed/eboot.c | 5 arch/x86/boot/compressed/head_32.S | 14 - arch/x86/boot/compressed/head_64.S | 9 arch/x86/include/asm/cpufeature.h | 4 arch/x86/include/asm/xsave.h | 16 + arch/x86/kernel/ftrace.c | 2 arch/x86/kernel/ldt.c | 11 + arch/x86/lib/hash.c | 4 drivers/acpi/acpica/nsrepair.c | 25 ++ drivers/block/mtip32xx/mtip32xx.c | 88 +++++--- drivers/block/mtip32xx/mtip32xx.h | 2 drivers/clk/clk-s2mps11.c | 2 drivers/clk/tegra/clk-tegra124.c | 3 drivers/clk/ti/clk-44xx.c | 1 drivers/clk/ti/clk-54xx.c | 1 drivers/clk/ti/clk-7xx.c | 1 drivers/firmware/efi/efi-stub-helper.c | 6 drivers/gpu/drm/armada/armada_crtc.c | 1 drivers/hv/connection.c | 5 drivers/iio/adc/at91_adc.c | 26 ++ drivers/iio/industrialio-buffer.c | 6 drivers/iio/light/cm32181.c | 1 drivers/iio/light/cm36651.c | 22 ++ drivers/infiniband/core/cm.c | 17 - drivers/infiniband/core/cma.c | 26 -- drivers/infiniband/hw/ehca/ehca_cq.c | 1 drivers/infiniband/hw/ipath/ipath_diag.c | 66 ++---- drivers/infiniband/hw/mthca/mthca_provider.c | 1 drivers/infiniband/hw/nes/nes_verbs.c | 2 drivers/infiniband/hw/qib/qib_file_ops.c | 3 drivers/infiniband/hw/qib/qib_init.c | 25 +- drivers/infiniband/ulp/isert/ib_isert.c | 70 ++++--- drivers/infiniband/ulp/srpt/ib_srpt.c | 16 + drivers/media/dvb-frontends/m88rs2000.c | 19 + drivers/media/pci/saa7134/saa7134-cards.c | 4 drivers/media/platform/omap3isp/isppreview.c | 9 drivers/media/usb/em28xx/em28xx-audio.c | 22 +- drivers/media/usb/em28xx/em28xx-dvb.c | 3 drivers/media/usb/gspca/sn9c20x.c | 1 drivers/media/usb/uvc/uvc_video.c | 20 +- drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 4 drivers/media/v4l2-core/v4l2-dv-timings.c | 4 drivers/mfd/88pm800.c | 3 drivers/mfd/88pm860x-core.c | 6 drivers/mfd/kempld-core.c | 7 drivers/mfd/max77686.c | 4 drivers/mfd/max77693.c | 12 + drivers/mfd/max8925-i2c.c | 9 drivers/mfd/max8997.c | 18 + drivers/mfd/max8998.c | 4 drivers/mfd/sec-core.c | 4 drivers/mfd/tps65910.c | 4 drivers/mfd/twl-core.c | 10 - drivers/misc/mei/client.c | 76 +++++-- drivers/misc/mei/client.h | 18 - drivers/misc/mei/hw-me-regs.h | 5 drivers/misc/mei/interrupt.c | 3 drivers/misc/mei/main.c | 3 drivers/misc/mei/pci-me.c | 30 ++- drivers/pci/host/pci-imx6.c | 47 +++- drivers/pci/host/pci-mvebu.c | 2 drivers/regulator/arizona-ldo1.c | 7 drivers/s390/char/con3215.c | 2 drivers/s390/char/con3270.c | 6 drivers/s390/char/raw3270.c | 10 - drivers/s390/char/raw3270.h | 2 drivers/s390/cio/device.c | 3 drivers/scsi/arcmsr/arcmsr_hba.c | 7 drivers/scsi/qla2xxx/qla_os.c | 6 drivers/spi/spi-dw.c | 7 drivers/spi/spi-efm32.c | 3 drivers/staging/comedi/drivers/usbdux.c | 9 drivers/staging/rtl8188eu/core/rtw_recv.c | 4 drivers/staging/rtl8712/rtl871x_recv.c | 13 - drivers/staging/serqt_usb2/serqt_usb2.c | 2 drivers/target/iscsi/iscsi_target.c | 4 drivers/target/target_core_iblock.c | 5 drivers/target/target_core_rd.c | 14 + drivers/target/target_core_sbc.c | 3 drivers/target/tcm_fc/tfc_sess.c | 1 drivers/tty/hvc/hvc_console.c | 6 drivers/usb/core/driver.c | 94 +++++---- drivers/usb/core/hcd-pci.c | 2 drivers/usb/core/hub.c | 5 drivers/usb/core/usb.h | 2 drivers/usb/dwc3/core.h | 39 +++ drivers/usb/dwc3/gadget.h | 12 - drivers/usb/gadget/atmel_usba_udc.c | 6 drivers/usb/gadget/tcm_usb_gadget.c | 2 drivers/usb/gadget/zero.c | 2 drivers/usb/host/ehci-tegra.c | 23 ++ drivers/usb/host/xhci-pci.c | 17 + drivers/usb/host/xhci-ring.c | 67 +++--- drivers/usb/host/xhci.c | 7 drivers/usb/host/xhci.h | 2 drivers/usb/musb/musb_core.c | 5 drivers/usb/musb/omap2430.c | 2 drivers/usb/phy/phy-am335x-control.c | 9 drivers/usb/phy/phy-ulpi.c | 2 drivers/usb/serial/pl2303.c | 3 drivers/usb/serial/pl2303.h | 5 drivers/video/atmel_lcdfb.c | 6 drivers/w1/w1_netlink.c | 25 +- fs/ext4/ext4.h | 17 - fs/ext4/file.c | 2 fs/ext4/inode.c | 20 +- fs/ext4/page-io.c | 5 fs/ext4/xattr.c | 23 +- fs/namespace.c | 11 - fs/nfs/nfs4proc.c | 19 + fs/nfsd/nfs4callback.c | 4 fs/nfsd/nfs4proc.c | 9 fs/nfsd/nfs4state.c | 13 - fs/nfsd/nfs4xdr.c | 9 fs/nfsd/nfsctl.c | 5 fs/nfsd/nfsd.h | 2 fs/nfsd/nfsxdr.c | 2 fs/nfsd/vfs.c | 9 fs/ocfs2/buffer_head_io.c | 2 fs/ocfs2/dlm/dlmrecovery.c | 29 ++ fs/ocfs2/namei.c | 2 fs/pnode.c | 198 ++++++++++++-------- fs/pnode.h | 3 fs/reiserfs/dir.c | 6 include/asm-generic/word-at-a-time.h | 8 include/dt-bindings/clock/tegra124-car.h | 6 include/linux/bio.h | 6 include/linux/hyperv.h | 4 include/linux/mount.h | 3 include/linux/sunrpc/svcsock.h | 1 include/rdma/ib_cm.h | 1 include/uapi/linux/libc-compat.h | 9 include/uapi/linux/videodev2.h | 10 - include/uapi/linux/xattr.h | 7 kernel/sysctl.c | 6 mm/hugetlb.c | 1 mm/internal.h | 1 mm/mlock.c | 2 mm/page_alloc.c | 89 ++++---- mm/rmap.c | 14 + net/sunrpc/svcsock.c | 16 + sound/pci/hda/patch_realtek.c | 98 +++++++++ sound/pci/ice1712/ice1712.c | 15 + sound/soc/codecs/cs42l51.c | 9 sound/soc/codecs/cs42l52.c | 8 sound/soc/codecs/cs42l73.c | 6 sound/soc/soc-pcm.c | 3 185 files changed, 1417 insertions(+), 832 deletions(-)
Aaron Sanders (1):
USB: pl2303: add ids for Hewlett-Packard HP POS pole displays
Al Viro (1):
smarter propagate_mnt()
Alan Stern (2):
USB: fix crash during hotplug of PCI USB controller card
USB: unbind all interfaces before rebinding any
Alec Berg (1):
iio: querying buffer scan_mask should return 0/1
Alexander Usyskin (1):
mei: ignore client writing state during cb completion
Alexandre Belloni (1):
iio: adc: at91_adc: Repair broken platform_data support
Andrea Adami (1):
ARM: pxa: hx4700.h: include "irqs.h" for PXA_NR_BUILTIN_GPIO
Andrew Lunn (1):
ARM: Fix default CPU selection for ARCH_MULTI_V5
Andy Grover (1):
target/tcm_fc: Fix use-after-free of ft_tpg
Antoine Ténart (1):
video: atmel_lcdfb: ensure the hardware is initialized with the correct mode
Antti Palosaari (1):
media: em28xx: fix PCTV 290e LNA oops
Axel Lin (1):
spi: dw: Don't call kfree for memory allocated by devm_kzalloc
Beomho Seo (1):
iio: cm32181: Fix read integration time function
Brian Austin (3):
ASoC: cs42l51: Fix SOC_DOUBLE_R_SX_TLV shift values for ADC, PCM, and Analog kcontrols
ASoC: cs42l52: Fix mask bits for SOC_VALUE_ENUM_SINGLE
ASoC: cs42l73: Fix mask bits for SOC_VALUE_ENUM_SINGLE
Catalin Marinas (2):
arm64: Do not synchronise I and D caches for special ptes
arm64: Make DMA coherent and strongly ordered mappings not executable
Charles Keepax (1):
regulator: arizona-ldo1: Correct default regulator init_data
Christian Borntraeger (1):
KVM: s390: Optimize ucontrol path
Christopher Covington (1):
ARM: 8007/1: Remove extraneous kcmp syscall ignore
Dan Carpenter (2):
SCSI: qla2xxx: fix error handling of qla2x00_mem_alloc()
SCSI: arcmsr: upper 32 of dma address lost
Daniel Mack (1):
usb: phy: am335x-control: wait 1ms after power-up transitions
David Cohen (1):
usb/xhci: fix compilation warning when !CONFIG_PCI && !CONFIG_PM
David Fries (1):
w1: fix w1_send_slave dropping a slave id
Denis Turischev (1):
xhci: Switch Intel Lynx Point ports to EHCI on shutdown.
Dennis Dalessandro (1):
IB/ipath: Fix potential buffer overrun in sending diag packet routine
Felipe Balbi (3):
usb: dwc3: fix randconfig build errors
usb: musb: avoid NULL pointer dereference
usb: musb: fix PHY power on/off
Felipe Franciosi (2):
mtip32xx: Set queue bounce limit
mtip32xx: Unmap the DMA segments before completing the IO request
Fenghua Yu (2):
x86, AVX-512: AVX-512 Feature Detection x86, AVX-512: Enable AVX-512 States Context Switch
Florian Vaussard (3):
CLK: TI: OMAP4/5/DRA7: Remove gpmc_fck from dummy clocks
ARM: dts: omap4/5: Use l3_ick for the gpmc node
media: omap3isp: preview: Fix the crop margins
Frank Schaefer (1):
media: em28xx-audio: fix user counting in snd_em28xx_capture_open()
Greg Kroah-Hartman (1):
Linux 3.14.3
Gregory CLEMENT (1):
usb: gadget: atmel_usba: fix crashed during stopping when DEBUG is enabled
Guenter Roeck (1):
mfd: kempld-core: Fix potential hang-up during boot
H Hartley Sweeten (1):
staging: comedi: usbdux: bug fix for accessing 'ao_chanlist' in private data
H. Peter Anvin (1):
x86-64, modify_ldt: Ban 16-bit segments on 64-bit kernels
Hans Verkuil (4):
media: videodev2.h: add parenthesis around macro arguments
media: v4l2-dv-timings: add module name, description, license
media: v4l2-compat-ioctl32: fix wrong VIDIOC_SUBDEV_G/S_EDID32 support
media: saa7134: fix WARN_ON during resume
Heiko Carstens (1):
s390/bitops,atomic: add missing memory barriers
Himangi Saraogi (1):
staging:serqt_usb2: Fix sparse warning restricted __le16 degrades to integer
Huang Rui (1):
usb: dwc3: fix wrong bit mask in dwc3_event_devt
Hui Wang (1):
ALSA: hda - add headset mic detect quirks for three Dell laptops
Igor Gnatenko (1):
xhci: extend quirk for Renesas cards
J. Bruce Fields (7):
nfsd: revert v2 half of "nfsd: don't return high mode bits"
nfsd4: session needs room for following op to error out
nfsd4: buffer-length check for SUPPATTR_EXCLCREAT
nfsd4: fix test_stateid error reply encoding
nfsd4: leave reply buffer space for failed setattr
nfsd: notify_change needs elevated write count
nfsd4: fix setclientid encode size
Jan Beulich (1):
x86, hash: Fix build failure with older binutils
Jan Kara (1):
ext4: fix jbd2 warning under heavy xattr load
Jean-Jacques Hiblot (1):
PCI: mvebu: Fix potential issue in range parsing
Jeff Layton (1):
nfsd: set timeparms.to_maxval in setup_callback_client
Jeff Mahoney (1):
reiserfs: fix race in readdir
Johannes Weiner (1):
mm: page_alloc: spill to remote nodes before waking kswapd
Julius Werner (1):
usb: xhci: Prefer endpoint context dequeue pointer over stopped_trb
Junxiao Bi (2):
ocfs2: dlm: fix lock migration crash
ocfs2: dlm: fix recovery hung
K. Y. Srinivasan (1):
Drivers: hv: vmbus: Negotiate version 3.0 when running on ws2012r2 hosts
Kailang Yang (3):
ALSA: hda/realtek - Restore default value for ALC283
ALSA: hda/realtek - Add support of ALC288 codec
ALSA: hda/realtek - Add headset Mic support for Dell machine
Kazuya Mio (1):
ext4: FIBMAP ioctl causes BUG_ON due to handle EXT_MAX_BLOCKS
Kees Cook (1):
usb: gadget: tcm_usb_gadget: stop format strings
Kinglong Mee (1):
NFSD: Traverse unconfirmed client through hash-table
Krzysztof Kozlowski (12):
mfd: sec-core: Fix possible NULL pointer dereference when i2c_new_dummy error
mfd: 88pm860x: Fix possible NULL pointer dereference on i2c_new_dummy error
mfd: 88pm860x: Fix I2C device resource leak on regmap init fail
mfd: 88pm800: Fix I2C device resource leak if probe fails
mfd: max77686: Fix possible NULL pointer dereference on i2c_new_dummy error
mfd: max77693: Fix possible NULL pointer dereference on i2c_new_dummy error
mfd: max8925: Fix possible NULL pointer dereference on i2c_new_dummy error
mfd: max8998: Fix possible NULL pointer dereference on i2c_new_dummy error
mfd: max8997: Fix possible NULL pointer dereference on i2c_new_dummy error
mfd: tps65910: Fix possible invalid pointer dereference on regmap_add_irq_chip fail
iio: cm36651: Fix i2c client leak and possible NULL pointer dereference
clk: s2mps11: Fix possible NULL pointer dereference
Larry Finger (2):
staging: r8712u: Fix case where ethtype was never obtained and always be checked against 0
staging: r8188eu: Calling rtw_get_stainfo() with a NULL sta_addr will return NULL
Leigh Brown (1):
ARM: dts: am335x: update USB DT references
Liu Hua (2):
ARM: 8030/1: ARM : kdump : add arch_crash_save_vmcoreinfo
hung_task: check the value of "sysctl_hung_task_timeout_sec"
Lv Zheng (1):
ACPICA: Restore code that repairs NULL package elements in return values.
Malcolm Priestley (2):
media: m88rs2000: prevent frontend crash on continuous transponder scans
media: m88rs2000: add caps FE_CAN_INVERSION_AUTO
Marek Vasut (1):
PCI: imx6: Wait for retraining
Mark Brown (1):
ASoC: pcm: Drop incorrect double/extra frees
Martin K. Petersen (1):
block: Fix for_each_bvec()
Martin Schwidefsky (1):
s390: fix control register update
Martin Svec (1):
Target/sbc: Initialize COMPARE_AND_WRITE write_sg scatterlist
Mathias Nyman (1):
xhci: Prevent runtime pm from autosuspending during initialization
Matt Fleming (3):
x86/efi: Correct EFI boot stub use of code32_start
efi: Pass correct file handle to efi_file_{read,close}
sh: fix format string bug in stack tracer
Matthew Wilcox (1):
ext4: note the error in ext4_end_bio()
Michal Simek (1):
usb: phy: Add ulpi IDs for SMSC USB3320 and TI TUSB1210
Mike Marciniszyn (2):
IB/qib: Fix debugfs ordering issue with multiple HCAs
ib_srpt: Use correct ib_sg_dma primitives
Miklos Szeredi (1):
arm64: __NR_compat_syscalls fix
Mizuma, Masayoshi (1):
mm: hugetlb: fix softlockup when a large number of hugepages are freed.
Moni Shoua (1):
IB/core: Don't resolve passive side RoCE L2 address in CMA REQ handler
Mugunthan V N (1):
ARM: dts: am33xx: correcting dt node unit address for usb
Nicholas Bellinger (4):
iscsi-target: Fix ERL=2 ASYNC_EVENT connection pointer bug target/iblock: Fix double bioset_integrity_free bug
iser-target: Match FRMR descriptors to available session tags
iser-target: Add missing se_cmd put for WRITE_PENDING in tx_comp_err
Nishanth Menon (1):
ARM: OMAP4: Fix definition of IS_PM44XX_ERRATUM
Oleksij Rempel (1):
media: uvcvideo: Do not use usb_set_interface on bulk EP
Paul Gortmaker (1):
hvc: ensure hvc_init is only ever called once in hvc_console.c
Petr Mladek (1):
ftrace/x86: One more missing sync after fixup of function modification failure
Quinn Tran (1):
target/rd: T10-Dif: RAM disk is allocating more space than required.
Roger Quadros (2):
ARM: OMAP3: hwmod data: Correct clock domains for USB modules
usb: gadget: zero: Fix SuperSpeed enumeration for alternate setting 1
Russell King (1):
DRM: armada: fix corruption while loading cursors
Sam Bradshaw (1):
mtip32xx: mtip_async_complete() bug fixes
Sebastian Ott (1):
s390/cio: fix driver callback initialization for ccw consoles
Serge Hallyn (1):
xattr: guard against simultaneous glibc header inclusion
Stanislav Kinsbursky (1):
nfsd: check passed socket's net matches NFSd superblock's one
Stefan Sørensen (1):
ARM: OMAP2+: INTC: Acknowledge stuck active interrupts
Stephen Warren (4):
ARM: tegra: remove UART5/UARTE from tegra124.dtsi
clk: tegra: remove non-existent clocks
dt: tegra: remove non-existent clock IDs
USB: EHCI: tegra: set txfill_tuning
Suman Anna (1):
ARM: OMAP2+: hwmod: fix missing braces in _init()
Takashi Iwai (2):
ALSA: ice1712: Fix boundary checks in PCM pointer ops
ALSA: hda - Fix silent speaker output due to mute LED fixup
Tetsuo Handa (1):
ocfs2: fix panic on kfree(xattr->name)
Theodore Ts'o (2):
ext4: move ext4_update_i_disksize() into mpage_map_and_submit_extent()
ext4: use i_size_read in ext4_unaligned_aio()
Thomas Petazzoni (1):
ARM: mvebu: ensure the mdio node has a clock reference on Armada 370/XP
Tomas Novotny (1):
mfd: twl-core: Fix accessibility of some twl4030 audio registers
Tomas Winkler (2):
mei: fix memory leak of pending write cb objects
mei: me: do not load the driver if the FW doesn't support MEI interface
Tomasz Figa (1):
ARM: dts: Keep G3D regulator always on for exynos5250-arndale
Trond Myklebust (1):
NFSv4: Fix a use-after-free problem in open()
Uwe Kleine-König (1):
spi: efm32: use $vendor,$device scheme for compatible string
Vlastimil Babka (1):
mm: try_to_unmap_cluster() should lock_page() before mlocking
W. Trevor King (1):
ALSA: hda - Enable beep for ASUS 1015E
Will Deacon (2):
ARM: 7954/1: mm: remove remaining domain support from ARMv6
word-at-a-time: avoid undefined behaviour in zero_bytemask macro
Wolfram Sang (1):
media: media: gspca: sn9c20x: add ID for Genius Look 1320 V2
Xiangyu Lu (1):
ARM: 8027/1: fix do_div() bug in big-endian systems
Yan, Zheng (1):
nfsd4: fix memory leak in nfsd4_encode_fattr()
Yann Droneaud (4):
IB/nes: Return an error on ib_copy_from_udata() failure instead of NULL IB/mthca: Return an error on ib_copy_to_udata() failure IB/ehca: Returns an error on ib_copy_to_udata() failure IB/qib: add missing braces in do_qib_user_sdma_queue_create()
alex chen (1):
ocfs2: do not put bh when buffer_uptodate failed
Greg KH
maintainerDocumentation/devicetree/bindings/spi/efm32-spi.txt +2 -2
@@ -3,7 +3,7 @@ Required properties: - #address-cells: see spi-bus.txt - #size-cells: see spi-bus.txt -- compatible: should be "efm32,spi" +- compatible: should be "energymicro,efm32-spi" - reg: Offset and length of the register set for the controller - interrupts: pair specifying rx and tx irq - clocks: phandle to the spi clock
@@ -15,7 +15,7 @@ Example: spi1: spi@0x4000c400 { /* USART1 */ #address-cells = <1>; #size-cells = <0>; - compatible = "efm32,spi"; + compatible = "energymicro,efm32-spi"; reg = <0x4000c400 0x400>; interrupts = <15 16>; clocks = <&cmu 20>;
Documentation/sysctl/kernel.txt +1 -0
@@ -317,6 +317,7 @@ for more than this value report a warning. This file shows up if CONFIG_DETECT_HUNG_TASK is enabled. 0: means infinite timeout - no checking done. +Possible values to set are in range {0..LONG_MAX/HZ}. ==============================================================
Documentation/video4linux/gspca.txt +1 -0
@@ -55,6 +55,7 @@ zc3xx 0458:700f Genius VideoCam Web V2 sonixj 0458:7025 Genius Eye 311Q sn9c20x 0458:7029 Genius Look 320s sonixj 0458:702e Genius Slim 310 NB +sn9c20x 0458:7045 Genius Look 1320 V2 sn9c20x 0458:704a Genius Slim 1320 sn9c20x 0458:704c Genius i-Look 1321 sn9c20x 045e:00f4 LifeCam VX-6000 (SN9C20x + OV9650)
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 14 -SUBLEVEL = 2 +SUBLEVEL = 3 EXTRAVERSION = NAME = Shuffling Zombie Juror
arch/arm/Kconfig +1 -1
@@ -898,7 +898,7 @@ config ARCH_MULTI_V5 bool "ARMv5 based platforms (ARM926T, XSCALE, PJ1, ...)" depends on !ARCH_MULTI_V6_V7 select ARCH_MULTI_V4_V5 - select CPU_ARM926T if (!CPU_ARM946E || CPU_ARM1020 || \ + select CPU_ARM926T if !(CPU_ARM946E || CPU_ARM1020 || \ CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || \ CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_FEROCEON)
arch/arm/boot/dts/am335x-bone-common.dtsi +2 -2
@@ -183,7 +183,7 @@ &usb { status = "okay"; - control@44e10000 { + control@44e10620 { status = "okay"; };
@@ -204,7 +204,7 @@ dr_mode = "host"; }; - dma-controller@07402000 { + dma-controller@47402000 { status = "okay"; }; };
arch/arm/boot/dts/am335x-evm.dts +2 -2
@@ -325,7 +325,7 @@ &usb { status = "okay"; - control@44e10000 { + control@44e10620 { status = "okay"; };
@@ -346,7 +346,7 @@ dr_mode = "host"; }; - dma-controller@07402000 { + dma-controller@47402000 { status = "okay"; }; };
arch/arm/boot/dts/am335x-evmsk.dts +1 -1
@@ -334,7 +334,7 @@ &usb { status = "okay"; - control@44e10000 { + control@44e10620 { status = "okay"; };
arch/arm/boot/dts/am335x-igep0033.dtsi +2 -2
@@ -202,7 +202,7 @@ &usb { status = "okay"; - control@44e10000 { + control@44e10620 { status = "okay"; };
@@ -223,7 +223,7 @@ dr_mode = "host"; }; - dma-controller@07402000 { + dma-controller@47402000 { status = "okay"; }; };
arch/arm/boot/dts/am33xx.dtsi +2 -2
@@ -448,7 +448,7 @@ ti,hwmods = "usb_otg_hs"; status = "disabled"; - usb_ctrl_mod: control@44e10000 { + usb_ctrl_mod: control@44e10620 { compatible = "ti,am335x-usb-ctrl-module"; reg = <0x44e10620 0x10 0x44e10648 0x4>;
@@ -551,7 +551,7 @@ "tx14", "tx15"; }; - cppi41dma: dma-controller@07402000 { + cppi41dma: dma-controller@47402000 { compatible = "ti,am3359-cppi41"; reg = <0x47400000 0x1000 0x47402000 0x1000
arch/arm/boot/dts/armada-370-xp.dtsi +1 -0
@@ -226,6 +226,7 @@ #size-cells = <0>; compatible = "marvell,orion-mdio"; reg = <0x72004 0x4>; + clocks = <&gateclk 4>; }; eth1: ethernet@74000 {
arch/arm/boot/dts/exynos5250-arndale.dts +1 -0
@@ -287,6 +287,7 @@ regulator-name = "vdd_g3d"; regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; + regulator-always-on; regulator-boot-on; op_mode = <1>; };
arch/arm/boot/dts/omap4.dtsi +2 -0
@@ -275,6 +275,8 @@ gpmc,num-waitpins = <4>; ti,hwmods = "gpmc"; ti,no-idle-on-init; + clocks = <&l3_div_ck>; + clock-names = "fck"; }; uart1: serial@4806a000 {
arch/arm/boot/dts/omap5.dtsi +2 -0
@@ -302,6 +302,8 @@ gpmc,num-cs = <8>; gpmc,num-waitpins = <4>; ti,hwmods = "gpmc"; + clocks = <&l3_iclk_div>; + clock-names = "fck"; }; i2c1: i2c@48070000 {
arch/arm/boot/dts/tegra124.dtsi +0 -13
@@ -164,19 +164,6 @@ status = "disabled"; }; - serial@70006400 { - compatible = "nvidia,tegra124-uart", "nvidia,tegra20-uart"; - reg = <0x70006400 0x40>; - reg-shift = <2>; - interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&tegra_car TEGRA124_CLK_UARTE>; - resets = <&tegra_car 66>; - reset-names = "serial"; - dmas = <&apbdma 20>, <&apbdma 20>; - dma-names = "rx", "tx"; - status = "disabled"; - }; - pwm@7000a000 { compatible = "nvidia,tegra124-pwm", "nvidia,tegra20-pwm"; reg = <0x7000a000 0x100>;
arch/arm/include/asm/div64.h +1 -1
@@ -156,7 +156,7 @@/* Select the best insn combination to perform the */ \/* actual __m * __n / (__p << 64) operation. */ \if (!__c) { \ - asm ("umull %Q0, %R0, %1, %Q2\n\t" \ + asm ("umull %Q0, %R0, %Q1, %Q2\n\t" \"mov %Q0, #0" \ :"=&r" (__res) \ : "r" (__m), "r" (__n) \
arch/arm/include/asm/futex.h +0 -6
@@ -3,11 +3,6 @@#ifdef __KERNEL__ -#if defined(CONFIG_CPU_USE_DOMAINS ) && defined(CONFIG_SMP ) -/* ARM doesn't provide unprivileged exclusive memory accessors */ -#include <asm-generic/futex.h> -#else -#include <linux/futex.h> #include <linux/uaccess.h> #include <asm/errno.h>
@@ -164,6 +159,5 @@ futex_atomic_op_inuser (int encoded_op, u32 __user *uaddr)return ret; } -#endif /* !(CPU_USE_DOMAINS && SMP) */ #endif /* __KERNEL__ */ #endif /* _ASM_ARM_FUTEX_H */
arch/arm/include/asm/pgtable-2level.h +1 -0
@@ -140,6 +140,7 @@#define L_PTE_MT_DEV_NONSHARED (_AT(pteval_t, 0x0c) << 2)/* 1100 */ #define L_PTE_MT_DEV_WC (_AT(pteval_t, 0x09) << 2)/* 1001 */ #define L_PTE_MT_DEV_CACHED (_AT(pteval_t, 0x0b) << 2)/* 1011 */ +#define L_PTE_MT_VECTORS (_AT(pteval_t, 0x0f) << 2)/* 1111 */ #define L_PTE_MT_MASK (_AT(pteval_t, 0x0f) << 2)#ifndef __ASSEMBLY__
arch/arm/include/asm/unistd.h +0 -1
@@ -48,6 +48,5 @@*/ #define __IGNORE_fadvise64_64#define __IGNORE_migrate_pages -#define __IGNORE_kcmp#endif /* __ASM_ARM_UNISTD_H */
arch/arm/kernel/machine_kexec.c +7 -0
@@ -184,3 +184,10 @@ void machine_kexec(struct kimage *image)soft_restart (reboot_entry_phys); } + +void arch_crash_save_vmcoreinfo (void ) +{ +#ifdef CONFIG_ARM_LPAE +VMCOREINFO_CONFIG (ARM_LPAE ); +#endif +}
arch/arm/mach-omap2/irq.c +8 -0
@@ -222,6 +222,7 @@ void __init ti81xx_init_irq(void)static inline void omap_intc_handle_irq (void __iomem *base_addr,struct pt_regs *regs) {u32 irqnr; +int handled_irq =0 ; do { irqnr = readl_relaxed(base_addr + 0x98);
@@ -249,8 +250,15 @@ out:if (irqnr) { irqnr =irq_find_mapping (domain, irqnr);handle_IRQ (irqnr, regs); + handled_irq =1 ; } }while (irqnr); + +/* If an irq is masked or deasserted while active, we will +* keep ending up here with no irq handled. So remove it from +* the INTC with an ack.*/ +if (!handled_irq) +omap_ack_irq (NULL ); } asmlinkage void __exception_irq_entry omap2_intc_handle_irq(struct pt_regs *regs)
arch/arm/mach-omap2/omap_hwmod.c +2 -1
@@ -2546,11 +2546,12 @@ static int __init _init(struct omap_hwmod *oh, void *data)return -EINVAL ; } -if (np) +if (np) {if (of_find_property (np,"ti,no-reset-on-init" ,NULL )) oh->flags |=HWMOD_INIT_NO_RESET ;if (of_find_property (np,"ti,no-idle-on-init" ,NULL )) oh->flags |=HWMOD_INIT_NO_IDLE ; + } oh->_state = _HWMOD_STATE_INITIALIZED;
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +2 -2
@@ -1968,7 +1968,7 @@ static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs[] = {static struct omap_hwmod omap3xxx_usb_host_hs_hwmod = { .name ="usb_host_hs" , .class = &omap3xxx_usb_host_hs_hwmod_class, - .clkdm_name ="l3_init_clkdm" , + .clkdm_name ="usbhost_clkdm" , .mpu_irqs = omap3xxx_usb_host_hs_irqs, .main_clk ="usbhost_48m_fck" , .prcm = {
@@ -2053,7 +2053,7 @@ static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs[] = {static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod = { .name ="usb_tll_hs" , .class = &omap3xxx_usb_tll_hs_hwmod_class, - .clkdm_name ="l3_init_clkdm" , + .clkdm_name ="core_l4_clkdm" , .mpu_irqs = omap3xxx_usb_tll_hs_irqs, .main_clk ="usbtll_fck" , .prcm = {
arch/arm/mach-omap2/pm.h +1 -1
@@ -103,7 +103,7 @@ static inline void enable_omap3630_toggle_l2_on_restore(void) { }#define PM_OMAP4_ROM_SMP_BOOT_ERRATUM_GICD (1 << 0) -#if defined(CONFIG_ARCH_OMAP4 ) +#if defined(CONFIG_PM ) && defined(CONFIG_ARCH_OMAP4 )extern u16 pm44xx_errata;#define IS_PM44XX_ERRATUM (id) (pm44xx_errata & (id))#else
arch/arm/mach-pxa/include/mach/hx4700.h +1 -0
@@ -14,6 +14,7 @@#include <linux/gpio.h> #include <linux/mfd/asic3.h> +#include "irqs.h" /* PXA_NR_BUILTIN_GPIO */ #define HX4700_ASIC3_GPIO_BASE PXA_NR_BUILTIN_GPIO#define HX4700_EGPIO_BASE (HX4700_ASIC3_GPIO_BASE + ASIC3_NUM_GPIOS)
arch/arm/mm/Kconfig +1 -2
@@ -446,7 +446,6 @@ config CPU_32v5 config CPU_32v6 bool - select CPU_USE_DOMAINS if CPU_V6 && MMU select TLS_REG_EMUL if !CPU_32v6K && !MMU config CPU_32v6K
@@ -671,7 +670,7 @@ config ARM_VIRT_EXT config SWP_EMULATE bool "Emulate SWP/SWPB instructions" - depends on !CPU_USE_DOMAINS && CPU_V7 + depends on CPU_V7 default y if SMP select HAVE_PROC_CPU if PROC_FS help
arch/arm/mm/mmu.c +10 -0
@@ -516,6 +516,16 @@ static void __init build_mem_type_table(void) s2_device_pgprot = mem_types[MT_DEVICE ].prot_pte_s2;/* +* We don't use domains on ARMv6 (since this causes problems with +* v6/v7 kernels), so we must use a separate memory type for user +* r/o, kernel r/w to map the vectors page. +*/ +#ifndef CONFIG_ARM_LPAE +if (cpu_arch == CPU_ARCH_ARMv6) + vecs_pgprot |=L_PTE_MT_VECTORS ; +#endif + +/* * ARMv6 and above have extended page tables. */ if (cpu_arch >= CPU_ARCH_ARMv6 && (cr &CR_XP )) {
arch/arm/mm/proc-macros.S +6 -13
@@ -112,13 +112,9 @@ * 100x 1 0 1 r/o no acc * 10x0 1 0 1 r/o no acc * 1011 0 0 1 r/w no acc - * 110x 0 1 0 r/w r/o - * 11x0 0 1 0 r/w r/o - * 1111 0 1 1 r/w r/w - * - * If !CONFIG_CPU_USE_DOMAINS, the following permissions are changed: * 110x 1 1 1 r/o r/o * 11x0 1 1 1 r/o r/o + * 1111 0 1 1 r/w r/w */ .macro armv6_mt_table pfx \pfx\()_mt_table:
@@ -137,7 +133,7 @@ .long PTE_EXT_TEX(2) @ L_PTE_MT_DEV_NONSHARED .long 0x00 @ unused .long 0x00 @ unused - .long 0x00 @ unused + .long PTE_CACHEABLE | PTE_BUFFERABLE | PTE_EXT_APX @ L_PTE_MT_VECTORS .endm .macro armv6_set_pte_ext pfx
@@ -158,24 +154,21 @@ tst r1, #L_PTE_USER orrne r3, r3, #PTE_EXT_AP1 -#ifdef CONFIG_CPU_USE_DOMAINS - @ allow kernel read/write access to read-only user pages tstne r3, #PTE_EXT_APX - bicne r3, r3, #PTE_EXT_APX | PTE_EXT_AP0 -#endif + + @ user read-only -> kernel read-only + bicne r3, r3, #PTE_EXT_AP0 tst r1, #L_PTE_XN orrne r3, r3, #PTE_EXT_XN - orr r3, r3, r2 + eor r3, r3, r2 tst r1, #L_PTE_YOUNG tstne r1, #L_PTE_PRESENT moveq r3, #0 -#ifndef CONFIG_CPU_USE_DOMAINS tstne r1, #L_PTE_NONE movne r3, #0 -#endif str r3, [r0] mcr p15, 0, r0, c7, c10, 1 @ flush_pte
arch/arm/mm/proc-v7-2level.S +0 -7
@@ -90,21 +90,14 @@ ENTRY(cpu_v7_set_pte_ext) tst r1, #L_PTE_USER orrne r3, r3, #PTE_EXT_AP1 -#ifdef CONFIG_CPU_USE_DOMAINS - @ allow kernel read/write access to read-only user pages - tstne r3, #PTE_EXT_APX - bicne r3, r3, #PTE_EXT_APX | PTE_EXT_AP0 -#endif tst r1, #L_PTE_XN orrne r3, r3, #PTE_EXT_XN tst r1, #L_PTE_YOUNG tstne r1, #L_PTE_VALID -#ifndef CONFIG_CPU_USE_DOMAINS eorne r1, r1, #L_PTE_NONE tstne r1, #L_PTE_NONE -#endif moveq r3, #0 ARM( str r3, [r0, #2048]! )
arch/arm64/include/asm/pgtable.h +4 -4
@@ -199,7 +199,7 @@ static inline void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte) { if (pte_valid_user(pte)) { - if (pte_exec(pte)) +if (!pte_special (pte) &&pte_exec (pte))__sync_icache_dcache (pte, addr);if (pte_dirty (pte) &&pte_write (pte))pte_val (pte) &= ~PTE_RDONLY ;
@@ -286,11 +286,11 @@ static inline int has_transparent_hugepage(void)* Mark the prot value as uncacheable and unbufferable. */ #define pgprot_noncached (prot) \ - __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_DEVICE_nGnRnE)) + __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_DEVICE_nGnRnE) | PTE_PXN | PTE_UXN)#define pgprot_writecombine (prot) \ - __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_NORMAL_NC)) + __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_NORMAL_NC) | PTE_PXN | PTE_UXN)#define pgprot_dmacoherent (prot) \ - __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_NORMAL_NC)) + __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_NORMAL_NC) | PTE_PXN | PTE_UXN)#define __HAVE_PHYS_MEM_ACCESS_PROTstruct file ; extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
arch/arm64/include/asm/unistd32.h +1 -1
@@ -404,7 +404,7 @@ __SYSCALL(379, sys_finit_module) __SYSCALL(380, sys_sched_setattr) __SYSCALL(381, sys_sched_getattr) -#define __NR_compat_syscalls 379 +#define __NR_compat_syscalls 382/* * Compat syscall numbers used by the AArch64 kernel.
arch/s390/include/asm/atomic.h +42 -28
173 lines not on this page · raw message
arch/s390/include/asm/bitops.h +23 -18
136 lines not on this page · raw message
arch/s390/include/asm/ccwdev.h +1 -1
@@ -219,7 +219,7 @@ extern void ccw_device_get_id(struct ccw_device *, struct ccw_dev_id *);#define to_ccwdev (n) container_of(n, struct ccw_device, dev)#define to_ccwdrv (n) container_of(n, struct ccw_driver, driver) -extern struct ccw_device *ccw_device_probe_console (void ); +extern struct ccw_device *ccw_device_probe_console (struct ccw_driver *);extern void ccw_device_wait_idle (struct ccw_device *);extern int ccw_device_force_console (struct ccw_device *);
arch/s390/kernel/ptrace.c +1 -1
@@ -64,7 +64,7 @@ void update_cr_regs(struct task_struct *task)if (task->thread.per_flags &PER_FLAG_NO_TE ) cr_new &= ~(1UL <<55 );if (cr_new != cr) -__ctl_load (cr,0 ,0 ); +__ctl_load (cr_new,0 ,0 );/* Set or clear transaction execution TDC bits 62 and 63. */ __ctl_store (cr,2 ,2 ); cr_new = cr & ~3UL ;
arch/s390/kvm/kvm-s390.c +2 -1
@@ -753,7 +753,8 @@ static int vcpu_post_run(struct kvm_vcpu *vcpu, int exit_reason)if (rc ==0 ) {if (kvm_is_ucontrol (vcpu->kvm)) - rc = -EOPNOTSUPP ; +/* Don't exit for host interrupts. */ + rc = vcpu->arch.sie_block->icptcode ? -EOPNOTSUPP :0 ;else rc =kvm_handle_sie_intercept (vcpu); }
arch/sh/kernel/dumpstack.c +1 -1
@@ -115,7 +115,7 @@ static int print_trace_stack(void *data, char *name)*/ static void print_trace_address (void *data,unsigned long addr,int reliable) { -printk (data); +printk ("%s" , (char *)data);printk_address (addr, reliable); }
arch/x86/Makefile +1 -0
@@ -152,6 +152,7 @@ cfi-sections := $(call as-instr,.cfi_sections .debug_frame,-DCONFIG_AS_CFI_SECTI # does binutils support specific instructions? asinstr := $(call as-instr,fxsaveq (%rax),-DCONFIG_AS_FXSAVEQ=1) +asinstr += $(call as-instr,crc32l %eax$(comma)%eax,-DCONFIG_AS_CRC32=1) avx_instr := $(call as-instr,vxorps %ymm0$(comma)%ymm1$(comma)%ymm2,-DCONFIG_AS_AVX=1) avx2_instr :=$(call as-instr,vpbroadcastb %xmm0$(comma)%ymm1,-DCONFIG_AS_AVX2=1)
arch/x86/boot/compressed/eboot.c +3 -2
@@ -425,6 +425,9 @@ void setup_graphics(struct boot_params *boot_params)* Because the x86 boot code expects to be passed a boot_params we * need to create one ourselves (usually the bootloader would create * one for us). +* +* The caller is responsible for filling out ->code32_start in the +* returned boot_params. */ struct boot_params *make_boot_params (void *handle,efi_system_table_t *_table) {
@@ -483,8 +486,6 @@ struct boot_params *make_boot_params(void *handle, efi_system_table_t *_table) hdr->vid_mode =0xffff ; hdr->boot_flag =0xAA55 ; - hdr->code32_start = (__u64 )(unsigned long )image->image_base; - hdr->type_of_loader =0x21 ;/* Convert unicode cmdline to ascii */
arch/x86/boot/compressed/head_32.S +8 -6
@@ -50,6 +50,13 @@ ENTRY(efi_pe_entry) pushl %eax pushl %esi pushl %ecx + + call reloc +reloc: + popl %ecx + subl reloc, %ecx + movl %ecx, BP_code32_start(%eax) + sub $0x4, %esp ENTRY(efi_stub_entry)
@@ -63,12 +70,7 @@ ENTRY(efi_stub_entry) hlt jmp 1b 2: - call 3f -3: - popl %eax - subl $3b, %eax - subl BP_pref_address(%esi), %eax - add BP_code32_start(%esi), %eax + movl BP_code32_start(%esi), %eax leal preferred_addr(%eax), %eax jmp *%eax
arch/x86/boot/compressed/head_64.S +3 -6
@@ -217,6 +217,8 @@ ENTRY(efi_pe_entry) cmpq $0,%rax je 1f mov %rax, %rdx + leaq startup_32(%rip), %rax + movl %eax, BP_code32_start(%rdx) popq %rsi popq %rdi
@@ -230,12 +232,7 @@ ENTRY(efi_stub_entry) hlt jmp 1b 2: - call 3f -3: - popq %rax - subq $3b, %rax - subq BP_pref_address(%rsi), %rax - add BP_code32_start(%esi), %eax + movl BP_code32_start(%esi), %eax leaq preferred_addr(%rax), %rax jmp *%rax
arch/x86/include/asm/cpufeature.h +4 -0
@@ -217,9 +217,13 @@#define X86_FEATURE_INVPCID (9*32+10)/* Invalidate Processor Context ID */ #define X86_FEATURE_RTM (9*32+11)/* Restricted Transactional Memory */ #define X86_FEATURE_MPX (9*32+14)/* Memory Protection Extension */ +#define X86_FEATURE_AVX512F (9*32+16)/* AVX-512 Foundation */ #define X86_FEATURE_RDSEED (9*32+18)/* The RDSEED instruction */ #define X86_FEATURE_ADX (9*32+19)/* The ADCX and ADOX instructions */ #define X86_FEATURE_SMAP (9*32+20)/* Supervisor Mode Access Prevention */ +#define X86_FEATURE_AVX512PF (9*32+26)/* AVX-512 Prefetch */ +#define X86_FEATURE_AVX512ER (9*32+27)/* AVX-512 Exponential and Reciprocal */ +#define X86_FEATURE_AVX512CD (9*32+28)/* AVX-512 Conflict Detection */ /* * BUG word(s)
arch/x86/include/asm/xsave.h +10 -6
@@ -6,11 +6,14 @@#define XSTATE_CPUID 0x0000000d -#define XSTATE_FP 0x1 -#define XSTATE_SSE 0x2 -#define XSTATE_YMM 0x4 -#define XSTATE_BNDREGS 0x8 -#define XSTATE_BNDCSR 0x10 +#define XSTATE_FP 0x1 +#define XSTATE_SSE 0x2 +#define XSTATE_YMM 0x4 +#define XSTATE_BNDREGS 0x8 +#define XSTATE_BNDCSR 0x10 +#define XSTATE_OPMASK 0x20 +#define XSTATE_ZMM_Hi256 0x40 +#define XSTATE_Hi16_ZMM 0x80#define XSTATE_FPSSE (XSTATE_FP | XSTATE_SSE)
@@ -23,7 +26,8 @@#define XSAVE_YMM_OFFSET (XSAVE_HDR_SIZE + XSAVE_HDR_OFFSET)/* Supported features which support lazy state saving */ -#define XSTATE_LAZY (XSTATE_FP | XSTATE_SSE | XSTATE_YMM) +#define XSTATE_LAZY (XSTATE_FP | XSTATE_SSE | XSTATE_YMM \ + | XSTATE_OPMASK | XSTATE_ZMM_Hi256 | XSTATE_Hi16_ZMM)/* Supported features which require eager state saving */ #define XSTATE_EAGER (XSTATE_BNDREGS | XSTATE_BNDCSR)
arch/x86/kernel/ftrace.c +1 -1
@@ -659,8 +659,8 @@ ftrace_modify_code(unsigned long ip, unsigned const char *old_code, ret = -EPERM ; goto out; } -run_sync (); out: +run_sync ();return ret; fail_update:
arch/x86/kernel/ldt.c +11 -0
@@ -229,6 +229,17 @@ static int write_ldt(void __user *ptr, unsigned long bytecount, int oldmode) } } +/* +* On x86-64 we do not support 16-bit segments due to +* IRET leaking the high bits of the kernel stack address. +*/ +#ifdef CONFIG_X86_64 +if (!ldt_info.seg_32bit) { + error = -EINVAL ; + goto out_unlock; + } +#endif +fill_ldt (&ldt, &ldt_info);if (oldmode) ldt.avl =0 ;
arch/x86/lib/hash.c +4 -0
@@ -39,7 +39,11 @@static inline u32 crc32_u32 (u32 crc,u32 val) { +#ifdef CONFIG_AS_CRC32 asm ("crc32l %1,%0\n" :"+r" (crc) :"rm" (val)); +#else + asm (".byte 0xf2, 0x0f, 0x38, 0xf1, 0xc1" :"+a" (crc) :"c" (val)); +#endif return crc; }
drivers/acpi/acpica/nsrepair.c +21 -4
@@ -207,13 +207,30 @@ acpi_ns_simple_repair(struct acpi_evaluate_info *info,* this predefined name. Either one return value is expected, or none, * for both methods and other objects. * -* Exit now if there is no return object. Warning if one was expected. +* Try to fix if there was no return object. Warning if failed to fix. */ if (!return_object) {if (expected_btypes && (!(expected_btypes &ACPI_RTYPE_NONE ))) { -ACPI_WARN_PREDEFINED ((AE_INFO , info->full_pathname, -ACPI_WARN_ALWAYS , -"Missing expected return value" )); +if (package_index !=ACPI_NOT_PACKAGE_ELEMENT ) { +ACPI_WARN_PREDEFINED ((AE_INFO , + info->full_pathname, +ACPI_WARN_ALWAYS , +"Found unexpected NULL package element" )); + + status = +acpi_ns_repair_null_element (info, + expected_btypes, + package_index, + return_object_ptr); +if (ACPI_SUCCESS (status)) { +return (AE_OK );/* Repair was successful */ + } + }else { +ACPI_WARN_PREDEFINED ((AE_INFO , + info->full_pathname, +ACPI_WARN_ALWAYS , +"Missing expected return value" )); + }return (AE_AML_NO_RETURN_VALUE ); }
drivers/block/mtip32xx/mtip32xx.c +50 -38
140 lines not on this page · raw message
drivers/block/mtip32xx/mtip32xx.h +1 -1
@@ -92,7 +92,7 @@/* Driver name and version strings */ #define MTIP_DRV_NAME "mtip32xx" -#define MTIP_DRV_VERSION "1.3.0" +#define MTIP_DRV_VERSION "1.3.1"/* Maximum number of minor device numbers per device. */ #define MTIP_MAX_MINORS 16
drivers/clk/clk-s2mps11.c +1 -1
@@ -130,7 +130,7 @@ static struct device_node *s2mps11_clk_parse_dt(struct platform_device *pdev)int i;if (!iodev->dev->of_node) -return NULL ; +return ERR_PTR (-EINVAL ); clk_np =of_find_node_by_name (iodev->dev->of_node,"clocks" );if (!clk_np) {
drivers/clk/tegra/clk-tegra124.c +0 -3
@@ -764,7 +764,6 @@ static struct tegra_clk tegra124_clks[tegra_clk_max] __initdata = { [tegra_clk_sdmmc2_8] = { .dt_id = TEGRA124_CLK_SDMMC2, .present = true }, [tegra_clk_i2s1] = { .dt_id = TEGRA124_CLK_I2S1, .present = true }, [tegra_clk_i2c1] = { .dt_id = TEGRA124_CLK_I2C1, .present = true }, - [tegra_clk_ndflash] = { .dt_id = TEGRA124_CLK_NDFLASH, .present = true }, [tegra_clk_sdmmc1_8] = { .dt_id = TEGRA124_CLK_SDMMC1, .present = true }, [tegra_clk_sdmmc4_8] = { .dt_id = TEGRA124_CLK_SDMMC4, .present = true }, [tegra_clk_pwm] = { .dt_id = TEGRA124_CLK_PWM, .present = true },
@@ -809,7 +808,6 @@ static struct tegra_clk tegra124_clks[tegra_clk_max] __initdata = { [tegra_clk_trace] = { .dt_id = TEGRA124_CLK_TRACE, .present = true }, [tegra_clk_soc_therm] = { .dt_id = TEGRA124_CLK_SOC_THERM, .present = true }, [tegra_clk_dtv] = { .dt_id = TEGRA124_CLK_DTV, .present = true }, - [tegra_clk_ndspeed] = { .dt_id = TEGRA124_CLK_NDSPEED, .present = true }, [tegra_clk_i2cslow] = { .dt_id = TEGRA124_CLK_I2CSLOW, .present = true }, [tegra_clk_dsib] = { .dt_id = TEGRA124_CLK_DSIB, .present = true }, [tegra_clk_tsec] = { .dt_id = TEGRA124_CLK_TSEC, .present = true },
@@ -952,7 +950,6 @@ static struct tegra_clk tegra124_clks[tegra_clk_max] __initdata = { [tegra_clk_clk_out_3_mux] = { .dt_id = TEGRA124_CLK_CLK_OUT_3_MUX, .present = true }, [tegra_clk_dsia_mux] = { .dt_id = TEGRA124_CLK_DSIA_MUX, .present = true }, [tegra_clk_dsib_mux] = { .dt_id = TEGRA124_CLK_DSIB_MUX, .present = true }, - [tegra_clk_uarte] = { .dt_id = TEGRA124_CLK_UARTE, .present = true }, };static struct tegra_devclk devclks[]__initdata = {
drivers/clk/ti/clk-44xx.c +0 -1
@@ -222,7 +222,6 @@ static struct ti_dt_clk omap44xx_clks[] = {DT_CLK (NULL ,"auxclk5_src_ck" ,"auxclk5_src_ck" ),DT_CLK (NULL ,"auxclk5_ck" ,"auxclk5_ck" ),DT_CLK (NULL ,"auxclkreq5_ck" ,"auxclkreq5_ck" ), -DT_CLK ("50000000.gpmc" ,"fck" ,"dummy_ck" ),DT_CLK ("omap_i2c.1" ,"ick" ,"dummy_ck" ),DT_CLK ("omap_i2c.2" ,"ick" ,"dummy_ck" ), DT_CLK("omap_i2c.3", "ick", "dummy_ck"),
drivers/clk/ti/clk-54xx.c +0 -1
@@ -182,7 +182,6 @@ static struct ti_dt_clk omap54xx_clks[] = {DT_CLK (NULL ,"auxclk3_src_ck" ,"auxclk3_src_ck" ),DT_CLK (NULL ,"auxclk3_ck" ,"auxclk3_ck" ),DT_CLK (NULL ,"auxclkreq3_ck" ,"auxclkreq3_ck" ), -DT_CLK (NULL ,"gpmc_ck" ,"dummy_ck" ),DT_CLK ("omap_i2c.1" ,"ick" ,"dummy_ck" ),DT_CLK ("omap_i2c.2" ,"ick" ,"dummy_ck" ), DT_CLK("omap_i2c.3", "ick", "dummy_ck"),
drivers/clk/ti/clk-7xx.c +0 -1
@@ -262,7 +262,6 @@ static struct ti_dt_clk dra7xx_clks[] = {DT_CLK (NULL ,"vip1_gclk_mux" ,"vip1_gclk_mux" ),DT_CLK (NULL ,"vip2_gclk_mux" ,"vip2_gclk_mux" ),DT_CLK (NULL ,"vip3_gclk_mux" ,"vip3_gclk_mux" ), -DT_CLK (NULL ,"gpmc_ck" ,"dummy_ck" ),DT_CLK ("omap_i2c.1" ,"ick" ,"dummy_ck" ),DT_CLK ("omap_i2c.2" ,"ick" ,"dummy_ck" ), DT_CLK("omap_i2c.3", "ick", "dummy_ck"),
drivers/firmware/efi/efi-stub-helper.c +3 -3
@@ -468,7 +468,7 @@ grow: chunksize =EFI_READ_CHUNK_SIZE ; else chunksize = size; - status =efi_call_phys3 (fh->read, + status =efi_call_phys3 (files[j].handle->read, files[j].handle, &chunksize, (void *)addr);
@@ -480,7 +480,7 @@ grow: size -= chunksize; } -efi_call_phys1 (fh->close, files[j].handle); +efi_call_phys1 (files[j].handle->close, files[j].handle); } }
@@ -497,7 +497,7 @@ free_file_total: close_handles:for (k = j; k < i; k++) -efi_call_phys1 (fh->close, files[k].handle); +efi_call_phys1 (files[k].handle->close, files[k].handle); free_files:efi_call_phys1 (sys_table_arg->boottime->free_pool, files); fail:
drivers/gpu/drm/armada/armada_crtc.c +1 -0
@@ -678,6 +678,7 @@ static void armada_load_cursor_argb(void __iomem *base, uint32_t *pix, base + LCD_SPU_SRAM_WRDAT);writel_relaxed (addr |SRAM_WRITE , base +LCD_SPU_SRAM_CTRL ); +readl_relaxed (base +LCD_SPU_HWC_OVSA_HPXL_VLN ); addr +=1 ;if ((addr &0x00ff ) ==0 ) addr +=0xf00 ;
drivers/hv/connection.c +4 -1
@@ -55,6 +55,9 @@ static __u32 vmbus_get_next_version(__u32 current_version)case (VERSION_WIN8 ):return VERSION_WIN7 ; +case (VERSION_WIN8_1 ): +return VERSION_WIN8 ; +case (VERSION_WS2008 ):default :return VERSION_INVAL ;
@@ -77,7 +80,7 @@ static int vmbus_negotiate_version(struct vmbus_channel_msginfo *msginfo, msg->interrupt_page =virt_to_phys (vmbus_connection.int_page); msg->monitor_page1 =virt_to_phys (vmbus_connection.monitor_pages[0 ]); msg->monitor_page2 =virt_to_phys (vmbus_connection.monitor_pages[1 ]); -if (version ==VERSION_WIN8 ) +if (version ==VERSION_WIN8_1 ) msg->target_vcpu = hv_context.vp_index[smp_processor_id ()];/*
drivers/iio/adc/at91_adc.c +22 -4
@@ -765,14 +765,17 @@ static int at91_adc_probe_pdata(struct at91_adc_state *st,if (!pdata)return -EINVAL ; + st->caps = (struct at91_adc_caps *) +platform_get_device_id (pdev)->driver_data; + st->use_external = pdata->use_external_triggers; st->vref_mv = pdata->vref; st->channels_mask = pdata->channels_used; - st->num_channels = pdata->num_channels; + st->num_channels = st->caps->num_channels; st->startup_time = pdata->startup_time; st->trigger_number = pdata->trigger_number; st->trigger_list = pdata->trigger_list; - st->registers = pdata->registers; + st->registers = &st->caps->registers;return 0 ; }
@@ -1101,7 +1104,6 @@ static int at91_adc_remove(struct platform_device *pdev)return 0 ; } -#ifdef CONFIG_OF static struct at91_adc_caps at91sam9260_caps = { .calc_startup_ticks = calc_startup_ticks_9260, .num_channels =4 ,
@@ -1154,11 +1156,27 @@ static const struct of_device_id at91_adc_dt_ids[] = { {}, };MODULE_DEVICE_TABLE (of, at91_adc_dt_ids); -#endif + +static const struct platform_device_id at91_adc_ids[] = { + { + .name ="at91sam9260-adc" , + .driver_data = (unsigned long )&at91sam9260_caps, + }, { + .name ="at91sam9g45-adc" , + .driver_data = (unsigned long )&at91sam9g45_caps, + }, { + .name ="at91sam9x5-adc" , + .driver_data = (unsigned long )&at91sam9x5_caps, + }, { +/* terminator */ + } +}; +MODULE_DEVICE_TABLE (platform, at91_adc_ids);static struct platform_driver at91_adc_driver = { .probe = at91_adc_probe, .remove = at91_adc_remove, + .id_table = at91_adc_ids, .driver = { .name =DRIVER_NAME , .of_match_table =of_match_ptr (at91_adc_dt_ids),
drivers/iio/industrialio-buffer.c +4 -2
@@ -165,7 +165,8 @@ static ssize_t iio_scan_el_show(struct device *dev,int ret;struct iio_dev *indio_dev =dev_to_iio_dev (dev); - ret =test_bit (to_iio_dev_attr (attr)->address, +/* Ensure ret is 0 or 1. */ + ret = !!test_bit (to_iio_dev_attr (attr)->address, indio_dev->buffer->scan_mask);return sprintf (buf,"%d\n" , ret);
@@ -866,7 +867,8 @@ int iio_scan_mask_query(struct iio_dev *indio_dev,if (!buffer->scan_mask)return 0 ; -return test_bit (bit, buffer->scan_mask); +/* Ensure return value is 0 or 1. */ +return !!test_bit (bit, buffer->scan_mask); };EXPORT_SYMBOL_GPL (iio_scan_mask_query);
drivers/iio/light/cm32181.c +1 -0
@@ -221,6 +221,7 @@ static int cm32181_read_raw(struct iio_dev *indio_dev, *val = cm32181->calibscale;return IIO_VAL_INT ;case IIO_CHAN_INFO_INT_TIME : + *val =0 ; ret =cm32181_read_als_it (cm32181, val2);return ret; }
drivers/iio/light/cm36651.c +20 -2
@@ -652,7 +652,19 @@ static int cm36651_probe(struct i2c_client *client, cm36651->client = client; cm36651->ps_client =i2c_new_dummy (client->adapter,CM36651_I2C_ADDR_PS ); +if (!cm36651->ps_client) { +dev_err (&client->dev,"%s: new i2c device failed\n" , __func__); + ret = -ENODEV ; + goto error_disable_reg; + } + cm36651->ara_client =i2c_new_dummy (client->adapter,CM36651_ARA ); +if (!cm36651->ara_client) { +dev_err (&client->dev,"%s: new i2c device failed\n" , __func__); + ret = -ENODEV ; + goto error_i2c_unregister_ps; + } +mutex_init (&cm36651->lock); indio_dev->dev.parent = &client->dev; indio_dev->channels = cm36651_channels;
@@ -664,7 +676,7 @@ static int cm36651_probe(struct i2c_client *client, ret =cm36651_setup_reg (cm36651);if (ret) {dev_err (&client->dev,"%s: register setup failed\n" , __func__); - goto error_disable_reg; + goto error_i2c_unregister_ara; } ret = request_threaded_irq(client->irq, NULL, cm36651_irq_handler,
@@ -672,7 +684,7 @@ static int cm36651_probe(struct i2c_client *client, "cm36651", indio_dev);if (ret) {dev_err (&client->dev,"%s: request irq failed\n" , __func__); - goto error_disable_reg; + goto error_i2c_unregister_ara; } ret =iio_device_register (indio_dev);
@@ -685,6 +697,10 @@ static int cm36651_probe(struct i2c_client *client, error_free_irq:free_irq (client->irq, indio_dev); +error_i2c_unregister_ara: +i2c_unregister_device (cm36651->ara_client); +error_i2c_unregister_ps: +i2c_unregister_device (cm36651->ps_client); error_disable_reg:regulator_disable (cm36651->vled_reg);return ret;
@@ -698,6 +714,8 @@ static int cm36651_remove(struct i2c_client *client)iio_device_unregister (indio_dev);regulator_disable (cm36651->vled_reg);free_irq (client->irq, indio_dev); +i2c_unregister_device (cm36651->ps_client); +i2c_unregister_device (cm36651->ara_client);return 0 ; }
drivers/infiniband/core/cm.c +0 -17
@@ -349,23 +349,6 @@ static void cm_init_av_for_response(struct cm_port *port, struct ib_wc *wc, grh, &av->ah_attr); } -int ib_update_cm_av (struct ib_cm_id *id,const u8 *smac,const u8 *alt_smac) -{ -struct cm_id_private *cm_id_priv; - - cm_id_priv = container_of(id, struct cm_id_private, id); - -if (smac !=NULL ) -memcpy (cm_id_priv->av.smac, smac,sizeof (cm_id_priv->av.smac)); - -if (alt_smac !=NULL ) -memcpy (cm_id_priv->alt_av.smac, alt_smac, -sizeof (cm_id_priv->alt_av.smac)); - -return 0 ; -} -EXPORT_SYMBOL (ib_update_cm_av); -static int cm_init_av_by_path (struct ib_sa_path_rec *path,struct cm_av *av) {struct cm_device *cm_dev;
drivers/infiniband/core/cma.c +0 -26
@@ -1284,15 +1284,6 @@ static int cma_req_handler(struct ib_cm_id *cm_id, struct ib_cm_event *ib_event)struct rdma_id_private *listen_id, *conn_id;struct rdma_cm_event event;int offset, ret; -u8 smac[ETH_ALEN ]; -u8 alt_smac[ETH_ALEN ]; -u8 *psmac = smac; -u8 *palt_smac = alt_smac; -int is_iboe = ((rdma_node_get_transport (cm_id->device->node_type) == -RDMA_TRANSPORT_IB ) && - (rdma_port_get_link_layer (cm_id->device, - ib_event->param.req_rcvd.port) == -IB_LINK_LAYER_ETHERNET )); listen_id = cm_id->context;if (!cma_check_req_qp_type (&listen_id->id, ib_event))
@@ -1336,28 +1327,11 @@ static int cma_req_handler(struct ib_cm_id *cm_id, struct ib_cm_event *ib_event) ret = conn_id->id.event_handler (&conn_id->id, &event);if (ret) goto err3; - -if (is_iboe) { -if (ib_event->param.req_rcvd.primary_path !=NULL ) -rdma_addr_find_smac_by_sgid ( - &ib_event->param.req_rcvd.primary_path->sgid, - psmac,NULL ); -else - psmac =NULL ; -if (ib_event->param.req_rcvd.alternate_path !=NULL ) -rdma_addr_find_smac_by_sgid ( - &ib_event->param.req_rcvd.alternate_path->sgid, - palt_smac,NULL ); -else - palt_smac =NULL ; - }/* * Acquire mutex to prevent user executing rdma_destroy_id() * while we're accessing the cm_id. */ mutex_lock (&lock); -if (is_iboe) -ib_update_cm_av (cm_id, psmac, palt_smac);if (cma_comp (conn_id,RDMA_CM_CONNECT ) && (conn_id->id.qp_type !=IB_QPT_UD ))ib_send_cm_mra (cm_id,CMA_CM_MRA_SETTING ,NULL ,0 );
drivers/infiniband/hw/ehca/ehca_cq.c +1 -0
@@ -283,6 +283,7 @@ struct ib_cq *ehca_create_cq(struct ib_device *device, int cqe, int comp_vector, (my_cq->galpas.user.fw_handle & (PAGE_SIZE -1 ));if (ib_copy_to_udata (udata, &resp,sizeof (resp))) {ehca_err (device,"Copy to udata failed." ); + cq =ERR_PTR (-EFAULT ); goto create_cq_exit4; } }
drivers/infiniband/hw/ipath/ipath_diag.c +25 -41
110 lines not on this page · raw message
drivers/infiniband/hw/mthca/mthca_provider.c +1 -0
@@ -695,6 +695,7 @@ static struct ib_cq *mthca_create_cq(struct ib_device *ibdev, int entries,if (context &&ib_copy_to_udata (udata, &cq->cqn,sizeof (__u32))) {mthca_free_cq (to_mdev (ibdev), cq); + err = -EFAULT ; goto err_free; }
drivers/infiniband/hw/nes/nes_verbs.c +1 -1
@@ -1186,7 +1186,7 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd,nes_free_resource (nesadapter, nesadapter->allocated_qps, qp_num);kfree (nesqp->allocated_buffer);nes_debug (NES_DBG_QP ,"ib_copy_from_udata() Failed \n" ); -return NULL ; +return ERR_PTR (-EFAULT ); }if (req.user_wqe_buffers) { virt_wqs =1 ;
drivers/infiniband/hw/qib/qib_file_ops.c +2 -1
@@ -1578,7 +1578,7 @@ static int do_qib_user_sdma_queue_create(struct file *fp)struct qib_ctxtdata *rcd = fd->rcd;struct qib_devdata *dd = rcd->dd; -if (dd->flags &QIB_HAS_SEND_DMA ) +if (dd->flags &QIB_HAS_SEND_DMA ) { fd->pq = qib_user_sdma_queue_create(&dd->pcidev->dev, dd->unit,
@@ -1586,6 +1586,7 @@ static int do_qib_user_sdma_queue_create(struct file *fp) fd->subctxt);if (!fd->pq)return -ENOMEM ; + }return 0 ; }
drivers/infiniband/hw/qib/qib_init.c +11 -14
@@ -1097,14 +1097,10 @@ struct qib_devdata *qib_alloc_devdata(struct pci_dev *pdev, size_t extra)int ret; dd = (struct qib_devdata *)ib_alloc_device (sizeof (*dd) + extra); -if (!dd) { - dd =ERR_PTR (-ENOMEM ); - goto bail; - } +if (!dd) +return ERR_PTR (-ENOMEM ); -#ifdef CONFIG_DEBUG_FS -qib_dbg_ibdev_init (&dd->verbs_dev); -#endif +INIT_LIST_HEAD (&dd->list);idr_preload (GFP_KERNEL );spin_lock_irqsave (&qib_devs_lock, flags);
@@ -1121,11 +1117,6 @@ struct qib_devdata *qib_alloc_devdata(struct pci_dev *pdev, size_t extra)if (ret <0 ) {qib_early_err (&pdev->dev,"Could not allocate unit ID: error %d\n" , -ret); -#ifdef CONFIG_DEBUG_FS -qib_dbg_ibdev_exit (&dd->verbs_dev); -#endif -ib_dealloc_device (&dd->verbs_dev.ibdev); - dd =ERR_PTR (ret); goto bail; }
@@ -1139,9 +1130,15 @@ struct qib_devdata *qib_alloc_devdata(struct pci_dev *pdev, size_t extra)qib_early_err (&pdev->dev,"Could not alloc cpulist info, cpu affinity might be wrong\n" ); } - -bail: +#ifdef CONFIG_DEBUG_FS +qib_dbg_ibdev_init (&dd->verbs_dev); +#endif return dd; +bail: +if (!list_empty (&dd->list)) +list_del_init (&dd->list); +ib_dealloc_device (&dd->verbs_dev.ibdev); +return ERR_PTR (ret);; }/*
drivers/infiniband/ulp/isert/ib_isert.c +44 -26
169 lines not on this page · raw message
drivers/infiniband/ulp/srpt/ib_srpt.c +10 -6
@@ -1078,6 +1078,7 @@ static void srpt_unmap_sg_to_ib_sge(struct srpt_rdma_ch *ch,static int srpt_map_sg_to_ib_sge (struct srpt_rdma_ch *ch,struct srpt_send_ioctx *ioctx) { +struct ib_device *dev = ch->sport->sdev->device;struct se_cmd *cmd;struct scatterlist *sg, *sg_orig;int sg_cnt;
@@ -1124,7 +1125,7 @@ static int srpt_map_sg_to_ib_sge(struct srpt_rdma_ch *ch, db = ioctx->rbufs; tsize = cmd->data_length; - dma_len =sg_dma_len (&sg[0 ]); + dma_len =ib_sg_dma_len (dev, &sg[0 ]); riu = ioctx->rdma_ius;/*
@@ -1155,7 +1156,8 @@ static int srpt_map_sg_to_ib_sge(struct srpt_rdma_ch *ch, ++j;if (j < count) { sg =sg_next (sg); - dma_len =sg_dma_len (sg); + dma_len =ib_sg_dma_len ( + dev, sg); } } }else {
@@ -1192,8 +1194,8 @@ static int srpt_map_sg_to_ib_sge(struct srpt_rdma_ch *ch, tsize = cmd->data_length; riu = ioctx->rdma_ius; sg = sg_orig; - dma_len =sg_dma_len (&sg[0 ]); - dma_addr =sg_dma_address (&sg[0 ]); + dma_len =ib_sg_dma_len (dev, &sg[0 ]); + dma_addr =ib_sg_dma_address (dev, &sg[0 ]);/* this second loop is really mapped sg_addres to rdma_iu->ib_sge */ for (i = 0, j = 0;
@@ -1216,8 +1218,10 @@ static int srpt_map_sg_to_ib_sge(struct srpt_rdma_ch *ch, ++j;if (j < count) { sg =sg_next (sg); - dma_len =sg_dma_len (sg); - dma_addr =sg_dma_address (sg); + dma_len =ib_sg_dma_len ( + dev, sg); + dma_addr =ib_sg_dma_address ( + dev, sg); } } }else {
drivers/media/dvb-frontends/m88rs2000.c +18 -1
@@ -715,6 +715,22 @@ static int m88rs2000_get_frontend(struct dvb_frontend *fe)return 0 ; } +static int m88rs2000_get_tune_settings (struct dvb_frontend *fe, +struct dvb_frontend_tune_settings *tune) +{ +struct dtv_frontend_properties *c = &fe->dtv_property_cache; + +if (c->symbol_rate >3000000 ) + tune->min_delay_ms =2000 ; +else + tune->min_delay_ms =3000 ; + + tune->step_size = c->symbol_rate /16000 ; + tune->max_drift = c->symbol_rate /2000 ; + +return 0 ; +} +static int m88rs2000_i2c_gate_ctrl (struct dvb_frontend *fe,int enable) {struct m88rs2000_state *state = fe->demodulator_priv;
@@ -746,7 +762,7 @@ static struct dvb_frontend_ops m88rs2000_ops = { .symbol_rate_tolerance = 500, /* ppm */ .caps =FE_CAN_FEC_1_2 |FE_CAN_FEC_2_3 |FE_CAN_FEC_3_4 |FE_CAN_FEC_5_6 |FE_CAN_FEC_7_8 | -FE_CAN_QPSK | +FE_CAN_QPSK |FE_CAN_INVERSION_AUTO |FE_CAN_FEC_AUTO },
@@ -766,6 +782,7 @@ static struct dvb_frontend_ops m88rs2000_ops = { .set_frontend = m88rs2000_set_frontend, .get_frontend = m88rs2000_get_frontend, + .get_tune_settings = m88rs2000_get_tune_settings, }; struct dvb_frontend *m88rs2000_attach(const struct m88rs2000_config *config,
drivers/media/pci/saa7134/saa7134-cards.c +2 -2
@@ -8045,8 +8045,8 @@ int saa7134_board_init2(struct saa7134_dev *dev)break ; }/* switch() */ -/* initialize tuner */ -if (TUNER_ABSENT != dev->tuner_type) { +/* initialize tuner (don't do this when resuming) */ +if (!dev->insuspend &&TUNER_ABSENT != dev->tuner_type) {int has_demod = (dev->tda9887_conf &TDA9887_PRESENT );/* Note: radio tuner address is always filled in,
drivers/media/platform/omap3isp/isppreview.c +9 -0
@@ -1079,6 +1079,7 @@ static void preview_config_input_format(struct isp_prev_device *prev,*/ static void preview_config_input_size (struct isp_prev_device *prev,u32 active) { +const struct v4l2_mbus_framefmt *format = &prev->formats[PREV_PAD_SINK ];struct isp_device *isp =to_isp_device (prev);unsigned int sph = prev->crop.left;unsigned int eph = prev->crop.left + prev->crop.width -1 ;
@@ -1086,6 +1087,14 @@ static void preview_config_input_size(struct isp_prev_device *prev, u32 active)unsigned int elv = prev->crop.top + prev->crop.height -1 ;u32 features; +if (format->code !=V4L2_MBUS_FMT_Y8_1X8 && + format->code !=V4L2_MBUS_FMT_Y10_1X10 ) { + sph -=2 ; + eph +=2 ; + slv -=2 ; + elv +=2 ; + } + features = (prev->params.params[0 ].features & active) | (prev->params.params[1 ].features & ~active);
drivers/media/usb/em28xx/em28xx-audio.c +11 -11
@@ -252,7 +252,7 @@ static int snd_em28xx_capture_open(struct snd_pcm_substream *substream) {struct em28xx *dev =snd_pcm_substream_chip (substream);struct snd_pcm_runtime *runtime = substream->runtime; -int ret =0 ; +int nonblock, ret =0 ;if (!dev) { em28xx_err("BUG: em28xx can't find device struct."
@@ -265,15 +265,15 @@ static int snd_em28xx_capture_open(struct snd_pcm_substream *substream)dprintk ("opening device and trying to acquire exclusive lock\n" ); + nonblock = !!(substream->f_flags &O_NONBLOCK ); +if (nonblock) { +if (!mutex_trylock (&dev->lock)) +return -EAGAIN ; + }else +mutex_lock (&dev->lock); + runtime->hw = snd_em28xx_hw_capture;if ((dev->alt ==0 || dev->is_audio_only) && dev->adev.users ==0 ) { -int nonblock = !!(substream->f_flags &O_NONBLOCK ); - -if (nonblock) { -if (!mutex_trylock (&dev->lock)) -return -EAGAIN ; - }else -mutex_lock (&dev->lock);if (dev->is_audio_only)/* vendor audio is on a separate interface */ dev->alt =1 ;
@@ -299,11 +299,11 @@ static int snd_em28xx_capture_open(struct snd_pcm_substream *substream) ret =em28xx_audio_analog_set (dev);if (ret <0 ) goto err; - - dev->adev.users++; -mutex_unlock (&dev->lock); } + dev->adev.users++; +mutex_unlock (&dev->lock); +/* Dynamically adjust the period size */ snd_pcm_hw_constraint_integer (runtime,SNDRV_PCM_HW_PARAM_PERIODS ); snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
drivers/media/usb/em28xx/em28xx-dvb.c +2 -1
@@ -693,7 +693,8 @@ static void pctv_520e_init(struct em28xx *dev)static int em28xx_pctv_290e_set_lna (struct dvb_frontend *fe) {struct dtv_frontend_properties *c = &fe->dtv_property_cache; -struct em28xx *dev = fe->dvb->priv; +struct em28xx_i2c_bus *i2c_bus = fe->dvb->priv; +struct em28xx *dev = i2c_bus->dev;#ifdef CONFIG_GPIOLIB struct em28xx_dvb *dvb = dev->dvb;int ret;
drivers/media/usb/gspca/sn9c20x.c +1 -0
@@ -2359,6 +2359,7 @@ static const struct usb_device_id device_table[] = { {USB_DEVICE(0x045e, 0x00f4), SN9C20X(OV9650, 0x30, 0)}, {USB_DEVICE(0x145f, 0x013d), SN9C20X(OV7660, 0x21, 0)}, {USB_DEVICE(0x0458, 0x7029), SN9C20X(HV7131R, 0x11, 0)}, + {USB_DEVICE(0x0458, 0x7045), SN9C20X(MT9M112, 0x5d, LED_REVERSE)}, {USB_DEVICE(0x0458, 0x704a), SN9C20X(MT9M112, 0x5d, 0)}, {USB_DEVICE(0x0458, 0x704c), SN9C20X(MT9M112, 0x5d, 0)}, {USB_DEVICE(0xa168, 0x0610), SN9C20X(HV7131R, 0x11, 0)},
drivers/media/usb/uvc/uvc_video.c +19 -1
@@ -1847,7 +1847,25 @@ int uvc_video_enable(struct uvc_streaming *stream, int enable)if (!enable) {uvc_uninit_video (stream,1 ); -usb_set_interface (stream->dev->udev, stream->intfnum,0 ); +if (stream->intf->num_altsetting >1 ) { +usb_set_interface (stream->dev->udev, + stream->intfnum,0 ); + }else { +/* UVC doesn't specify how to inform a bulk-based device +* when the video stream is stopped. Windows sends a +* CLEAR_FEATURE(HALT) request to the video streaming +* bulk endpoint, mimic the same behaviour. +*/ +unsigned int epnum = stream->header.bEndpointAddress + &USB_ENDPOINT_NUMBER_MASK ; +unsigned int dir = stream->header.bEndpointAddress + &USB_ENDPOINT_DIR_MASK ; +unsigned int pipe; + + pipe =usb_sndbulkpipe (stream->dev->udev, epnum) | dir; +usb_clear_halt (stream->dev->udev, pipe); + } +uvc_queue_enable (&stream->queue,0 );uvc_video_clock_cleanup (stream);return 0 ;
drivers/media/v4l2-core/v4l2-compat-ioctl32.c +2 -2
@@ -787,8 +787,8 @@ static int put_v4l2_subdev_edid32(struct v4l2_subdev_edid *kp, struct v4l2_subde#define VIDIOC_DQBUF32 _IOWR('V', 17, struct v4l2_buffer32)#define VIDIOC_ENUMSTD32 _IOWR('V', 25, struct v4l2_standard32)#define VIDIOC_ENUMINPUT32 _IOWR('V', 26, struct v4l2_input32) -#define VIDIOC_SUBDEV_G_EDID32 _IOWR('V', 63, struct v4l2_subdev_edid32) -#define VIDIOC_SUBDEV_S_EDID32 _IOWR('V', 64, struct v4l2_subdev_edid32) +#define VIDIOC_SUBDEV_G_EDID32 _IOWR('V', 40, struct v4l2_subdev_edid32) +#define VIDIOC_SUBDEV_S_EDID32 _IOWR('V', 41, struct v4l2_subdev_edid32)#define VIDIOC_TRY_FMT32 _IOWR('V', 64, struct v4l2_format32)#define VIDIOC_G_EXT_CTRLS32 _IOWR('V', 71, struct v4l2_ext_controls32)#define VIDIOC_S_EXT_CTRLS32 _IOWR('V', 72, struct v4l2_ext_controls32)
drivers/media/v4l2-core/v4l2-dv-timings.c +4 -0
@@ -26,6 +26,10 @@#include <linux/v4l2-dv-timings.h> #include <media/v4l2-dv-timings.h> +MODULE_AUTHOR ("Hans Verkuil" ); +MODULE_DESCRIPTION ("V4L2 DV Timings Helper Functions" ); +MODULE_LICENSE ("GPL" ); +const struct v4l2_dv_timings v4l2_dv_timings_presets[] = {V4L2_DV_BT_CEA_640X480P59_94 ,V4L2_DV_BT_CEA_720X480I59_94 ,
drivers/mfd/88pm800.c +1 -2
@@ -571,7 +571,7 @@ static int pm800_probe(struct i2c_client *client, ret =pm800_pages_init (chip);if (ret) {dev_err (&client->dev,"pm800_pages_init failed!\n" ); - goto err_page_init; + goto err_device_init; } ret =device_800_init (chip, pdata);
@@ -587,7 +587,6 @@ static int pm800_probe(struct i2c_client *client, err_device_init:pm800_pages_exit (chip); -err_page_init: err_subchip_alloc:pm80x_deinit (); out_init:
drivers/mfd/88pm860x-core.c +6 -0
@@ -1179,12 +1179,18 @@ static int pm860x_probe(struct i2c_client *client, chip->companion_addr = pdata->companion_addr; chip->companion =i2c_new_dummy (chip->client->adapter, chip->companion_addr); +if (!chip->companion) { +dev_err (&client->dev, +"Failed to allocate I2C companion device\n" ); +return -ENODEV ; + } chip->regmap_companion =regmap_init_i2c (chip->companion, &pm860x_regmap_config);if (IS_ERR (chip->regmap_companion)) { ret =PTR_ERR (chip->regmap_companion);dev_err (&chip->companion->dev,"Failed to allocate register map: %d\n" , ret); +i2c_unregister_device (chip->companion);return ret; }i2c_set_clientdata (chip->companion, chip);
drivers/mfd/kempld-core.c +5 -2
@@ -322,9 +322,12 @@ static int kempld_detect_device(struct kempld_device_data *pld)return -ENODEV ; } -/* Release hardware mutex if aquired */ -if (!(index_reg &KEMPLD_MUTEX_KEY )) +/* Release hardware mutex if acquired */ +if (!(index_reg &KEMPLD_MUTEX_KEY )) {iowrite8 (KEMPLD_MUTEX_KEY , pld->io_index); +/* PXT and COMe-cPC2 boards may require a second release */ +iowrite8 (KEMPLD_MUTEX_KEY , pld->io_index); + }mutex_unlock (&pld->lock);
drivers/mfd/max77686.c +4 -0
@@ -121,6 +121,10 @@ static int max77686_i2c_probe(struct i2c_client *i2c,dev_info (max77686->dev,"device found\n" ); max77686->rtc =i2c_new_dummy (i2c->adapter,I2C_ADDR_RTC ); +if (!max77686->rtc) { +dev_err (max77686->dev,"Failed to allocate I2C device for RTC\n" ); +return -ENODEV ; + }i2c_set_clientdata (max77686->rtc, max77686);max77686_irq_init (max77686);
drivers/mfd/max77693.c +11 -1
@@ -148,9 +148,18 @@ static int max77693_i2c_probe(struct i2c_client *i2c,dev_info (max77693->dev,"device ID: 0x%x\n" , reg_data); max77693->muic =i2c_new_dummy (i2c->adapter,I2C_ADDR_MUIC ); +if (!max77693->muic) { +dev_err (max77693->dev,"Failed to allocate I2C device for MUIC\n" ); +return -ENODEV ; + }i2c_set_clientdata (max77693->muic, max77693); max77693->haptic =i2c_new_dummy (i2c->adapter,I2C_ADDR_HAPTIC ); +if (!max77693->haptic) { +dev_err (max77693->dev,"Failed to allocate I2C device for Haptic\n" ); + ret = -ENODEV ; + goto err_i2c_haptic; + }i2c_set_clientdata (max77693->haptic, max77693);/*
@@ -184,8 +193,9 @@ err_mfd:max77693_irq_exit (max77693); err_irq: err_regmap_muic: -i2c_unregister_device (max77693->muic);i2c_unregister_device (max77693->haptic); +err_i2c_haptic: +i2c_unregister_device (max77693->muic);return ret; }
drivers/mfd/max8925-i2c.c +9 -0
@@ -181,9 +181,18 @@ static int max8925_probe(struct i2c_client *client,mutex_init (&chip->io_lock); chip->rtc =i2c_new_dummy (chip->i2c->adapter,RTC_I2C_ADDR ); +if (!chip->rtc) { +dev_err (chip->dev,"Failed to allocate I2C device for RTC\n" ); +return -ENODEV ; + }i2c_set_clientdata (chip->rtc, chip); chip->adc =i2c_new_dummy (chip->i2c->adapter,ADC_I2C_ADDR ); +if (!chip->adc) { +dev_err (chip->dev,"Failed to allocate I2C device for ADC\n" ); +i2c_unregister_device (chip->rtc); +return -ENODEV ; + }i2c_set_clientdata (chip->adc, chip);device_init_wakeup (&client->dev,1 );
drivers/mfd/max8997.c +18 -0
@@ -208,10 +208,26 @@ static int max8997_i2c_probe(struct i2c_client *i2c,mutex_init (&max8997->iolock); max8997->rtc =i2c_new_dummy (i2c->adapter,I2C_ADDR_RTC ); +if (!max8997->rtc) { +dev_err (max8997->dev,"Failed to allocate I2C device for RTC\n" ); +return -ENODEV ; + }i2c_set_clientdata (max8997->rtc, max8997); + max8997->haptic =i2c_new_dummy (i2c->adapter,I2C_ADDR_HAPTIC ); +if (!max8997->haptic) { +dev_err (max8997->dev,"Failed to allocate I2C device for Haptic\n" ); + ret = -ENODEV ; + goto err_i2c_haptic; + }i2c_set_clientdata (max8997->haptic, max8997); + max8997->muic =i2c_new_dummy (i2c->adapter,I2C_ADDR_MUIC ); +if (!max8997->muic) { +dev_err (max8997->dev,"Failed to allocate I2C device for MUIC\n" ); + ret = -ENODEV ; + goto err_i2c_muic; + }i2c_set_clientdata (max8997->muic, max8997);pm_runtime_set_active (max8997->dev);
@@ -239,7 +255,9 @@ static int max8997_i2c_probe(struct i2c_client *i2c, err_mfd:mfd_remove_devices (max8997->dev);i2c_unregister_device (max8997->muic); +err_i2c_muic:i2c_unregister_device (max8997->haptic); +err_i2c_haptic:i2c_unregister_device (max8997->rtc);return ret; }
drivers/mfd/max8998.c +4 -0
@@ -215,6 +215,10 @@ static int max8998_i2c_probe(struct i2c_client *i2c,mutex_init (&max8998->iolock); max8998->rtc =i2c_new_dummy (i2c->adapter,RTC_I2C_ADDR ); +if (!max8998->rtc) { +dev_err (&i2c->dev,"Failed to allocate I2C device for RTC\n" ); +return -ENODEV ; + }i2c_set_clientdata (max8998->rtc, max8998);max8998_irq_init (max8998);
drivers/mfd/sec-core.c +4 -0
@@ -252,6 +252,10 @@ static int sec_pmic_probe(struct i2c_client *i2c, } sec_pmic->rtc =i2c_new_dummy (i2c->adapter,RTC_I2C_ADDR ); +if (!sec_pmic->rtc) { +dev_err (&i2c->dev,"Failed to allocate I2C for RTC\n" ); +return -ENODEV ; + }i2c_set_clientdata (sec_pmic->rtc, sec_pmic); sec_pmic->regmap_rtc = devm_regmap_init_i2c(sec_pmic->rtc,
drivers/mfd/tps65910.c +3 -1
@@ -255,8 +255,10 @@ static int tps65910_irq_init(struct tps65910 *tps65910, int irq, ret =regmap_add_irq_chip (tps65910->regmap, tps65910->chip_irq,IRQF_ONESHOT , pdata->irq_base, tps6591x_irqs_chip, &tps65910->irq_data); -if (ret <0 ) +if (ret <0 ) {dev_warn (tps65910->dev,"Failed to add irq_chip %d\n" , ret); + tps65910->chip_irq =0 ; + }return ret; }
drivers/mfd/twl-core.c +5 -5
@@ -282,11 +282,11 @@ static struct reg_default twl4030_49_defaults[] = {static bool twl4030_49_nop_reg (struct device *dev,unsigned int reg) {switch (reg) { -case 0 : -case 3 : -case 40 : -case 41 : -case 42 : +case 0x00 : +case 0x03 : +case 0x40 : +case 0x41 : +case 0x42 :return false;default :return true;
drivers/misc/mei/client.c +55 -21
106 lines not on this page · raw message
drivers/misc/mei/client.h +0 -18
@@ -45,8 +45,6 @@ static inline void mei_io_list_init(struct mei_cl_cb *list) {INIT_LIST_HEAD (&list->list); } -void mei_io_list_flush (struct mei_cl_cb *list,struct mei_cl *cl); -/* * MEI Host Client Functions */
@@ -61,22 +59,6 @@ int mei_cl_unlink(struct mei_cl *cl);int mei_cl_flush_queues (struct mei_cl *cl);struct mei_cl_cb *mei_cl_find_read_cb (struct mei_cl *cl); -/** -* mei_cl_cmp_id - tells if file private data have same id -* -* @fe1: private data of 1. file object -* @fe2: private data of 2. file object -* -* returns true - if ids are the same and not NULL -*/ -static inline bool mei_cl_cmp_id (const struct mei_cl *cl1, -const struct mei_cl *cl2) -{ -return cl1 && cl2 && - (cl1->host_client_id == cl2->host_client_id) && - (cl1->me_client_id == cl2->me_client_id); -} -int mei_cl_flow_ctrl_creds (struct mei_cl *cl);
drivers/misc/mei/hw-me-regs.h +5 -0
@@ -115,6 +115,11 @@#define MEI_DEV_ID_LPT_HR 0x8CBA/* Lynx Point H Refresh */ #define MEI_DEV_ID_WPT_LP 0x9CBA/* Wildcat Point LP */ + +/* Host Firmware Status Registers in PCI Config Space */ +#define PCI_CFG_HFS_1 0x40 +#define PCI_CFG_HFS_2 0x48 +/* * MEI HW Section */
drivers/misc/mei/interrupt.c +1 -2
@@ -428,8 +428,7 @@ int mei_irq_write_handler(struct mei_device *dev, struct mei_cl_cb *cmpl_list) cl->status =0 ;list_del (&cb->list); -if (MEI_WRITING == cl->writing_state && - cb->fop_type ==MEI_FOP_WRITE && +if (cb->fop_type ==MEI_FOP_WRITE && cl != &dev->iamthif_cl) {cl_dbg (dev, cl,"MEI WRITE COMPLETE\n" ); cl->writing_state =MEI_WRITE_COMPLETE ;
drivers/misc/mei/main.c +1 -2
@@ -653,8 +653,7 @@ static unsigned int mei_poll(struct file *file, poll_table *wait) goto out; } -if (MEI_WRITE_COMPLETE == cl->writing_state) - mask |= (POLLIN |POLLRDNORM ); + mask |= (POLLIN |POLLRDNORM ); out:mutex_unlock (&dev->device_lock);
drivers/misc/mei/pci-me.c +23 -7
@@ -100,15 +100,31 @@ static bool mei_me_quirk_probe(struct pci_dev *pdev, const struct pci_device_id *ent) {u32 reg; -if (ent->device ==MEI_DEV_ID_PBG_1 ) { -pci_read_config_dword (pdev,0x48 , ®); -/* make sure that bit 9 is up and bit 10 is down */ -if ((reg &0x600 ) ==0x200 ) { -dev_info (&pdev->dev,"Device doesn't have valid ME Interface\n" ); -return false; - } +/* Cougar Point || Patsburg */ +if (ent->device ==MEI_DEV_ID_CPT_1 || + ent->device ==MEI_DEV_ID_PBG_1 ) { +pci_read_config_dword (pdev,PCI_CFG_HFS_2 , ®); +/* make sure that bit 9 (NM) is up and bit 10 (DM) is down */ +if ((reg &0x600 ) ==0x200 ) + goto no_mei; } + +/* Lynx Point */ +if (ent->device ==MEI_DEV_ID_LPT_H || + ent->device ==MEI_DEV_ID_LPT_W || + ent->device ==MEI_DEV_ID_LPT_HR ) { +/* Read ME FW Status check for SPS Firmware */ +pci_read_config_dword (pdev,PCI_CFG_HFS_1 , ®); +/* if bits [19:16] = 15, running SPS Firmware */ +if ((reg &0xf0000 ) ==0xf0000 ) + goto no_mei; + } +return true; + +no_mei: +dev_info (&pdev->dev,"Device doesn't have valid ME Interface\n" ); +return false; }/** * mei_probe - Device Initialization Routine
drivers/pci/host/pci-imx6.c +34 -13
69 lines not on this page · raw message
drivers/pci/host/pci-mvebu.c +1 -1
@@ -797,7 +797,7 @@ static int mvebu_get_tgt_attr(struct device_node *np, int devfn,for (i =0 ; i < nranges; i++) {u32 flags =of_read_number (range,1 ); -u32 slot =of_read_number (range,2 ); +u32 slot =of_read_number (range +1 ,1 );u64 cpuaddr =of_read_number (range + na, pna);unsigned long rtype;
drivers/regulator/arizona-ldo1.c +3 -4
@@ -153,11 +153,9 @@ static const struct regulator_desc arizona_ldo1 = { .vsel_reg = ARIZONA_LDO1_CONTROL_1, .vsel_mask = ARIZONA_LDO1_VSEL_MASK, - .bypass_reg = ARIZONA_LDO1_CONTROL_1, - .bypass_mask = ARIZONA_LDO1_BYPASS, .min_uV = 900000, - .uV_step = 50000, - .n_voltages = 7, + .uV_step = 25000, + .n_voltages = 13, .enable_time = 500, .owner = THIS_MODULE,
@@ -203,6 +201,7 @@ static int arizona_ldo1_probe(struct platform_device *pdev)*/ switch (arizona->type) {case WM5102 : +case WM8997 : desc = &arizona_ldo1_hc; ldo1->init_data = arizona_ldo1_dvfs;break ;
drivers/s390/char/con3215.c +1 -1
@@ -922,7 +922,7 @@ static int __init con3215_init(void) raw3215_freelist = req; } - cdev =ccw_device_probe_console (); + cdev =ccw_device_probe_console (&raw3215_ccw_driver);if (IS_ERR (cdev))return -ENODEV ;
drivers/s390/char/con3270.c +1 -5
@@ -576,7 +576,6 @@ static struct console con3270 = {static int __init con3270_init (void ) { -struct ccw_device *cdev;struct raw3270 *rp;void *cbuf;int i;
@@ -591,10 +590,7 @@ con3270_init(void)cpcmd ("TERM AUTOCR OFF" ,NULL ,0 ,NULL ); } - cdev =ccw_device_probe_console (); -if (IS_ERR (cdev)) -return -ENODEV ; - rp =raw3270_setup_console (cdev); + rp =raw3270_setup_console ();if (IS_ERR (rp))return PTR_ERR (rp);
drivers/s390/char/raw3270.c +9 -1
@@ -776,16 +776,24 @@ raw3270_setup_device(struct ccw_device *cdev, struct raw3270 *rp, char *ascebc) }#ifdef CONFIG_TN3270_CONSOLE +/* Tentative definition - see below for actual definition. */ +static struct ccw_driver raw3270_ccw_driver; +/* * Setup 3270 device configured as console. */ -struct raw3270 __init *raw3270_setup_console (struct ccw_device *cdev) +struct raw3270 __init *raw3270_setup_console (void ) { +struct ccw_device *cdev;unsigned long flags;struct raw3270 *rp;char *ascebc;int rc; + cdev =ccw_device_probe_console (&raw3270_ccw_driver); +if (IS_ERR (cdev)) +return ERR_CAST (cdev); + rp =kzalloc (sizeof (struct raw3270 ),GFP_KERNEL |GFP_DMA ); ascebc =kzalloc (256 ,GFP_KERNEL ); rc =raw3270_setup_device (cdev, rp, ascebc);
drivers/s390/char/raw3270.h +1 -1
@@ -190,7 +190,7 @@ raw3270_put_view(struct raw3270_view *view)wake_up (&raw3270_wait_queue); } -struct raw3270 *raw3270_setup_console (struct ccw_device *cdev); +struct raw3270 *raw3270_setup_console (void );void raw3270_wait_cons_dev (struct raw3270 *);/* Notifier for device addition/removal */
drivers/s390/cio/device.c +2 -1
@@ -1609,7 +1609,7 @@ out_unlock:return rc; } -struct ccw_device *ccw_device_probe_console (void ) +struct ccw_device *ccw_device_probe_console (struct ccw_driver *drv) {struct io_subchannel_private *io_priv;struct ccw_device *cdev;
@@ -1631,6 +1631,7 @@ struct ccw_device *ccw_device_probe_console(void)kfree (io_priv);return cdev; } + cdev->drv = drv;set_io_private (sch, io_priv); ret =ccw_device_console_enable (cdev, sch);if (ret) {
drivers/scsi/arcmsr/arcmsr_hba.c +3 -4
@@ -2500,16 +2500,15 @@ static int arcmsr_polling_ccbdone(struct AdapterControlBlock *acb,static int arcmsr_iop_confirm (struct AdapterControlBlock *acb) {uint32_t cdb_phyaddr, cdb_phyaddr_hi32; -dma_addr_t dma_coherent_handle; +/* ******************************************************************** ** here we need to tell iop 331 our freeccb.HighPart ** if freeccb.HighPart is not zero ******************************************************************** */ - dma_coherent_handle = acb->dma_coherent_handle; - cdb_phyaddr = (uint32_t )(dma_coherent_handle); - cdb_phyaddr_hi32 = (uint32_t )((cdb_phyaddr >>16 ) >>16 ); + cdb_phyaddr =lower_32_bits (acb->dma_coherent_handle); + cdb_phyaddr_hi32 =upper_32_bits (acb->dma_coherent_handle); acb->cdb_phyaddr_hi32 = cdb_phyaddr_hi32;/* ***********************************************************************
drivers/scsi/qla2xxx/qla_os.c +3 -3
@@ -2536,7 +2536,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) ha->flags.enable_64bit_addressing ?"enable" : "disable"); ret =qla2x00_mem_alloc (ha, req_length, rsp_length, &req, &rsp); -if (!ret) { +if (ret) {ql_log_pci (ql_log_fatal, pdev,0x0031 ,"Failed to allocate memory for adapter, aborting.\n" );
@@ -3478,10 +3478,10 @@ qla2x00_mem_alloc(struct qla_hw_data *ha, uint16_t req_len, uint16_t rsp_len,else {qla2x00_set_reserved_loop_ids (ha);ql_dbg_pci (ql_dbg_init, ha->pdev,0x0123 , -"loop_id_map=%p. \n" , ha->loop_id_map); +"loop_id_map=%p.\n" , ha->loop_id_map); } -return 1 ; +return 0 ; fail_async_pd:dma_pool_free (ha->s_dma_pool, ha->ex_init_cb, ha->ex_init_cb_dma);
drivers/spi/spi-dw.c +0 -7
@@ -671,12 +671,6 @@ static int dw_spi_setup(struct spi_device *spi)return 0 ; } -static void dw_spi_cleanup (struct spi_device *spi) -{ -struct chip_data *chip =spi_get_ctldata (spi); -kfree (chip); -} -static int init_queue (struct dw_spi *dws) {INIT_LIST_HEAD (&dws->queue);
@@ -806,7 +800,6 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws) master->bits_per_word_mask =SPI_BPW_MASK (8 ) |SPI_BPW_MASK (16 ); master->bus_num = dws->bus_num; master->num_chipselect = dws->num_cs; - master->cleanup = dw_spi_cleanup; master->setup = dw_spi_setup; master->transfer = dw_spi_transfer;
drivers/spi/spi-efm32.c +3 -0
@@ -487,6 +487,9 @@ static int efm32_spi_remove(struct platform_device *pdev)static const struct of_device_id efm32_spi_dt_ids[] = { { + .compatible ="energymicro,efm32-spi" , + }, { +/* doesn't follow the "vendor,device" scheme, don't use */ .compatible ="efm32,spi" , }, {/* sentinel */
drivers/staging/comedi/drivers/usbdux.c +3 -6
@@ -493,7 +493,7 @@ static void usbduxsub_ao_isoc_irq(struct urb *urb)/* pointer to the DA */ *datap++ = val &0xff ; *datap++ = (val >>8 ) &0xff ; - *datap++ = chan; + *datap++ = chan <<6 ; devpriv->ao_readback[chan] = val; s->async->events |=COMEDI_CB_BLOCK ;
@@ -1040,11 +1040,8 @@ static int usbdux_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s)/* set current channel of the running acquisition to zero */ s->async->cur_chan =0 ; -for (i =0 ; i < cmd->chanlist_len; ++i) { -unsigned int chan =CR_CHAN (cmd->chanlist[i]); - - devpriv->ao_chanlist[i] = chan <<6 ; - } +for (i =0 ; i < cmd->chanlist_len; ++i) + devpriv->ao_chanlist[i] =CR_CHAN (cmd->chanlist[i]);/* we count in steps of 1ms (125us) */ /* 125us mode not used yet */
drivers/staging/rtl8188eu/core/rtw_recv.c +2 -2
@@ -542,7 +542,7 @@ _func_exit_;/* set the security information in the recv_frame */ static union recv_frame *portctrl (struct adapter *adapter,union recv_frame *precv_frame) { -u8 *psta_addr =NULL , *ptr; +u8 *psta_addr, *ptr;uint auth_alg;struct recv_frame_hdr *pfhdr;struct sta_info *psta;
@@ -556,7 +556,6 @@ static union recv_frame *portctrl(struct adapter *adapter, union recv_frame *pre _func_enter_; pstapriv = &adapter->stapriv; - psta =rtw_get_stainfo (pstapriv, psta_addr); auth_alg = adapter->securitypriv.dot11AuthAlgrthm;
@@ -564,6 +563,7 @@ _func_enter_; pfhdr = &precv_frame->u.hdr; pattrib = &pfhdr->attrib; psta_addr = pattrib->ta; + psta =rtw_get_stainfo (pstapriv, psta_addr); prtnframe =NULL ;
drivers/staging/rtl8712/rtl871x_recv.c +6 -7
@@ -254,7 +254,7 @@ union recv_frame *r8712_portctrl(struct _adapter *adapter,struct sta_info *psta;struct sta_priv *pstapriv;union recv_frame *prtnframe; -u16 ether_type =0 ; +u16 ether_type; pstapriv = &adapter->stapriv; ptr =get_recvframe_data (precv_frame);
@@ -263,15 +263,14 @@ union recv_frame *r8712_portctrl(struct _adapter *adapter, psta =r8712_get_stainfo (pstapriv, psta_addr); auth_alg = adapter->securitypriv.AuthAlgrthm;if (auth_alg ==2 ) { +/* get ether_type */ + ptr = ptr + pfhdr->attrib.hdrlen +LLC_HEADER_SIZE ; +memcpy (ðer_type, ptr,2 ); + ether_type =ntohs ((unsigned short )ether_type); +if ((psta !=NULL ) && (psta->ieee8021x_blocked)) {/* blocked * only accept EAPOL frame */ - prtnframe = precv_frame; -/*get ether_type */ - ptr = ptr + pfhdr->attrib.hdrlen + - pfhdr->attrib.iv_len +LLC_HEADER_SIZE ; -memcpy (ðer_type, ptr,2 ); - ether_type =ntohs ((unsigned short )ether_type);if (ether_type ==0x888e ) prtnframe = precv_frame;else {
drivers/staging/serqt_usb2/serqt_usb2.c +1 -1
@@ -724,7 +724,7 @@ static int qt_startup(struct usb_serial *serial) goto startup_error; } -switch (serial->dev->descriptor.idProduct) { +switch (le16_to_cpu (serial->dev->descriptor.idProduct)) {case QUATECH_DSU100 :case QUATECH_QSU100 :case QUATECH_ESU100A :
drivers/target/iscsi/iscsi_target.c +3 -1
@@ -2468,6 +2468,7 @@ static void iscsit_build_conn_drop_async_message(struct iscsi_conn *conn) {struct iscsi_cmd *cmd;struct iscsi_conn *conn_p; +bool found = false;/* * Only send a Asynchronous Message on connections whos network
@@ -2476,11 +2477,12 @@ static void iscsit_build_conn_drop_async_message(struct iscsi_conn *conn)list_for_each_entry (conn_p, &conn->sess->sess_conn_list, conn_list) {if (conn_p->conn_state ==TARG_CONN_STATE_LOGGED_IN ) {iscsit_inc_conn_usage_count (conn_p); + found = true;break ; } } -if (!conn_p) +if (!found)return ; cmd =iscsit_allocate_cmd (conn_p,TASK_RUNNING );
drivers/target/target_core_iblock.c +2 -3
@@ -203,10 +203,9 @@ static void iblock_free_device(struct se_device *dev)if (ib_dev->ibd_bd !=NULL )blkdev_put (ib_dev->ibd_bd,FMODE_WRITE |FMODE_READ |FMODE_EXCL ); -if (ib_dev->ibd_bio_set !=NULL ) { -bioset_integrity_free (ib_dev->ibd_bio_set); +if (ib_dev->ibd_bio_set !=NULL )bioset_free (ib_dev->ibd_bio_set); - } +kfree (ib_dev); }
drivers/target/target_core_rd.c +10 -4
@@ -242,7 +242,7 @@ static void rd_release_prot_space(struct rd_dev *rd_dev) rd_dev->sg_prot_count =0 ; } -static int rd_build_prot_space (struct rd_dev *rd_dev,int prot_length) +static int rd_build_prot_space (struct rd_dev *rd_dev,int prot_length,int block_size) {struct rd_dev_sg_table *sg_table;u32 total_sg_needed, sg_tables;
@@ -252,8 +252,13 @@ static int rd_build_prot_space(struct rd_dev *rd_dev, int prot_length)if (rd_dev->rd_flags &RDF_NULLIO )return 0 ; - - total_sg_needed = rd_dev->rd_page_count / prot_length; +/* +* prot_length=8byte dif data +* tot sg needed = rd_page_count * (PGSZ/block_size) * +* (prot_length/block_size) + pad +* PGSZ canceled each other. +*/ + total_sg_needed = (rd_dev->rd_page_count * prot_length / block_size) +1 ; sg_tables = (total_sg_needed / max_sg_per_table) +1 ;
@@ -606,7 +611,8 @@ static int rd_init_prot(struct se_device *dev)if (!dev->dev_attrib.pi_prot_type)return 0 ; -return rd_build_prot_space (rd_dev, dev->prot_length); +return rd_build_prot_space (rd_dev, dev->prot_length, + dev->dev_attrib.block_size); }static void rd_free_prot (struct se_device *dev)
drivers/target/target_core_sbc.c +2 -1
@@ -425,13 +425,14 @@ static sense_reason_t compare_and_write_callback(struct se_cmd *cmd) goto out; } - write_sg =kzalloc (sizeof (struct scatterlist ) * cmd->t_data_nents, + write_sg =kmalloc (sizeof (struct scatterlist ) * cmd->t_data_nents,GFP_KERNEL );if (!write_sg) {pr_err ("Unable to allocate compare_and_write sg\n" ); ret =TCM_OUT_OF_RESOURCES ; goto out; } +sg_init_table (write_sg, cmd->t_data_nents);/* * Setup verify and write data payloads from total NumberLBAs. */
drivers/target/tcm_fc/tfc_sess.c +1 -0
@@ -68,6 +68,7 @@ static struct ft_tport *ft_tport_create(struct fc_lport *lport)if (tport) { tport->tpg = tpg; + tpg->tport = tport;return tport; }
drivers/tty/hvc/hvc_console.c +5 -1
@@ -31,6 +31,7 @@#include <linux/list.h> #include <linux/module.h> #include <linux/major.h> +#include <linux/atomic.h> #include <linux/sysrq.h> #include <linux/tty.h> #include <linux/tty_flip.h>
@@ -70,6 +71,9 @@ static struct task_struct *hvc_task;/* Picks up late kicks after list walk but before schedule() */ static int hvc_kicked; +/* hvc_init is triggered from hvc_alloc, i.e. only when actually used */ +static atomic_t hvc_needs_init__read_mostly =ATOMIC_INIT (-1 ); +static int hvc_init (void );#ifdef CONFIG_MAGIC_SYSRQ
@@ -851,7 +855,7 @@ struct hvc_struct *hvc_alloc(uint32_t vtermno, int data,int i;/* We wait until a driver actually comes along */ -if (!hvc_driver) { +if (atomic_inc_not_zero (&hvc_needs_init)) {int err =hvc_init ();if (err)return ERR_PTR (err);
drivers/usb/core/driver.c +56 -38
162 lines not on this page · raw message
drivers/usb/core/hcd-pci.c +1 -1
@@ -75,7 +75,7 @@ static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, PCI_SLOT(companion->devfn) != slot)continue ; companion_hcd =pci_get_drvdata (companion); -if (!companion_hcd) +if (!companion_hcd || !companion_hcd->self.root_hub)continue ;fn (pdev, hcd, companion, companion_hcd); }
drivers/usb/core/hub.c +3 -2
@@ -5340,10 +5340,11 @@ int usb_reset_device(struct usb_device *udev)else if (cintf->condition ==USB_INTERFACE_BOUND ) rebind =1 ; +if (rebind) + cintf->needs_binding =1 ; } -if (ret ==0 && rebind) -usb_rebind_intf (cintf); } +usb_unbind_and_rebind_marked_interfaces (udev); }usb_autosuspend_device (udev);
drivers/usb/core/usb.h +1 -1
@@ -55,7 +55,7 @@ extern int usb_match_one_id_intf(struct usb_device *dev,extern int usb_match_device (struct usb_device *dev,const struct usb_device_id *id);extern void usb_forced_unbind_intf (struct usb_interface *intf); -extern void usb_rebind_intf (struct usb_interface *intf); +extern void usb_unbind_and_rebind_marked_interfaces (struct usb_device *udev);extern int usb_hub_claim_port (struct usb_device *hdev,unsigned port,struct dev_state *owner);
drivers/usb/dwc3/core.h +36 -3
@@ -815,15 +815,15 @@ struct dwc3_event_depevt {* 12 - VndrDevTstRcved * @reserved15_12: Reserved, not used * @event_info: Information about this event -* @reserved31_24: Reserved, not used +* @reserved31_25: Reserved, not used */ struct dwc3_event_devt {u32 one_bit:1 ;u32 device_event:7 ;u32 type:4 ;u32 reserved15_12:4 ; -u32 event_info:8 ; -u32 reserved31_24:8 ; +u32 event_info:9 ; +u32 reserved31_25:7 ; } __packed;/**
@@ -856,6 +856,19 @@ union dwc3_event {struct dwc3_event_gevt gevt; }; +/** +* struct dwc3_gadget_ep_cmd_params - representation of endpoint command +* parameters +* @param2: third parameter +* @param1: second parameter +* @param0: first parameter +*/ +struct dwc3_gadget_ep_cmd_params { +u32 param2; +u32 param1; +u32 param0;
Lines of this file are not shown. View the raw message.
drivers/usb/host/xhci-ring.c +31 -36
67 lines not on this page · raw message
fs/pnode.c +119 -79
198 lines not on this page · raw message
include/dt-bindings/clock/tegra124-car.h +3 -3
Lines of this file are not shown. View the raw message.
mm/page_alloc.c +45 -44
89 lines not on this page · raw message
sound/pci/hda/patch_realtek.c +96 -2
98 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.