Linux 4.9.207
Greg KH
maintainerI'm announcing the release of the 4.9.207 kernel.
All users of the 4.9 kernel series must upgrade.
The updated 4.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/rtc/abracon,abx80x.txt | 2 Makefile | 13 -- arch/arm/Kconfig.debug | 23 ++- arch/arm/boot/dts/arm-realview-pb1176.dts | 4 arch/arm/boot/dts/arm-realview-pb11mp.dts | 4 arch/arm/boot/dts/arm-realview-pbx.dtsi | 5 arch/arm/boot/dts/exynos3250.dtsi | 2 arch/arm/boot/dts/mmp2.dtsi | 2 arch/arm/boot/dts/omap3-pandora-common.dtsi | 36 +++++ arch/arm/boot/dts/omap3-tao3530.dtsi | 2 arch/arm/boot/dts/pxa27x.dtsi | 2 arch/arm/boot/dts/pxa2xx.dtsi | 7 - arch/arm/boot/dts/pxa3xx.dtsi | 2 arch/arm/boot/dts/rk3288-rock2-som.dtsi | 2 arch/arm/boot/dts/s3c6410-mini6410.dts | 4 arch/arm/boot/dts/s3c6410-smdk6410.dts | 4 arch/arm/boot/dts/sun6i-a31.dtsi | 2 arch/arm/boot/dts/sun7i-a20.dtsi | 2 arch/arm/include/asm/uaccess.h | 18 ++ arch/arm/lib/getuser.S | 11 + arch/arm/lib/putuser.S | 20 +-- arch/arm/mach-omap1/id.c | 6 arch/arm/mach-omap2/id.c | 4 arch/arm/mach-omap2/pdata-quirks.c | 93 --------------- arch/arm/mach-tegra/reset-handler.S | 6 arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 2 arch/mips/Kconfig | 1 arch/mips/cavium-octeon/executive/cvmx-cmd-queue.c | 2 arch/mips/cavium-octeon/octeon-platform.c | 2 arch/mips/include/asm/octeon/cvmx-pko.h | 2 arch/powerpc/include/asm/sfp-machine.h | 92 ++++---------- arch/powerpc/include/asm/vdso_datapage.h | 2 arch/powerpc/kernel/asm-offsets.c | 2 arch/powerpc/kernel/time.c | 1 arch/powerpc/kernel/vdso32/gettimeofday.S | 7 - arch/powerpc/kernel/vdso64/cacheflush.S | 4 arch/powerpc/kernel/vdso64/gettimeofday.S | 7 - arch/x86/kernel/cpu/mcheck/mce.c | 30 ---- arch/x86/kernel/cpu/mcheck/mce_amd.c | 36 +++++ arch/x86/kvm/cpuid.c | 5 arch/x86/kvm/x86.c | 14 +- arch/x86/pci/fixup.c | 11 + arch/xtensa/mm/tlb.c | 4 block/blk-mq-sysfs.c | 15 +- crypto/crypto_user.c | 4 crypto/ecc.c | 3 drivers/acpi/bus.c | 2 drivers/acpi/device_pm.c | 12 + drivers/acpi/osl.c | 28 ++-- drivers/block/rsxx/core.c | 2 drivers/char/ppdev.c | 16 +- drivers/clk/rockchip/clk-rk3188.c | 8 - drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 2 drivers/cpuidle/driver.c | 15 +- drivers/crypto/amcc/crypto4xx_core.c | 6 drivers/crypto/ccp/ccp-dmaengine.c | 1 drivers/devfreq/devfreq.c | 12 + drivers/dma-buf/sync_file.c | 2 drivers/dma/coh901318.c | 5 drivers/extcon/extcon-max8997.c | 10 - drivers/firmware/qcom_scm-64.c | 2 drivers/gpu/drm/i810/i810_dma.c | 4 drivers/gpu/drm/radeon/r100.c | 4 drivers/gpu/drm/radeon/r200.c | 4 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c | 21 ++- drivers/i2c/busses/i2c-imx.c | 3 drivers/iio/humidity/hdc100x.c | 2 drivers/iio/imu/adis16480.c | 1 drivers/infiniband/hw/hns/hns_roce_hem.h | 2 drivers/infiniband/hw/mlx4/sysfs.c | 12 - drivers/infiniband/hw/qib/qib_sysfs.c | 6 drivers/input/touchscreen/cyttsp4_core.c | 7 - drivers/input/touchscreen/goodix.c | 9 + drivers/isdn/gigaset/usb-gigaset.c | 23 ++- drivers/md/persistent-data/dm-btree-remove.c | 8 + drivers/media/platform/sti/bdisp/bdisp-v4l2.c | 3 drivers/media/radio/radio-wl1273.c | 3 drivers/media/usb/stkwebcam/stk-webcam.c | 6 drivers/misc/altera-stapl/altera.c | 3 drivers/mmc/host/omap_hsmmc.c | 30 ++++ drivers/mtd/devices/spear_smi.c | 38 +++++- drivers/net/can/slcan.c | 1 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 6 drivers/net/ethernet/cirrus/ep93xx_eth.c | 5 drivers/net/ethernet/intel/e100.c | 4 drivers/net/ethernet/mellanox/mlx4/main.c | 11 - drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 2 drivers/net/ethernet/mellanox/mlx5/core/qp.c | 4 drivers/net/ethernet/stmicro/stmmac/common.h | 2 drivers/net/ethernet/stmicro/stmmac/descs_com.h | 23 ++- drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c | 2 drivers/net/ethernet/stmicro/stmmac/enh_desc.c | 10 + drivers/net/ethernet/stmicro/stmmac/norm_desc.c | 10 + drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 20 +-- drivers/net/ethernet/ti/cpsw.c | 2 drivers/net/wireless/ath/ar5523/ar5523.c | 3 drivers/net/wireless/ath/ath10k/pci.c | 9 - drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 15 ++ drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c | 9 - drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c | 1 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c | 25 +++- drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.h | 2 drivers/nfc/nxp-nci/i2c.c | 6 drivers/nvme/host/core.c | 4 drivers/pci/msi.c | 2 drivers/pci/quirks.c | 2 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c | 23 ++- drivers/pinctrl/samsung/pinctrl-s3c24xx.c | 6 drivers/pinctrl/samsung/pinctrl-s3c64xx.c | 3 drivers/pinctrl/samsung/pinctrl-samsung.c | 10 + drivers/regulator/core.c | 42 +----- drivers/rtc/rtc-max8997.c | 2 drivers/s390/scsi/zfcp_dbf.c | 8 - drivers/s390/scsi/zfcp_erp.c | 3 drivers/scsi/libiscsi.c | 4 drivers/scsi/lpfc/lpfc.h | 3 drivers/scsi/lpfc/lpfc_attr.c | 12 + drivers/scsi/lpfc/lpfc_init.c | 3 drivers/scsi/qla2xxx/qla_attr.c | 3 drivers/scsi/qla2xxx/qla_bsg.c | 15 +- drivers/scsi/qla2xxx/qla_target.c | 11 - drivers/spi/spi-atmel.c | 6 drivers/staging/iio/addac/adt7316-i2c.c | 2 drivers/staging/media/pulse8-cec/pulse8-cec.c | 2 drivers/staging/rtl8188eu/os_dep/usb_intf.c | 2 drivers/staging/rtl8712/usb_intf.c | 2 drivers/thermal/thermal_core.c | 4 drivers/tty/n_hdlc.c | 4 drivers/tty/n_r3964.c | 2 drivers/tty/n_tty.c | 8 - drivers/tty/serial/amba-pl011.c | 6 drivers/tty/serial/fsl_lpuart.c | 4 drivers/tty/serial/ifx6x60.c | 3 drivers/tty/serial/imx.c | 2 drivers/tty/serial/msm_serial.c | 6 drivers/tty/serial/serial_core.c | 2 drivers/tty/tty_ldisc.c | 7 + drivers/tty/vt/keyboard.c | 2 drivers/usb/atm/ueagle-atm.c | 18 +- drivers/usb/core/hub.c | 5 drivers/usb/core/urb.c | 1 drivers/usb/dwc3/core.c | 3 drivers/usb/gadget/configfs.c | 1 drivers/usb/gadget/function/u_serial.c | 2 drivers/usb/host/xhci-hub.c | 16 +- drivers/usb/host/xhci-mem.c | 4 drivers/usb/host/xhci-pci.c | 13 ++ drivers/usb/host/xhci-ring.c | 6 drivers/usb/host/xhci.c | 7 - drivers/usb/host/xhci.h | 2 drivers/usb/misc/adutux.c | 2 drivers/usb/misc/idmouse.c | 2 drivers/usb/mon/mon_bin.c | 32 +++-- drivers/usb/serial/io_edgeport.c | 10 - drivers/usb/storage/uas.c | 10 + drivers/vfio/pci/vfio_pci_intrs.c | 2 drivers/video/hdmi.c | 8 - drivers/virtio/virtio_balloon.c | 11 + fs/autofs4/expire.c | 5 fs/btrfs/file.c | 2 fs/btrfs/free-space-cache.c | 6 fs/btrfs/inode.c | 3 fs/btrfs/send.c | 25 +++- fs/btrfs/volumes.h | 1 fs/cifs/file.c | 14 +- fs/cifs/smb2misc.c | 7 - fs/dlm/lockspace.c | 1 fs/dlm/memory.c | 9 - fs/dlm/user.c | 3 fs/exportfs/expfs.c | 31 +++-- fs/ext2/inode.c | 7 - fs/ext4/inode.c | 12 + fs/fuse/dir.c | 27 +++- fs/fuse/fuse_i.h | 2 fs/nfsd/nfs4recover.c | 17 -- fs/nfsd/vfs.c | 17 ++ fs/ocfs2/quota_global.c | 2 fs/quota/dquot.c | 11 - fs/reiserfs/inode.c | 12 + fs/reiserfs/namei.c | 7 - fs/reiserfs/reiserfs.h | 2 fs/reiserfs/super.c | 2 fs/reiserfs/xattr.c | 19 +-- fs/reiserfs/xattr_acl.c | 4 include/linux/acpi.h | 2 include/linux/atalk.h | 2 include/linux/dma-mapping.h | 3 include/linux/jbd2.h | 4 include/linux/mtd/mtd.h | 2 include/linux/netdevice.h | 5 include/linux/quotaops.h | 10 + include/linux/regulator/consumer.h | 2 include/linux/serial_core.h | 37 +++++ include/linux/time.h | 12 + include/linux/tty.h | 7 + include/math-emu/soft-fp.h | 2 include/net/ip.h | 5 include/net/tcp.h | 18 ++ kernel/audit_watch.c | 2 kernel/cgroup_pids.c | 11 - kernel/module.c | 2 kernel/sched/fair.c | 36 +++-- kernel/workqueue.c | 38 ++++-- lib/raid6/unroll.awk | 2 mm/shmem.c | 2 net/appletalk/aarp.c | 15 +- net/appletalk/ddp.c | 21 ++- net/bridge/br_device.c | 6 net/core/dev.c | 3 net/ipv4/devinet.c | 5 net/ipv4/ip_output.c | 14 +- net/ipv4/tcp_output.c | 5 net/ipv4/tcp_timer.c | 10 - net/openvswitch/conntrack.c | 11 + net/sunrpc/cache.c | 6 net/tipc/core.c | 29 ++-- net/x25/af_x25.c | 18 +- scripts/mod/modpost.c | 12 + sound/core/oss/linear.c | 2 sound/core/oss/mulaw.c | 2 sound/core/oss/route.c | 2 sound/core/pcm_lib.c | 8 - sound/pci/hda/hda_bind.c | 4 sound/pci/hda/hda_intel.c | 3 sound/soc/soc-jack.c | 3 225 files changed, 1264 insertions(+), 748 deletions(-)
Aaro Koskinen (5):
MIPS: OCTEON: octeon-platform: fix typing
ARM: OMAP1/2: fix SoC name printing
MIPS: OCTEON: cvmx_pko_mem_debug8: use oldest forward compatible definition
net: stmmac: use correct DMA buffer size in the RX descriptor
net: stmmac: don't stop NAPI processing when dropping a packet
Aaron Conole (1):
openvswitch: support asymmetric conntrack
Al Viro (3):
autofs: fix a leak in autofs_expire_indirect()
exportfs_decode_fh(): negative pinned may become positive without the parent locked audit_get_nd(): don't unlock parent too early
Alastair D'Silva (1):
powerpc: Allow 64bit VDSO __kernel_sync_dicache to work across ranges >4GB
Aleksa Sarai (1):
cgroup: pids: use atomic64_t for pids->limit
Alex Deucher (1):
drm/radeon: fix r1xx/r2xx register checker for POT textures
Alexey Dobriyan (1):
ACPI: fix acpi_find_child_device() invocation in acpi_preset_companion()
Andreas Pape (1):
media: stkwebcam: Bugfix for wrong return values
Andrei Otcheretianski (1):
iwlwifi: mvm: Send non offchannel traffic via AP sta
Ard Biesheuvel (1):
crypto: ecdh - fix big endian bug in ECC library
Arjun Vynipadath (1):
cxgb4vf: fix memleak in mac_hlist initialization
Arnd Bergmann (1):
ppdev: fix PPGETTIME/PPSETTIME ioctls
Bart Van Assche (4):
scsi: qla2xxx: Fix session lookup in qlt_abort_work()
scsi: qla2xxx: Fix qla24xx_process_bidir_cmd()
scsi: qla2xxx: Always check the qla2x00_wait_for_hba_online() return value
scsi: iscsi: Fix a potential deadlock in the timeout handler
Baruch Siach (1):
rtc: dt-binding: abx80x: fix resistance scale
Brian Masney (1):
pinctrl: qcom: ssbi-gpio: fix gpio-hog related boot issues
Brian Norris (1):
usb: dwc3: don't log probe deferrals; but do log other error codes
Chen Jun (1):
mm/shmem.c: cast the type of unmap_start to u64
Chen-Yu Tsai (1):
clk: sunxi-ng: h3/h5: Fix CSI_MCLK parent
Chengguang Xu (1):
ext2: check err when partial != NULL
Chris Lesiak (1):
iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting
Christian Lamparter (1):
crypto: crypto4xx - fix double-free in crypto4xx_destroy_sdr
Christophe JAILLET (1):
rtc: max8997: Fix the returned value in case of error in 'max8997_rtc_read_alarm()'
Chuhong Yuan (3):
serial: ifx6x60: add missed pm_runtime_disable
rsxx: add missed destroy_workqueue calls in remove
net: ep93xx_eth: fix mismatch of request_mem_region in remove
Clément Péron (1):
ARM: debug: enable UART1 for socfpga Cyclone5
Colin Ian King (1):
altera-stapl: check for a null key before strcasecmp'ing it
Dan Carpenter (1):
drm/i810: Prevent underflow in ioctl
Daniel Mack (1):
ARM: dts: pxa: clean up USB controller nodes
David Hildenbrand (1):
virtio-balloon: fix managed page counts when migrating pages between zones
David Teigland (2):
dlm: fix missing idr_destroy for recover_idr
dlm: fix invalid cluster name warning
Denis Efremov (1):
ar5523: check NULL before memcpy() in ar5523_cmd()
Dmitry Monakhov (2):
quota: Check that quota is not dirty before release
quota: fix livelock in dquot_writeback_dquots
Dmitry Osipenko (1):
ARM: tegra: Fix FLOW_CTLR_HALT register clobbering by tegra_resume()
Dmitry Safonov (1):
tty: Don't block on IO when ldisc change is pending
Dmitry Torokhov (1):
tty: vt: keyboard: reject invalid keycodes
Douglas Anderson (1):
serial: core: Allow processing sysrq at port unlock time
Emiliano Ingrassia (1):
usb: core: urb: fix URB structure initialization function
Eran Ben Elisha (1):
net/mlx5e: Fix SFF 8472 eeprom length
Erez Alfasi (1):
net/mlx4_core: Fix return codes of unsupported operations
Eric Dumazet (2):
tcp: md5: fix potential overestimation of TCP option space
inet: protect against too small mtu values.
Filipe Manana (2):
Btrfs: send, skip backreference walking for extents with many references
Btrfs: fix negative subv_writers counter and data space leak after buffered write
Finley Xiao (1):
clk: rockchip: fix rk3188 sclk_smc gate data
Francesco Ruggeri (1):
ACPI: OSL: only free map once in osl.c
Greg Kroah-Hartman (3):
lib: raid6: fix awk build warnings
Revert "regulator: Defer init completion for a while after late_initcall" Linux 4.9.207
Gregory CLEMENT (1):
spi: atmel: Fix CS high support
Grygorii Strashko (1):
net: ethernet: ti: cpsw: fix extra rx interrupt
Guillaume Nault (3):
tcp: fix rejected syncookies due to stale timestamps
tcp: tighten acceptance of ACKs not matching a child socket
tcp: Protect accesses to .ts_recent_stamp with {READ,WRITE}_ONCE()
H. Nikolaus Schaller (3):
ARM: dts: pandora-common: define wl1251 as child node of mmc3
mmc: host: omap_hsmmc: add code for special init of wl1251 to get rid of pandora_wl1251_init_card
omap: pdata-quirks: remove openpandora quirks for mmc3 and wl1251
Hans Verkuil (1):
media: pulse8-cec: return 0 when invalidating the logical address
Hans de Goede (1):
Input: goodix - add upside-down quirk for Teclast X89 tablet
Heiko Stuebner (1):
clk: rockchip: fix rk3188 sclk_mac_lbtest parameter ordering
Henry Lin (1):
usb: xhci: only set D3hot for pci device
Himanshu Madhani (1):
scsi: qla2xxx: Fix DMA unmap leak
Hou Tao (1):
dm btree: increase rebalance threshold in __rebalance2()
Ivan Bornyakov (1):
nvme: host: core: fix precedence of ternary operator
James Smart (1):
scsi: lpfc: Cap NPIV vports to 256
Jan Kara (1):
jbd2: Fix possible overflow in jbd2_log_space_left()
Jarkko Nikula (1):
ARM: dts: omap3-tao3530: Fix incorrect MMC card detection GPIO polarity
Jeff Mahoney (1):
reiserfs: fix extended attributes on the root directory
Jeffrey Hugo (1):
tty: serial: msm_serial: Fix flow control
Jia-Ju Bai (1):
dmaengine: coh901318: Fix a double-lock bug
Jian-Hong Pan (1):
PCI/MSI: Fix incorrect MSI-X masking on resume
Jiang Yi (1):
vfio/pci: call irq_bypass_unregister_producer() before freeing irq
Jiangfeng Xiao (1):
serial: serial_core: Perform NULL checks for break_ctl ops
Joel Stanley (1):
powerpc/math-emu: Update macros from GCC
Johan Hovold (11):
staging: rtl8188eu: fix interface sanity check
staging: rtl8712: fix interface sanity check
staging: gigaset: fix general protection fault on probe
staging: gigaset: fix illegal free on probe errors
staging: gigaset: add endpoint-type sanity check
USB: atm: ueagle-atm: add missing endpoint check
USB: idmouse: fix interface sanity checks
USB: serial: io_edgeport: fix epic endpoint lookup
USB: adutux: fix interface sanity check
media: bdisp: fix memleak on release
media: radio: wl1273: fix interrupt masking on release
John Keeping (1):
ARM: dts: rockchip: Fix rk3288-rock2 vcc_flash name
Jon Hunter (1):
arm64: tegra: Fix 'active-low' warning for Jetson TX1 regulator
Josef Bacik (2):
btrfs: check page->mapping when loading free space cache
btrfs: record all roots for rename exchange on a subvol
Jouni Hogander (1):
can: slcan: Fix use-after-free Read in slcan_open
Kai-Heng Feng (3):
x86/PCI: Avoid AMD FCH XHCI USB PME# from D0 defect
usb: Allow USB device to be warm reset in suspended state
xhci: Increase STS_HALT timeout in xhci_suspend()
Konstantin Khorenko (1):
kernel/module.c: wakeup processes in module_wq on module unload
Krzysztof Kozlowski (3):
pinctrl: samsung: Fix device node refcount leaks in S3C24xx wakeup controller init
pinctrl: samsung: Fix device node refcount leaks in init code
pinctrl: samsung: Fix device node refcount leaks in S3C64xx wakeup controller init
Larry Finger (3):
rtlwifi: rtl8192de: Fix missing code to retrieve RX buffer address
rtlwifi: rtl8192de: Fix missing callback that tests for hw release of buffer
rtlwifi: rtl8192de: Fix missing enable interrupt flag
Leonard Crestez (1):
PM / devfreq: Lock devfreq in trans_stat_show
Lihua Yao (1):
ARM: dts: s3c64xx: Fix init order of clock providers
Lubomir Rintel (1):
ARM: dts: mmp2: fix the gpio interrupt cell number
Lucas Stach (1):
i2c: imx: don't print error message on probe defer
Maciej W. Rozycki (1):
MIPS: SiByte: Enable ZONE_DMA32 for LittleSur
Marek Szyprowski (2):
extcon: max8997: Fix lack of path setting in USB device mode
ARM: dts: exynos: Use Samsung SoC specific compatible for DWC2 module
Mark Brown (1):
regulator: Fix return value of _set_load() stub
Mark Salter (1):
crypto: ccp - fix uninitialized list head
Martin Schiller (2):
net/x25: fix called/calling length calculation in x25_parse_address_block net/x25: fix null_x25_address handling
Masahiro Yamada (1):
kbuild: fix single target build for external module
Mathias Nyman (2):
xhci: make sure interrupts are restored to correct state
xhci: fix USB3 device initiated resume race with roothub autosuspend
Max Filippov (1):
xtensa: fix TLB sanity checker
Miaoqing Pan (1):
ath10k: fix fw crash by moving chip reset after napi disabled
Michał Mirosław (1):
usb: gadget: u_serial: add missing port entry locking
Mika Westerberg (1):
xhci: Fix memory leak in xhci_add_in_port()
Mike Leach (1):
coresight: etm4x: Fix input validation for sysfs.
Miklos Szeredi (2):
fuse: verify nlink
fuse: verify attributes
Ming Lei (2):
blk-mq: avoid sysfs buffer overflow with too many CPU cores
blk-mq: make sure that line break can be printed
Miquel Raynal (2):
mtd: fix mtd_oobavail() incoherent returned value
mtd: spear_smi: Fix Write Burst mode
Moni Shoua (1):
net/mlx5: Release resource on error flow
Navid Emamdoost (2):
crypto: user - fix memory leak in crypto_report
dma-buf: Fix memory leak in sync_file_merge()
Niklas Söderlund (1):
dma-mapping: fix return type of dma_set_max_seg_size()
Nikolay Aleksandrov (1):
net: bridge: deny dev_set_mac_address() when unregistering
Nuno Sá (1):
iio: adis16480: Add debugfs_reg_access entry
Oliver Neukum (2):
USB: uas: honor flag to avoid CAPACITY16
USB: uas: heed CAPACITY_HEURISTICS
Pan Bian (1):
Input: cyttsp4_core - fix use after free bug
Paolo Bonzini (3):
KVM: x86: do not modify masked bits of shared MSRs
KVM: x86: fix presentation of TSX feature in ARCH_CAPABILITIES
KVM: x86: fix out-of-bounds write in KVM_GET_EMULATED_CPUID (CVE-2019-19332)
Paul Walmsley (1):
modpost: skip ELF local symbols during section mismatch check
Pavel Shilovsky (3):
CIFS: Fix NULL-pointer dereference in smb2_push_mandatory_locks
CIFS: Fix SMB2 oplock break processing
CIFS: Respect O_SYNC and O_DIRECT flags during reconnect
Pavel Tikhomirov (1):
sunrpc: fix crash when cache_head become valid before update
Pawel Harlozinski (1):
ASoC: Jack: Fix NULL pointer dereference in snd_soc_jack_report
Peng Fan (1):
tty: serial: fsl_lpuart: use the sg count from dma_map_sg
Pete Zaitcev (1):
usb: mon: Fix a deadlock in usbmon between mmap and read
Qian Cai (1):
mlx4: Use snprintf instead of complicated strcpy
Qu Wenruo (1):
btrfs: Remove btrfs_bio::flags member
Rafael J. Wysocki (1):
ACPI: PM: Avoid attaching ACPI PM domain to certain devices
Rob Herring (3):
ARM: dts: realview-pbx: Fix duplicate regulator nodes
ARM: dts: realview: Fix some more duplicate regulator nodes
ARM: dts: sunxi: Fix PMU compatible strings
Scott Mayhew (1):
nfsd: fix a warning in __cld_pipe_upcall()
Shirish S (2):
x86/MCE/AMD: Turn off MC4_MISC thresholding on all family 0x15 models x86/MCE/AMD: Carve out the MC4_MISC thresholding quirk
Shreeya Patel (1):
Staging: iio: adt7316: Fix i2c data reading, set the data field
Sirong Wang (1):
RDMA/hns: Correct the value of HNS_ROCE_HEM_CHUNK_LEN
Stefan Agner (1):
serial: imx: fix error handling in console_setup
Steffen Liebergeld (1):
PCI: Fix Intel ACS quirk UPDCR register address
Steffen Maier (2):
scsi: zfcp: drop default switch case which might paper over missing case
scsi: zfcp: trace channel log even for FCP command responses
Stephan Gerhold (1):
NFC: nxp-nci: Fix NULL pointer dereference after I2C communication error
Taehee Yoo (1):
tipc: fix ordering of tipc module init and exit routine
Takashi Iwai (2):
ALSA: pcm: oss: Avoid potential buffer overflows
ALSA: hda - Fix pending unsol events at shutdown
Tejun Heo (3):
workqueue: Fix spurious sanity check failures in destroy_workqueue()
workqueue: Fix pwq ref leak in rescuer_thread()
workqueue: Fix missing kfree(rescuer) in destroy_workqueue()
Vamshi K Sthambamkadi (1):
ACPI: bus: Fix NULL pointer check in acpi_bus_get_private_data()
Ville Syrjälä (1):
video/hdmi: Fix AVI bar unpack
Vincent Chen (1):
math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning
Vincent Whitchurch (2):
serial: pl011: Fix DMA ->flush_buffer()
ARM: 8813/1: Make aligned 2-byte getuser()/putuser() atomic on ARMv6+
Vincenzo Frascino (1):
powerpc: Fix vDSO clock_getres()
Vinod Koul (1):
dmaengine: coh901318: Remove unused variable
Viresh Kumar (1):
RDMA/qib: Validate ->show()/store() callbacks before calling them
Wei Wang (1):
thermal: Fix deadlock in thermal thermal_zone_device_check
Wei Yongjun (1):
usb: gadget: configfs: Fix missing spin_lock_init()
Wen Yang (1):
dlm: NULL check before kmem_cache_destroy is not needed
Will Deacon (1):
firmware: qcom: scm: Ensure 'a0' status code is treated as signed
Xuewei Zhang (1):
sched/fair: Scale bandwidth quota and period without losing quota/period ratio precision
Yuchung Cheng (2):
tcp: fix off-by-one bug on aborting window-probing socket
tcp: fix SNMP TCP timeout under-estimation
YueHaibing (3):
appletalk: Fix potential NULL pointer dereference in unregister_snap_client
appletalk: Set error code if register_snap_client failed
e100: Fix passing zero to 'PTR_ERR' warning in e100_load_ucode_wait
Zhenzhong Duan (1):
cpuidle: Do not unset the driver if it is there already
paulhsia (1):
ALSA: pcm: Fix stream lock usage in snd_pcm_period_elapsed()
yangerkun (1):
ext4: fix a bug in ext4_wait_for_tail_page_commit
zhengbin (1):
nfsd: Return EPERM, not EACCES, in some SETATTR cases
Greg KH
maintainerDocumentation/devicetree/bindings/rtc/abracon,abx80x.txt +1 -1
@@ -27,4 +27,4 @@ and valid to enable charging: - "abracon,tc-diode": should be "standard" (0.6V) or "schottky" (0.3V) - "abracon,tc-resistor": should be <0>, <3>, <6> or <11>. 0 disables the output - resistor, the other values are in ohm. + resistor, the other values are in kOhm.
Makefile +4 -9
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 206 +SUBLEVEL = 207 EXTRAVERSION = NAME = Roaring Lionus
@@ -1521,9 +1521,6 @@ else # KBUILD_EXTMOD # We are always building modules KBUILD_MODULES := 1 -PHONY += crmodverdir -crmodverdir: - $(cmd_crmodverdir) PHONY += $(objtree)/Module.symvers $(objtree)/Module.symvers:
@@ -1535,7 +1532,7 @@ $(objtree)/Module.symvers: module-dirs := $(addprefix _module_,$(KBUILD_EXTMOD)) PHONY += $(module-dirs) modules -$(module-dirs): crmodverdir $(objtree)/Module.symvers +$(module-dirs): prepare $(objtree)/Module.symvers $(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@) modules: $(module-dirs)
@@ -1576,7 +1573,8 @@ help: # Dummies... PHONY += prepare scripts -prepare: ; +prepare: + $(cmd_crmodverdir) scripts: ; endif # KBUILD_EXTMOD
@@ -1701,17 +1699,14 @@ endif # Modules /: prepare scripts FORCE - $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) # Make sure the latest headers are built for Documentation Documentation/ samples/: headers_install %/: prepare scripts FORCE - $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) %.ko: prepare scripts FORCE - $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) $(@:.ko=.o) $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
arch/arm/Kconfig.debug +16 -7
@@ -987,14 +987,21 @@ choice Say Y here if you want kernel low-level debugging support on SOCFPGA(Cyclone 5 and Arria 5) based platforms. - config DEBUG_SOCFPGA_UART1 + config DEBUG_SOCFPGA_ARRIA10_UART1 depends on ARCH_SOCFPGA - bool "Use SOCFPGA UART1 for low-level debug" + bool "Use SOCFPGA Arria10 UART1 for low-level debug" select DEBUG_UART_8250 help Say Y here if you want kernel low-level debugging support on SOCFPGA(Arria 10) based platforms. + config DEBUG_SOCFPGA_CYCLONE5_UART1 + depends on ARCH_SOCFPGA + bool "Use SOCFPGA Cyclone 5 UART1 for low-level debug" + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + on SOCFPGA(Cyclone 5 and Arria 5) based platforms. config DEBUG_SUN9I_UART0 bool "Kernel low-level debugging messages via sun9i UART0"
@@ -1534,7 +1541,8 @@ config DEBUG_UART_PHYS default 0xfe800000 if ARCH_IOP32X default 0xff690000 if DEBUG_RK32_UART2 default 0xffc02000 if DEBUG_SOCFPGA_UART0 - default 0xffc02100 if DEBUG_SOCFPGA_UART1 + default 0xffc02100 if DEBUG_SOCFPGA_ARRIA10_UART1 + default 0xffc03000 if DEBUG_SOCFPGA_CYCLONE5_UART1 default 0xffd82340 if ARCH_IOP13XX default 0xffe40000 if DEBUG_RCAR_GEN1_SCIF0 default 0xffe42000 if DEBUG_RCAR_GEN1_SCIF2
@@ -1624,7 +1632,8 @@ config DEBUG_UART_VIRT default 0xfeb30c00 if DEBUG_KEYSTONE_UART0 default 0xfeb31000 if DEBUG_KEYSTONE_UART1 default 0xfec02000 if DEBUG_SOCFPGA_UART0 - default 0xfec02100 if DEBUG_SOCFPGA_UART1 + default 0xfec02100 if DEBUG_SOCFPGA_ARRIA10_UART1 + default 0xfec03000 if DEBUG_SOCFPGA_CYCLONE5_UART1 default 0xfec12000 if (DEBUG_MVEBU_UART0 || DEBUG_MVEBU_UART0_ALTERNATE) && ARCH_MVEBU default 0xfec12100 if DEBUG_MVEBU_UART1_ALTERNATE default 0xfec10000 if DEBUG_SIRFATLAS7_UART0
@@ -1672,9 +1681,9 @@ config DEBUG_UART_8250_WORD depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250 depends on DEBUG_UART_8250_SHIFT >= 2 default y if DEBUG_PICOXCELL_UART || \ - DEBUG_SOCFPGA_UART0 || DEBUG_SOCFPGA_UART1 || \ - DEBUG_KEYSTONE_UART0 || DEBUG_KEYSTONE_UART1 || \ - DEBUG_ALPINE_UART0 || \ + DEBUG_SOCFPGA_UART0 || DEBUG_SOCFPGA_ARRIA10_UART1 || \ + DEBUG_SOCFPGA_CYCLONE5_UART1 || DEBUG_KEYSTONE_UART0 || \ + DEBUG_KEYSTONE_UART1 || DEBUG_ALPINE_UART0 || \ DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \ DEBUG_DAVINCI_DA8XX_UART2 || \ DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2
arch/arm/boot/dts/arm-realview-pb1176.dts +2 -2
@@ -45,7 +45,7 @@ }; /* The voltage to the MMC card is hardwired at 3.3V */ - vmmc: fixedregulator@0 { + vmmc: regulator-vmmc { compatible = "regulator-fixed"; regulator-name = "vmmc"; regulator-min-microvolt = <3300000>;
@@ -53,7 +53,7 @@ regulator-boot-on; }; - veth: fixedregulator@0 { + veth: regulator-veth { compatible = "regulator-fixed"; regulator-name = "veth"; regulator-min-microvolt = <3300000>;
arch/arm/boot/dts/arm-realview-pb11mp.dts +2 -2
@@ -145,7 +145,7 @@ }; /* The voltage to the MMC card is hardwired at 3.3V */ - vmmc: fixedregulator@0 { + vmmc: regulator-vmmc { compatible = "regulator-fixed"; regulator-name = "vmmc"; regulator-min-microvolt = <3300000>;
@@ -153,7 +153,7 @@ regulator-boot-on; }; - veth: fixedregulator@0 { + veth: regulator-veth { compatible = "regulator-fixed"; regulator-name = "veth"; regulator-min-microvolt = <3300000>;
arch/arm/boot/dts/arm-realview-pbx.dtsi +2 -3
@@ -43,7 +43,7 @@ }; /* The voltage to the MMC card is hardwired at 3.3V */ - vmmc: fixedregulator@0 { + vmmc: regulator-vmmc { compatible = "regulator-fixed"; regulator-name = "vmmc"; regulator-min-microvolt = <3300000>;
@@ -51,7 +51,7 @@ regulator-boot-on; }; - veth: fixedregulator@0 { + veth: regulator-veth { compatible = "regulator-fixed"; regulator-name = "veth"; regulator-min-microvolt = <3300000>;
@@ -539,4 +539,3 @@ }; }; }; -
arch/arm/boot/dts/exynos3250.dtsi +1 -1
@@ -345,7 +345,7 @@ }; hsotg: hsotg@12480000 { - compatible = "snps,dwc2"; + compatible = "samsung,s3c6400-hsotg", "snps,dwc2"; reg = <0x12480000 0x20000>; interrupts = <0 141 0>; clocks = <&cmu CLK_USBOTG>;
arch/arm/boot/dts/mmp2.dtsi +1 -1
@@ -180,7 +180,7 @@ clocks = <&soc_clocks MMP2_CLK_GPIO>; resets = <&soc_clocks MMP2_CLK_GPIO>; interrupt-controller; - #interrupt-cells = <1>; + #interrupt-cells = <2>; ranges; gcb0: gpio@d4019000 {
arch/arm/boot/dts/omap3-pandora-common.dtsi +34 -2
@@ -221,6 +221,17 @@ gpio = <&gpio6 4 GPIO_ACTIVE_HIGH>; /* GPIO_164 */ }; + /* wl1251 wifi+bt module */ + wlan_en: fixed-regulator-wg7210_en { + compatible = "regulator-fixed"; + regulator-name = "vwlan"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + startup-delay-us = <50000>; + enable-active-high; + gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>; + }; + /* wg7210 (wifi+bt module) 32k clock buffer */ wg7210_32k: fixed-regulator-wg7210_32k { compatible = "regulator-fixed";
@@ -514,9 +525,30 @@ /*wp-gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>;*/ /* GPIO_127 */ }; -/* mmc3 is probed using pdata-quirks to pass wl1251 card data */ &mmc3 { - status = "disabled"; + vmmc-supply = <&wlan_en>; + + bus-width = <4>; + non-removable; + ti,non-removable; + cap-power-off-card; + + pinctrl-names = "default"; + pinctrl-0 = <&mmc3_pins>; + + #address-cells = <1>; + #size-cells = <0>; + + wlan: wifi@1 { + compatible = "ti,wl1251"; + + reg = <1>; + + interrupt-parent = <&gpio1>; + interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_21 */ + + ti,wl1251-has-eeprom; + }; }; /* bluetooth*/
arch/arm/boot/dts/omap3-tao3530.dtsi +1 -1
@@ -225,7 +225,7 @@ pinctrl-0 = <&mmc1_pins>; vmmc-supply = <&vmmc1>; vmmc_aux-supply = <&vsim>; - cd-gpios = <&twl_gpio 0 GPIO_ACTIVE_HIGH>; + cd-gpios = <&twl_gpio 0 GPIO_ACTIVE_LOW>; bus-width = <8>; };
arch/arm/boot/dts/pxa27x.dtsi +1 -1
@@ -34,7 +34,7 @@ clocks = <&clks CLK_NONE>; }; - pxa27x_ohci: usb@4c000000 { + usb0: usb@4c000000 { compatible = "marvell,pxa-ohci"; reg = <0x4c000000 0x10000>; interrupts = <3>;
arch/arm/boot/dts/pxa2xx.dtsi +0 -7
@@ -117,13 +117,6 @@ status = "disabled"; }; - usb0: ohci@4c000000 { - compatible = "marvell,pxa-ohci"; - reg = <0x4c000000 0x10000>; - interrupts = <3>; - status = "disabled"; - }; - mmc0: mmc@41100000 { compatible = "marvell,pxa-mmc"; reg = <0x41100000 0x1000>;
arch/arm/boot/dts/pxa3xx.dtsi +1 -1
@@ -187,7 +187,7 @@ status = "disabled"; }; - pxa3xx_ohci: usb@4c000000 { + usb0: usb@4c000000 { compatible = "marvell,pxa-ohci"; reg = <0x4c000000 0x10000>; interrupts = <3>;
arch/arm/boot/dts/rk3288-rock2-som.dtsi +1 -1
@@ -63,7 +63,7 @@ vcc_flash: flash-regulator { compatible = "regulator-fixed"; - regulator-name = "vcc_sys"; + regulator-name = "vcc_flash"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; startup-delay-us = <150>;
arch/arm/boot/dts/s3c6410-mini6410.dts +4 -0
@@ -167,6 +167,10 @@ }; }; +&clocks { + clocks = <&fin_pll>; +}; + &sdhci0 { pinctrl-names = "default"; pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
arch/arm/boot/dts/s3c6410-smdk6410.dts +4 -0
@@ -71,6 +71,10 @@ }; }; +&clocks { + clocks = <&fin_pll>; +}; + &sdhci0 { pinctrl-names = "default"; pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
arch/arm/boot/dts/sun6i-a31.dtsi +1 -1
@@ -174,7 +174,7 @@ }; pmu { - compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu"; + compatible = "arm,cortex-a7-pmu"; interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
arch/arm/boot/dts/sun7i-a20.dtsi +1 -1
@@ -172,7 +172,7 @@ }; pmu { - compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu"; + compatible = "arm,cortex-a7-pmu"; interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>; };
arch/arm/include/asm/uaccess.h +18 -0
@@ -379,6 +379,13 @@ do { \#define __get_user_asm_byte (x, addr, err) \ __get_user_asm(x, addr, err, ldrb) +#if __LINUX_ARM_ARCH__ >=6 + +#define __get_user_asm_half (x, addr, err) \ + __get_user_asm(x, addr, err, ldrh) + +#else +#ifndef __ARMEB__#define __get_user_asm_half (x, __gu_addr, err) \ ({ \
@@ -397,6 +404,8 @@ do { \ })#endif +#endif /* __LINUX_ARM_ARCH__ >= 6 */ +#define __get_user_asm_word (x, addr, err) \ __get_user_asm(x, addr, err, ldr)#endif
@@ -472,6 +481,13 @@ do { \#define __put_user_asm_byte (x, __pu_addr, err) \ __put_user_asm(x, __pu_addr, err, strb) +#if __LINUX_ARM_ARCH__ >=6 + +#define __put_user_asm_half (x, __pu_addr, err) \ + __put_user_asm(x, __pu_addr, err, strh) + +#else +#ifndef __ARMEB__#define __put_user_asm_half (x, __pu_addr, err) \ ({ \
@@ -488,6 +504,8 @@ do { \ })#endif +#endif /* __LINUX_ARM_ARCH__ >= 6 */ +#define __put_user_asm_word (x, __pu_addr, err) \ __put_user_asm(x, __pu_addr, err, str)
arch/arm/lib/getuser.S +11 -0
@@ -42,6 +42,12 @@ _ASM_NOKPROBE(__get_user_1) ENTRY(__get_user_2) check_uaccess r0, 2, r1, r2, __get_user_bad +#if __LINUX_ARM_ARCH__ >= 6 + +2: TUSER(ldrh) r2, [r0] + +#else + #ifdef CONFIG_CPU_USE_DOMAINS rb .req ip 2: ldrbt r2, [r0], #1
@@ -56,6 +62,9 @@ rb .req r0 #else orr r2, rb, r2, lsl #8 #endif + +#endif /* __LINUX_ARM_ARCH__ >= 6 */ + mov r0, #0 ret lr ENDPROC(__get_user_2)
@@ -145,7 +154,9 @@ _ASM_NOKPROBE(__get_user_bad8) .pushsection __ex_table, "a" .long 1b, __get_user_bad .long 2b, __get_user_bad +#if __LINUX_ARM_ARCH__ < 6 .long 3b, __get_user_bad +#endif .long 4b, __get_user_bad .long 5b, __get_user_bad8 .long 6b, __get_user_bad8
arch/arm/lib/putuser.S +10 -10
@@ -41,16 +41,13 @@ ENDPROC(__put_user_1) ENTRY(__put_user_2) check_uaccess r0, 2, r1, ip, __put_user_bad - mov ip, r2, lsr #8 -#ifdef CONFIG_THUMB2_KERNEL -#ifndef __ARMEB__ -2: TUSER(strb) r2, [r0] -3: TUSER(strb) ip, [r0, #1] +#if __LINUX_ARM_ARCH__ >= 6 + +2: TUSER(strh) r2, [r0] + #else -2: TUSER(strb) ip, [r0] -3: TUSER(strb) r2, [r0, #1] -#endif -#else /* !CONFIG_THUMB2_KERNEL */ + + mov ip, r2, lsr #8 #ifndef __ARMEB__ 2: TUSER(strb) r2, [r0], #1 3: TUSER(strb) ip, [r0]
@@ -58,7 +55,8 @@ ENTRY(__put_user_2) 2: TUSER(strb) ip, [r0], #1 3: TUSER(strb) r2, [r0] #endif -#endif /* CONFIG_THUMB2_KERNEL */ + +#endif /* __LINUX_ARM_ARCH__ >= 6 */ mov r0, #0 ret lr ENDPROC(__put_user_2)
@@ -91,7 +89,9 @@ ENDPROC(__put_user_bad) .pushsection __ex_table, "a" .long 1b, __put_user_bad .long 2b, __put_user_bad +#if __LINUX_ARM_ARCH__ < 6 .long 3b, __put_user_bad +#endif .long 4b, __put_user_bad .long 5b, __put_user_bad .long 6b, __put_user_bad
arch/arm/mach-omap1/id.c +3 -3
@@ -200,10 +200,10 @@ void __init omap_check_revision(void)printk (KERN_INFO "Unknown OMAP cpu type: 0x%02x\n" , cpu_type); } -printk (KERN_INFO "OMAP%04x" , omap_revision >>16 ); +pr_info ("OMAP%04x" , omap_revision >>16 );if ((omap_revision >>8 ) &0xff ) -printk (KERN_INFO "%x" , (omap_revision >>8 ) &0xff ); -printk (KERN_INFO " revision %i handled as %02xxx id: %08x%08x\n" , +pr_cont ("%x" , (omap_revision >>8 ) &0xff ); +pr_cont (" revision %i handled as %02xxx id: %08x%08x\n" , die_rev, omap_revision &0xff , system_serial_low, system_serial_high); }
arch/arm/mach-omap2/id.c +2 -2
@@ -199,8 +199,8 @@ void __init omap2xxx_check_revision(void)pr_info ("%s" , soc_name);if ((omap_rev () >>8 ) &0x0f ) -pr_info ("%s" , soc_rev); -pr_info ("\n" ); +pr_cont ("%s" , soc_rev); +pr_cont ("\n" ); }#define OMAP3_SHOW_FEATURE (feat) \
arch/arm/mach-omap2/pdata-quirks.c +0 -93
108 lines not on this page · raw message
arch/arm/mach-tegra/reset-handler.S +3 -3
@@ -56,16 +56,16 @@ ENTRY(tegra_resume) cmp r6, #TEGRA20 beq 1f @ Yes /* Clear the flow controller flags for this CPU. */ - cpu_to_csr_reg r1, r0 + cpu_to_csr_reg r3, r0 mov32 r2, TEGRA_FLOW_CTRL_BASE - ldr r1, [r2, r1] + ldr r1, [r2, r3] /* Clear event & intr flag */ orr r1, r1, \ #FLOW_CTRL_CSR_INTR_FLAG | FLOW_CTRL_CSR_EVENT_FLAG movw r0, #0x3FFD @ enable, cluster_switch, immed, bitmaps @ & ext flags for CPU power mgnt bic r1, r1, r0 - str r1, [r2] + str r1, [r2, r3] 1: mov32 r9, 0xc09
arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi +1 -1
@@ -1583,7 +1583,7 @@ regulator-name = "VDD_HDMI_5V0"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; - gpio = <&exp1 12 GPIO_ACTIVE_LOW>; + gpio = <&exp1 12 GPIO_ACTIVE_HIGH>; enable-active-high; vin-supply = <&vdd_5v0_sys>; };
arch/mips/Kconfig +1 -0
@@ -804,6 +804,7 @@ config SIBYTE_LITTLESUR select SYS_SUPPORTS_BIG_ENDIAN select SYS_SUPPORTS_HIGHMEM select SYS_SUPPORTS_LITTLE_ENDIAN + select ZONE_DMA32 if 64BIT config SIBYTE_SENTOSA bool "Sibyte BCM91250E-Sentosa"
arch/mips/cavium-octeon/executive/cvmx-cmd-queue.c +1 -1
@@ -266,7 +266,7 @@ int cvmx_cmd_queue_length(cvmx_cmd_queue_id_t queue_id) }else {union cvmx_pko_mem_debug8 debug8; debug8.u64 =cvmx_read_csr (CVMX_PKO_MEM_DEBUG8 ); -return debug8.cn58xx.doorbell; +return debug8.cn50xx.doorbell; }case CVMX_CMD_QUEUE_ZIP :case CVMX_CMD_QUEUE_DFA :
arch/mips/cavium-octeon/octeon-platform.c +1 -1
@@ -502,7 +502,7 @@ static void __init octeon_fdt_set_phy(int eth, int phy_addr)if (phy_addr >=256 && alt_phy >0 ) {const struct fdt_property *phy_prop;struct fdt_property *alt_prop; -u32 phy_handle_name; +fdt32_t phy_handle_name;/* Use the alt phy node instead.*/ phy_prop =fdt_get_property (initial_boot_params, eth,"phy-handle" ,NULL );
arch/mips/include/asm/octeon/cvmx-pko.h +1 -1
@@ -611,7 +611,7 @@ static inline void cvmx_pko_get_port_status(uint64_t port_num, uint64_t clear, pko_reg_read_idx.s.index =cvmx_pko_get_base_queue (port_num);cvmx_write_csr (CVMX_PKO_REG_READ_IDX , pko_reg_read_idx.u64); debug8.u64 =cvmx_read_csr (CVMX_PKO_MEM_DEBUG8 ); - status->doorbell = debug8.cn58xx.doorbell; + status->doorbell = debug8.cn50xx.doorbell; } }
arch/powerpc/include/asm/sfp-machine.h +29 -63
132 lines not on this page · raw message
arch/powerpc/include/asm/vdso_datapage.h +2 -0
@@ -86,6 +86,7 @@ struct vdso_data {__s32 wtom_clock_nsec;struct timespec stamp_xtime;/* xtime as at tb_orig_stamp */ __u32 stamp_sec_fraction;/* fractional seconds of stamp_xtime */ +__u32 hrtimer_res;/* hrtimer resolution */ __u32 syscall_map_64[SYSCALL_MAP_SIZE ];/* map of syscalls */ __u32 syscall_map_32[SYSCALL_MAP_SIZE ];/* map of syscalls */ };
@@ -107,6 +108,7 @@ struct vdso_data {__s32 wtom_clock_nsec;struct timespec stamp_xtime;/* xtime as at tb_orig_stamp */ __u32 stamp_sec_fraction;/* fractional seconds of stamp_xtime */ +__u32 hrtimer_res;/* hrtimer resolution */ __u32 syscall_map_32[SYSCALL_MAP_SIZE ];/* map of syscalls */ __u32 dcache_block_size;/* L1 d-cache block size */ __u32 icache_block_size;/* L1 i-cache block size */
arch/powerpc/kernel/asm-offsets.c +1 -1
@@ -383,6 +383,7 @@ int main(void)DEFINE (WTOM_CLOCK_NSEC , offsetof(struct vdso_data , wtom_clock_nsec));DEFINE (STAMP_XTIME , offsetof(struct vdso_data , stamp_xtime));DEFINE (STAMP_SEC_FRAC , offsetof(struct vdso_data , stamp_sec_fraction)); +DEFINE (CLOCK_HRTIMER_RES , offsetof(struct vdso_data , hrtimer_res));DEFINE (CFG_ICACHE_BLOCKSZ , offsetof(struct vdso_data , icache_block_size));DEFINE (CFG_DCACHE_BLOCKSZ , offsetof(struct vdso_data , dcache_block_size));DEFINE (CFG_ICACHE_LOGBLOCKSZ , offsetof(struct vdso_data , icache_log_block_size));
@@ -411,7 +412,6 @@ int main(void)DEFINE (CLOCK_REALTIME ,CLOCK_REALTIME );DEFINE (CLOCK_MONOTONIC ,CLOCK_MONOTONIC );DEFINE (NSEC_PER_SEC ,NSEC_PER_SEC ); -DEFINE (CLOCK_REALTIME_RES ,MONOTONIC_RES_NSEC );#ifdef CONFIG_BUG DEFINE (BUG_ENTRY_SIZE ,sizeof (struct bug_entry ));
arch/powerpc/kernel/time.c +1 -0
@@ -862,6 +862,7 @@ void update_vsyscall_old(struct timespec *wall_time, struct timespec *wtm, vdso_data->wtom_clock_nsec = wtm->tv_nsec; vdso_data->stamp_xtime = *wall_time; vdso_data->stamp_sec_fraction = frac_sec; + vdso_data->hrtimer_res = hrtimer_resolution;smp_wmb (); ++(vdso_data->tb_update_count); }
arch/powerpc/kernel/vdso32/gettimeofday.S +5 -2
@@ -160,12 +160,15 @@ V_FUNCTION_BEGIN(__kernel_clock_getres) cror cr0*4+eq,cr0*4+eq,cr1*4+eq bne cr0,99f + mflr r12 + .cfi_register lr,r12 + bl __get_datapage@local /* get data page */ + lwz r5, CLOCK_HRTIMER_RES(r3) + mtlr r12 li r3,0 cmpli cr0,r4,0 crclr cr0*4+so beqlr - lis r5,CLOCK_REALTIME_RES@h - ori r5,r5,CLOCK_REALTIME_RES@l stw r3,TSPC32_TV_SEC(r4) stw r5,TSPC32_TV_NSEC(r4) blr
arch/powerpc/kernel/vdso64/cacheflush.S +2 -2
@@ -39,7 +39,7 @@ V_FUNCTION_BEGIN(__kernel_sync_dicache) subf r8,r6,r4 /* compute length */ add r8,r8,r5 /* ensure we get enough */ lwz r9,CFG_DCACHE_LOGBLOCKSZ(r10) - srw. r8,r8,r9 /* compute line count */ + srd. r8,r8,r9 /* compute line count */ crclr cr0*4+so beqlr /* nothing to do? */ mtctr r8
@@ -56,7 +56,7 @@ V_FUNCTION_BEGIN(__kernel_sync_dicache) subf r8,r6,r4 /* compute length */ add r8,r8,r5 lwz r9,CFG_ICACHE_LOGBLOCKSZ(r10) - srw. r8,r8,r9 /* compute line count */ + srd. r8,r8,r9 /* compute line count */ crclr cr0*4+so beqlr /* nothing to do? */ mtctr r8
arch/powerpc/kernel/vdso64/gettimeofday.S +5 -2
@@ -145,12 +145,15 @@ V_FUNCTION_BEGIN(__kernel_clock_getres) cror cr0*4+eq,cr0*4+eq,cr1*4+eq bne cr0,99f + mflr r12 + .cfi_register lr,r12 + bl V_LOCAL_FUNC(__get_datapage) + lwz r5, CLOCK_HRTIMER_RES(r3) + mtlr r12 li r3,0 cmpldi cr0,r4,0 crclr cr0*4+so beqlr - lis r5,CLOCK_REALTIME_RES@h - ori r5,r5,CLOCK_REALTIME_RES@l std r3,TSPC64_TV_SEC(r4) std r5,TSPC64_TV_NSEC(r4) blr
arch/x86/kernel/cpu/mcheck/mce.c +0 -30
@@ -1648,36 +1648,6 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)if (c->x86 ==0x15 && c->x86_model <=0xf ) mce_flags.overflow_recov =1 ; -/* -* Turn off MC4_MISC thresholding banks on those models since -* they're not supported there. -*/ -if (c->x86 ==0x15 && - (c->x86_model >=0x10 && c->x86_model <=0x1f )) { -int i; -u64 hwcr; -bool need_toggle; -u32 msrs[] = { -0x00000413 ,/* MC4_MISC0 */ -0xc0000408 ,/* MC4_MISC1 */ - }; - -rdmsrl (MSR_K7_HWCR , hwcr); - -/* McStatusWrEn has to be set */ - need_toggle = !(hwcr &BIT (18 )); - -if (need_toggle) -wrmsrl (MSR_K7_HWCR , hwcr |BIT (18 )); - -/* Clear CntP bit safely */ -for (i =0 ; i <ARRAY_SIZE (msrs); i++) -msr_clear_bit (msrs[i],62 ); - -/* restore old settings */ -if (need_toggle) -wrmsrl (MSR_K7_HWCR , hwcr); - } }if (c->x86_vendor ==X86_VENDOR_INTEL ) {
arch/x86/kernel/cpu/mcheck/mce_amd.c +36 -0
@@ -499,6 +499,40 @@ prepare_threshold_block(unsigned int bank, unsigned int block, u32 addr,return offset; } +/* +* Turn off MC4_MISC thresholding banks on all family 0x15 models since +* they're not supported there. +*/ +void disable_err_thresholding (struct cpuinfo_x86 *c) +{ +int i; +u64 hwcr; +bool need_toggle; +u32 msrs[] = { +0x00000413 ,/* MC4_MISC0 */ +0xc0000408 ,/* MC4_MISC1 */ + }; + +if (c->x86 !=0x15 ) +return ; + +rdmsrl (MSR_K7_HWCR , hwcr); + +/* McStatusWrEn has to be set */ + need_toggle = !(hwcr &BIT (18 )); + +if (need_toggle) +wrmsrl (MSR_K7_HWCR , hwcr |BIT (18 )); + +/* Clear CntP bit safely */ +for (i =0 ; i <ARRAY_SIZE (msrs); i++) +msr_clear_bit (msrs[i],62 ); + +/* restore old settings */ +if (need_toggle) +wrmsrl (MSR_K7_HWCR , hwcr); +} +/* cpu init entry point, called from mce.c with preempt off */ void mce_amd_feature_init (struct cpuinfo_x86 *c) {
@@ -506,6 +540,8 @@ void mce_amd_feature_init(struct cpuinfo_x86 *c)unsigned int bank, block, cpu =smp_processor_id ();int offset =-1 ; +disable_err_thresholding (c); +for (bank =0 ; bank < mca_cfg.banks; ++bank) {if (mce_flags.smca)get_smca_bank_info (bank);
arch/x86/kvm/cpuid.c +4 -1
@@ -389,7 +389,7 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, r = -E2BIG ; -if (*nent >= maxnent) +if (WARN_ON (*nent >= maxnent)) goto out;do_cpuid_1_ent (entry, function, index);
@@ -691,6 +691,9 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,static int do_cpuid_ent (struct kvm_cpuid_entry2 *entry,u32 func,u32 idx,int *nent,int maxnent,unsigned int type) { +if (*nent >= maxnent) +return -E2BIG ; +if (type ==KVM_GET_EMULATED_CPUID )return __do_cpuid_ent_emulated (entry, func, idx, nent, maxnent);
arch/x86/kvm/x86.c +10 -4
@@ -273,13 +273,14 @@ int kvm_set_shared_msr(unsigned slot, u64 value, u64 mask)struct kvm_shared_msrs *smsr =per_cpu_ptr (shared_msrs, cpu);int err; -if (((value ^ smsr->values[slot].curr) & mask) ==0 ) + value = (value & mask) | (smsr->values[slot].host & ~mask); +if (value == smsr->values[slot].curr)return 0 ; - smsr->values[slot].curr = value; err =wrmsrl_safe (shared_msrs_global.msrs[slot], value);if (err)return 1 ; + smsr->values[slot].curr = value;if (!smsr->registered) { smsr->urn.on_user_return = kvm_on_user_return;user_return_notifier_register (&smsr->urn);
@@ -1074,10 +1075,15 @@ u64 kvm_get_arch_capabilities(void)* If TSX is disabled on the system, guests are also mitigated against * TAA and clear CPU buffer mitigation is not required for guests. */ -if (boot_cpu_has_bug (X86_BUG_TAA ) &&boot_cpu_has (X86_FEATURE_RTM ) && - (data &ARCH_CAP_TSX_CTRL_MSR )) +if (!boot_cpu_has (X86_FEATURE_RTM )) + data &= ~ARCH_CAP_TAA_NO ; +else if (!boot_cpu_has_bug (X86_BUG_TAA )) + data |=ARCH_CAP_TAA_NO ; +else if (data &ARCH_CAP_TSX_CTRL_MSR ) data &= ~ARCH_CAP_MDS_NO ; +/* KVM does not emulate MSR_IA32_TSX_CTRL. */ + data &= ~ARCH_CAP_TSX_CTRL_MSR ;return data; }
arch/x86/pci/fixup.c +11 -0
@@ -572,6 +572,17 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x6f60, pci_invalid_bar);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_INTEL ,0x6fa0 , pci_invalid_bar);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_INTEL ,0x6fc0 , pci_invalid_bar); +/* +* Device [1022:7914] +* When in D0, PME# doesn't get asserted when plugging USB 2.0 device. +*/ +static void pci_fixup_amd_fch_xhci_pme (struct pci_dev *dev) +{ +dev_info (&dev->dev,"PME# does not work under D0, disabling it\n" ); + dev->pme_support &= ~(PCI_PM_CAP_PME_D0 >>PCI_PM_CAP_PME_SHIFT ); +} +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_AMD ,0x7914 , pci_fixup_amd_fch_xhci_pme); +/* * Apple MacBook Pro: Avoid [mem 0x7fa00000-0x7fbfffff] *
arch/xtensa/mm/tlb.c +2 -2
@@ -218,6 +218,8 @@ static int check_tlb_entry(unsigned w, unsigned e, bool dtlb)unsigned tlbidx = w | (e <<PAGE_SHIFT );unsigned r0 = dtlb ?read_dtlb_virtual (tlbidx) :read_itlb_virtual (tlbidx); +unsigned r1 = dtlb ? +read_dtlb_translation (tlbidx) :read_itlb_translation (tlbidx);unsigned vpn = (r0 &PAGE_MASK ) | (e <<PAGE_SHIFT );unsigned pte =get_pte_for_vaddr (vpn);unsigned mm_asid = (get_rasid_register () >>8 ) &ASID_MASK ;
@@ -233,8 +235,6 @@ static int check_tlb_entry(unsigned w, unsigned e, bool dtlb) }if (tlb_asid == mm_asid) { -unsigned r1 = dtlb ?read_dtlb_translation (tlbidx) : -read_itlb_translation (tlbidx);if ((pte ^ r1) &PAGE_MASK ) {pr_err ("%cTLB: way: %u, entry: %u, mapping: %08x->%08x, PTE: %08x\n" , dtlb ?'D' :'I' , w, e, r0, r1, pte);
block/blk-mq-sysfs.c +10 -5
@@ -243,20 +243,25 @@ static ssize_t blk_mq_hw_sysfs_active_show(struct blk_mq_hw_ctx *hctx, char *pagstatic ssize_t blk_mq_hw_sysfs_cpus_show (struct blk_mq_hw_ctx *hctx,char *page) { +const size_t size =PAGE_SIZE -1 ;unsigned int i, first =1 ; -ssize_t ret =0 ; +int ret =0 , pos =0 ;for_each_cpu (i, hctx->cpumask) {if (first) - ret +=sprintf (ret + page,"%u" , i); + ret =snprintf (pos + page, size - pos,"%u" , i);else - ret +=sprintf (ret + page,", %u" , i); + ret =snprintf (pos + page, size - pos,", %u" , i); + +if (ret >= size - pos) +break ; first =0 ; + pos += ret; } - ret +=sprintf (ret + page,"\n" ); -return ret; + ret =snprintf (pos + page, size +1 - pos,"\n" ); +return pos + ret; }static struct blk_mq_ctx_sysfs_entry blk_mq_sysfs_dispatched = {
crypto/crypto_user.c +3 -1
@@ -269,8 +269,10 @@ static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, drop_alg:crypto_mod_put (alg); -if (err) +if (err) { +kfree_skb (skb);return err; + }return nlmsg_unicast (crypto_nlsk, skb,NETLINK_CB (in_skb).portid); }
crypto/ecc.c +2 -1
@@ -897,10 +897,11 @@ static void ecc_point_mult(struct ecc_point *result,static inline void ecc_swap_digits (const u64 *in,u64 *out,unsigned int ndigits) { +const __be64 *src = (__force __be64 *)in;int i;for (i =0 ; i < ndigits; i++) - out[i] =__swab64 (in[ndigits -1 - i]); + out[i] =be64_to_cpu (src[ndigits -1 - i]); } int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits,
drivers/acpi/bus.c +1 -1
@@ -158,7 +158,7 @@ int acpi_bus_get_private_data(acpi_handle handle, void **data) {acpi_status status; -if (!*data) +if (!data)return -EINVAL ; status =acpi_get_data (handle, acpi_bus_private_data_handler, data);
drivers/acpi/device_pm.c +11 -1
@@ -1096,9 +1096,19 @@ static void acpi_dev_pm_detach(struct device *dev, bool power_off)*/ int acpi_dev_pm_attach (struct device *dev,bool power_on) { +/* +* Skip devices whose ACPI companions match the device IDs below, +* because they require special power management handling incompatible +* with the generic ACPI PM domain. +*/ +static const struct acpi_device_id special_pm_ids[] = { + {"PNP0C0B" , },/* Generic ACPI fan */ + {"INT3404" , },/* Fan */ + {} + };struct acpi_device *adev =ACPI_COMPANION (dev); -if (!adev) +if (!adev || !acpi_match_device_ids (adev, special_pm_ids))return -ENODEV ;if (dev->pm_domain)
drivers/acpi/osl.c +17 -11
@@ -375,19 +375,21 @@ void *__ref acpi_os_map_memory(acpi_physical_address phys, acpi_size size) }EXPORT_SYMBOL_GPL (acpi_os_map_memory); -static void acpi_os_drop_map_ref (struct acpi_ioremap *map) +/* Must be called with mutex_lock(&acpi_ioremap_lock) */ +static unsigned long acpi_os_drop_map_ref (struct acpi_ioremap *map) { -if (!--map->refcount) +unsigned long refcount = --map->refcount; + +if (!refcount)list_del_rcu (&map->list); +return refcount; }static void acpi_os_map_cleanup (struct acpi_ioremap *map) { -if (!map->refcount) { -synchronize_rcu_expedited (); -acpi_unmap (map->phys, map->virt); -kfree (map); - } +synchronize_rcu_expedited (); +acpi_unmap (map->phys, map->virt); +kfree (map); }/**
@@ -407,6 +409,7 @@ static void acpi_os_map_cleanup(struct acpi_ioremap *map)void __ref acpi_os_unmap_iomem (void __iomem *virt,acpi_size size) {struct acpi_ioremap *map; +unsigned long refcount;if (!acpi_gbl_permanent_mmap) {__acpi_unmap_table (virt, size);
@@ -420,10 +423,11 @@ void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size)WARN (true,PREFIX "%s: bad address %p\n" , __func__, virt);return ; } -acpi_os_drop_map_ref (map); + refcount =acpi_os_drop_map_ref (map);mutex_unlock (&acpi_ioremap_lock); -acpi_os_map_cleanup (map); +if (!refcount) +acpi_os_map_cleanup (map); }EXPORT_SYMBOL_GPL (acpi_os_unmap_iomem);
@@ -464,6 +468,7 @@ void acpi_os_unmap_generic_address(struct acpi_generic_address *gas) {u64 addr;struct acpi_ioremap *map; +unsigned long refcount;if (gas->space_id !=ACPI_ADR_SPACE_SYSTEM_MEMORY )return ;
@@ -479,10 +484,11 @@ void acpi_os_unmap_generic_address(struct acpi_generic_address *gas)mutex_unlock (&acpi_ioremap_lock);return ; } -acpi_os_drop_map_ref (map); + refcount =acpi_os_drop_map_ref (map);mutex_unlock (&acpi_ioremap_lock); -acpi_os_map_cleanup (map); +if (!refcount) +acpi_os_map_cleanup (map); }EXPORT_SYMBOL (acpi_os_unmap_generic_address);
drivers/block/rsxx/core.c +2 -0
@@ -1025,8 +1025,10 @@ static void rsxx_pci_remove(struct pci_dev *dev)cancel_work_sync (&card->event_work); +destroy_workqueue (card->event_wq);rsxx_destroy_dev (card);rsxx_dma_destroy (card); +destroy_workqueue (card->creg_ctrl.creg_wq);spin_lock_irqsave (&card->irq_lock, flags);rsxx_disable_ier_and_isr (card,CR_INTR_ALL );
drivers/char/ppdev.c +12 -4
@@ -624,20 +624,27 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)if (copy_from_user (time32, argp,sizeof (time32)))return -EFAULT ; +if ((time32[0 ] <0 ) || (time32[1 ] <0 )) +return -EINVAL ; +return pp_set_timeout (pp->pdev, time32[0 ], time32[1 ]);case PPSETTIME64 :if (copy_from_user (time64, argp,sizeof (time64)))return -EFAULT ; +if ((time64[0 ] <0 ) || (time64[1 ] <0 )) +return -EINVAL ; + +if (IS_ENABLED (CONFIG_SPARC64 ) && !in_compat_syscall ()) + time64[1 ] >>=32 ; +return pp_set_timeout (pp->pdev, time64[0 ], time64[1 ]);case PPGETTIME32 :jiffies_to_timespec64 (pp->pdev->timeout, &ts); time32[0 ] = ts.tv_sec; time32[1 ] = ts.tv_nsec /NSEC_PER_USEC ; -if ((time32[0 ] <0 ) || (time32[1 ] <0 )) -return -EINVAL ;if (copy_to_user (argp, time32,sizeof (time32)))return -EFAULT ;
@@ -648,8 +655,9 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)jiffies_to_timespec64 (pp->pdev->timeout, &ts); time64[0 ] = ts.tv_sec; time64[1 ] = ts.tv_nsec /NSEC_PER_USEC ; -if ((time64[0 ] <0 ) || (time64[1 ] <0 )) -return -EINVAL ; + +if (IS_ENABLED (CONFIG_SPARC64 ) && !in_compat_syscall ()) + time64[1 ] <<=32 ;if (copy_to_user (argp, time64,sizeof (time64)))return -EFAULT ;
drivers/clk/rockchip/clk-rk3188.c +4 -4
@@ -361,8 +361,8 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = { RK2928_CLKGATE_CON(2), 5, GFLAGS),MUX (SCLK_MAC ,"sclk_macref" , mux_sclk_macref_p,CLK_SET_RATE_PARENT ,RK2928_CLKSEL_CON (21 ),4 ,1 ,MFLAGS ), -GATE (0 ,"sclk_mac_lbtest" ,"sclk_macref" , -RK2928_CLKGATE_CON (2 ),12 ,0 ,GFLAGS ), +GATE (0 ,"sclk_mac_lbtest" ,"sclk_macref" ,0 , +RK2928_CLKGATE_CON (2 ),12 ,GFLAGS ), COMPOSITE(0, "hsadc_src", mux_pll_src_gpll_cpll_p, 0, RK2928_CLKSEL_CON(22), 0, 1, MFLAGS, 8, 8, DFLAGS,
@@ -390,8 +390,8 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = {* Clock-Architecture Diagram 4 */ -GATE (SCLK_SMC ,"sclk_smc" ,"hclk_peri" , -RK2928_CLKGATE_CON (2 ),4 ,0 ,GFLAGS ), +GATE (SCLK_SMC ,"sclk_smc" ,"hclk_peri" ,0 , +RK2928_CLKGATE_CON (2 ),4 ,GFLAGS ), COMPOSITE_NOMUX(SCLK_SPI0, "sclk_spi0", "pclk_peri", 0, RK2928_CLKSEL_CON(25), 0, 7, DFLAGS,
drivers/clk/sunxi-ng/ccu-sun8i-h3.c +1 -1
@@ -458,7 +458,7 @@ static const char * const csi_sclk_parents[] = { "pll-periph0", "pll-periph1" }; static SUNXI_CCU_M_WITH_MUX_GATE(csi_sclk_clk, "csi-sclk", csi_sclk_parents, 0x134, 16, 4, 24, 3, BIT(31), 0); -static const char *const csi_mclk_parents[] = {"osc24M" ,"pll-video" ,"pll-periph0" }; +static const char *const csi_mclk_parents[] = {"osc24M" ,"pll-video" ,"pll-periph1" }; static SUNXI_CCU_M_WITH_MUX_GATE(csi_mclk_clk, "csi-mclk", csi_mclk_parents, 0x134, 0, 5, 8, 3, BIT(15), 0);
drivers/cpuidle/driver.c +7 -8
@@ -61,24 +61,23 @@ static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv)* __cpuidle_set_driver - set per CPU driver variables for the given driver. * @drv: a valid pointer to a struct cpuidle_driver * -* For each CPU in the driver's cpumask, unset the registered driver per CPU -* to @drv. -* -* Returns 0 on success, -EBUSY if the CPUs have driver(s) already. +* Returns 0 on success, -EBUSY if any CPU in the cpumask have a driver +* different from drv already. */ static inline int __cpuidle_set_driver (struct cpuidle_driver *drv) {int cpu;for_each_cpu (cpu, drv->cpumask) { +struct cpuidle_driver *old_drv; -if (__cpuidle_get_cpu_driver (cpu)) { -__cpuidle_unset_driver (drv); + old_drv =__cpuidle_get_cpu_driver (cpu); +if (old_drv && old_drv != drv)return -EBUSY ; - } + } +for_each_cpu (cpu, drv->cpumask)per_cpu (cpuidle_drivers, cpu) = drv; - }return 0 ; }
drivers/crypto/amcc/crypto4xx_core.c +1 -5
@@ -400,12 +400,8 @@ static u32 crypto4xx_build_sdr(struct crypto4xx_device *dev)dma_alloc_coherent (dev->core_dev->device, dev->scatter_buffer_size *PPC4XX_NUM_SD , &dev->scatter_buffer_pa,GFP_ATOMIC ); -if (!dev->scatter_buffer_va) { -dma_free_coherent (dev->core_dev->device, -sizeof (struct ce_sd ) *PPC4XX_NUM_SD , - dev->sdr, dev->sdr_pa); +if (!dev->scatter_buffer_va)return -ENOMEM ; - } sd_array = dev->sdr;
drivers/crypto/ccp/ccp-dmaengine.c +1 -0
@@ -309,6 +309,7 @@ static struct ccp_dma_desc *ccp_alloc_dma_desc(struct ccp_dma_chan *chan, desc->tx_desc.flags = flags; desc->tx_desc.tx_submit = ccp_tx_submit; desc->ccp = chan->ccp; +INIT_LIST_HEAD (&desc->entry);INIT_LIST_HEAD (&desc->pending);INIT_LIST_HEAD (&desc->active); desc->status =DMA_IN_PROGRESS ;
drivers/devfreq/devfreq.c +9 -3
@@ -135,6 +135,7 @@ int devfreq_update_status(struct devfreq *devfreq, unsigned long freq)int lev, prev_lev, ret =0 ;unsigned long cur_time; +lockdep_assert_held (&devfreq->lock); cur_time = jiffies;/* Immediately exit if previous_freq is not initialized yet. */
@@ -1170,12 +1171,17 @@ static ssize_t trans_stat_show(struct device *dev,int i, j;unsigned int max_state = devfreq->profile->max_state; -if (!devfreq->stop_polling && -devfreq_update_status (devfreq, devfreq->previous_freq)) -return 0 ;if (max_state ==0 )return sprintf (buf,"Not Supported.\n" ); +mutex_lock (&devfreq->lock); +if (!devfreq->stop_polling && +devfreq_update_status (devfreq, devfreq->previous_freq)) { +mutex_unlock (&devfreq->lock); +return 0 ; + } +mutex_unlock (&devfreq->lock); + len =sprintf (buf," From : To\n" ); len +=sprintf (buf + len," :" );for (i =0 ; i < max_state; i++)
drivers/dma-buf/sync_file.c +1 -1
@@ -204,7 +204,7 @@ static struct sync_file *sync_file_merge(const char *name, struct sync_file *a, a_fences =get_fences (a, &a_num_fences); b_fences =get_fences (b, &b_num_fences);if (a_num_fences >INT_MAX - b_num_fences) -return NULL ; + goto err; num_fences = a_num_fences + b_num_fences;
drivers/dma/coh901318.c +0 -5
@@ -1797,13 +1797,10 @@ static struct dma_chan *coh901318_xlate(struct of_phandle_args *dma_spec,static int coh901318_config (struct coh901318_chan *cohc,struct coh901318_params *param) { -unsigned long flags;const struct coh901318_params *p;int channel = cohc->id;void __iomem *virtbase = cohc->base->virtbase; -spin_lock_irqsave (&cohc->lock, flags); -if (param) p = param;else
@@ -1823,8 +1820,6 @@ static int coh901318_config(struct coh901318_chan *cohc,coh901318_set_conf (cohc, p->config);coh901318_set_ctrl (cohc, p->ctrl_lli_last); -spin_unlock_irqrestore (&cohc->lock, flags); -return 0 ; }
drivers/extcon/extcon-max8997.c +4 -6
@@ -321,12 +321,10 @@ static int max8997_muic_handle_usb(struct max8997_muic_info *info, {int ret =0 ; -if (usb_type ==MAX8997_USB_HOST ) { - ret =max8997_muic_set_path (info, info->path_usb, attached); -if (ret <0 ) { -dev_err (info->dev,"failed to update muic register\n" ); -return ret; - } + ret =max8997_muic_set_path (info, info->path_usb, attached); +if (ret <0 ) { +dev_err (info->dev,"failed to update muic register\n" ); +return ret; }switch (usb_type) {
drivers/firmware/qcom_scm-64.c +1 -1
@@ -158,7 +158,7 @@ static int qcom_scm_call(struct device *dev, u32 svc_id, u32 cmd_id,kfree (args_virt); } -if (res->a0 <0 ) +if ((long )res->a0 <0 )return qcom_scm_remap_error (res->a0);return 0 ;
drivers/gpu/drm/i810/i810_dma.c +2 -2
@@ -723,7 +723,7 @@ static void i810_dma_dispatch_vertex(struct drm_device *dev,if (nbox >I810_NR_SAREA_CLIPRECTS ) nbox =I810_NR_SAREA_CLIPRECTS ; -if (used >4 *1024 ) +if (used <0 || used >4 *1024 ) used =0 ;if (sarea_priv->dirty)
@@ -1043,7 +1043,7 @@ static void i810_dma_dispatch_mc(struct drm_device *dev, struct drm_buf *buf, inif (u !=I810_BUF_CLIENT )DRM_DEBUG ("MC found buffer that isn't mine!\n" ); -if (used >4 *1024 ) +if (used <0 || used >4 *1024 ) used =0 ; sarea_priv->dirty =0x7f ;
drivers/gpu/drm/radeon/r100.c +2 -2
@@ -1824,8 +1824,8 @@ static int r100_packet0_check(struct radeon_cs_parser *p, track->textures[i].use_pitch =1 ; }else { track->textures[i].use_pitch =0 ; - track->textures[i].width =1 << ((idx_value >>RADEON_TXFORMAT_WIDTH_SHIFT ) &RADEON_TXFORMAT_WIDTH_MASK ); - track->textures[i].height =1 << ((idx_value >>RADEON_TXFORMAT_HEIGHT_SHIFT ) &RADEON_TXFORMAT_HEIGHT_MASK ); + track->textures[i].width =1 << ((idx_value &RADEON_TXFORMAT_WIDTH_MASK ) >>RADEON_TXFORMAT_WIDTH_SHIFT ); + track->textures[i].height =1 << ((idx_value &RADEON_TXFORMAT_HEIGHT_MASK ) >>RADEON_TXFORMAT_HEIGHT_SHIFT ); }if (idx_value &RADEON_TXFORMAT_CUBIC_MAP_ENABLE ) track->textures[i].tex_coord_type =2 ;
drivers/gpu/drm/radeon/r200.c +2 -2
@@ -476,8 +476,8 @@ int r200_packet0_check(struct radeon_cs_parser *p, track->textures[i].use_pitch =1 ; }else { track->textures[i].use_pitch =0 ; - track->textures[i].width =1 << ((idx_value >>RADEON_TXFORMAT_WIDTH_SHIFT ) &RADEON_TXFORMAT_WIDTH_MASK ); - track->textures[i].height =1 << ((idx_value >>RADEON_TXFORMAT_HEIGHT_SHIFT ) &RADEON_TXFORMAT_HEIGHT_MASK ); + track->textures[i].width =1 << ((idx_value &RADEON_TXFORMAT_WIDTH_MASK ) >>RADEON_TXFORMAT_WIDTH_SHIFT ); + track->textures[i].height =1 << ((idx_value &RADEON_TXFORMAT_HEIGHT_MASK ) >>RADEON_TXFORMAT_HEIGHT_SHIFT ); }if (idx_value &R200_TXFORMAT_LOOKUP_DISABLE ) track->textures[i].lookup_disable = true;
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c +13 -8
@@ -667,10 +667,13 @@ static ssize_t cyc_threshold_store(struct device *dev,if (kstrtoul (buf,16 , &val))return -EINVAL ; + +/* mask off max threshold before checking min value */ + val &=ETM_CYC_THRESHOLD_MASK ;if (val < drvdata->ccitmin)return -EINVAL ; - config->ccctlr = val &ETM_CYC_THRESHOLD_MASK ; + config->ccctlr = val;return size; }static DEVICE_ATTR_RW (cyc_threshold);
@@ -701,14 +704,16 @@ static ssize_t bb_ctrl_store(struct device *dev,return -EINVAL ;if (!drvdata->nr_addr_cmp)return -EINVAL ; +/* -* Bit[7:0] selects which address range comparator is used for -* branch broadcast control. +* Bit[8] controls include(1) / exclude(0), bits[0-7] select +* individual range comparators. If include then at least 1 +* range must be selected. */ -if (BMVAL (val,0 ,7 ) > drvdata->nr_addr_cmp) +if ((val &BIT (8 )) && (BMVAL (val,0 ,7 ) ==0 ))return -EINVAL ; - config->bb_ctrl = val; + config->bb_ctrl = val &GENMASK (8 ,0 );return size; }static DEVICE_ATTR_RW (bb_ctrl);
@@ -1341,8 +1346,8 @@ static ssize_t seq_event_store(struct device *dev,spin_lock (&drvdata->spinlock); idx = config->seq_idx; -/* RST, bits[7:0] */ - config->seq_ctrl[idx] = val &0xFF ; +/* Seq control has two masks B[15:8] F[7:0] */ + config->seq_ctrl[idx] = val &0xFFFF ;spin_unlock (&drvdata->spinlock);return size; }
@@ -1597,7 +1602,7 @@ static ssize_t res_ctrl_store(struct device *dev,if (idx %2 !=0 )/* PAIRINV, bit[21] */ val &= ~BIT (21 ); - config->res_ctrl[idx] = val; + config->res_ctrl[idx] = val &GENMASK (21 ,0 );spin_unlock (&drvdata->spinlock);return size; }
drivers/i2c/busses/i2c-imx.c +2 -1
@@ -1088,7 +1088,8 @@ static int i2c_imx_probe(struct platform_device *pdev)/* Get I2C clock */ i2c_imx->clk =devm_clk_get (&pdev->dev,NULL );if (IS_ERR (i2c_imx->clk)) { -dev_err (&pdev->dev,"can't get I2C clock\n" ); +if (PTR_ERR (i2c_imx->clk) != -EPROBE_DEFER ) +dev_err (&pdev->dev,"can't get I2C clock\n" );return PTR_ERR (i2c_imx->clk); }
drivers/iio/humidity/hdc100x.c +1 -1
@@ -202,7 +202,7 @@ static int hdc100x_read_raw(struct iio_dev *indio_dev, *val2 =65536 ;return IIO_VAL_FRACTIONAL ; }else { - *val =100 ; + *val =100000 ; *val2 =65536 ;return IIO_VAL_FRACTIONAL ; }
drivers/iio/imu/adis16480.c +1 -0
@@ -724,6 +724,7 @@ static const struct iio_info adis16480_info = { .write_raw = &adis16480_write_raw, .update_scan_mode = adis_update_scan_mode, .driver_module = THIS_MODULE, + .debugfs_reg_access = adis_debugfs_reg_access, };static int adis16480_stop_device (struct iio_dev *indio_dev)
drivers/infiniband/hw/hns/hns_roce_hem.h +1 -1
@@ -52,7 +52,7 @@ enum {#define HNS_ROCE_HEM_CHUNK_LEN \ ((256 - sizeof(struct list_head) - 2 * sizeof(int)) / \ - (sizeof(struct scatterlist))) + (sizeof(struct scatterlist) + sizeof(void *)))enum {HNS_ROCE_HEM_PAGE_SHIFT =12 ,
drivers/infiniband/hw/mlx4/sysfs.c +4 -8
@@ -352,16 +352,12 @@ static int add_port_entries(struct mlx4_ib_dev *device, int port_num)static void get_name (struct mlx4_ib_dev *dev,char *name,int i,int max) { -char base_name[9 ]; - -/* pci_name format is: bus:dev:func -> xxxx:yy:zz.n */ -strlcpy (name,pci_name (dev->dev->persist->pdev), max); -strncpy (base_name, name,8 );/*till xxxx:yy:*/ - base_name[8 ] ='\0' ; -/* with no ARI only 3 last bits are used so when the fn is higher than 8 +/* pci_name format is: bus:dev:func -> xxxx:yy:zz.n +* with no ARI only 3 last bits are used so when the fn is higher than 8 * need to add it to the dev num, so count in the last number will be * modulo 8 */ -sprintf (name,"%s%.2d.%d" , base_name, (i/8 ), (i%8 )); +snprintf (name, max,"%.8s%.2d.%d" ,pci_name (dev->dev->persist->pdev), + i /8 , i %8 ); }struct mlx4_port {
drivers/infiniband/hw/qib/qib_sysfs.c +6 -0
@@ -301,6 +301,9 @@ static ssize_t qib_portattr_show(struct kobject *kobj,struct qib_pportdata *ppd = container_of(kobj, struct qib_pportdata, pport_kobj); +if (!pattr->show) +return -EIO ; +return pattr->show (ppd, buf); }
@@ -312,6 +315,9 @@ static ssize_t qib_portattr_store(struct kobject *kobj,struct qib_pportdata *ppd = container_of(kobj, struct qib_pportdata, pport_kobj); +if (!pattr->store) +return -EIO ; +return pattr->store (ppd, buf, len); }
drivers/input/touchscreen/cyttsp4_core.c +0 -7
@@ -1972,11 +1972,6 @@ static int cyttsp4_mt_probe(struct cyttsp4 *cd)/* get sysinfo */ md->si = &cd->sysinfo; -if (!md->si) { -dev_err (dev,"%s: Fail get sysinfo pointer from core p=%p\n" , - __func__, md->si); - goto error_get_sysinfo; - } rc =cyttsp4_setup_input_device (cd);if (rc)
@@ -1986,8 +1981,6 @@ static int cyttsp4_mt_probe(struct cyttsp4 *cd) error_init_input:input_free_device (md->input); -error_get_sysinfo: -input_set_drvdata (md->input,NULL ); error_alloc_failed:dev_err (dev,"%s failed.\n" , __func__);return rc;
drivers/input/touchscreen/goodix.c +9 -0
@@ -89,6 +89,15 @@ static const unsigned long goodix_irq_flags[] = {*/ static const struct dmi_system_id rotated_screen[] = { #if defined(CONFIG_DMI) && defined(CONFIG_X86) + { + .ident ="Teclast X89" , + .matches = { +/* tPAD is too generic, also match on bios date */ +DMI_MATCH (DMI_BOARD_VENDOR ,"TECLAST" ), +DMI_MATCH (DMI_BOARD_NAME ,"tPAD" ), +DMI_MATCH (DMI_BIOS_DATE ,"12/19/2014" ), + }, + }, { .ident ="WinBook TW100" , .matches = {
drivers/isdn/gigaset/usb-gigaset.c +18 -5
@@ -574,8 +574,7 @@ static int gigaset_initcshw(struct cardstate *cs) {struct usb_cardstate *ucs; - cs->hw.usb = ucs = -kmalloc (sizeof (struct usb_cardstate ),GFP_KERNEL ); + cs->hw.usb = ucs =kzalloc (sizeof (struct usb_cardstate ),GFP_KERNEL );if (!ucs) {pr_err ("out of memory\n" );return -ENOMEM ;
@@ -587,9 +586,6 @@ static int gigaset_initcshw(struct cardstate *cs) ucs->bchars[3 ] =0 ; ucs->bchars[4 ] =0x11 ; ucs->bchars[5 ] =0x13 ; - ucs->bulk_out_buffer =NULL ; - ucs->bulk_out_urb =NULL ; - ucs->read_urb =NULL ;tasklet_init (&cs->write_tasklet, gigaset_modem_fill, (unsigned long ) cs);
@@ -688,6 +684,11 @@ static int gigaset_probe(struct usb_interface *interface,return -ENODEV ; } +if (hostif->desc.bNumEndpoints <2 ) { +dev_err (&interface->dev,"missing endpoints\n" ); +return -ENODEV ; + } +dev_info (&udev->dev,"%s: Device matched ... !\n" , __func__);/* allocate memory for our device state and initialize it */
@@ -707,6 +708,12 @@ static int gigaset_probe(struct usb_interface *interface, endpoint = &hostif->endpoint[0 ].desc; +if (!usb_endpoint_is_bulk_out (endpoint)) { +dev_err (&interface->dev,"missing bulk-out endpoint\n" ); + retval = -ENODEV ; + goto error; + } + buffer_size =le16_to_cpu (endpoint->wMaxPacketSize); ucs->bulk_out_size = buffer_size; ucs->bulk_out_epnum =usb_endpoint_num (endpoint);
@@ -726,6 +733,12 @@ static int gigaset_probe(struct usb_interface *interface, endpoint = &hostif->endpoint[1 ].desc; +if (!usb_endpoint_is_int_in (endpoint)) { +dev_err (&interface->dev,"missing int-in endpoint\n" ); + retval = -ENODEV ; + goto error; + } + ucs->busy =0 ; ucs->read_urb =usb_alloc_urb (0 ,GFP_KERNEL );
drivers/md/persistent-data/dm-btree-remove.c +7 -1
@@ -203,7 +203,13 @@ static void __rebalance2(struct dm_btree_info *info, struct btree_node *parent,struct btree_node *right = r->n;uint32_t nr_left =le32_to_cpu (left->header.nr_entries);uint32_t nr_right =le32_to_cpu (right->header.nr_entries); -unsigned threshold =2 *merge_threshold (left) +1 ; +/* +* Ensure the number of entries in each child will be greater +* than or equal to (max_entries / 3 + 1), so no matter which +* child is used for removal, the number will still be not +* less than (max_entries / 3). +*/ +unsigned int threshold =2 * (merge_threshold (left) +1 );if (nr_left + nr_right < threshold) {/*
drivers/media/platform/sti/bdisp/bdisp-v4l2.c +1 -2
@@ -651,8 +651,7 @@ static int bdisp_release(struct file *file)dev_dbg (bdisp->dev,"%s\n" , __func__); -if (mutex_lock_interruptible (&bdisp->lock)) -return -ERESTARTSYS ; +mutex_lock (&bdisp->lock);v4l2_m2m_ctx_release (ctx->fh.m2m_ctx);
drivers/media/radio/radio-wl1273.c +1 -2
@@ -1149,8 +1149,7 @@ static int wl1273_fm_fops_release(struct file *file)if (radio->rds_users >0 ) { radio->rds_users--;if (radio->rds_users ==0 ) { -if (mutex_lock_interruptible (&core->lock)) -return -EINTR ; +mutex_lock (&core->lock); radio->irq_flags &= ~WL1273_RDS_EVENT ;
drivers/media/usb/stkwebcam/stk-webcam.c +5 -1
@@ -166,7 +166,11 @@ int stk_camera_read_reg(struct stk_camera *dev, u16 index, u8 *value) *value = *buf;kfree (buf); -return ret; + +if (ret <0 ) +return ret; +else +return 0 ; }static int stk_start_stream (struct stk_camera *dev)
drivers/misc/altera-stapl/altera.c +1 -2
@@ -2176,8 +2176,7 @@ static int altera_get_note(u8 *p, s32 program_size, key_ptr = &p[note_strings +get_unaligned_be32 ( &p[note_table + (8 * i)])]; -if ((strncasecmp (key, key_ptr,strlen (key_ptr)) ==0 ) && - (key !=NULL )) { +if (key && !strncasecmp (key, key_ptr,strlen (key_ptr))) { status =0 ; value_ptr = &p[note_strings +
drivers/mmc/host/omap_hsmmc.c +30 -0
@@ -1700,6 +1700,36 @@ static void omap_hsmmc_init_card(struct mmc_host *mmc, struct mmc_card *card)if (mmc_pdata (host)->init_card)mmc_pdata (host)->init_card (card); +else if (card->type ==MMC_TYPE_SDIO || + card->type ==MMC_TYPE_SD_COMBO ) { +struct device_node *np =mmc_dev (mmc)->of_node; + +/* +* REVISIT: should be moved to sdio core and made more +* general e.g. by expanding the DT bindings of child nodes +* to provide a mechanism to provide this information: +* Documentation/devicetree/bindings/mmc/mmc-card.txt +*/ + + np =of_get_compatible_child (np,"ti,wl1251" ); +if (np) { +/* +* We have TI wl1251 attached to MMC3. Pass this +* information to the SDIO core because it can't be +* probed by normal methods. +*/ + +dev_info (host->dev,"found wl1251\n" ); + card->quirks |=MMC_QUIRK_NONSTD_SDIO ; + card->cccr.wide_bus =1 ; + card->cis.vendor =0x104c ; + card->cis.device =0x9066 ; + card->cis.blksize =512 ; + card->cis.max_dtr =24000000 ; + card->ocr =0x80 ; +of_node_put (np); + } + } }static void omap_hsmmc_enable_sdio_irq (struct mmc_host *mmc,int enable)
drivers/mtd/devices/spear_smi.c +37 -1
@@ -595,6 +595,26 @@ static int spear_mtd_read(struct mtd_info *mtd, loff_t from, size_t len,return 0 ; } +/* +* The purpose of this function is to ensure a memcpy_toio() with byte writes +* only. Its structure is inspired from the ARM implementation of _memcpy_toio() +* which also does single byte writes but cannot be used here as this is just an +* implementation detail and not part of the API. Not mentioning the comment +* stating that _memcpy_toio() should be optimized. +*/ +static void spear_smi_memcpy_toio_b (volatile void __iomem *dest, +const void *src,size_t len) +{ +const unsigned char *from = src; + +while (len) { + len--; +writeb (*from, dest); + from++; + dest++; + } +} +static inline int spear_smi_cpy_toio (struct spear_smi *dev,u32 bank,void __iomem *dest,const void *src,size_t len) {
@@ -617,7 +637,23 @@ static inline int spear_smi_cpy_toio(struct spear_smi *dev, u32 bank, ctrlreg1 =readl (dev->io_base +SMI_CR1 );writel ((ctrlreg1 |WB_MODE ) & ~SW_MODE , dev->io_base +SMI_CR1 ); -memcpy_toio (dest, src, len); +/* +* In Write Burst mode (WB_MODE), the specs states that writes must be: +* - incremental +* - of the same size +* The ARM implementation of memcpy_toio() will optimize the number of +* I/O by using as much 4-byte writes as possible, surrounded by +* 2-byte/1-byte access if: +* - the destination is not 4-byte aligned +* - the length is not a multiple of 4-byte. +* Avoid this alternance of write access size by using our own 'byte +* access' helper if at least one of the two conditions above is true. +*/ +if (IS_ALIGNED (len,sizeof (u32)) && +IS_ALIGNED ((uintptr_t )dest,sizeof (u32))) +memcpy_toio (dest, src, len); +else +spear_smi_memcpy_toio_b (dest, src, len);writel (ctrlreg1, dev->io_base +SMI_CR1 );
drivers/net/can/slcan.c +1 -0
@@ -613,6 +613,7 @@ static int slcan_open(struct tty_struct *tty) sl->tty =NULL ; tty->disc_data =NULL ;clear_bit (SLF_INUSE , &sl->flags); +slc_free_netdev (sl->dev);free_netdev (sl->dev); err_exit:
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c +4 -2
@@ -718,6 +718,10 @@ static int adapter_up(struct adapter *adapter)if (adapter->flags &USING_MSIX )name_msix_vecs (adapter); + +/* Initialize hash mac addr list*/ +INIT_LIST_HEAD (&adapter->mac_hlist); + adapter->flags |=FULL_INIT_DONE ; }
@@ -743,8 +747,6 @@ static int adapter_up(struct adapter *adapter)enable_rx (adapter);t4vf_sge_start (adapter); -/* Initialize hash mac addr list*/ -INIT_LIST_HEAD (&adapter->mac_hlist);return 0 ; }
drivers/net/ethernet/cirrus/ep93xx_eth.c +3 -2
@@ -780,6 +780,7 @@ static int ep93xx_eth_remove(struct platform_device *pdev) {struct net_device *dev;struct ep93xx_priv *ep; +struct resource *mem; dev =platform_get_drvdata (pdev);if (dev ==NULL )
@@ -795,8 +796,8 @@ static int ep93xx_eth_remove(struct platform_device *pdev)iounmap (ep->base_addr);if (ep->res !=NULL ) { -release_resource (ep->res); -kfree (ep->res); + mem =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); +release_mem_region (mem->start,resource_size (mem)); }free_netdev (dev);
drivers/net/ethernet/intel/e100.c +2 -2
@@ -1370,8 +1370,8 @@ static inline int e100_load_ucode_wait(struct nic *nic) fw =e100_request_firmware (nic);/* If it's NULL, then no ucode is required */ -if (!fw ||IS_ERR (fw)) -return PTR_ERR (fw); +if (IS_ERR_OR_NULL (fw)) +return PTR_ERR_OR_ZERO (fw);if ((err =e100_exec_cb (nic, (void *)fw, e100_setup_ucode))) netif_err(nic, probe, nic->netdev,
drivers/net/ethernet/mellanox/mlx4/main.c +5 -6
@@ -198,7 +198,7 @@ int mlx4_check_port_params(struct mlx4_dev *dev,for (i =0 ; i < dev->caps.num_ports -1 ; i++) {if (port_type[i] != port_type[i +1 ]) {mlx4_err (dev,"Only same port types supported on this HCA, aborting\n" ); -return -EINVAL ; +return -EOPNOTSUPP ; } } }
@@ -207,7 +207,7 @@ int mlx4_check_port_params(struct mlx4_dev *dev,if (!(port_type[i] & dev->caps.supported_type[i+1 ])) {mlx4_err (dev,"Requested port type for port %d is not supported on this HCA\n" , i +1 ); -return -EINVAL ; +return -EOPNOTSUPP ; } }return 0 ;
@@ -1122,8 +1122,7 @@ static int __set_port_type(struct mlx4_port_info *info,mlx4_err (mdev,"Requested port type for port %d is not supported on this HCA\n" , info->port); - err = -EINVAL ; - goto err_sup; +return -EOPNOTSUPP ; }mlx4_stop_sense (mdev);
@@ -1145,7 +1144,7 @@ static int __set_port_type(struct mlx4_port_info *info,for (i =1 ; i <= mdev->caps.num_ports; i++) {if (mdev->caps.possible_type[i] ==MLX4_PORT_TYPE_AUTO ) { mdev->caps.possible_type[i] = mdev->caps.port_type[i]; - err = -EINVAL ; + err = -EOPNOTSUPP ; } } }
@@ -1171,7 +1170,7 @@ static int __set_port_type(struct mlx4_port_info *info, out:mlx4_start_sense (mdev);mutex_unlock (&priv->port_mutex); -err_sup: +return err; }
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +1 -1
@@ -1368,7 +1368,7 @@ static int mlx5e_get_module_info(struct net_device *netdev,break ;case MLX5_MODULE_ID_SFP : modinfo->type =ETH_MODULE_SFF_8472 ; - modinfo->eeprom_len =MLX5_EEPROM_PAGE_LENGTH ; + modinfo->eeprom_len =ETH_MODULE_SFF_8472_LEN ;break ;default : netdev_err(priv->netdev, "%s: cable type not recognized:0x%x\n",
drivers/net/ethernet/mellanox/mlx5/core/qp.c +2 -2
@@ -125,7 +125,7 @@ void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type)if (!is_event_type_allowed ((rsn >>MLX5_USER_INDEX_LEN ), event_type)) {mlx5_core_warn (dev,"event 0x%.2x is not allowed on resource 0x%.8x\n" , event_type, rsn); -return ; + goto out; }switch (common->res) {
@@ -139,7 +139,7 @@ void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type)default :mlx5_core_warn (dev,"invalid resource type for 0x%x\n" , rsn); } - +out:mlx5_core_put_rsc (common); }
drivers/net/ethernet/stmicro/stmmac/common.h +1 -1
@@ -354,7 +354,7 @@ struct dma_features {struct stmmac_desc_ops {/* DMA RX descriptor ring initialization */ void (*init_rx_desc) (struct dma_desc *p,int disable_rx_ic,int mode, -int end); +int end,int bfsize);/* DMA TX descriptor ring initialization */ void (*init_tx_desc) (struct dma_desc *p,int mode,int end);
drivers/net/ethernet/stmicro/stmmac/descs_com.h +15 -8
@@ -33,11 +33,14 @@/* Specific functions used for Ring mode */ /* Enhanced descriptors */ -static inline void ehn_desc_rx_set_on_ring (struct dma_desc *p,int end) +static inline void ehn_desc_rx_set_on_ring (struct dma_desc *p,int end, +int bfsize) { - p->des1 |=cpu_to_le32 (((BUF_SIZE_8KiB -1 ) - <<ERDES1_BUFFER2_SIZE_SHIFT ) - &ERDES1_BUFFER2_SIZE_MASK ); +if (bfsize == BUF_SIZE_16KiB) + p->des1 |=cpu_to_le32 ((BUF_SIZE_8KiB + <<ERDES1_BUFFER2_SIZE_SHIFT ) + &ERDES1_BUFFER2_SIZE_MASK ); +if (end) p->des1 |=cpu_to_le32 (ERDES1_END_RING );
@@ -63,11 +66,15 @@ static inline void enh_set_tx_desc_len_on_ring(struct dma_desc *p, int len) }/* Normal descriptors */ -static inline void ndesc_rx_set_on_ring (struct dma_desc *p,int end) +static inline void ndesc_rx_set_on_ring (struct dma_desc *p,int end,int bfsize) { - p->des1 |=cpu_to_le32 (((BUF_SIZE_2KiB -1 ) - <<RDES1_BUFFER2_SIZE_SHIFT ) - &RDES1_BUFFER2_SIZE_MASK ); +if (bfsize >= BUF_SIZE_2KiB) { +int bfsize2; + + bfsize2 =min (bfsize - BUF_SIZE_2KiB +1 , BUF_SIZE_2KiB -1 ); + p->des1 |=cpu_to_le32 ((bfsize2 <<RDES1_BUFFER2_SIZE_SHIFT ) + &RDES1_BUFFER2_SIZE_MASK ); + }if (end) p->des1 |=cpu_to_le32 (RDES1_END_RING );
drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c +1 -1
@@ -289,7 +289,7 @@ static int dwmac4_wrback_get_rx_timestamp_status(void *desc, u32 ats) }static void dwmac4_rd_init_rx_desc (struct dma_desc *p,int disable_rx_ic, -int mode,int end) +int mode,int end,int bfsize) { p->des3 =cpu_to_le32 (RDES3_OWN |RDES3_BUFFER1_VALID_ADDR );
drivers/net/ethernet/stmicro/stmmac/enh_desc.c +7 -3
@@ -269,15 +269,19 @@ static int enh_desc_get_rx_status(void *data, struct stmmac_extra_stats *x, }static void enh_desc_init_rx_desc (struct dma_desc *p,int disable_rx_ic, -int mode,int end) +int mode,int end,int bfsize) { +int bfsize1; + p->des0 |=cpu_to_le32 (RDES0_OWN ); - p->des1 |=cpu_to_le32 ((BUF_SIZE_8KiB -1 ) &ERDES1_BUFFER1_SIZE_MASK ); + + bfsize1 =min (bfsize, BUF_SIZE_8KiB); + p->des1 |=cpu_to_le32 (bfsize1 &ERDES1_BUFFER1_SIZE_MASK );if (mode ==STMMAC_CHAIN_MODE )ehn_desc_rx_set_on_chain (p);else -ehn_desc_rx_set_on_ring (p, end); +ehn_desc_rx_set_on_ring (p, end, bfsize);if (disable_rx_ic) p->des1 |=cpu_to_le32 (ERDES1_DISABLE_IC );
drivers/net/ethernet/stmicro/stmmac/norm_desc.c +7 -3
@@ -137,15 +137,19 @@ static int ndesc_get_rx_status(void *data, struct stmmac_extra_stats *x, }static void ndesc_init_rx_desc (struct dma_desc *p,int disable_rx_ic,int mode, -int end) +int end,int bfsize) { +int bfsize1; + p->des0 |=cpu_to_le32 (RDES0_OWN ); - p->des1 |=cpu_to_le32 ((BUF_SIZE_2KiB -1 ) &RDES1_BUFFER1_SIZE_MASK ); + + bfsize1 =min (bfsize, BUF_SIZE_2KiB -1 ); + p->des1 |=cpu_to_le32 (bfsize1 &RDES1_BUFFER1_SIZE_MASK );if (mode ==STMMAC_CHAIN_MODE )ndesc_rx_set_on_chain (p, end);else -ndesc_rx_set_on_ring (p, end); +ndesc_rx_set_on_ring (p, end, bfsize);if (disable_rx_ic) p->des1 |=cpu_to_le32 (RDES1_DISABLE_IC );
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +10 -10
@@ -956,11 +956,11 @@ static void stmmac_clear_descriptors(struct stmmac_priv *priv)if (priv->extend_desc) priv->hw->desc->init_rx_desc (&priv->dma_erx[i].basic, priv->use_riwt, priv->mode, - (i ==DMA_RX_SIZE -1 )); + (i ==DMA_RX_SIZE -1 ), priv->dma_buf_sz);else priv->hw->desc->init_rx_desc (&priv->dma_rx[i], priv->use_riwt, priv->mode, - (i ==DMA_RX_SIZE -1 )); + (i ==DMA_RX_SIZE -1 ), priv->dma_buf_sz);for (i =0 ; i <DMA_TX_SIZE ; i++)if (priv->extend_desc) priv->hw->desc->init_tx_desc(&priv->dma_etx[i].basic,
@@ -2479,7 +2479,7 @@ static inline void stmmac_rx_refill(struct stmmac_priv *priv)wmb ();if (unlikely (priv->synopsys_id >=DWMAC_CORE_4_00 )) - priv->hw->desc->init_rx_desc (p, priv->use_riwt,0 ,0 ); + priv->hw->desc->init_rx_desc (p, priv->use_riwt,0 ,0 , priv->dma_buf_sz);else priv->hw->desc->set_rx_owner (p);
@@ -2499,8 +2499,7 @@ static inline void stmmac_rx_refill(struct stmmac_priv *priv)*/ static int stmmac_rx (struct stmmac_priv *priv,int limit) { -unsigned int entry = priv->cur_rx; -unsigned int next_entry; +unsigned int next_entry = priv->cur_rx;unsigned int count =0 ;int coe = priv->hw->rx_csum;
@@ -2516,10 +2515,12 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit) priv->hw->desc->display_ring (rx_head,DMA_RX_SIZE , true); }while (count < limit) { -int status; +int entry, status;struct dma_desc *p;struct dma_desc *np; + entry = next_entry; +if (priv->extend_desc) p = (struct dma_desc *)(priv->dma_erx + entry);else
@@ -2584,7 +2585,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit) priv->dev->name, frame_len, priv->dma_buf_sz); priv->dev->stats.rx_length_errors++; -break ; +continue ; }/* ACS is set; GMAC core strips PAD/FCS for IEEE 802.3
@@ -2615,7 +2616,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit)dev_warn (priv->device,"packet dropped\n" ); priv->dev->stats.rx_dropped++; -break ; +continue ; } dma_sync_single_for_cpu(priv->device,
@@ -2638,7 +2639,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit)pr_err ("%s: Inconsistent Rx chain\n" , priv->dev->name); priv->dev->stats.rx_dropped++; -break ; +continue ; }prefetch (skb->data -NET_IP_ALIGN ); priv->rx_skbuff[entry] =NULL ;
@@ -2672,7 +2673,6 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit) priv->dev->stats.rx_packets++; priv->dev->stats.rx_bytes += frame_len; } - entry = next_entry; }stmmac_rx_refill (priv);
drivers/net/ethernet/ti/cpsw.c +1 -1
@@ -773,8 +773,8 @@ static irqreturn_t cpsw_rx_interrupt(int irq, void *dev_id) {struct cpsw_common *cpsw = dev_id; -cpdma_ctlr_eoi (cpsw->dma,CPDMA_EOI_RX );writel (0 , &cpsw->wr_regs->rx_en); +cpdma_ctlr_eoi (cpsw->dma,CPDMA_EOI_RX );if (cpsw->quirk_irq) {disable_irq_nosync (cpsw->irqs_table[0 ]);
drivers/net/wireless/ath/ar5523/ar5523.c +2 -1
@@ -255,7 +255,8 @@ static int ar5523_cmd(struct ar5523 *ar, u32 code, const void *idata,if (flags &AR5523_CMD_FLAG_MAGIC ) hdr->magic =cpu_to_be32 (1 <<24 ); -memcpy (hdr +1 , idata, ilen); +if (ilen) +memcpy (hdr +1 , idata, ilen); cmd->odata = odata; cmd->olen = olen;
drivers/net/wireless/ath/ath10k/pci.c +5 -4
@@ -1765,6 +1765,11 @@ static void ath10k_pci_hif_stop(struct ath10k *ar)ath10k_dbg (ar,ATH10K_DBG_BOOT ,"boot hif stop\n" ); +ath10k_pci_irq_disable (ar); +ath10k_pci_irq_sync (ar); +napi_synchronize (&ar->napi); +napi_disable (&ar->napi); +/* Most likely the device has HTT Rx ring configured. The only way to * prevent the device from accessing (and possible corrupting) host * memory is to reset the chip now.
@@ -1778,10 +1783,6 @@ static void ath10k_pci_hif_stop(struct ath10k *ar)*/ ath10k_pci_safe_chip_reset (ar); -ath10k_pci_irq_disable (ar); -ath10k_pci_irq_sync (ar); -napi_synchronize (&ar->napi); -napi_disable (&ar->napi);ath10k_pci_flush (ar);spin_lock_irqsave (&ar_pci->ps_lock, flags);
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +15 -0
@@ -805,6 +805,21 @@ static void iwl_mvm_mac_tx(struct ieee80211_hw *hw, !ieee80211_is_action(hdr->frame_control))) sta =NULL ; +/* If there is no sta, and it's not offchannel - send through AP */ +if (info->control.vif->type ==NL80211_IFTYPE_STATION && + info->hw_queue !=IWL_MVM_OFFCHANNEL_QUEUE && !sta) { +struct iwl_mvm_vif *mvmvif = +iwl_mvm_vif_from_mac80211 (info->control.vif); +u8 ap_sta_id =READ_ONCE (mvmvif->ap_sta_id); + +if (ap_sta_id <IWL_MVM_STATION_COUNT ) { +/* mac80211 holds rcu read lock */ + sta =rcu_dereference (mvm->fw_id_to_mac_id[ap_sta_id]); +if (IS_ERR_OR_NULL (sta)) + goto drop; + } + } +if (sta) {if (iwl_mvm_defer_tx (mvm, sta, skb))return ;
drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c +5 -4
@@ -1209,6 +1209,7 @@ void rtl92de_enable_interrupt(struct ieee80211_hw *hw)rtl_write_dword (rtlpriv,REG_HIMR , rtlpci->irq_mask[0 ] &0xFFFFFFFF );rtl_write_dword (rtlpriv,REG_HIMRE , rtlpci->irq_mask[1 ] &0xFFFFFFFF ); + rtlpci->irq_enabled = true; }void rtl92de_disable_interrupt (struct ieee80211_hw *hw)
@@ -1218,7 +1219,7 @@ void rtl92de_disable_interrupt(struct ieee80211_hw *hw)rtl_write_dword (rtlpriv,REG_HIMR ,IMR8190_DISABLED );rtl_write_dword (rtlpriv,REG_HIMRE ,IMR8190_DISABLED ); -synchronize_irq (rtlpci->pdev->irq); + rtlpci->irq_enabled = false; }static void _rtl92de_poweroff_adapter (struct ieee80211_hw *hw)
@@ -1389,7 +1390,7 @@ void rtl92de_set_beacon_related_registers(struct ieee80211_hw *hw) bcn_interval = mac->beacon_interval; atim_window =2 ; -/*rtl92de_disable_interrupt(hw); */ +rtl92de_disable_interrupt (hw);rtl_write_word (rtlpriv,REG_ATIMWND , atim_window);rtl_write_word (rtlpriv,REG_BCN_INTERVAL , bcn_interval);rtl_write_word (rtlpriv,REG_BCNTCFG ,0x660f );
@@ -1409,9 +1410,9 @@ void rtl92de_set_beacon_interval(struct ieee80211_hw *hw)RT_TRACE (rtlpriv,COMP_BEACON ,DBG_DMESG ,"beacon_interval:%d\n" , bcn_interval); -/* rtl92de_disable_interrupt(hw); */ +rtl92de_disable_interrupt (hw);rtl_write_word (rtlpriv,REG_BCN_INTERVAL , bcn_interval); -/* rtl92de_enable_interrupt(hw); */ +rtl92de_enable_interrupt (hw); } void rtl92de_update_interrupt_mask(struct ieee80211_hw *hw,
drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c +1 -0
@@ -243,6 +243,7 @@ static struct rtl_hal_ops rtl8192de_hal_ops = { .led_control = rtl92de_led_control, .set_desc = rtl92de_set_desc, .get_desc = rtl92de_get_desc, + .is_tx_desc_closed = rtl92de_is_tx_desc_closed, .tx_polling = rtl92de_tx_polling, .enable_hw_sec = rtl92de_enable_hw_security_config, .set_key = rtl92de_set_key,
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c +22 -3
@@ -843,13 +843,15 @@ u32 rtl92de_get_desc(u8 *p_desc, bool istx, u8 desc_name)break ; } }else { -struct rx_desc_92c *pdesc = (struct rx_desc_92c *)p_desc;switch (desc_name) {case HW_DESC_OWN : - ret =GET_RX_DESC_OWN (pdesc); + ret =GET_RX_DESC_OWN (p_desc);break ;case HW_DESC_RXPKT_LEN : - ret =GET_RX_DESC_PKT_LEN (pdesc); + ret =GET_RX_DESC_PKT_LEN (p_desc); +break ; +case HW_DESC_RXBUFF_ADDR : + ret =GET_RX_DESC_BUFF_ADDR (p_desc);break ;default : RT_ASSERT(false, "ERR rxdesc :%d not process\n",
@@ -860,6 +862,23 @@ u32 rtl92de_get_desc(u8 *p_desc, bool istx, u8 desc_name)return ret; } +bool rtl92de_is_tx_desc_closed (struct ieee80211_hw *hw, +u8 hw_queue,u16 index) +{ +struct rtl_pci *rtlpci =rtl_pcidev (rtl_pcipriv (hw)); +struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; +u8 *entry = (u8 *)(&ring->desc[ring->idx]); +u8 own = (u8 )rtl92de_get_desc (entry, true,HW_DESC_OWN ); + +/* a beacon packet will only use the first +* descriptor by defaut, and the own bit may not +* be cleared by the hardware +*/ +if (own) +return false; +return true; +} +void rtl92de_tx_polling (struct ieee80211_hw *hw,u8 hw_queue) {struct rtl_priv *rtlpriv =rtl_priv (hw);
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.h +2 -0
@@ -740,6 +740,8 @@ bool rtl92de_rx_query_desc(struct ieee80211_hw *hw,void rtl92de_set_desc (struct ieee80211_hw *hw,u8 *pdesc,bool istx,u8 desc_name,u8 *val);u32 rtl92de_get_desc (u8 *pdesc,bool istx,u8 desc_name); +bool rtl92de_is_tx_desc_closed (struct ieee80211_hw *hw, +u8 hw_queue,u16 index);void rtl92de_tx_polling (struct ieee80211_hw *hw,u8 hw_queue); void rtl92de_tx_fill_cmddesc(struct ieee80211_hw *hw, u8 *pdesc, bool b_firstseg, bool b_lastseg,
drivers/nfc/nxp-nci/i2c.c +4 -2
@@ -238,8 +238,10 @@ static irqreturn_t nxp_nci_i2c_irq_thread_fn(int irq, void *phy_id)if (r == -EREMOTEIO ) { phy->hard_fault = r; - skb =NULL ; - }else if (r <0 ) { +if (info->mode ==NXP_NCI_MODE_FW ) +nxp_nci_fw_recv_frame (phy->ndev,NULL ); + } +if (r <0 ) {nfc_err (&client->dev,"Read failed with error %d\n" , r); goto exit_irq_handled; }
drivers/nvme/host/core.c +2 -2
@@ -1043,7 +1043,7 @@ static int nvme_pr_reserve(struct block_device *bdev, u64 key,static int nvme_pr_preempt (struct block_device *bdev,u64 old,u64 new,enum pr_type type,bool abort) { -u32 cdw10 =nvme_pr_type (type) <<8 | abort ?2 :1 ; +u32 cdw10 =nvme_pr_type (type) <<8 | (abort ?2 :1 );return nvme_pr_command (bdev, cdw10, old, new, nvme_cmd_resv_acquire); }
@@ -1055,7 +1055,7 @@ static int nvme_pr_clear(struct block_device *bdev, u64 key)static int nvme_pr_release (struct block_device *bdev,u64 key,enum pr_type type) { -u32 cdw10 =nvme_pr_type (type) <<8 | key ?1 <<3 :0 ; +u32 cdw10 =nvme_pr_type (type) <<8 | (key ?1 <<3 :0 );return nvme_pr_command (bdev, cdw10, key,0 , nvme_cmd_resv_release); }
drivers/pci/msi.c +1 -1
@@ -230,7 +230,7 @@ u32 __pci_msix_desc_mask_irq(struct msi_desc *desc, u32 flag)return 0 ; mask_bits &= ~PCI_MSIX_ENTRY_CTRL_MASKBIT ; -if (flag) +if (flag &PCI_MSIX_ENTRY_CTRL_MASKBIT ) mask_bits |=PCI_MSIX_ENTRY_CTRL_MASKBIT ;writel (mask_bits,pci_msix_desc_addr (desc) +PCI_MSIX_ENTRY_VECTOR_CTRL );
drivers/pci/quirks.c +1 -1
@@ -4446,7 +4446,7 @@ int pci_dev_specific_acs_enabled(struct pci_dev *dev, u16 acs_flags)#define INTEL_BSPR_REG_BPPD (1 << 9)/* Upstream Peer Decode Configuration Register */ -#define INTEL_UPDCR_REG 0x1114 +#define INTEL_UPDCR_REG 0x1014/* 5:0 Peer Decode Enable bits */ #define INTEL_UPDCR_REG_MASK 0x3f
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c +17 -6
@@ -762,12 +762,23 @@ static int pm8xxx_gpio_probe(struct platform_device *pdev)return ret; } - ret =gpiochip_add_pin_range (&pctrl->chip, -dev_name (pctrl->dev), -0 ,0 , pctrl->chip.ngpio); -if (ret) { -dev_err (pctrl->dev,"failed to add pin range\n" ); - goto unregister_gpiochip; +/* +* For DeviceTree-supported systems, the gpio core checks the +* pinctrl's device node for the "gpio-ranges" property. +* If it is present, it takes care of adding the pin ranges +* for the driver. In this case the driver can skip ahead. +* +* In order to remain compatible with older, existing DeviceTree +* files which don't set the "gpio-ranges" property or systems that +* utilize ACPI the driver has to call gpiochip_add_pin_range(). +*/ +if (!of_property_read_bool (pctrl->dev->of_node,"gpio-ranges" )) { + ret =gpiochip_add_pin_range (&pctrl->chip,dev_name (pctrl->dev), +0 ,0 , pctrl->chip.ngpio); +if (ret) { +dev_err (pctrl->dev,"failed to add pin range\n" ); + goto unregister_gpiochip; + } }platform_set_drvdata (pdev, pctrl);
drivers/pinctrl/samsung/pinctrl-s3c24xx.c +5 -1
@@ -495,8 +495,10 @@ static int s3c24xx_eint_init(struct samsung_pinctrl_drv_data *d)return -ENODEV ; eint_data =devm_kzalloc (dev,sizeof (*eint_data),GFP_KERNEL ); -if (!eint_data) +if (!eint_data) { +of_node_put (eint_np);return -ENOMEM ; + } eint_data->drvdata = d;
@@ -508,12 +510,14 @@ static int s3c24xx_eint_init(struct samsung_pinctrl_drv_data *d) irq =irq_of_parse_and_map (eint_np, i);if (!irq) {dev_err (dev,"failed to get wakeup EINT IRQ %d\n" , i); +of_node_put (eint_np);return -ENXIO ; } eint_data->parents[i] = irq;irq_set_chained_handler_and_data (irq, handlers[i], eint_data); } +of_node_put (eint_np); bank = d->pin_banks;for (i =0 ; i < d->nr_banks; ++i, ++bank) {
drivers/pinctrl/samsung/pinctrl-s3c64xx.c +3 -0
@@ -713,6 +713,7 @@ static int s3c64xx_eint_eint0_init(struct samsung_pinctrl_drv_data *d) data =devm_kzalloc (dev,sizeof (*data),GFP_KERNEL );if (!data) {dev_err (dev,"could not allocate memory for wkup eint data\n" ); +of_node_put (eint0_np);return -ENOMEM ; } data->drvdata = d;
@@ -723,6 +724,7 @@ static int s3c64xx_eint_eint0_init(struct samsung_pinctrl_drv_data *d) irq =irq_of_parse_and_map (eint0_np, i);if (!irq) {dev_err (dev,"failed to get wakeup EINT IRQ %d\n" , i); +of_node_put (eint0_np);return -ENXIO ; }
@@ -730,6 +732,7 @@ static int s3c64xx_eint_eint0_init(struct samsung_pinctrl_drv_data *d) s3c64xx_eint0_handlers[i], data); } +of_node_put (eint0_np); bank = d->pin_banks;for (i =0 ; i < d->nr_banks; ++i, ++bank) {
drivers/pinctrl/samsung/pinctrl-samsung.c +8 -2
@@ -281,6 +281,7 @@ static int samsung_dt_node_to_map(struct pinctrl_dev *pctldev, &reserved_maps, num_maps);if (ret <0 ) {samsung_dt_free_map (pctldev, *map, *num_maps); +of_node_put (np);return ret; } }
@@ -770,8 +771,10 @@ static struct samsung_pmx_func *samsung_pinctrl_create_functions(if (!of_get_child_count (cfg_np)) { ret =samsung_pinctrl_create_function (dev, drvdata, cfg_np, func); -if (ret <0 ) +if (ret <0 ) { +of_node_put (cfg_np);return ERR_PTR (ret); + }if (ret >0 ) { ++func; ++func_cnt;
@@ -782,8 +785,11 @@ static struct samsung_pmx_func *samsung_pinctrl_create_functions(for_each_child_of_node (cfg_np, func_np) { ret =samsung_pinctrl_create_function (dev, drvdata, func_np, func); -if (ret <0 ) +if (ret <0 ) { +of_node_put (func_np); +of_node_put (cfg_np);return ERR_PTR (ret); + }if (ret >0 ) { ++func; ++func_cnt;
drivers/regulator/core.c +11 -31
61 lines not on this page · raw message
drivers/rtc/rtc-max8997.c +1 -1
@@ -221,7 +221,7 @@ static int max8997_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) out:mutex_unlock (&info->lock); -return 0 ; +return ret; }static int max8997_rtc_stop_alarm (struct max8997_rtc_info *info)
drivers/s390/scsi/zfcp_dbf.c +3 -5
@@ -93,11 +93,9 @@ void zfcp_dbf_hba_fsf_res(char *tag, int level, struct zfcp_fsf_req *req)memcpy (rec->u.res.fsf_status_qual, &q_head->fsf_status_qual,FSF_STATUS_QUALIFIER_SIZE ); -if (req->fsf_command !=FSF_QTCB_FCP_CMND ) { - rec->pl_len = q_head->log_length; -zfcp_dbf_pl_write (dbf, (char *)q_pref + q_head->log_start, - rec->pl_len,"fsf_res" , req->req_id); - } + rec->pl_len = q_head->log_length; +zfcp_dbf_pl_write (dbf, (char *)q_pref + q_head->log_start, + rec->pl_len,"fsf_res" , req->req_id);debug_event (dbf->hba, level, rec,sizeof (*rec));spin_unlock_irqrestore (&dbf->hba_lock, flags);
drivers/s390/scsi/zfcp_erp.c +0 -3
@@ -178,9 +178,6 @@ static int zfcp_erp_handle_failed(int want, struct zfcp_adapter *adapter, adapter, ZFCP_STATUS_COMMON_ERP_FAILED); }break ; -default : - need =0 ; -break ; }return need;
drivers/scsi/libiscsi.c +2 -2
@@ -1982,7 +1982,7 @@ static enum blk_eh_timer_return iscsi_eh_cmd_timed_out(struct scsi_cmnd *sc)ISCSI_DBG_EH (session,"scsi cmd %p timedout\n" , sc); -spin_lock (&session->frwd_lock); +spin_lock_bh (&session->frwd_lock); task = (struct iscsi_task *)sc->SCp.ptr;if (!task) {/*
@@ -2109,7 +2109,7 @@ static enum blk_eh_timer_return iscsi_eh_cmd_timed_out(struct scsi_cmnd *sc) done:if (task) task->last_timeout = jiffies; -spin_unlock (&session->frwd_lock); +spin_unlock_bh (&session->frwd_lock);ISCSI_DBG_EH (session,"return %s\n" , rc ==BLK_EH_RESET_TIMER ?"timer reset" :"shutdown or nh" );return rc;
drivers/scsi/lpfc/lpfc.h +2 -1
@@ -878,7 +878,8 @@ struct lpfc_hba {struct list_head port_list;struct lpfc_vport *pport;/* physical lpfc_vport pointer */ uint16_t max_vpi;/* Maximum virtual nports */ -#define LPFC_MAX_VPI 0xFFFF/* Max number of VPI supported */ +#define LPFC_MAX_VPI 0xFF/* Max number VPI supported 0 - 0xff */ +#define LPFC_MAX_VPORTS 0x100/* Max vports per port, with pport */ uint16_t max_vports;/* * For IOV HBAs max_vpi can change * after a reset. max_vports is max
drivers/scsi/lpfc/lpfc_attr.c +10 -2
@@ -1214,6 +1214,9 @@ lpfc_get_hba_info(struct lpfc_hba *phba, max_vpi = (bf_get (lpfc_mbx_rd_conf_vpi_count, rd_config) >0 ) ? (bf_get (lpfc_mbx_rd_conf_vpi_count, rd_config) -1 ) :0 ; +/* Limit the max we support */ +if (max_vpi >LPFC_MAX_VPI ) + max_vpi =LPFC_MAX_VPI ;if (mvpi) *mvpi = max_vpi;if (avpi)
@@ -1229,8 +1232,13 @@ lpfc_get_hba_info(struct lpfc_hba *phba, *axri = pmb->un.varRdConfig.avail_xri;if (mvpi) *mvpi = pmb->un.varRdConfig.max_vpi; -if (avpi) - *avpi = pmb->un.varRdConfig.avail_vpi; +if (avpi) { +/* avail_vpi is only valid if link is up and ready */ +if (phba->link_state ==LPFC_HBA_READY ) + *avpi = pmb->un.varRdConfig.avail_vpi; +else + *avpi = pmb->un.varRdConfig.max_vpi; + } }mempool_free (pmboxq, phba->mbox_mem_pool);
drivers/scsi/lpfc/lpfc_init.c +3 -0
@@ -6973,6 +6973,9 @@ lpfc_sli4_read_config(struct lpfc_hba *phba)bf_get (lpfc_mbx_rd_conf_xri_base, rd_config); phba->sli4_hba.max_cfg_param.max_vpi =bf_get (lpfc_mbx_rd_conf_vpi_count, rd_config); +/* Limit the max we support */ +if (phba->sli4_hba.max_cfg_param.max_vpi >LPFC_MAX_VPORTS ) + phba->sli4_hba.max_cfg_param.max_vpi =LPFC_MAX_VPORTS ; phba->sli4_hba.max_cfg_param.vpi_base =bf_get (lpfc_mbx_rd_conf_vpi_base, rd_config); phba->sli4_hba.max_cfg_param.max_rpi =
drivers/scsi/qla2xxx/qla_attr.c +2 -1
@@ -682,7 +682,8 @@ qla2x00_sysfs_write_reset(struct file *filp, struct kobject *kobj,break ; }else {/* Make sure FC side is not in reset */ -qla2x00_wait_for_hba_online (vha); +WARN_ON_ONCE (qla2x00_wait_for_hba_online (vha) != +QLA_SUCCESS );/* Issue MPI reset */ scsi_block_requests (vha->host);
drivers/scsi/qla2xxx/qla_bsg.c +9 -6
@@ -336,6 +336,8 @@ qla2x00_process_els(struct fc_bsg_job *bsg_job)dma_map_sg (&ha->pdev->dev, bsg_job->request_payload.sg_list, bsg_job->request_payload.sg_cnt,DMA_TO_DEVICE );if (!req_sg_cnt) { +dma_unmap_sg (&ha->pdev->dev, bsg_job->request_payload.sg_list, + bsg_job->request_payload.sg_cnt,DMA_TO_DEVICE ); rval = -ENOMEM ; goto done_free_fcport; }
@@ -343,6 +345,8 @@ qla2x00_process_els(struct fc_bsg_job *bsg_job) rsp_sg_cnt =dma_map_sg (&ha->pdev->dev, bsg_job->reply_payload.sg_list, bsg_job->reply_payload.sg_cnt,DMA_FROM_DEVICE );if (!rsp_sg_cnt) { +dma_unmap_sg (&ha->pdev->dev, bsg_job->reply_payload.sg_list, + bsg_job->reply_payload.sg_cnt,DMA_FROM_DEVICE ); rval = -ENOMEM ; goto done_free_fcport; }
@@ -1740,8 +1744,8 @@ qla24xx_process_bidir_cmd(struct fc_bsg_job *bsg_job)uint16_t nextlid =0 ;uint32_t tot_dsds;srb_t *sp =NULL ; -uint32_t req_data_len =0 ; -uint32_t rsp_data_len =0 ; +uint32_t req_data_len; +uint32_t rsp_data_len;/* Check the type of the adapter */ if (!IS_BIDI_CAPABLE (ha)) {
@@ -1846,6 +1850,9 @@ qla24xx_process_bidir_cmd(struct fc_bsg_job *bsg_job) goto done_unmap_sg; } + req_data_len = bsg_job->request_payload.payload_len; + rsp_data_len = bsg_job->reply_payload.payload_len; +if (req_data_len != rsp_data_len) { rval =EXT_STATUS_BUSY ; ql_log(ql_log_warn, vha, 0x70aa,
@@ -1853,10 +1860,6 @@ qla24xx_process_bidir_cmd(struct fc_bsg_job *bsg_job) goto done_unmap_sg; } - req_data_len = bsg_job->request_payload.payload_len; - rsp_data_len = bsg_job->reply_payload.payload_len; - -/* Alloc SRB structure */ sp =qla2x00_get_sp (vha, &(vha->bidir_fcport),GFP_KERNEL );if (!sp) {
drivers/scsi/qla2xxx/qla_target.c +6 -5
@@ -5893,7 +5893,6 @@ static void qlt_abort_work(struct qla_tgt *tgt,struct qla_hw_data *ha = vha->hw;struct qla_tgt_sess *sess =NULL ;unsigned long flags =0 , flags2 =0 ; -uint32_t be_s_id;uint8_t s_id[3 ];int rc;
@@ -5906,8 +5905,7 @@ static void qlt_abort_work(struct qla_tgt *tgt, s_id[1 ] = prm->abts.fcp_hdr_le.s_id[1 ]; s_id[2 ] = prm->abts.fcp_hdr_le.s_id[0 ]; - sess = ha->tgt.tgt_ops->find_sess_by_s_id (vha, - (unsigned char *)&be_s_id); + sess = ha->tgt.tgt_ops->find_sess_by_s_id (vha, s_id);if (!sess) {spin_unlock_irqrestore (&ha->tgt.sess_lock, flags2);
@@ -6343,7 +6341,8 @@ qlt_enable_vha(struct scsi_qla_host *vha)set_bit (ISP_ABORT_NEEDED , &base_vha->dpc_flags);qla2xxx_wake_dpc (base_vha); -qla2x00_wait_for_hba_online (base_vha); +WARN_ON_ONCE (qla2x00_wait_for_hba_online (base_vha) != +QLA_SUCCESS ); } }EXPORT_SYMBOL (qlt_enable_vha);
@@ -6373,7 +6372,9 @@ static void qlt_disable_vha(struct scsi_qla_host *vha)set_bit (ISP_ABORT_NEEDED , &vha->dpc_flags);qla2xxx_wake_dpc (vha); -qla2x00_wait_for_hba_online (vha); +if (qla2x00_wait_for_hba_online (vha) !=QLA_SUCCESS ) +ql_dbg (ql_dbg_tgt, vha,0xe081 , +"qla2x00_wait_for_hba_online() failed\n" ); }/*
drivers/spi/spi-atmel.c +2 -4
@@ -1209,10 +1209,8 @@ static int atmel_spi_setup(struct spi_device *spi) as =spi_master_get_devdata (spi->master);/* see notes above re chipselect */ -if (!atmel_spi_is_v2 (as) - && spi->chip_select ==0 - && (spi->mode &SPI_CS_HIGH )) { -dev_dbg (&spi->dev,"setup: can't be active-high\n" ); +if (!as->use_cs_gpios && (spi->mode &SPI_CS_HIGH )) { +dev_warn (&spi->dev,"setup: non GPIO CS can't be active-high\n" );return -EINVAL ; }
drivers/staging/iio/addac/adt7316-i2c.c +2 -0
@@ -35,6 +35,8 @@ static int adt7316_i2c_read(void *client, u8 reg, u8 *data)return ret; } + *data = ret; +return 0 ; }
drivers/staging/media/pulse8-cec/pulse8-cec.c +1 -1
@@ -580,7 +580,7 @@ static int pulse8_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr)else pulse8->config_pending = true;mutex_unlock (&pulse8->config_lock); -return err; +return log_addr ==CEC_LOG_ADDR_INVALID ?0 : err; } static int pulse8_cec_adap_transmit(struct cec_adapter *adap, u8 attempts,
drivers/staging/rtl8188eu/os_dep/usb_intf.c +1 -1
@@ -78,7 +78,7 @@ static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf) phost_conf = pusbd->actconfig; pconf_desc = &phost_conf->desc; - phost_iface = &usb_intf->altsetting[0 ]; + phost_iface = usb_intf->cur_altsetting; piface_desc = &phost_iface->desc; pdvobjpriv->NumInterfaces = pconf_desc->bNumInterfaces;
drivers/staging/rtl8712/usb_intf.c +1 -1
@@ -275,7 +275,7 @@ static uint r8712_usb_dvobj_init(struct _adapter *padapter) pdvobjpriv->padapter = padapter; padapter->EepromAddressSize =6 ; - phost_iface = &pintf->altsetting[0 ]; + phost_iface = pintf->cur_altsetting; piface_desc = &phost_iface->desc; pdvobjpriv->nr_endpoint = piface_desc->bNumEndpoints;if (pusbd->speed ==USB_SPEED_HIGH ) {
drivers/thermal/thermal_core.c +2 -2
@@ -402,7 +402,7 @@ static void thermal_zone_device_set_polling(struct thermal_zone_device *tz,mod_delayed_work (system_freezable_wq, &tz->poll_queue,msecs_to_jiffies (delay)); else - cancel_delayed_work_sync(&tz->poll_queue); + cancel_delayed_work(&tz->poll_queue); }static void monitor_thermal_zone (struct thermal_zone_device *tz)
@@ -2073,7 +2073,7 @@ void thermal_zone_device_unregister(struct thermal_zone_device *tz)mutex_unlock (&thermal_list_lock); -thermal_zone_device_set_polling (tz,0 ); +cancel_delayed_work_sync (&tz->poll_queue);if (tz->type[0 ])device_remove_file (&tz->device, &dev_attr_type);
drivers/tty/n_hdlc.c +2 -2
@@ -614,7 +614,7 @@ static ssize_t n_hdlc_tty_read(struct tty_struct *tty, struct file *file, }/* no data */ -if (file->f_flags &O_NONBLOCK ) { +if (tty_io_nonblock (tty, file)) { ret = -EAGAIN ;break ; }
@@ -681,7 +681,7 @@ static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file,if (tbuf)break ; -if (file->f_flags &O_NONBLOCK ) { +if (tty_io_nonblock (tty, file)) { error = -EAGAIN ;break ; }
drivers/tty/n_r3964.c +1 -1
@@ -1080,7 +1080,7 @@ static ssize_t r3964_read(struct tty_struct *tty, struct file *file, pMsg =remove_msg (pInfo, pClient);if (pMsg ==NULL ) {/* no messages available. */ -if (file->f_flags &O_NONBLOCK ) { +if (tty_io_nonblock (tty, file)) { ret = -EAGAIN ; goto unlock; }
drivers/tty/n_tty.c +4 -4
@@ -1704,7 +1704,7 @@ n_tty_receive_buf_common(struct tty_struct *tty, const unsigned char *cp,down_read (&tty->termios_rwsem); -while (1 ) { + do { /* * When PARMRK is set, each input char may take up to 3 chars * in the read buf; reduce the buffer space avail by 3x
@@ -1746,7 +1746,7 @@ n_tty_receive_buf_common(struct tty_struct *tty, const unsigned char *cp, fp += n; count -= n; rcvd += n; - } + }while (!test_bit (TTY_LDISC_CHANGING , &tty->flags)); tty->receive_room = room;
@@ -2213,7 +2213,7 @@ static ssize_t n_tty_read(struct tty_struct *tty, struct file *file,break ;if (!timeout)break ; -if (file->f_flags &O_NONBLOCK ) { +if (tty_io_nonblock (tty, file)) { retval = -EAGAIN ;break ; }
@@ -2367,7 +2367,7 @@ static ssize_t n_tty_write(struct tty_struct *tty, struct file *file, }if (!nr)break ; -if (file->f_flags &O_NONBLOCK ) { +if (tty_io_nonblock (tty, file)) { retval = -EAGAIN ;break ; }
drivers/tty/serial/amba-pl011.c +2 -4
@@ -811,10 +811,8 @@ __acquires(&uap->port.lock)if (!uap->using_tx_dma)return ; -/* Avoid deadlock with the DMA engine callback */ -spin_unlock (&uap->port.lock); -dmaengine_terminate_all (uap->dmatx.chan); -spin_lock (&uap->port.lock); +dmaengine_terminate_async (uap->dmatx.chan); +if (uap->dmatx.queued) {dma_unmap_sg (uap->dmatx.chan->device->dev, &uap->dmatx.sg,1 ,DMA_TO_DEVICE );
drivers/tty/serial/fsl_lpuart.c +2 -2
@@ -346,8 +346,8 @@ static void lpuart_dma_tx(struct lpuart_port *sport) } sport->dma_tx_desc =dmaengine_prep_slave_sg (sport->dma_tx_chan, sgl, - sport->dma_tx_nents, -DMA_MEM_TO_DEV ,DMA_PREP_INTERRUPT ); + ret,DMA_MEM_TO_DEV , +DMA_PREP_INTERRUPT );if (!sport->dma_tx_desc) {dma_unmap_sg (dev, sgl, sport->dma_tx_nents,DMA_TO_DEVICE );dev_err (dev,"Cannot prepare TX slave DMA!\n" );
drivers/tty/serial/ifx6x60.c +3 -0
@@ -1244,6 +1244,9 @@ static int ifx_spi_spi_remove(struct spi_device *spi)struct ifx_spi_device *ifx_dev =spi_get_drvdata (spi);/* stop activity */ tasklet_kill (&ifx_dev->io_work_tasklet); + +pm_runtime_disable (&spi->dev); +/* free irq */ free_irq (gpio_to_irq (ifx_dev->gpio.reset_out), ifx_dev);free_irq (gpio_to_irq (ifx_dev->gpio.srdy), ifx_dev);
drivers/tty/serial/imx.c +1 -1
@@ -1943,7 +1943,7 @@ imx_console_setup(struct console *co, char *options) retval =clk_prepare (sport->clk_per);if (retval) -clk_disable_unprepare (sport->clk_ipg); +clk_unprepare (sport->clk_ipg); error_console:return retval;
drivers/tty/serial/msm_serial.c +5 -1
@@ -988,6 +988,7 @@ static unsigned int msm_get_mctrl(struct uart_port *port)static void msm_reset (struct uart_port *port) {struct msm_port *msm_port =UART_TO_MSM (port); +unsigned int mr;/* reset everything */ msm_write (port,UART_CR_CMD_RESET_RX ,UART_CR );
@@ -995,7 +996,10 @@ static void msm_reset(struct uart_port *port)msm_write (port,UART_CR_CMD_RESET_ERR ,UART_CR );msm_write (port,UART_CR_CMD_RESET_BREAK_INT ,UART_CR );msm_write (port,UART_CR_CMD_RESET_CTS ,UART_CR ); -msm_write (port,UART_CR_CMD_SET_RFR ,UART_CR ); +msm_write (port,UART_CR_CMD_RESET_RFR ,UART_CR ); + mr =msm_read (port,UART_MR1 ); + mr &= ~UART_MR1_RX_RDY_CTL ; +msm_write (port, mr,UART_MR1 );/* Disable DM modes */ if (msm_port->is_uartdm)
drivers/tty/serial/serial_core.c +1 -1
@@ -1106,7 +1106,7 @@ static int uart_break_ctl(struct tty_struct *tty, int break_state)if (!uport) goto out; -if (uport->type !=PORT_UNKNOWN ) +if (uport->type !=PORT_UNKNOWN && uport->ops->break_ctl) uport->ops->break_ctl (uport, break_state); ret =0 ; out:
drivers/tty/tty_ldisc.c +7 -0
@@ -348,6 +348,11 @@ int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) {int ret; +/* Kindly asking blocked readers to release the read side */ +set_bit (TTY_LDISC_CHANGING , &tty->flags); +wake_up_interruptible_all (&tty->read_wait); +wake_up_interruptible_all (&tty->write_wait); + ret =__tty_ldisc_lock (tty, timeout);if (!ret)return -EBUSY ;
@@ -358,6 +363,8 @@ int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout)void tty_ldisc_unlock (struct tty_struct *tty) {clear_bit (TTY_LDISC_HALTED , &tty->flags); +/* Can be cleared here - ldisc_unlock will wake up writers firstly */ +clear_bit (TTY_LDISC_CHANGING , &tty->flags);__tty_ldisc_unlock (tty); }
drivers/tty/vt/keyboard.c +1 -1
@@ -1460,7 +1460,7 @@ static void kbd_event(struct input_handle *handle, unsigned int event_type,if (event_type ==EV_MSC && event_code ==MSC_RAW &&HW_RAW (handle->dev))kbd_rawcode (value); -if (event_type ==EV_KEY ) +if (event_type ==EV_KEY && event_code <=KEY_MAX )kbd_keycode (event_code, value,HW_RAW (handle->dev));spin_unlock (&kbd_event_lock);
drivers/usb/atm/ueagle-atm.c +12 -6
@@ -2167,10 +2167,11 @@ static void uea_intr(struct urb *urb)/* * Start the modem : init the data and start kernel thread */ -static int uea_boot (struct uea_softc *sc) +static int uea_boot (struct uea_softc *sc,struct usb_interface *intf) { -int ret, size;struct intr_pkt *intr; +int ret = -ENOMEM ; +int size;uea_enters (INS_TO_USBDEV (sc));
@@ -2195,6 +2196,11 @@ static int uea_boot(struct uea_softc *sc)if (UEA_CHIP_VERSION (sc) ==ADI930 )load_XILINX_firmware (sc); +if (intf->cur_altsetting->desc.bNumEndpoints <1 ) { + ret = -ENODEV ; + goto err0; + } + intr =kmalloc (size,GFP_KERNEL );if (!intr) goto err0;
@@ -2206,8 +2212,7 @@ static int uea_boot(struct uea_softc *sc)usb_fill_int_urb (sc->urb_int, sc->usb_dev,usb_rcvintpipe (sc->usb_dev,UEA_INTR_PIPE ), intr, size, uea_intr, sc, - sc->usb_dev->actconfig->interface[0 ]->altsetting[0 ]. - endpoint[0 ].desc.bInterval); + intf->cur_altsetting->endpoint[0 ].desc.bInterval); ret =usb_submit_urb (sc->urb_int,GFP_KERNEL );if (ret <0 ) {
@@ -2222,6 +2227,7 @@ static int uea_boot(struct uea_softc *sc) sc->kthread =kthread_create (uea_kthread, sc,"ueagle-atm" );if (IS_ERR (sc->kthread)) {uea_err (INS_TO_USBDEV (sc),"failed to create thread\n" ); + ret =PTR_ERR (sc->kthread); goto err2; }
@@ -2236,7 +2242,7 @@ static int uea_boot(struct uea_softc *sc)kfree (intr); err0:uea_leaves (INS_TO_USBDEV (sc)); -return -ENOMEM ; +return ret; }/*
@@ -2597,7 +2603,7 @@ static int uea_bind(struct usbatm_data *usbatm, struct usb_interface *intf,if (ret <0 ) goto error; - ret =uea_boot (sc); + ret =uea_boot (sc, intf);if (ret <0 ) goto error_rm_grp;
drivers/usb/core/hub.c +2 -3
@@ -5620,7 +5620,7 @@ static int usb_reset_and_verify_device(struct usb_device *udev)/** * usb_reset_device - warn interface drivers and perform a USB port reset -* @udev: device to reset (not in SUSPENDED or NOTATTACHED state) +* @udev: device to reset (not in NOTATTACHED state) * * Warns all drivers bound to registered interfaces (using their pre_reset * method), performs the port reset, and then lets the drivers know that
@@ -5648,8 +5648,7 @@ int usb_reset_device(struct usb_device *udev)struct usb_host_config *config = udev->actconfig;struct usb_hub *hub =usb_hub_to_struct_hub (udev->parent); -if (udev->state ==USB_STATE_NOTATTACHED || - udev->state ==USB_STATE_SUSPENDED ) { +if (udev->state ==USB_STATE_NOTATTACHED ) {dev_dbg (&udev->dev,"device reset not allowed in state %d\n" , udev->state);return -EINVAL ;
drivers/usb/core/urb.c +1 -0
@@ -40,6 +40,7 @@ void usb_init_urb(struct urb *urb)if (urb) {memset (urb,0 ,sizeof (*urb));kref_init (&urb->kref); +INIT_LIST_HEAD (&urb->urb_list);INIT_LIST_HEAD (&urb->anchor_list); } }
drivers/usb/dwc3/core.c +2 -1
@@ -1102,7 +1102,8 @@ static int dwc3_probe(struct platform_device *pdev) ret =dwc3_core_init (dwc);if (ret) { -dev_err (dev,"failed to initialize core\n" ); +if (ret != -EPROBE_DEFER ) +dev_err (dev,"failed to initialize core: %d\n" , ret); goto err4; }
drivers/usb/gadget/configfs.c +1 -0
@@ -1541,6 +1541,7 @@ static struct config_group *gadgets_make( gi->composite.resume =NULL ; gi->composite.max_speed =USB_SPEED_SUPER ; +spin_lock_init (&gi->spinlock);mutex_init (&gi->lock);INIT_LIST_HEAD (&gi->string_list);INIT_LIST_HEAD (&gi->available_func);
drivers/usb/gadget/function/u_serial.c +2 -0
@@ -1391,8 +1391,10 @@ int gserial_alloc_line(unsigned char *line_num) __func__, port_num, PTR_ERR(tty_dev)); ret =PTR_ERR (tty_dev); +mutex_lock (&ports[port_num].lock); port = ports[port_num].port; ports[port_num].port =NULL ; +mutex_unlock (&ports[port_num].lock);gserial_free_port (port); goto err; }
drivers/usb/host/xhci-hub.c +12 -4
@@ -728,7 +728,7 @@ static u32 xhci_get_port_status(struct usb_hcd *hcd, struct xhci_bus_state *bus_state, __le32 __iomem **port_array, u16 wIndex, u32 raw_port_status, - unsigned long flags) + unsigned long *flags) __releases(&xhci->lock) __acquires(&xhci->lock) {
@@ -760,6 +760,14 @@ static u32 xhci_get_port_status(struct usb_hcd *hcd, status |=USB_PORT_STAT_C_BH_RESET <<16 ;if ((raw_port_status &PORT_CEC )) status |=USB_PORT_STAT_C_CONFIG_ERROR <<16 ; + +/* USB3 remote wake resume signaling completed */ +if (bus_state->port_remote_wakeup & (1 << wIndex) && + (raw_port_status &PORT_PLS_MASK ) !=XDEV_RESUME && + (raw_port_status &PORT_PLS_MASK ) !=XDEV_RECOVERY ) { + bus_state->port_remote_wakeup &= ~(1 << wIndex); +usb_hcd_end_port_resume (&hcd->self, wIndex); + } }if (hcd->speed <HCD_USB3 ) {
@@ -810,12 +818,12 @@ static u32 xhci_get_port_status(struct usb_hcd *hcd,xhci_set_link_state (xhci, port_array, wIndex,XDEV_U0 ); -spin_unlock_irqrestore (&xhci->lock, flags); +spin_unlock_irqrestore (&xhci->lock, *flags); time_left =wait_for_completion_timeout ( &bus_state->rexit_done[wIndex],msecs_to_jiffies (XHCI_MAX_REXIT_TIMEOUT_MS )); -spin_lock_irqsave (&xhci->lock, flags); +spin_lock_irqsave (&xhci->lock, *flags);if (time_left) { slot_id = xhci_find_slot_id_by_port(hcd,
@@ -961,7 +969,7 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,break ; } status =xhci_get_port_status (hcd, bus_state, port_array, - wIndex, temp, flags); + wIndex, temp, &flags);if (status ==0xffffffff ) goto error;
drivers/usb/host/xhci-mem.c +4 -0
@@ -1940,10 +1940,14 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci)kfree (xhci->port_array);kfree (xhci->rh_bw);kfree (xhci->ext_caps); +kfree (xhci->usb2_rhub.psi); +kfree (xhci->usb3_rhub.psi); xhci->usb2_ports =NULL ; xhci->usb3_ports =NULL ; xhci->port_array =NULL ; + xhci->usb2_rhub.psi =NULL ; + xhci->usb3_rhub.psi =NULL ; xhci->rh_bw =NULL ; xhci->ext_caps =NULL ;
drivers/usb/host/xhci-pci.c +13 -0
@@ -470,6 +470,18 @@ static int xhci_pci_resume(struct usb_hcd *hcd, bool hibernated) }#endif /* CONFIG_PM */ +static void xhci_pci_shutdown (struct usb_hcd *hcd) +{ +struct xhci_hcd *xhci =hcd_to_xhci (hcd); +struct pci_dev *pdev =to_pci_dev (hcd->self.controller); + +xhci_shutdown (hcd); + +/* Yet another workaround for spurious wakeups at shutdown with HSW */ +if (xhci->quirks &XHCI_SPURIOUS_WAKEUP ) +pci_set_power_state (pdev, PCI_D3hot); +} +/*-------------------------------------------------------------------------*/ /* PCI driver selection metadata; PCI hotplugging uses this */
@@ -505,6 +517,7 @@ static int __init xhci_pci_init(void)#ifdef CONFIG_PM xhci_pci_hc_driver.pci_suspend = xhci_pci_suspend; xhci_pci_hc_driver.pci_resume = xhci_pci_resume; + xhci_pci_hc_driver.shutdown = xhci_pci_shutdown;#endif return pci_register_driver (&xhci_pci_driver); }
drivers/usb/host/xhci-ring.c +1 -5
@@ -1609,9 +1609,6 @@ static void handle_port_status(struct xhci_hcd *xhci,usb_hcd_resume_root_hub (hcd); } -if (hcd->speed >=HCD_USB3 && (temp &PORT_PLS_MASK ) ==XDEV_INACTIVE ) - bus_state->port_remote_wakeup &= ~(1 << faked_port_index); -if ((temp &PORT_PLC ) && (temp &PORT_PLS_MASK ) ==XDEV_RESUME ) {xhci_dbg (xhci,"port resume event for port %d\n" , port_id);
@@ -1630,6 +1627,7 @@ static void handle_port_status(struct xhci_hcd *xhci, bus_state->port_remote_wakeup |=1 << faked_port_index;xhci_test_and_clear_bit (xhci, port_array, faked_port_index,PORT_PLC ); +usb_hcd_start_port_resume (&hcd->self, faked_port_index);xhci_set_link_state (xhci, port_array, faked_port_index,XDEV_U0 );/* Need to wait until the next link state change
@@ -1667,8 +1665,6 @@ static void handle_port_status(struct xhci_hcd *xhci,if (slot_id && xhci->devs[slot_id])xhci_ring_device (xhci, slot_id);if (bus_state->port_remote_wakeup & (1 << faked_port_index)) { - bus_state->port_remote_wakeup &= - ~(1 << faked_port_index);xhci_test_and_clear_bit (xhci, port_array, faked_port_index,PORT_PLC ); usb_wakeup_notification(hcd->self.root_hub,
drivers/usb/host/xhci.c +2 -5
@@ -758,11 +758,8 @@ void xhci_shutdown(struct usb_hcd *hcd)xhci_dbg_trace (xhci, trace_xhci_dbg_init,"xhci_shutdown completed - status = %x" ,readl (&xhci->op_regs->status)); - -/* Yet another workaround for spurious wakeups at shutdown with HSW */ -if (xhci->quirks &XHCI_SPURIOUS_WAKEUP ) -pci_set_power_state (to_pci_dev (hcd->self.controller), PCI_D3hot); } +EXPORT_SYMBOL_GPL (xhci_shutdown);#ifdef CONFIG_PM static void xhci_save_registers (struct xhci_hcd *xhci)
@@ -933,7 +930,7 @@ static bool xhci_pending_portevent(struct xhci_hcd *xhci)int xhci_suspend (struct xhci_hcd *xhci,bool do_wakeup) {int rc =0 ; -unsigned int delay =XHCI_MAX_HALT_USEC ; +unsigned int delay =XHCI_MAX_HALT_USEC *2 ;struct usb_hcd *hcd =xhci_to_hcd (xhci);u32 command;
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.