Linux 4.14.155
Greg KH
maintainerI'm announcing the release of the 4.14.155 kernel.
All users of the 4.14 kernel series must upgrade.
The updated 4.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/media/i2c/adv748x.txt | 4 Documentation/devicetree/bindings/net/brcm,unimac-mdio.txt | 3 Makefile | 2 arch/arm/boot/compressed/libfdt_env.h | 2 arch/arm/boot/dts/am335x-evm.dts | 12 arch/arm/boot/dts/arm-realview-eb.dtsi | 2 arch/arm/boot/dts/arm-realview-pb1176.dts | 2 arch/arm/boot/dts/arm-realview-pb11mp.dts | 2 arch/arm/boot/dts/arm-realview-pbx.dtsi | 2 arch/arm/boot/dts/armada-388-clearfog.dtsi | 2 arch/arm/boot/dts/at91sam9g45.dtsi | 2 arch/arm/boot/dts/dove-cubox.dts | 2 arch/arm/boot/dts/dove.dtsi | 6 arch/arm/boot/dts/exynos5250-arndale.dts | 9 arch/arm/boot/dts/exynos5250-snow-rev5.dts | 11 arch/arm/boot/dts/exynos5420-peach-pit.dts | 3 arch/arm/boot/dts/exynos5800-peach-pi.dts | 3 arch/arm/boot/dts/lpc32xx.dtsi | 4 arch/arm/boot/dts/meson8.dtsi | 2 arch/arm/boot/dts/meson8b.dtsi | 2 arch/arm/boot/dts/omap3-gta04.dtsi | 49 ++- arch/arm/boot/dts/orion5x-linkstation.dtsi | 2 arch/arm/boot/dts/pxa25x.dtsi | 4 arch/arm/boot/dts/pxa27x.dtsi | 6 arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 arch/arm/boot/dts/rk3036.dtsi | 2 arch/arm/boot/dts/rk3188-radxarock.dts | 8 arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts | 2 arch/arm/boot/dts/ste-dbx5x0.dtsi | 6 arch/arm/boot/dts/ste-href-family-pinctrl.dtsi | 8 arch/arm/boot/dts/ste-hrefprev60.dtsi | 2 arch/arm/boot/dts/ste-snowball.dts | 2 arch/arm/boot/dts/ste-u300.dts | 2 arch/arm/boot/dts/tegra20-paz00.dts | 6 arch/arm/boot/dts/tegra30-apalis.dtsi | 6 arch/arm/boot/dts/tegra30.dtsi | 6 arch/arm/boot/dts/versatile-ab.dts | 2 arch/arm/crypto/crc32-ce-glue.c | 2 arch/arm/mach-imx/pm-imx6.c | 25 + arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts | 6 arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 8 arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi | 4 arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 2 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts | 2 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 2 arch/arm64/boot/dts/lg/lg1312.dtsi | 4 arch/arm64/boot/dts/lg/lg1313.dtsi | 4 arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi | 1 arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi | 26 + arch/mips/bcm47xx/workarounds.c | 8 arch/mips/bcm63xx/reset.c | 2 arch/mips/include/asm/kexec.h | 6 arch/mips/txx9/generic/setup.c | 5 arch/powerpc/boot/libfdt_env.h | 2 arch/powerpc/include/asm/imc-pmu.h | 6 arch/powerpc/include/asm/uaccess.h | 6 arch/powerpc/kernel/iommu.c | 2 arch/powerpc/kernel/rtas.c | 2 arch/powerpc/kernel/vdso32/datapage.S | 1 arch/powerpc/kernel/vdso32/gettimeofday.S | 1 arch/powerpc/kernel/vdso64/datapage.S | 1 arch/powerpc/kernel/vdso64/gettimeofday.S | 1 arch/powerpc/mm/slb.c | 2 arch/powerpc/perf/imc-pmu.c | 17 - arch/powerpc/platforms/powernv/opal-imc.c | 16 + arch/x86/hyperv/hv_init.c | 19 + arch/x86/kernel/cpu/common.c | 4 arch/x86/kernel/cpu/cyrix.c | 2 arch/x86/kernel/cpu/mcheck/mce-inject.c | 6 arch/x86/kernel/uprobes.c | 2 arch/x86/kvm/vmx.c | 7 arch/x86/kvm/x86.c | 8 arch/x86/kvm/x86.h | 5 block/bfq-iosched.c | 10 crypto/rsa-pkcs1pad.c | 9 drivers/acpi/acpi_lpss.c | 22 + drivers/acpi/pci_root.c | 5 drivers/base/component.c | 6 drivers/base/power/opp/core.c | 21 + drivers/base/power/opp/cpu.c | 2 drivers/base/power/opp/opp.h | 2 drivers/bluetooth/hci_serdev.c | 1 drivers/char/ipmi/ipmi_dmi.c | 4 drivers/crypto/s5p-sss.c | 4 drivers/dma/Kconfig | 2 drivers/dma/dma-jz4780.c | 2 drivers/edac/sb_edac.c | 68 ++-- drivers/extcon/extcon-intel-cht-wc.c | 2 drivers/firmware/dell_rbu.c | 8 drivers/hv/hv.c | 15 - drivers/hwtracing/coresight/coresight-etm-perf.c | 59 +++- drivers/hwtracing/coresight/coresight-etm4x.c | 40 +- drivers/hwtracing/coresight/coresight-tmc-etf.c | 4 drivers/hwtracing/coresight/coresight.c | 22 + drivers/i2c/busses/i2c-aspeed.c | 65 +++- drivers/i2c/i2c-core-acpi.c | 28 + drivers/iio/adc/max9611.c | 2 drivers/iio/dac/mcp4922.c | 11 drivers/infiniband/core/device.c | 2 drivers/infiniband/core/mad.c | 72 ++--- drivers/infiniband/hw/hfi1/pcie.c | 4 drivers/infiniband/hw/hfi1/user_sdma.c | 4 drivers/infiniband/hw/i40iw/i40iw_cm.c | 2 drivers/infiniband/sw/rxe/rxe_comp.c | 21 + drivers/infiniband/sw/rxe/rxe_req.c | 15 - drivers/infiniband/ulp/ipoib/ipoib_main.c | 3 drivers/infiniband/ulp/iser/iser_initiator.c | 18 - drivers/input/ff-memless.c | 9 drivers/input/rmi4/rmi_driver.c | 6 drivers/input/rmi4/rmi_f11.c | 4 drivers/input/rmi4/rmi_f12.c | 32 +- drivers/input/rmi4/rmi_f54.c | 5 drivers/media/pci/ivtv/ivtv-yuv.c | 2 drivers/media/pci/meye/meye.c | 2 drivers/media/platform/davinci/vpbe_display.c | 2 drivers/media/usb/au0828/au0828-core.c | 4 drivers/misc/genwqe/card_utils.c | 13 drivers/misc/kgdbts.c | 16 - drivers/mmc/host/sdhci-of-at91.c | 2 drivers/net/can/slcan.c | 1 drivers/net/ethernet/amd/am79c961a.c | 2 drivers/net/ethernet/amd/atarilance.c | 6 drivers/net/ethernet/amd/declance.c | 2 drivers/net/ethernet/amd/sun3lance.c | 6 drivers/net/ethernet/amd/sunlance.c | 2 drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 4 drivers/net/ethernet/broadcom/bcm63xx_enet.c | 5 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 10 drivers/net/ethernet/broadcom/sb1250-mac.c | 4 drivers/net/ethernet/cavium/liquidio/octeon_device.c | 5 drivers/net/ethernet/cavium/liquidio/octeon_iq.h | 2 drivers/net/ethernet/cavium/liquidio/request_manager.c | 2 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 drivers/net/ethernet/faraday/ftgmac100.c | 4 drivers/net/ethernet/faraday/ftmac100.c | 7 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 3 drivers/net/ethernet/freescale/fec_mpc52xx.c | 3 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 3 drivers/net/ethernet/freescale/gianfar.c | 4 drivers/net/ethernet/freescale/ucc_geth.c | 3 drivers/net/ethernet/hisilicon/hip04_eth.c | 3 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c | 2 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 2 drivers/net/ethernet/intel/i40e/i40e_main.c | 8 drivers/net/ethernet/intel/i40e/i40e_ptp.c | 3 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 10 drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 7 drivers/net/ethernet/micrel/ks8695net.c | 2 drivers/net/ethernet/micrel/ks8851_mll.c | 4 drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 16 - drivers/net/ethernet/smsc/smc911x.c | 3 drivers/net/ethernet/smsc/smc91x.c | 3 drivers/net/ethernet/smsc/smsc911x.c | 3 drivers/net/ethernet/sun/ldmvsw.c | 2 drivers/net/ethernet/sun/sunbmac.c | 3 drivers/net/ethernet/sun/sunqe.c | 2 drivers/net/ethernet/sun/sunvnet.c | 2 drivers/net/ethernet/sun/sunvnet_common.c | 14 drivers/net/ethernet/sun/sunvnet_common.h | 7 drivers/net/ethernet/toshiba/ps3_gelic_net.c | 4 drivers/net/ethernet/toshiba/ps3_gelic_net.h | 2 drivers/net/ethernet/toshiba/spider_net.c | 4 drivers/net/ethernet/toshiba/tc35815.c | 6 drivers/net/ethernet/xilinx/ll_temac_main.c | 3 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 3 drivers/net/ethernet/xilinx/xilinx_emaclite.c | 9 drivers/net/phy/mdio-bcm-unimac.c | 83 +++++ drivers/net/phy/mscc.c | 11 drivers/net/slip/slip.c | 1 drivers/net/usb/ax88172a.c | 2 drivers/net/usb/lan78xx.c | 5 drivers/net/usb/qmi_wwan.c | 2 drivers/net/wireless/ath/ath10k/ahb.c | 4 drivers/net/wireless/ath/ath10k/mac.c | 2 drivers/net/wireless/ath/ath10k/pci.c | 2 drivers/net/wireless/ath/ath10k/wmi.c | 3 drivers/net/wireless/ath/ath9k/main.c | 1 drivers/net/wireless/ath/ath9k/tx99.c | 10 drivers/net/wireless/intel/iwlwifi/fw/api/tx.h | 6 drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 9 drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 4 drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 8 drivers/net/wireless/realtek/rtl818x/rtl8187/leds.c | 2 drivers/nvmem/core.c | 2 drivers/of/base.c | 2 drivers/phy/broadcom/Kconfig | 3 drivers/phy/lantiq/phy-lantiq-rcu-usb2.c | 1 drivers/phy/renesas/phy-rcar-gen3-usb2.c | 2 drivers/phy/ti/phy-twl4030-usb.c | 29 ++ drivers/pinctrl/pinctrl-at91-pio4.c | 8 drivers/pinctrl/pinctrl-at91.c | 28 - drivers/pinctrl/pinctrl-ingenic.c | 2 drivers/power/reset/at91-sama5d2_shdwc.c | 3 drivers/power/supply/ab8500_fg.c | 31 -- drivers/power/supply/max8998_charger.c | 2 drivers/power/supply/twl4030_charger.c | 30 +- drivers/remoteproc/da8xx_remoteproc.c | 2 drivers/rtc/rtc-armada38x.c | 22 - drivers/rtc/rtc-mt6397.c | 13 drivers/rtc/rtc-pl030.c | 15 - drivers/rtc/rtc-rv8803.c | 2 drivers/s390/net/qeth_l2_main.c | 3 drivers/s390/net/qeth_l3_main.c | 3 drivers/scsi/NCR5380.c | 156 ++++++----- drivers/scsi/NCR5380.h | 2 drivers/scsi/libsas/sas_expander.c | 13 drivers/scsi/lpfc/lpfc_nvme.c | 2 drivers/scsi/lpfc/lpfc_nvmet.c | 7 drivers/scsi/pm8001/pm8001_hwi.c | 6 drivers/scsi/pm8001/pm8001_sas.c | 9 drivers/scsi/pm8001/pm8001_sas.h | 1 drivers/scsi/pm8001/pm80xx_hwi.c | 80 +++++ drivers/scsi/pm8001/pm80xx_hwi.h | 3 drivers/scsi/qla2xxx/qla_gs.c | 4 drivers/scsi/qla2xxx/qla_isr.c | 2 drivers/scsi/qla2xxx/qla_os.c | 28 + drivers/scsi/scsi_lib.c | 3 drivers/scsi/sym53c8xx_2/sym_hipd.c | 15 - drivers/soc/imx/gpc.c | 2 drivers/soc/qcom/wcnss_ctrl.c | 2 drivers/spi/spi-mt65xx.c | 37 +- drivers/spi/spi-pic32.c | 4 drivers/tee/optee/core.c | 2 drivers/tty/serial/mxs-auart.c | 3 drivers/tty/serial/samsung.c | 8 drivers/tty/serial/xilinx_uartps.c | 41 -- drivers/usb/chipidea/otg.c | 9 drivers/usb/chipidea/usbmisc_imx.c | 2 drivers/usb/gadget/function/uvc_configfs.c | 7 drivers/usb/gadget/function/uvc_video.c | 32 +- drivers/usb/host/xhci-mtk-sch.c | 4 drivers/vfio/pci/vfio_pci.c | 8 drivers/vfio/pci/vfio_pci_config.c | 31 ++ fs/compat_ioctl.c | 10 fs/ecryptfs/inode.c | 19 - fs/f2fs/recovery.c | 17 + fs/f2fs/super.c | 6 fs/fuse/control.c | 4 fs/gfs2/rgrp.c | 2 fs/kernfs/symlink.c | 5 include/linux/cpufeature.h | 2 include/linux/edac.h | 3 include/linux/intel-iommu.h | 6 include/linux/libfdt_env.h | 1 include/net/llc.h | 1 include/trace/events/sched.h | 11 kernel/events/uprobes.c | 4 kernel/kprobes.c | 8 kernel/signal.c | 4 mm/hugetlb_cgroup.c | 2 mm/memcontrol.c | 2 mm/shmem.c | 2 net/bluetooth/l2cap_core.c | 10 net/ipv4/gre_demux.c | 7 net/ipv4/ip_gre.c | 9 net/ipv4/netfilter/nf_nat_masquerade_ipv4.c | 22 + net/ipv6/netfilter/nf_nat_masquerade_ipv6.c | 19 + net/llc/llc_core.c | 4 net/wireless/reg.c | 46 +++ samples/bpf/sockex2_kern.c | 11 samples/bpf/sockex3_kern.c | 8 samples/bpf/sockex3_user.c | 4 sound/core/oss/pcm_plugin.c | 4 sound/core/seq/seq_system.c | 18 + sound/pci/intel8x0m.c | 20 - sound/soc/codecs/hdac_hdmi.c | 6 sound/soc/codecs/sgtl5000.c | 2 sound/soc/sh/rcar/rsnd.h | 1 sound/soc/sh/rcar/ssi.c | 4 sound/soc/soc-pcm.c | 2 sound/usb/endpoint.c | 3 sound/usb/mixer.c | 4 273 files changed, 1715 insertions(+), 749 deletions(-)
Aapo Vienamo (1):
arm64: dts: tegra210-p2180: Correct sdmmc4 vqmmc-supply
Al Viro (2):
ecryptfs_lookup_interpose(): lower_dentry->d_inode is not stable
ecryptfs_lookup_interpose(): lower_dentry->d_parent is not stable eitherAlan Modra (1):
powerpc/vdso: Correct call frame information
Aleksander Morgado (1):
net: usb: qmi_wwan: add support for Foxconn T77W968 LTE modules
Alex Williamson (1):
vfio/pci: Mask buggy SR-IOV VF INTx support
Alexandre Belloni (4):
rtc: rv8803: fix the rv8803 id in the OF table
rtc: mt6397: fix possible race condition
rtc: pl030: fix possible race condition
rtc: armada38x: fix possible race condition
Andre Przywara (2):
arm64: dts: allwinner: a64: Olinuxino: fix DRAM voltage
arm64: dts: allwinner: a64: NanoPi-A64: Fix DCDC1 voltage
Andreas Kemnade (3):
power: supply: twl4030_charger: fix charging current out-of-bounds
power: supply: twl4030_charger: disable eoc interrupt on linear charge
phy: phy-twl4030-usb: fix denied runtime access
Andrew Duggan (2):
Input: synaptics-rmi4 - disable the relative position IRQ in the F12 driver
Input: synaptics-rmi4 - do not consume more data than we have (F11, F12)
Andy Shevchenko (1):
extcon: cht-wc: Return from default case to avoid warnings
Anju T Sudhakar (1):
powerpc/perf: Fix kfree memory allocated for nest pmus
Anton Blanchard (1):
powerpc: Fix duplicate const clang warning in user access code
Anton Vasilyev (1):
serial: mxs-auart: Fix potential infinite loop
Ard Biesheuvel (1):
tee: optee: take DT status property into account
Arnd Bergmann (2):
media: dvb: fix compat ioctl translation
net: phy: mdio-bcm-unimac: mark PM functions as __maybe_unused
Balakrishna Godavarthi (1):
Bluetooth: hci_serdev: clear HCI_UART_PROTO_READY to avoid closing proto races
Banajit Goswami (1):
component: fix loop condition to call unbind() if bind() fails
Baruch Siach (1):
ARM: dts: clearfog: fix sdhci supply property name
Bernd Edlinger (1):
kernfs: Fix range checks in kernfs_get_target_path
Bjorn Andersson (1):
remoteproc/davinci: Use %zx for formating size_t
Bob Peterson (1):
gfs2: Don't set GFS2_RDF_UPTODATE when the lvb is updated
Borislav Petkov (1):
x86/mce-inject: Reset injection struct after injection
Brad Love (1):
media: au0828: Fix incorrect error messages
Brendan Higgins (1):
i2c: aspeed: fix invalid clock parameters for very large divisors
Breno Leitao (1):
powerpc/iommu: Avoid derefence before pointer check
Chao Yu (4):
f2fs: fix memory leak of percpu counter in fill_super()
f2fs: fix to recover inode's uid/gid during POR
f2fs: fix to recover inode's project id during POR
f2fs: mark inode dirty explicitly in recover_inode()
Charles Keepax (1):
ASoC: dpcm: Properly initialise hw->rate_max
Christian Lamparter (1):
ARM: dts: qcom: ipq4019: fix cpu0's qcom,saw2 reg value
Christoph Manszewski (1):
crypto: s5p-sss: Fix Fix argument list alignment
Chuhong Yuan (1):
Input: synaptics-rmi4 - destroy F54 poller workqueue when removing
Chunfeng Yun (1):
usb: xhci-mtk: fix ISOC error when interval is zero
Claudiu Beznea (1):
power: reset: at91-poweroff: do not procede if at91_shdwc is allocated
Colin Ian King (1):
ASoC: sgtl5000: avoid division by zero if lo_vag is zero
Cong Wang (1):
llc: avoid blocking in llc_sap_close()
Corey Minyard (1):
ipmi:dmi: Ignore IPMI SMBIOS entries with a zero base address
Dan Aloni (1):
crypto: fix a memory leak in rsa-kcs1pad's encryption mode
Dan Carpenter (4):
ALSA: pcm: signedness bug in snd_pcm_plug_alloc()
pinctrl: at91-pio4: fix has_config check in atmel_pctl_dt_subnode_to_map()
power: supply: ab8500_fg: silence uninitialized variable warnings
ath9k: Fix a locking bug in ath9k_add_interface()
Daniel Silsby (1):
dmaengine: dma-jz4780: Further residue status fix
Deepak Ukey (2):
scsi: pm80xx: Corrected dma_unmap_sg() parameter
scsi: pm80xx: Fixed system hang issue during kexec bootDengcheng Zhu (1):
MIPS: kexec: Relax memory restriction
Dexuan Cui (1):
x86/hyperv: Suppress "PCI: Fatal: No config space access function found"
Ding Xiang (1):
mips: txx9: fix iounmap related issue
Dinh Nguyen (1):
ARM: dts: socfpga: Fix I2C bus unit-address error
Emmanuel Grumbach (1):
iwlwifi: dbg: don't crash if the firmware crashes in the middle of a debug dump
Eric Auger (1):
iommu/vt-d: Fix QI_DEV_IOTLB_PFSID and QI_DEV_EIOTLB_PFSID macros
Eric W. Biederman (3):
signal: Always ignore SIGKILL and SIGSTOP sent to the global init
signal: Properly deliver SIGILL from uprobes
signal: Properly deliver SIGSEGV from x86 uprobes
Erik Stromdahl (1):
ath10k: wmi: disable softirq's while calling ieee80211_rx
Eugen Hristev (1):
mmc: sdhci-of-at91: fix quirk2 overwrite
Evan Green (1):
Revert "Input: synaptics-rmi4 - avoid processing unknown IRQs"
Felix Fietkau (2):
ath9k: fix tx99 with monitor mode interface
ath9k: add back support for using active monitor interfaces for tx99
Finn Thain (8):
scsi: NCR5380: Have NCR5380_select() return a bool
scsi: NCR5380: Withhold disconnect privilege for REQUEST SENSE
scsi: NCR5380: Use DRIVER_SENSE to indicate valid sense data
scsi: NCR5380: Check for invalid reselection target
scsi: NCR5380: Don't clear busy flag when abort fails
scsi: NCR5380: Don't call dsprintk() following reselection interrupt
scsi: NCR5380: Handle BUS FREE during reselection
scsi: NCR5380: Check for bus reset
Florian Fainelli (2):
net: phy: mdio-bcm-unimac: Allow configuring MDIO clock divider
phy: brcm-sata: allow PHY_BRCM_SATA driver to be built for DSL SoCs
Fuyun Liang (1):
net: hns3: Fix for setting speed for phy failed problem
Ganesh Goudar (1):
cxgb4: Fix endianness issue in t4_fwcache()
Geert Uytterhoeven (2):
media: dt-bindings: adv748x: Fix decimal unit addresses
ARM: dts: ux500: Correct SCU unit address
George Kennedy (1):
scsi: sym53c8xx: fix NULL pointer dereference panic in sym_int_sir()
Greg Kroah-Hartman (1):
Linux 4.14.155
Grygorii Strashko (1):
ARM: dts: am335x-evm: fix number of cpsw
H. Nikolaus Schaller (6):
ARM: dts: omap3-gta04: give spi_lcd node a label so that we can overwrite in other DTS files
ARM: dts: omap3-gta04: fixes for tvout / venc
ARM: dts: omap3-gta04: tvout: enable as display1 alias
ARM: dts: omap3-gta04: fix touchscreen tsc2007
ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
ARM: dts: omap3-gta04: keep vpll2 always on
Haishuang Yan (1):
ip_gre: fix parsing gre header in ipgre_err
Hannes Reinecke (1):
scsi: NCR5380: Clear all unissued commands on host reset
Hans de Goede (2):
i2c: acpi: Force bus speed to 400KHz if a Silead touchscreen is present ACPI / LPSS: Exclude I2C busses shared with PUNIT from pmc_atom_d3_mask
Hauke Mehrtens (1):
phy: lantiq: Fix compile warning
Heiko Stuebner (1):
ARM: dts: rockchip: explicitly set vcc_sd0 pin to gpio on rk3188-radxarock
Henry Lin (1):
ALSA: usb-audio: not submit urb for stopped endpoint
Håkon Bugge (1):
RDMA/i40iw: Fix incorrect iterator type
Ilan Peer (1):
iwlwifi: mvm: Allow TKIP for AP mode
Israel Rukshin (1):
IB/iser: Fix possible NULL deref at iser_inv_desc()
Jakub Kicinski (1):
nfp: provide a better warning when ring allocation fails
James Erwin (1):
IB/hfi1: Ensure full Gen3 speed in a Gen4 system
James Smart (1):
scsi: lpfc: Fix errors in log messages.
Jason Yan (1):
scsi: libsas: always unregister the old device if going to discover new
Jay Foster (1):
ARM: dts: at91/trivial: Fix USART1 definition for at91sam9g45
Jerome Brunet (1):
arm64: dts: meson: libretech: update board model
Jia-Ju Bai (1):
media: pci: ivtv: Fix a sleep-in-atomic-context bug in ivtv_yuv_init()
Jiada Wang (1):
ASoC: rsnd: ssi: Fix issue in dma data address assignment
Jian Shen (1):
net: hns3: Fix parameter type for q_id in hclge_tm_q_to_qs_map_cfg()
Joel Pepper (1):
usb: gadget: uvc: configfs: Prevent format changes after linking header
Johannes Berg (2):
iwlwifi: don't WARN on trying to dump dead firmware
iwlwifi: api: annotate compressed BA notif array sizes
Jonas Gorski (1):
MIPS: BCM63XX: fix switch core reset on BCM6368
Jouni Hogander (2):
slip: Fix memory leak in slip_open error path
slcan: Fix memory leak in error path
Julian Wiedmann (1):
s390/qeth: invoke softirqs after napi_schedule()
Junaid Shahid (1):
kvm: mmu: Don't read PDPTEs when paging is not enabled
Justin Ernst (1):
EDAC: Raise the maximum number of memory controllers
Kirill Tkhai (1):
fuse: use READ_ONCE on congestion_threshold and max_background
Lao Wei (1):
media: fix: media: pci: meye: validate offset to avoid arbitrary access
Larry Finger (1):
rtl8187: Fix warning generated when strncpy() destination length matches the sixe argument
Laura Abbott (1):
misc: kgdbts: Fix restrict error
Laurent Pinchart (3):
usb: gadget: uvc: configfs: Drop leaked references to config items
usb: gadget: uvc: Factor out video USB request queueing
usb: gadget: uvc: Only halt video streaming endpoint in bulk mode
Leo Yan (1):
coresight: tmc: Fix byte-address alignment for RRP
Li Qiang (1):
vfio/pci: Fix potential memory leak in vfio_msi_cap_len
Linus Walleij (1):
ARM: dts: ux500: Fix LCDA clock line muxing
Loic Poulain (1):
usb: chipidea: Fix otg event handler
Lucas Stach (2):
Input: synaptics-rmi4 - fix video buffer size
Input: synaptics-rmi4 - clear IRQ enables for F54
Ludovic Desroches (1):
pinctrl: at91: don't use the same irqchip with multiple gpiochips
Luiz Augusto von Dentz (1):
Bluetooth: L2CAP: Detect if remote is not able to use the whole MPS
Madhavan Srinivasan (1):
powerpc/perf: Fix IMC_MAX_PMU macro
Marc Dietrich (1):
ARM: dts: paz00: fix wakeup gpio keycode
Marcel Ziswiler (3):
ARM: dts: pxa: fix power i2c base address
ARM: dts: tegra30: fix xcvr-setup-use-fuses
ARM: tegra: apalis_t30: fix mmc1 cmd pull-up
Marcus Folkesson (1):
iio: dac: mcp4922: fix error handling in mcp4922_write_raw
Marek Szyprowski (4):
ARM: dts: exynos: Fix sound in Snow-rev5 Chromebook
ARM: dts: exynos: Fix regulators configuration on Peach Pi/Pit Chromebooks
ARM: dts: exynos: Disable pull control for S5M8767 PMIC
serial: samsung: Enable baud clock for UART reset procedure in resume
Martin Blumenstingl (2):
ARM: dts: meson8: fix the clock controller register size
ARM: dts: meson8b: fix the clock controller register size
Masami Hiramatsu (1):
kprobes: Don't call BUG_ON() if there is a kprobe in use on free list
Matthew Whitehead (2):
x86/CPU: Use correct macros for Cyrix calls x86/CPU: Change query logic so CPUID is enabled before testing
Michael J. Ruhl (1):
IB/hfi1: Missing return value in error path for user sdma
Michael Kelley (1):
Drivers: hv: vmbus: Fix synic per-cpu context initialization
Michael Schmitz (1):
scsi: core: Handle drivers which set sg_tablesize to zero
Mitch Williams (1):
i40e: use correct length for strncpy
Muhammad Sammar (1):
IB/ipoib: Ensure that MTU isn't less than minimum permitted
Nathan Chancellor (2):
spi: pic32: Use proper enum in dmaengine_prep_slave_rg
media: davinci: Fix implicit enum conversion warning
Nathan Fontenot (1):
powerpc/pseries: Disable CPU hotplug across migrations
Nava kishore Manne (1):
serial: uartps: Fix suspend functionality
Nicholas Piggin (1):
powerpc/64s/hash: Fix stab_rr off by one initialization
Nicolas Adell (1):
usb: chipidea: imx: enable OTG overcurrent in case USB subsystem is already started
Niklas Cassel (1):
soc: qcom: wcnss_ctrl: Avoid string overflow
Oleksij Rempel (1):
ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set
Oliver Neukum (2):
ax88172a: fix information leak on short answers
Input: ff-memless - kill timer in destroy()
Paolo Bonzini (1):
KVM: x86: introduce is_pae_paging
Paolo Valente (1):
blok, bfq: do not plug I/O if all queues are weight-raised
Parav Pandit (2):
RDMA/core: Rate limit MAD error messages
RDMA/core: Follow correct unregister order between sysfs and cgroup
Patryk Małek (2):
i40e: hold the rtnl lock on clearing interrupt scheme
i40e: Prevent deleting MAC address from VF when set by PF
Paul Cercueil (2):
pinctrl: ingenic: Probe driver at subsys_initcall
dmaengine: dma-jz4780: Don't depend on MACH_JZ4780
Peter Shih (1):
spi: mediatek: Don't modify spi_transfer when transfer.
Petr Machata (1):
mlxsw: spectrum: Init shaper for TCs 8..15
Prashant Bhole (1):
samples/bpf: fix compilation failure
Qiuxu Zhuo (1):
EDAC, sb_edac: Return early on ADDRV bit and address type test
Quentin Schulz (2):
net: phy: mscc: read 'vsc8531,vddmac' as an u32
net: phy: mscc: read 'vsc8531, edge-slowdown' as an u32
Quinn Tran (3):
scsi: qla2xxx: Fix iIDMA error
scsi: qla2xxx: Defer chip reset until target mode is enabled
scsi: qla2xxx: Fix dropped srb resource.
Rajeev Kumar Sirasanagandla (1):
cfg80211: Avoid regulatory restore when COUNTRY_IE_IGNORE is set
Rick Farrington (1):
liquidio: fix race condition in instruction completion processing
Rob Herring (10):
of: make PowerMac cache node search conditional on CONFIG_PPC_PMAC
arm64: dts: meson: Fix erroneous SPI bus warnings
ARM: dts: rockchip: Fix erroneous SPI bus dtc warnings on rk3036
libfdt: Ensure INT_MAX is defined in libfdt_env.h
ARM: dts: ste: Fix SPI controller node names
ARM: dts: marvell: Fix SPI and I2C bus warnings
ARM: dts: realview: Fix SPI controller node names
arm64: dts: amd: Fix SPI bus warnings
arm64: dts: lg: Fix SPI controller node names
ARM: dts: lpc32xx: Fix SPI controller node names
Robert Jarzmik (1):
ARM: dts: pxa: fix the rtc controller
Roman Gushchin (2):
mm: memcg: switch to css_tryget() in get_mem_cgroup_from_mm()
mm: hugetlb: switch to css_tryget() in hugetlb_cgroup_charge_cgroup()
Sara Sharon (1):
iwlwifi: mvm: avoid sending too many BARs
Shahed Shaikh (1):
bnx2x: Ignore bandwidth attention in single function mode
Sinan Kaya (1):
PCI/ACPI: Correct error message for ASPM disabling
Srinivas Kandagatla (1):
nvmem: core: return error code instead of NULL from nvmem_device_get
Stefan Agner (3):
iio: adc: max9611: explicitly cast gain_selectors
cpufeature: avoid warning when compiling with clang
crypto: arm/crc32 - avoid warning when compiling with Clang
Stefan Wahren (1):
net: lan78xx: Bail out if lan78xx_get_endpoints fails
Stuart Hayes (1):
firmware: dell_rbu: Make payload memory uncachable
Suzuki K Poulose (3):
coresight: Fix handling of sinks
coresight: perf: Fix per cpu path management
coresight: perf: Disable trace path upon source error
Sven Eckelmann (1):
ath10k: limit available channels via DT ieee80211-freq-limit
Sven Schmitt (1):
soc: imx: gpc: fix PDN delay
Takashi Iwai (3):
ALSA: usb-audio: Fix missing error check at mixer resolution test
ALSA: seq: Do error checks at creating system ports
ALSA: intel8x0m: Register irq handler after register initializations
Tamizh chelvam (1):
ath10k: fix kernel panic by moving pci flush after napi_disable
Tan Hu (1):
netfilter: masquerade: don't flush all conntracks if only one address deleted on device
Tomasz Figa (1):
power: supply: max8998-charger: Fix platform data retrieval
Tomasz Nowicki (1):
coresight: etm4x: Configure EL2 exception level when kernel is running in HYP
Tuomas Tynkkynen (1):
MIPS: BCM47XX: Enable USB power on Netgear WNDR3400v3
Uwe Kleine-König (1):
sched/debug: Use symbolic names for task state constants
Vicente Bergas (2):
arm64: dts: rockchip: Fix VCC5V0_HOST_EN on rk3399-sapphire
arm64: dts: rockchip: Fix microSD in rk3399 sapphire board
Vijay Immanuel (1):
IB/rxe: fixes for rdma read retry
Viresh Kumar (1):
OPP: Protect dev_list with opp_table lock
Yong Zhi (1):
ASoC: Intel: hdac_hdmi: Limit sampling rates at dai creation
Yonghong Song (1):
samples/bpf: fix a compilation failure
Yoshihiro Shimoda (1):
phy: renesas: rcar-gen3-usb2: fix vbus_ctrl for role sysfs
YueHaibing (10):
net: hns3: fix return type of ndo_start_xmit function
net: toshiba: fix return type of ndo_start_xmit function
net: xilinx: fix return type of ndo_start_xmit function
net: broadcom: fix return type of ndo_start_xmit function
net: amd: fix return type of ndo_start_xmit function
net: sun: fix return type of ndo_start_xmit function
net: micrel: fix return type of ndo_start_xmit function
net: freescale: fix return type of ndo_start_xmit function
net: smsc: fix return type of ndo_start_xmit function
net: faraday: fix return type of ndo_start_xmit function
zhong jiang (2):
misc: genwqe: should return proper error value.
memfd: Use radix_tree_deref_slot_protected to avoid the warning.
Greg KH
maintainerDocumentation/devicetree/bindings/media/i2c/adv748x.txt +2 -2
@@ -73,7 +73,7 @@ Example: }; }; - port@10 { + port@a { reg = <10>; adv7482_txa: endpoint {
@@ -83,7 +83,7 @@ Example: }; }; - port@11 { + port@b { reg = <11>; adv7482_txb: endpoint {
Documentation/devicetree/bindings/net/brcm,unimac-mdio.txt +3 -0
@@ -19,6 +19,9 @@ Optional properties: - interrupt-names: must be "mdio_done_error" when there is a share interrupt fed to this hardware block, or must be "mdio_done" for the first interrupt and "mdio_error" for the second when there are separate interrupts +- clocks: A reference to the clock supplying the MDIO bus controller +- clock-frequency: the MDIO bus clock that must be output by the MDIO bus + hardware, if absent, the default hardware values are used Child nodes of this MDIO bus controller node are standard Ethernet PHY device nodes as described in Documentation/devicetree/bindings/net/phy.txt
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 154 +SUBLEVEL = 155 EXTRAVERSION = NAME = Petit Gorille
arch/arm/boot/compressed/libfdt_env.h +2 -0
@@ -6,6 +6,8 @@#include <linux/string.h> #include <asm/byteorder.h> +#define INT_MAX ((int)(~0U>>1)) +typedef __be16 fdt16_t ;typedef __be32 fdt32_t ;typedef __be64 fdt64_t ;
arch/arm/boot/dts/am335x-evm.dts +6 -6
@@ -724,6 +724,7 @@ pinctrl-0 = <&cpsw_default>; pinctrl-1 = <&cpsw_sleep>; status = "okay"; + slaves = <1>; }; &davinci_mdio {
@@ -731,15 +732,14 @@ pinctrl-0 = <&davinci_mdio_default>; pinctrl-1 = <&davinci_mdio_sleep>; status = "okay"; -}; -&cpsw_emac0 { - phy_id = <&davinci_mdio>, <0>; - phy-mode = "rgmii-txid"; + ethphy0: ethernet-phy@0 { + reg = <0>; + }; }; -&cpsw_emac1 { - phy_id = <&davinci_mdio>, <1>; +&cpsw_emac0 { + phy-handle = <ðphy0>; phy-mode = "rgmii-txid"; };
arch/arm/boot/dts/arm-realview-eb.dtsi +1 -1
@@ -334,7 +334,7 @@ clock-names = "uartclk", "apb_pclk"; }; - ssp: ssp@1000d000 { + ssp: spi@1000d000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x1000d000 0x1000>; clocks = <&sspclk>, <&pclk>;
arch/arm/boot/dts/arm-realview-pb1176.dts +1 -1
@@ -343,7 +343,7 @@ clock-names = "apb_pclk"; }; - pb1176_ssp: ssp@1010b000 { + pb1176_ssp: spi@1010b000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x1010b000 0x1000>; interrupt-parent = <&intc_dc1176>;
arch/arm/boot/dts/arm-realview-pb11mp.dts +1 -1
@@ -480,7 +480,7 @@ clock-names = "uartclk", "apb_pclk"; }; - ssp@1000d000 { + spi@1000d000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x1000d000 0x1000>; interrupt-parent = <&intc_pb11mp>;
arch/arm/boot/dts/arm-realview-pbx.dtsi +1 -1
@@ -318,7 +318,7 @@ clock-names = "uartclk", "apb_pclk"; }; - ssp: ssp@1000d000 { + ssp: spi@1000d000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x1000d000 0x1000>; clocks = <&sspclk>, <&pclk>;
arch/arm/boot/dts/armada-388-clearfog.dtsi +1 -1
@@ -89,7 +89,7 @@ &clearfog_sdhci_cd_pins>; pinctrl-names = "default"; status = "okay"; - vmmc = <®_3p3v>; + vmmc-supply = <®_3p3v>; wp-inverted; };
arch/arm/boot/dts/at91sam9g45.dtsi +1 -1
@@ -566,7 +566,7 @@ }; }; - uart1 { + usart1 { pinctrl_usart1: usart1-0 { atmel,pins = <AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB4 periph A with pullup */
arch/arm/boot/dts/dove-cubox.dts +1 -1
@@ -87,7 +87,7 @@ status = "okay"; clock-frequency = <100000>; - si5351: clock-generator { + si5351: clock-generator@60 { compatible = "silabs,si5351a-msop"; reg = <0x60>; #address-cells = <1>;
arch/arm/boot/dts/dove.dtsi +3 -3
@@ -155,7 +155,7 @@ 0xffffe000 MBUS_ID(0x03, 0x01) 0 0x0000800 /* CESA SRAM 2k */ 0xfffff000 MBUS_ID(0x0d, 0x00) 0 0x0000800>; /* PMU SRAM 2k */ - spi0: spi-ctrl@10600 { + spi0: spi@10600 { compatible = "marvell,orion-spi"; #address-cells = <1>; #size-cells = <0>;
@@ -168,7 +168,7 @@ status = "disabled"; }; - i2c: i2c-ctrl@11000 { + i2c: i2c@11000 { compatible = "marvell,mv64xxx-i2c"; reg = <0x11000 0x20>; #address-cells = <1>;
@@ -218,7 +218,7 @@ status = "disabled"; }; - spi1: spi-ctrl@14600 { + spi1: spi@14600 { compatible = "marvell,orion-spi"; #address-cells = <1>; #size-cells = <0>;
arch/arm/boot/dts/exynos5250-arndale.dts +9 -0
@@ -169,6 +169,8 @@ reg = <0x66>; interrupt-parent = <&gpx3>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&s5m8767_irq>; vinb1-supply = <&main_dc_reg>; vinb2-supply = <&main_dc_reg>;
@@ -544,6 +546,13 @@ cap-sd-highspeed; }; +&pinctrl_0 { + s5m8767_irq: s5m8767-irq { + samsung,pins = "gpx3-2"; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + }; +}; + &rtc { status = "okay"; };
arch/arm/boot/dts/exynos5250-snow-rev5.dts +11 -0
@@ -23,6 +23,14 @@ samsung,model = "Snow-I2S-MAX98090"; samsung,audio-codec = <&max98090>; + + cpu { + sound-dai = <&i2s0 0>; + }; + + codec { + sound-dai = <&max98090 0>, <&hdmi>; + }; }; };
@@ -34,6 +42,9 @@ interrupt-parent = <&gpx0>; pinctrl-names = "default"; pinctrl-0 = <&max98090_irq>; + clocks = <&pmu_system_controller 0>; + clock-names = "mclk"; + #sound-dai-cells = <1>; }; };
arch/arm/boot/dts/exynos5420-peach-pit.dts +3 -0
@@ -301,6 +301,7 @@ regulator-name = "vdd_1v35"; regulator-min-microvolt = <1350000>; regulator-max-microvolt = <1350000>; + regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-on-in-suspend;
@@ -322,6 +323,7 @@ regulator-name = "vdd_2v"; regulator-min-microvolt = <2000000>; regulator-max-microvolt = <2000000>; + regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-on-in-suspend;
@@ -332,6 +334,7 @@ regulator-name = "vdd_1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-on-in-suspend;
arch/arm/boot/dts/exynos5800-peach-pi.dts +3 -0
@@ -301,6 +301,7 @@ regulator-name = "vdd_1v35"; regulator-min-microvolt = <1350000>; regulator-max-microvolt = <1350000>; + regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-on-in-suspend;
@@ -322,6 +323,7 @@ regulator-name = "vdd_2v"; regulator-min-microvolt = <2000000>; regulator-max-microvolt = <2000000>; + regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-on-in-suspend;
@@ -332,6 +334,7 @@ regulator-name = "vdd_1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-on-in-suspend;
arch/arm/boot/dts/lpc32xx.dtsi +2 -2
@@ -179,7 +179,7 @@ * ssp0 and spi1 are shared pins; * enable one in your board dts, as needed. */ - ssp0: ssp@20084000 { + ssp0: spi@20084000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x20084000 0x1000>; interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
@@ -199,7 +199,7 @@ * ssp1 and spi2 are shared pins; * enable one in your board dts, as needed. */ - ssp1: ssp@2008c000 { + ssp1: spi@2008c000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x2008c000 0x1000>; interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/boot/dts/meson8.dtsi +1 -1
@@ -170,7 +170,7 @@ #clock-cells = <1>; #reset-cells = <1>; compatible = "amlogic,meson8-clkc"; - reg = <0x8000 0x4>, <0x4000 0x460>; + reg = <0x8000 0x4>, <0x4000 0x400>; }; pwm_ef: pwm@86c0 {
arch/arm/boot/dts/meson8b.dtsi +1 -1
@@ -121,7 +121,7 @@ #clock-cells = <1>; #reset-cells = <1>; compatible = "amlogic,meson8b-clkc"; - reg = <0x8000 0x4>, <0x4000 0x460>; + reg = <0x8000 0x4>, <0x4000 0x400>; }; reset: reset-controller@4404 {
arch/arm/boot/dts/omap3-gta04.dtsi +38 -11
119 lines not on this page · raw message
arch/arm/boot/dts/orion5x-linkstation.dtsi +1 -1
@@ -156,7 +156,7 @@ &i2c { status = "okay"; - rtc { + rtc@32 { compatible = "ricoh,rs5c372a"; reg = <0x32>; };
arch/arm/boot/dts/pxa25x.dtsi +4 -0
@@ -80,6 +80,10 @@ #pwm-cells = <1>; clocks = <&clks CLK_PWM1>; }; + + rtc@40900000 { + clocks = <&clks CLK_OSC32k768>; + }; }; timer@40a00000 {
arch/arm/boot/dts/pxa27x.dtsi +5 -1
@@ -71,7 +71,7 @@ clocks = <&clks CLK_PWM1>; }; - pwri2c: i2c@40f000180 { + pwri2c: i2c@40f00180 { compatible = "mrvl,pxa-i2c"; reg = <0x40f00180 0x24>; interrupts = <6>;
@@ -113,6 +113,10 @@ status = "disabled"; }; + + rtc@40900000 { + clocks = <&clks CLK_OSC32k768>; + }; }; clocks {
arch/arm/boot/dts/qcom-ipq4019.dtsi +1 -1
@@ -234,7 +234,7 @@ saw0: regulator@b089000 { compatible = "qcom,saw2"; - reg = <0x02089000 0x1000>, <0x0b009000 0x1000>; + reg = <0x0b089000 0x1000>, <0x0b009000 0x1000>; regulator; };
arch/arm/boot/dts/rk3036.dtsi +1 -1
@@ -750,7 +750,7 @@ /* no rts / cts for uart2 */ }; - spi { + spi-pins { spi_txd:spi-txd { rockchip,pins = <1 29 RK_FUNC_3 &pcfg_pull_default>; };
arch/arm/boot/dts/rk3188-radxarock.dts +8 -0
@@ -130,6 +130,8 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_pwr>; startup-delay-us = <100000>; vin-supply = <&vcc_io>; };
@@ -348,6 +350,12 @@ }; }; + sd0 { + sdmmc_pwr: sdmmc-pwr { + rockchip,pins = <RK_GPIO3 1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + usb { host_vbus_drv: host-vbus-drv { rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts +1 -1
@@ -88,7 +88,7 @@ status = "okay"; clock-frequency = <100000>; - adxl345: adxl345@0 { + adxl345: adxl345@53 { compatible = "adi,adxl345"; reg = <0x53>;
arch/arm/boot/dts/ste-dbx5x0.dtsi +3 -3
@@ -197,7 +197,7 @@ <0xa0410100 0x100>; }; - scu@a04100000 { + scu@a0410000 { compatible = "arm,cortex-a9-scu"; reg = <0xa0410000 0x100>; };
@@ -878,7 +878,7 @@ power-domains = <&pm_domains DOMAIN_VAPE>; }; - ssp@80002000 { + spi@80002000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x80002000 0x1000>; interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
@@ -892,7 +892,7 @@ power-domains = <&pm_domains DOMAIN_VAPE>; }; - ssp@80003000 { + spi@80003000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x80003000 0x1000>; interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/boot/dts/ste-href-family-pinctrl.dtsi +6 -2
@@ -607,16 +607,20 @@ mcde { lcd_default_mode: lcd_default { - default_mux { + default_mux1 { /* Mux in VSI0 and all the data lines */ function = "lcd"; groups = "lcdvsi0_a_1", /* VSI0 for LCD */ "lcd_d0_d7_a_1", /* Data lines */ "lcd_d8_d11_a_1", /* TV-out */ - "lcdaclk_b_1", /* Clock line for TV-out */ "lcdvsi1_a_1"; /* VSI1 for HDMI */ }; + default_mux2 { + function = "lcda"; + groups = + "lcdaclk_b_1"; /* Clock line for TV-out */ + }; default_cfg1 { pins = "GPIO68_E1", /* VSI0 */
arch/arm/boot/dts/ste-hrefprev60.dtsi +1 -1
@@ -57,7 +57,7 @@ }; }; - ssp@80002000 { + spi@80002000 { /* * On the first generation boards, this SSP/SPI port was connected * to the AB8500.
arch/arm/boot/dts/ste-snowball.dts +1 -1
@@ -376,7 +376,7 @@ pinctrl-1 = <&i2c3_sleep_mode>; }; - ssp@80002000 { + spi@80002000 { pinctrl-names = "default"; pinctrl-0 = <&ssp0_snowball_mode>; };
arch/arm/boot/dts/ste-u300.dts +1 -1
@@ -442,7 +442,7 @@ dma-names = "rx"; }; - spi: ssp@c0006000 { + spi: spi@c0006000 { compatible = "arm,pl022", "arm,primecell"; reg = <0xc0006000 0x1000>; interrupt-parent = <&vica>;
arch/arm/boot/dts/tegra20-paz00.dts +3 -3
@@ -524,10 +524,10 @@ gpio-keys { compatible = "gpio-keys"; - power { - label = "Power"; + wakeup { + label = "Wakeup"; gpios = <&gpio TEGRA_GPIO(J, 7) GPIO_ACTIVE_LOW>; - linux,code = <KEY_POWER>; + linux,code = <KEY_WAKEUP>; wakeup-source; }; };
arch/arm/boot/dts/tegra30-apalis.dtsi +3 -3
@@ -166,14 +166,14 @@ /* Apalis MMC1 */ sdmmc3_clk_pa6 { - nvidia,pins = "sdmmc3_clk_pa6", - "sdmmc3_cmd_pa7"; + nvidia,pins = "sdmmc3_clk_pa6"; nvidia,function = "sdmmc3"; nvidia,pull = <TEGRA_PIN_PULL_NONE>; nvidia,tristate = <TEGRA_PIN_DISABLE>; }; sdmmc3_dat0_pb7 { - nvidia,pins = "sdmmc3_dat0_pb7", + nvidia,pins = "sdmmc3_cmd_pa7", + "sdmmc3_dat0_pb7", "sdmmc3_dat1_pb6", "sdmmc3_dat2_pb5", "sdmmc3_dat3_pb4",
arch/arm/boot/dts/tegra30.dtsi +3 -3
@@ -840,7 +840,7 @@ nvidia,elastic-limit = <16>; nvidia,term-range-adj = <6>; nvidia,xcvr-setup = <51>; - nvidia.xcvr-setup-use-fuses; + nvidia,xcvr-setup-use-fuses; nvidia,xcvr-lsfslew = <1>; nvidia,xcvr-lsrslew = <1>; nvidia,xcvr-hsslew = <32>;
@@ -877,7 +877,7 @@ nvidia,elastic-limit = <16>; nvidia,term-range-adj = <6>; nvidia,xcvr-setup = <51>; - nvidia.xcvr-setup-use-fuses; + nvidia,xcvr-setup-use-fuses; nvidia,xcvr-lsfslew = <2>; nvidia,xcvr-lsrslew = <2>; nvidia,xcvr-hsslew = <32>;
@@ -913,7 +913,7 @@ nvidia,elastic-limit = <16>; nvidia,term-range-adj = <6>; nvidia,xcvr-setup = <51>; - nvidia.xcvr-setup-use-fuses; + nvidia,xcvr-setup-use-fuses; nvidia,xcvr-lsfslew = <2>; nvidia,xcvr-lsrslew = <2>; nvidia,xcvr-hsslew = <32>;
arch/arm/boot/dts/versatile-ab.dts +1 -1
@@ -304,7 +304,7 @@ clock-names = "apb_pclk"; }; - ssp@101f4000 { + spi@101f4000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x101f4000 0x1000>; interrupts = <11>;
arch/arm/crypto/crc32-ce-glue.c +1 -1
@@ -236,7 +236,7 @@ static void __exit crc32_pmull_mod_exit(void) ARRAY_SIZE(crc32_pmull_algs)); } -static const struct cpu_feature crc32_cpu_feature[] = { +static const struct cpu_feature __maybe_unused crc32_cpu_feature[] = { {cpu_feature (CRC32 ) }, {cpu_feature (PMULL ) }, { } };MODULE_DEVICE_TABLE (cpu, crc32_cpu_feature);
arch/arm/mach-imx/pm-imx6.c +25 -0
@@ -604,6 +604,28 @@ static void __init imx6_pm_common_init(const struct imx6_pm_socdata IMX6Q_GPR1_GINT); } +static void imx6_pm_stby_poweroff (void ) +{ +imx6_set_lpm (STOP_POWER_OFF ); +imx6q_suspend_finish (0 ); + +mdelay (1000 ); + +pr_emerg ("Unable to poweroff system\n" ); +} + +static int imx6_pm_stby_poweroff_probe (void ) +{ +if (pm_power_off) { +pr_warn ("%s: pm_power_off already claimed %p %pf!\n" , + __func__, pm_power_off, pm_power_off); +return -EBUSY ; + } + + pm_power_off = imx6_pm_stby_poweroff; +return 0 ; +} +void __init imx6_pm_ccm_init (const char *ccm_compat) {struct device_node *np;
@@ -620,6 +642,9 @@ void __init imx6_pm_ccm_init(const char *ccm_compat) val =readl_relaxed (ccm_base +CLPCR ); val &= ~BM_CLPCR_LPM ;writel_relaxed (val, ccm_base +CLPCR ); + +if (of_property_read_bool (np,"fsl,pmic-stby-poweroff" )) +imx6_pm_stby_poweroff_probe (); }void __init imx6q_pm_init (void )
arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts +3 -3
@@ -126,9 +126,9 @@ ®_dcdc1 { regulator-always-on; - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3000000>; - regulator-name = "vcc-3v"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-3v3"; }; ®_dcdc2 {
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +6 -2
@@ -120,10 +120,14 @@ /* DCDC3 is polyphased with DCDC2 */ +/* + * The board uses DDR3L DRAM chips. 1.36V is the closest to the nominal + * 1.35V that the PMIC can drive. + */ ®_dcdc5 { regulator-always-on; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; + regulator-min-microvolt = <1360000>; + regulator-max-microvolt = <1360000>; regulator-name = "vcc-ddr3"; };
arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi +2 -2
@@ -107,7 +107,7 @@ clock-names = "uartclk", "apb_pclk"; }; - spi0: ssp@e1020000 { + spi0: spi@e1020000 { status = "disabled"; compatible = "arm,pl022", "arm,primecell"; reg = <0 0xe1020000 0 0x1000>;
@@ -117,7 +117,7 @@ clock-names = "apb_pclk"; }; - spi1: ssp@e1030000 { + spi1: spi@e1030000 { status = "disabled"; compatible = "arm,pl022", "arm,primecell"; reg = <0 0xe1030000 0 0x1000>;
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +1 -1
@@ -413,7 +413,7 @@ }; }; - spi_pins: spi { + spi_pins: spi-pins { mux { groups = "spi_miso", "spi_mosi",
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts +1 -1
@@ -14,7 +14,7 @@ / { compatible = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl"; - model = "Libre Technology CC"; + model = "Libre Computer Board AML-S905X-CC"; aliases { serial0 = &uart_AO;
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +1 -1
@@ -310,7 +310,7 @@ }; }; - spi_pins: spi { + spi_pins: spi-pins { mux { groups = "spi_miso", "spi_mosi",
arch/arm64/boot/dts/lg/lg1312.dtsi +2 -2
@@ -168,14 +168,14 @@ clock-names = "apb_pclk"; status="disabled"; }; - spi0: ssp@fe800000 { + spi0: spi@fe800000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x0 0xfe800000 0x1000>; interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clk_bus>; clock-names = "apb_pclk"; }; - spi1: ssp@fe900000 { + spi1: spi@fe900000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x0 0xfe900000 0x1000>; interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
arch/arm64/boot/dts/lg/lg1313.dtsi +2 -2
@@ -168,14 +168,14 @@ clock-names = "apb_pclk"; status="disabled"; }; - spi0: ssp@fe800000 { + spi0: spi@fe800000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x0 0xfe800000 0x1000>; interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clk_bus>; clock-names = "apb_pclk"; }; - spi1: ssp@fe900000 { + spi1: spi@fe900000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x0 0xfe900000 0x1000>; interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi +1 -0
@@ -282,6 +282,7 @@ status = "okay"; bus-width = <8>; non-removable; + vqmmc-supply = <&vdd_1v8>; }; clocks {
arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi +24 -2
@@ -113,6 +113,19 @@ vin-supply = <&vcc_1v8>; }; + vcc3v0_sd: vcc3v0-sd { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc0_pwr_h>; + regulator-always-on; + regulator-max-microvolt = <3000000>; + regulator-min-microvolt = <3000000>; + regulator-name = "vcc3v0_sd"; + vin-supply = <&vcc3v3_sys>; + }; + vcc3v3_sys: vcc3v3-sys { compatible = "regulator-fixed"; regulator-name = "vcc3v3_sys";
@@ -136,7 +149,7 @@ vcc5v0_host: vcc5v0-host-regulator { compatible = "regulator-fixed"; enable-active-high; - gpio = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>; + gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host";
@@ -315,7 +328,7 @@ regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <3000000>;
@@ -490,6 +503,13 @@ }; }; + sd { + sdmmc0_pwr_h: sdmmc0-pwr-h { + rockchip,pins = + <RK_GPIO0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + usb2 { vcc5v0_host_en: vcc5v0-host-en { rockchip,pins =
@@ -537,6 +557,7 @@ }; &sdmmc { + broken-cd; bus-width = <4>; cap-mmc-highspeed; cap-sd-highspeed;
@@ -545,6 +566,7 @@ max-frequency = <150000000>; pinctrl-names = "default"; pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; + vmmc-supply = <&vcc3v0_sd>; vqmmc-supply = <&vcc_sdio>; status = "okay"; };
arch/mips/bcm47xx/workarounds.c +5 -3
@@ -5,9 +5,8 @@#include <bcm47xx_board.h> #include <bcm47xx.h> -static void __init bcm47xx_workarounds_netgear_wnr3500l (void ) +static void __init bcm47xx_workarounds_enable_usb_power (int usb_power) { -const int usb_power =12 ;int err; err =gpio_request_one (usb_power,GPIOF_OUT_INIT_HIGH ,"usb_power" );
@@ -23,7 +22,10 @@ void __init bcm47xx_workarounds(void)switch (board) {case BCM47XX_BOARD_NETGEAR_WNR3500L : -bcm47xx_workarounds_netgear_wnr3500l (); +bcm47xx_workarounds_enable_usb_power (12 ); +break ; +case BCM47XX_BOARD_NETGEAR_WNDR3400_V3 : +bcm47xx_workarounds_enable_usb_power (21 );break ;default :/* No workaround(s) needed */
arch/mips/bcm63xx/reset.c +1 -1
@@ -120,7 +120,7 @@#define BCM6368_RESET_DSL 0#define BCM6368_RESET_SAR SOFTRESET_6368_SAR_MASK#define BCM6368_RESET_EPHY SOFTRESET_6368_EPHY_MASK -#define BCM6368_RESET_ENETSW 0 +#define BCM6368_RESET_ENETSW SOFTRESET_6368_ENETSW_MASK#define BCM6368_RESET_PCM SOFTRESET_6368_PCM_MASK#define BCM6368_RESET_MPI SOFTRESET_6368_MPI_MASK#define BCM6368_RESET_PCIE 0
arch/mips/include/asm/kexec.h +3 -3
@@ -12,11 +12,11 @@#include <asm/stacktrace.h> /* Maximum physical address we can use pages from */ -#define KEXEC_SOURCE_MEMORY_LIMIT (0x20000000) +#define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)/* Maximum address we can reach in physical address mode */ -#define KEXEC_DESTINATION_MEMORY_LIMIT (0x20000000) +#define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)/* Maximum address we can use for the control code buffer */ -#define KEXEC_CONTROL_MEMORY_LIMIT (0x20000000) +#define KEXEC_CONTROL_MEMORY_LIMIT (-1UL)/* Reserve 3*4096 bytes for board-specific info */ #define KEXEC_CONTROL_PAGE_SIZE (4096 + 3*4096)
arch/mips/txx9/generic/setup.c +2 -3
@@ -959,12 +959,11 @@ void __init txx9_sramc_init(struct resource *r) goto exit_put; err =sysfs_create_bin_file (&dev->dev.kobj, &dev->bindata_attr);if (err) { -device_unregister (&dev->dev);iounmap (dev->base); -kfree (dev); +device_unregister (&dev->dev); }return ; exit_put: +iounmap (dev->base);put_device (&dev->dev); -return ; }
arch/powerpc/boot/libfdt_env.h +2 -0
@@ -5,6 +5,8 @@#include <types.h> #include <string.h> +#define INT_MAX ((int)(~0U>>1)) +#include "of.h" typedef u32 uint32_t ;
arch/powerpc/include/asm/imc-pmu.h +1 -5
@@ -20,11 +20,6 @@#include <linux/io.h> #include <asm/opal.h> -/* -* For static allocation of some of the structures. -*/ -#define IMC_MAX_PMUS 32 -/* * Compatibility macros for IMC devices */
@@ -125,4 +120,5 @@ enum {extern int init_imc_pmu (struct device_node *parent,struct imc_pmu *pmu_ptr,int pmu_id);extern void thread_imc_disable (void ); +extern int get_max_nest_dev (void );#endif /* __ASM_POWERPC_IMC_PMU_H */
arch/powerpc/include/asm/uaccess.h +3 -3
@@ -234,7 +234,7 @@ do { \ ({ \ long __gu_err; \ __long_type(*(ptr)) __gu_val; \ - const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \ + __typeof__(*(ptr)) __user *__gu_addr = (ptr); \ __chk_user_ptr(ptr); \ if (!is_kernel_addr((unsigned long)__gu_addr)) \ might_fault(); \
@@ -248,7 +248,7 @@ do { \ ({ \ long __gu_err = -EFAULT; \ __long_type(*(ptr)) __gu_val = 0; \ - const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \ + __typeof__(*(ptr)) __user *__gu_addr = (ptr); \ might_fault(); \ if (access_ok(VERIFY_READ, __gu_addr, (size))) { \ barrier_nospec(); \
@@ -262,7 +262,7 @@ do { \ ({ \ long __gu_err; \ __long_type(*(ptr)) __gu_val; \ - const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \ + __typeof__(*(ptr)) __user *__gu_addr = (ptr); \ __chk_user_ptr(ptr); \ barrier_nospec(); \ __get_user_size(__gu_val, __gu_addr, (size), __gu_err); \
arch/powerpc/kernel/iommu.c +1 -1
@@ -785,9 +785,9 @@ dma_addr_t iommu_map_page(struct device *dev, struct iommu_table *tbl, vaddr =page_address (page) + offset; uaddr = (unsigned long )vaddr; - npages =iommu_num_pages (uaddr, size,IOMMU_PAGE_SIZE (tbl));if (tbl) { + npages =iommu_num_pages (uaddr, size,IOMMU_PAGE_SIZE (tbl)); align =0 ;if (tbl->it_page_shift <PAGE_SHIFT && size >=PAGE_SIZE && ((unsigned long )vaddr & ~PAGE_MASK ) ==0 )
arch/powerpc/kernel/rtas.c +2 -0
@@ -984,6 +984,7 @@ int rtas_ibm_suspend_me(u64 handle) goto out; } +cpu_hotplug_disable ();stop_topology_update ();/* Call function on all CPUs. One of us will make the
@@ -998,6 +999,7 @@ int rtas_ibm_suspend_me(u64 handle)printk (KERN_ERR "Error doing global join\n" );start_topology_update (); +cpu_hotplug_enable ();/* Take down CPUs not online prior to suspend */ cpuret =rtas_offline_cpus_mask (offline_mask);
arch/powerpc/kernel/vdso32/datapage.S +1 -0
@@ -37,6 +37,7 @@ data_page_branch: mtlr r0 addi r3, r3, __kernel_datapage_offset-data_page_branch lwz r0,0(r3) + .cfi_restore lr add r3,r0,r3 blr .cfi_endproc
arch/powerpc/kernel/vdso32/gettimeofday.S +1 -0
@@ -139,6 +139,7 @@ V_FUNCTION_BEGIN(__kernel_clock_gettime) */ 99: li r0,__NR_clock_gettime + .cfi_restore lr sc blr .cfi_endproc
arch/powerpc/kernel/vdso64/datapage.S +1 -0
@@ -37,6 +37,7 @@ data_page_branch: mtlr r0 addi r3, r3, __kernel_datapage_offset-data_page_branch lwz r0,0(r3) + .cfi_restore lr add r3,r0,r3 blr .cfi_endproc
arch/powerpc/kernel/vdso64/gettimeofday.S +1 -0
@@ -124,6 +124,7 @@ V_FUNCTION_BEGIN(__kernel_clock_gettime) */ 99: li r0,__NR_clock_gettime + .cfi_restore lr sc blr .cfi_endproc
arch/powerpc/mm/slb.c +1 -1
@@ -315,7 +315,7 @@ void slb_initialize(void)#endif } -get_paca ()->stab_rr =SLB_NUM_BOLTED ; +get_paca ()->stab_rr =SLB_NUM_BOLTED -1 ; lflags =SLB_VSID_KERNEL | linear_llp; vflags =SLB_VSID_KERNEL | vmalloc_llp;
arch/powerpc/perf/imc-pmu.c +14 -3
@@ -26,7 +26,7 @@*/ static DEFINE_MUTEX (nest_init_lock); static DEFINE_PER_CPU(struct imc_pmu_ref *, local_nest_imc_refc); -static struct imc_pmu *per_nest_pmu_arr[IMC_MAX_PMUS ]; +static struct imc_pmu **per_nest_pmu_arr;static cpumask_t nest_imc_cpumask;struct imc_pmu_ref *nest_imc_refc;static int nest_pmus;
@@ -286,13 +286,14 @@ static struct imc_pmu_ref *get_nest_pmu_ref(int cpu)static void nest_change_cpu_context (int old_cpu,int new_cpu) {struct imc_pmu **pn = per_nest_pmu_arr; -int i;if (old_cpu <0 || new_cpu <0 )return ; -for (i =0 ; *pn && i <IMC_MAX_PMUS ; i++, pn++) +while (*pn) {perf_pmu_migrate_context (&(*pn)->pmu, old_cpu, new_cpu); + pn++; + } }static int ppc_nest_imc_cpu_offline (unsigned int cpu)
@@ -1188,6 +1189,7 @@ static void imc_common_cpuhp_mem_free(struct imc_pmu *pmu_ptr)if (nest_pmus ==1 ) {cpuhp_remove_state (CPUHP_AP_PERF_POWERPC_NEST_IMC_ONLINE );kfree (nest_imc_refc); +kfree (per_nest_pmu_arr); }if (nest_pmus >0 )
@@ -1236,6 +1238,13 @@ static int imc_mem_init(struct imc_pmu *pmu_ptr, struct device_node *parent,return -ENOMEM ;/* Needed for hotplug/migration */ +if (!per_nest_pmu_arr) { + per_nest_pmu_arr =kcalloc (get_max_nest_dev () +1 , +sizeof (struct imc_pmu *), +GFP_KERNEL ); +if (!per_nest_pmu_arr) +return -ENOMEM ; + } per_nest_pmu_arr[pmu_index] = pmu_ptr;break ;case IMC_DOMAIN_CORE :
@@ -1318,6 +1327,8 @@ int init_imc_pmu(struct device_node *parent, struct imc_pmu *pmu_ptr, int pmu_id ret =nest_pmu_cpumask_init ();if (ret) {mutex_unlock (&nest_init_lock); +kfree (nest_imc_refc); +kfree (per_nest_pmu_arr); goto err_free; } }
arch/powerpc/platforms/powernv/opal-imc.c +16 -0
@@ -159,6 +159,22 @@ static void disable_core_pmu_counters(void)put_online_cpus (); } +int get_max_nest_dev (void ) +{ +struct device_node *node; +u32 pmu_units =0 , type; + +for_each_compatible_node (node,NULL ,IMC_DTB_UNIT_COMPAT ) { +if (of_property_read_u32 (node,"type" , &type)) +continue ; + +if (type ==IMC_TYPE_CHIP ) + pmu_units++; + } + +return pmu_units; +} +static int opal_imc_counters_probe (struct platform_device *pdev) {struct device_node *imc_dev = pdev->dev.of_node;
arch/x86/hyperv/hv_init.c +19 -0
@@ -17,6 +17,7 @@* */ +#include <linux/efi.h> #include <linux/types.h> #include <asm/hypervisor.h> #include <asm/hyperv.h>
@@ -101,6 +102,22 @@ static int hv_cpu_init(unsigned int cpu)return 0 ; } +static int __init hv_pci_init (void ) +{ +int gen2vm =efi_enabled (EFI_BOOT ); + +/* +* For Generation-2 VM, we exit from pci_arch_init() by returning 0. +* The purpose is to suppress the harmless warning: +* "PCI: Fatal: No config space access function found" +*/ +if (gen2vm) +return 0 ; + +/* For Generation-1 VM, we'll proceed in pci_arch_init(). */ +return 1 ; +} +/* * This function is to be invoked early in the boot sequence after the * hypervisor has been detected.
@@ -154,6 +171,8 @@ void hyperv_init(void)hyper_alloc_mmu (); + x86_init.pci.arch_init = hv_pci_init; +/* * Register Hyper-V specific clocksource. */
arch/x86/kernel/cpu/common.c +3 -1
@@ -1066,6 +1066,9 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)memset (&c->x86_capability,0 ,sizeof c->x86_capability); c->extended_cpuid_level =0 ; +if (!have_cpuid_p ()) +identify_cpu_without_cpuid (c); +/* cyrix could have cpuid enabled via c_identify()*/ if (have_cpuid_p ()) {cpu_detect (c);
@@ -1082,7 +1085,6 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)if (this_cpu->c_bsp_init) this_cpu->c_bsp_init (c); }else { -identify_cpu_without_cpuid (c);setup_clear_cpu_cap (X86_FEATURE_CPUID ); }
arch/x86/kernel/cpu/cyrix.c +1 -1
@@ -437,7 +437,7 @@ static void cyrix_identify(struct cpuinfo_x86 *c)/* enable MAPEN */ setCx86 (CX86_CCR3 , (ccr3 &0x0f ) |0x10 );/* enable cpuid */ -setCx86_old (CX86_CCR4 ,getCx86_old (CX86_CCR4 ) |0x80 ); +setCx86 (CX86_CCR4 ,getCx86 (CX86_CCR4 ) |0x80 );/* disable MAPEN */ setCx86 (CX86_CCR3 , ccr3);local_irq_restore (flags);
arch/x86/kernel/cpu/mcheck/mce-inject.c +6 -0
@@ -108,6 +108,9 @@ static void setup_inj_struct(struct mce *m)memset (m,0 ,sizeof (struct mce )); m->cpuvendor = boot_cpu_data.x86_vendor; + m->time =ktime_get_real_seconds (); + m->cpuid =cpuid_eax (1 ); + m->microcode = boot_cpu_data.microcode; }/* Update fake mce registers on current CPU. */
@@ -576,6 +579,9 @@ static int inj_bank_set(void *data, u64 val) m->bank = val;do_inject (); +/* Reset injection struct */ +setup_inj_struct (&i_mce); +return 0 ; }
arch/x86/kernel/uprobes.c +1 -1
@@ -987,7 +987,7 @@ arch_uretprobe_hijack_return_addr(unsigned long trampoline_vaddr, struct pt_regspr_err ("uprobe: return address clobbered: pid=%d, %%sp=%#lx, " "%%ip=%#lx\n" , current->pid, regs->sp, regs->ip); -force_sig_info (SIGSEGV ,SEND_SIG_FORCED , current); +force_sig (SIGSEGV , current); }return -1 ;
arch/x86/kvm/vmx.c +3 -4
@@ -4468,7 +4468,7 @@ static void ept_load_pdptrs(struct kvm_vcpu *vcpu) (unsigned long *)&vcpu->arch.regs_dirty))return ; -if (is_paging (vcpu) &&is_pae (vcpu) && !is_long_mode (vcpu)) { +if (is_pae_paging (vcpu)) {vmcs_write64 (GUEST_PDPTR0 , mmu->pdptrs[0 ]);vmcs_write64 (GUEST_PDPTR1 , mmu->pdptrs[1 ]);vmcs_write64 (GUEST_PDPTR2 , mmu->pdptrs[2 ]);
@@ -4480,7 +4480,7 @@ static void ept_save_pdptrs(struct kvm_vcpu *vcpu) {struct kvm_mmu *mmu = vcpu->arch.walk_mmu; -if (is_paging (vcpu) &&is_pae (vcpu) && !is_long_mode (vcpu)) { +if (is_pae_paging (vcpu)) { mmu->pdptrs[0 ] =vmcs_read64 (GUEST_PDPTR0 ); mmu->pdptrs[1 ] =vmcs_read64 (GUEST_PDPTR1 ); mmu->pdptrs[2 ] =vmcs_read64 (GUEST_PDPTR2 );
@@ -10906,8 +10906,7 @@ static int nested_vmx_load_cr3(struct kvm_vcpu *vcpu, unsigned long cr3, bool ne* If PAE paging and EPT are both on, CR3 is not used by the CPU and * must not be dereferenced. */ -if (!is_long_mode (vcpu) &&is_pae (vcpu) &&is_paging (vcpu) && - !nested_ept) { +if (is_pae_paging (vcpu) && !nested_ept) {if (!load_pdptrs (vcpu, vcpu->arch.walk_mmu, cr3)) { *entry_failure_code =ENTRY_FAIL_PDPTE ;return 1 ;
arch/x86/kvm/x86.c +4 -4
@@ -620,7 +620,7 @@ bool pdptrs_changed(struct kvm_vcpu *vcpu)gfn_t gfn;int r; -if (is_long_mode (vcpu) || !is_pae (vcpu)) +if (!is_pae_paging (vcpu))return false; if (!test_bit(VCPU_EXREG_PDPTR,
@@ -849,8 +849,8 @@ int kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3)if (is_long_mode (vcpu) && (cr3 &rsvd_bits (cpuid_maxphyaddr (vcpu),63 )))return 1 ; -else if (is_pae (vcpu) &&is_paging (vcpu) && - !load_pdptrs (vcpu, vcpu->arch.walk_mmu, cr3)) +else if (is_pae_paging (vcpu) && + !load_pdptrs (vcpu, vcpu->arch.walk_mmu, cr3))return 1 ; vcpu->arch.cr3 = cr3;
@@ -7787,7 +7787,7 @@ int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu,kvm_update_cpuid (vcpu); idx =srcu_read_lock (&vcpu->kvm->srcu); -if (!is_long_mode (vcpu) &&is_pae (vcpu)) { +if (is_pae_paging (vcpu)) {load_pdptrs (vcpu, vcpu->arch.walk_mmu,kvm_read_cr3 (vcpu)); mmu_reset_needed =1 ; }
arch/x86/kvm/x86.h +5 -0
@@ -94,6 +94,11 @@ static inline int is_paging(struct kvm_vcpu *vcpu)return likely (kvm_read_cr0_bits (vcpu,X86_CR0_PG )); } +static inline bool is_pae_paging (struct kvm_vcpu *vcpu) +{ +return !is_long_mode (vcpu) &&is_pae (vcpu) &&is_paging (vcpu); +} +static inline u32 bit (int bitno) {return 1 << (bitno &31 );
block/bfq-iosched.c +8 -2
@@ -3314,7 +3314,12 @@ static bool bfq_bfqq_may_idle(struct bfq_queue *bfqq)* whether bfqq is being weight-raised, because * bfq_symmetric_scenario() does not take into account also * weight-raised queues (see comments on -* bfq_weights_tree_add()). +* bfq_weights_tree_add()). In particular, if bfqq is being +* weight-raised, it is important to idle only if there are +* other, non-weight-raised queues that may steal throughput +* to bfqq. Actually, we should be even more precise, and +* differentiate between interactive weight raising and +* soft real-time weight raising. * * As a side note, it is worth considering that the above * device-idling countermeasures may however fail in the
@@ -3326,7 +3331,8 @@ static bool bfq_bfqq_may_idle(struct bfq_queue *bfqq)* to let requests be served in the desired order until all * the requests already queued in the device have been served. */ - asymmetric_scenario = bfqq->wr_coeff >1 || + asymmetric_scenario = (bfqq->wr_coeff >1 && + bfqd->wr_busy_queues < bfqd->busy_queues) || !bfq_symmetric_scenario (bfqd);/*
crypto/rsa-pkcs1pad.c +0 -9
@@ -261,15 +261,6 @@ static int pkcs1pad_encrypt(struct akcipher_request *req)pkcs1pad_sg_set_buf (req_ctx->in_sg, req_ctx->in_buf, ctx->key_size -1 - req->src_len, req->src); - req_ctx->out_buf =kmalloc (ctx->key_size,GFP_KERNEL ); -if (!req_ctx->out_buf) { -kfree (req_ctx->in_buf); -return -ENOMEM ; - } - -pkcs1pad_sg_set_buf (req_ctx->out_sg, req_ctx->out_buf, - ctx->key_size,NULL ); -akcipher_request_set_tfm (&req_ctx->child_req, ctx->child);akcipher_request_set_callback (&req_ctx->child_req, req->base.flags, pkcs1pad_encrypt_sign_complete_cb, req);
drivers/acpi/acpi_lpss.c +20 -2
@@ -98,6 +98,9 @@ struct lpss_private_data {u32 prv_reg_ctx[LPSS_PRV_REG_COUNT ]; }; +/* Devices which need to be in D3 before lpss_iosf_enter_d3_state() proceeds */ +static u32 pmc_atom_d3_mask =0xfe000ffe ; +/* LPSS run time quirks */ static unsigned int lpss_quirks;
@@ -174,6 +177,21 @@ static void byt_pwm_setup(struct lpss_private_data *pdata)static void byt_i2c_setup (struct lpss_private_data *pdata) { +const char *uid_str =acpi_device_uid (pdata->adev); +acpi_handle handle = pdata->adev->handle; +unsigned long long shared_host =0 ; +acpi_status status; +long uid =0 ; + +/* Expected to always be true, but better safe then sorry */ +if (uid_str) + uid =simple_strtol (uid_str,NULL ,10 ); + +/* Detect I2C bus shared with PUNIT and ignore its d3 status */ + status =acpi_evaluate_integer (handle,"_SEM" ,NULL , &shared_host); +if (ACPI_SUCCESS (status) && shared_host && uid) + pmc_atom_d3_mask &= ~(BIT_LPSS2_F1_I2C1 << (uid -1 )); +lpss_deassert_reset (pdata);if (readl (pdata->mmio_base + pdata->dev_desc->prv_offset))
@@ -789,7 +807,7 @@ static void lpss_iosf_enter_d3_state(void)* Here we read the values related to LPSS power island, i.e. LPSS * devices, excluding both LPSS DMA controllers, along with SCC domain. */ -u32 func_dis, d3_sts_0, pmc_status, pmc_mask =0xfe000ffe ; +u32 func_dis, d3_sts_0, pmc_status;int ret; ret =pmc_atom_read (PMC_FUNC_DIS , &func_dis);
@@ -807,7 +825,7 @@ static void lpss_iosf_enter_d3_state(void)* Shutdown both LPSS DMA controllers if and only if all other devices * are already in D3hot. */ - pmc_status = (~(d3_sts_0 | func_dis)) & pmc_mask; + pmc_status = (~(d3_sts_0 | func_dis)) & pmc_atom_d3_mask;if (pmc_status) goto exit;
drivers/acpi/pci_root.c +3 -2
@@ -454,8 +454,9 @@ static void negotiate_os_control(struct acpi_pci_root *root, int *no_aspm)decode_osc_support (root,"OS supports" , support); status =acpi_pci_osc_support (root, support);if (ACPI_FAILURE (status)) { -dev_info (&device->dev,"_OSC failed (%s); disabling ASPM\n" , -acpi_format_exception (status)); +dev_info (&device->dev,"_OSC failed (%s)%s\n" , +acpi_format_exception (status), +pcie_aspm_support_enabled () ?"; disabling ASPM" :"" ); *no_aspm =1 ;return ; }
drivers/base/component.c +3 -3
@@ -461,9 +461,9 @@ int component_bind_all(struct device *master_dev, void *data) }if (ret !=0 ) { -for (; i--; ) -if (!master->match->compare[i].duplicate) { - c = master->match->compare[i].component; +for (; i >0 ; i--) +if (!master->match->compare[i -1 ].duplicate) { + c = master->match->compare[i -1 ].component;component_unbind (c, master, data); } }
drivers/base/power/opp/core.c +19 -2
@@ -49,9 +49,14 @@ static struct opp_device *_find_opp_dev(const struct device *dev,static struct opp_table *_find_opp_table_unlocked (struct device *dev) {struct opp_table *opp_table; +bool found;list_for_each_entry (opp_table, &opp_tables, node) { -if (_find_opp_dev (dev, opp_table)) { +mutex_lock (&opp_table->lock); + found = !!_find_opp_dev (dev, opp_table); +mutex_unlock (&opp_table->lock); + +if (found) {_get_opp_table_kref (opp_table);return opp_table;
@@ -711,6 +716,8 @@ struct opp_device *_add_opp_dev(const struct device *dev,/* Initialize opp-dev */ opp_dev->dev = dev; + +mutex_lock (&opp_table->lock);list_add (&opp_dev->node, &opp_table->dev_list);/* Create debugfs entries for the opp_table */
@@ -718,6 +725,7 @@ struct opp_device *_add_opp_dev(const struct device *dev,if (ret)dev_err (dev,"%s: Failed to register opp debugfs (%d)\n" , __func__, ret); +mutex_unlock (&opp_table->lock);return opp_dev; }
@@ -736,6 +744,7 @@ static struct opp_table *_allocate_opp_table(struct device *dev)if (!opp_table)return NULL ; +mutex_init (&opp_table->lock);INIT_LIST_HEAD (&opp_table->dev_list); opp_dev =_add_opp_dev (dev, opp_table);
@@ -757,7 +766,6 @@ static struct opp_table *_allocate_opp_table(struct device *dev)BLOCKING_INIT_NOTIFIER_HEAD (&opp_table->head);INIT_LIST_HEAD (&opp_table->opp_list); -mutex_init (&opp_table->lock);kref_init (&opp_table->kref);/* Secure the device table modification */
@@ -799,6 +807,10 @@ static void _opp_table_kref_release(struct kref *kref)if (!IS_ERR (opp_table->clk))clk_put (opp_table->clk); +/* +* No need to take opp_table->lock here as we are guaranteed that no +* references to the OPP table are taken at this point. +*/ opp_dev = list_first_entry(&opp_table->dev_list, struct opp_device, node);
@@ -1702,6 +1714,9 @@ void _dev_pm_opp_remove_table(struct opp_table *opp_table, struct device *dev, {struct dev_pm_opp *opp, *tmp; +/* Protect dev_list */ +mutex_lock (&opp_table->lock); +/* Find if opp_table manages a single device */ if (list_is_singular (&opp_table->dev_list)) {/* Free static OPPs */
@@ -1712,6 +1727,8 @@ void _dev_pm_opp_remove_table(struct opp_table *opp_table, struct device *dev, }else {_remove_opp_dev (_find_opp_dev (dev, opp_table), opp_table); } + +mutex_unlock (&opp_table->lock); }void _dev_pm_opp_find_and_remove_table (struct device *dev,bool remove_all)
drivers/base/power/opp/cpu.c +2 -0
@@ -222,8 +222,10 @@ int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask)cpumask_clear (cpumask);if (opp_table->shared_opp ==OPP_TABLE_ACCESS_SHARED ) { +mutex_lock (&opp_table->lock);list_for_each_entry (opp_dev, &opp_table->dev_list, node)cpumask_set_cpu (opp_dev->dev->id, cpumask); +mutex_unlock (&opp_table->lock); }else {cpumask_set_cpu (cpu_dev->id, cpumask); }
drivers/base/power/opp/opp.h +1 -1
@@ -124,7 +124,7 @@ enum opp_table_access {* @dev_list: list of devices that share these OPPs * @opp_list: table of opps * @kref: for reference count of the table. -* @lock: mutex protecting the opp_list. +* @lock: mutex protecting the opp_list and dev_list. * @np: struct device_node pointer for opp's DT node. * @clock_latency_ns_max: Max clock latency in nanoseconds. * @shared_opp: OPP is shared between multiple devices.
drivers/bluetooth/hci_serdev.c +1 -0
@@ -360,6 +360,7 @@ void hci_uart_unregister_device(struct hci_uart *hu) {struct hci_dev *hdev = hu->hdev; +clear_bit (HCI_UART_PROTO_READY , &hu->flags);hci_unregister_dev (hdev);hci_free_dev (hdev);
drivers/char/ipmi/ipmi_dmi.c +4 -0
@@ -197,6 +197,10 @@ static void __init dmi_decode_ipmi(const struct dmi_header *dm) slave_addr = data[DMI_IPMI_SLAVEADDR ];memcpy (&base_addr, data +DMI_IPMI_ADDR ,sizeof (unsigned long )); +if (!base_addr) { +pr_err ("Base address is zero, assuming no IPMI interface\n" ); +return ; + }if (len >=DMI_IPMI_VER2_LENGTH ) {if (type ==IPMI_DMI_TYPE_SSIF ) { offset =0 ;
drivers/crypto/s5p-sss.c +2 -2
@@ -323,7 +323,7 @@ static void s5p_unset_indata(struct s5p_aes_dev *dev) }static int s5p_make_sg_cpy (struct s5p_aes_dev *dev,struct scatterlist *src, -struct scatterlist **dst) +struct scatterlist **dst) {void *pages;int len;
@@ -569,7 +569,7 @@ static int s5p_set_indata_start(struct s5p_aes_dev *dev, }static int s5p_set_outdata_start (struct s5p_aes_dev *dev, -struct ablkcipher_request *req) +struct ablkcipher_request *req) {struct scatterlist *sg;int err;
drivers/dma/Kconfig +1 -1
@@ -143,7 +143,7 @@ config DMA_JZ4740 config DMA_JZ4780 tristate "JZ4780 DMA support" - depends on MACH_JZ4780 || COMPILE_TEST + depends on MIPS || COMPILE_TEST select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help
drivers/dma/dma-jz4780.c +1 -1
@@ -580,7 +580,7 @@ static enum dma_status jz4780_dma_tx_status(struct dma_chan *chan, to_jz4780_dma_desc(vdesc), 0); }else if (cookie == jzchan->desc->vdesc.tx.cookie) { txstate->residue =jz4780_dma_desc_residue (jzchan, jzchan->desc, - (jzchan->curr_hwdesc +1 ) % jzchan->desc->count); + jzchan->curr_hwdesc +1 ); }else txstate->residue =0 ;
drivers/edac/sb_edac.c +35 -33
93 lines not on this page · raw message
drivers/extcon/extcon-intel-cht-wc.c +1 -1
@@ -155,7 +155,7 @@ static int cht_wc_extcon_get_charger(struct cht_wc_extcon_data *ext,dev_warn (ext->dev,"Unhandled charger type %d, defaulting to SDP\n" , ret); -/* Fall through, treat as SDP */ +return EXTCON_CHG_USB_SDP ;case CHT_WC_USBSRC_TYPE_SDP :case CHT_WC_USBSRC_TYPE_FLOAT_DP_DN :case CHT_WC_USBSRC_TYPE_OTHER :
drivers/firmware/dell_rbu.c +8 -0
@@ -45,6 +45,7 @@#include <linux/moduleparam.h> #include <linux/firmware.h> #include <linux/dma-mapping.h> +#include <asm/set_memory.h> MODULE_AUTHOR ("Abhay Salunke <[email protected]>" );MODULE_DESCRIPTION ("Driver for updating BIOS image on DELL systems" );
@@ -181,6 +182,11 @@ static int create_packet(void *data, size_t length) packet_data_temp_buf =NULL ; } } +/* +* set to uncachable or it may never get written back before reboot +*/ +set_memory_uc ((unsigned long )packet_data_temp_buf,1 << ordernum); +spin_lock (&rbu_data.lock); newpacket->data = packet_data_temp_buf;
@@ -349,6 +355,8 @@ static void packet_empty_list(void)* to make sure there are no stale RBU packets left in memory */ memset (newpacket->data,0 , rbu_data.packetsize); +set_memory_wb ((unsigned long )newpacket->data, +1 << newpacket->ordernum);free_pages ((unsigned long ) newpacket->data, newpacket->ordernum);kfree (newpacket);
drivers/hv/hv.c +12 -3
@@ -148,6 +148,17 @@ static void hv_init_clockevent_device(struct clock_event_device *dev, int cpu)int hv_synic_alloc (void ) {int cpu; +struct hv_per_cpu_context *hv_cpu; + +/* +* First, zero all per-cpu memory areas so hv_synic_free() can +* detect what memory has been allocated and cleanup properly +* after any failures. +*/ +for_each_present_cpu (cpu) { + hv_cpu =per_cpu_ptr (hv_context.cpu_context, cpu); +memset (hv_cpu,0 ,sizeof (*hv_cpu)); + } hv_context.hv_numa_map =kzalloc (sizeof (struct cpumask ) * nr_node_ids,GFP_ATOMIC );
@@ -157,10 +168,8 @@ int hv_synic_alloc(void) }for_each_present_cpu (cpu) { -struct hv_per_cpu_context *hv_cpu - =per_cpu_ptr (hv_context.cpu_context, cpu); + hv_cpu =per_cpu_ptr (hv_context.cpu_context, cpu); -memset (hv_cpu,0 ,sizeof (*hv_cpu));tasklet_init (&hv_cpu->msg_dpc, vmbus_on_msg_dpc, (unsigned long ) hv_cpu);
drivers/hwtracing/coresight/coresight-etm-perf.c +43 -16
167 lines not on this page · raw message
drivers/hwtracing/coresight/coresight-etm4x.c +20 -20
@@ -35,6 +35,7 @@#include <linux/pm_runtime.h> #include <asm/sections.h> #include <asm/local.h> +#include <asm/virt.h> #include "coresight-etm4x.h" #include "coresight-etm-perf.h"
@@ -623,7 +624,7 @@ static void etm4_set_default_config(struct etmv4_config *config) config->vinst_ctrl |=BIT (0 ); } -static u64 etm4_get_access_type (struct etmv4_config *config) +static u64 etm4_get_ns_access_type (struct etmv4_config *config) {u64 access_type =0 ;
@@ -634,17 +635,26 @@ static u64 etm4_get_access_type(struct etmv4_config *config)* Bit[13] Exception level 1 - OS * Bit[14] Exception level 2 - Hypervisor * Bit[15] Never implemented -* -* Always stay away from hypervisor mode. */ - access_type =ETM_EXLEVEL_NS_HYP ; - -if (config->mode &ETM_MODE_EXCL_KERN ) - access_type |=ETM_EXLEVEL_NS_OS ; +if (!is_kernel_in_hyp_mode ()) { +/* Stay away from hypervisor mode for non-VHE */ + access_type =ETM_EXLEVEL_NS_HYP ; +if (config->mode &ETM_MODE_EXCL_KERN ) + access_type |=ETM_EXLEVEL_NS_OS ; + }else if (config->mode &ETM_MODE_EXCL_KERN ) { + access_type =ETM_EXLEVEL_NS_HYP ; + }if (config->mode &ETM_MODE_EXCL_USER ) access_type |=ETM_EXLEVEL_NS_APP ; +return access_type; +} + +static u64 etm4_get_access_type (struct etmv4_config *config) +{ +u64 access_type =etm4_get_ns_access_type (config); +/* * EXLEVEL_S, bits[11:8], don't trace anything happening * in secure state.
@@ -898,20 +908,10 @@ void etm4_config_trace_mode(struct etmv4_config *config) addr_acc = config->addr_acc[ETM_DEFAULT_ADDR_COMP ];/* clear default config */ - addr_acc &= ~(ETM_EXLEVEL_NS_APP |ETM_EXLEVEL_NS_OS ); + addr_acc &= ~(ETM_EXLEVEL_NS_APP |ETM_EXLEVEL_NS_OS | +ETM_EXLEVEL_NS_HYP ); -/* -* EXLEVEL_NS, bits[15:12] -* The Exception levels are: -* Bit[12] Exception level 0 - Application -* Bit[13] Exception level 1 - OS -* Bit[14] Exception level 2 - Hypervisor -* Bit[15] Never implemented -*/ -if (mode &ETM_MODE_EXCL_KERN ) - addr_acc |=ETM_EXLEVEL_NS_OS ; -else - addr_acc |=ETM_EXLEVEL_NS_APP ; + addr_acc |=etm4_get_ns_access_type (config); config->addr_acc[ETM_DEFAULT_ADDR_COMP ] = addr_acc; config->addr_acc[ETM_DEFAULT_ADDR_COMP +1 ] = addr_acc;
drivers/hwtracing/coresight/coresight-tmc-etf.c +2 -2
@@ -442,10 +442,10 @@ static void tmc_update_etf_buffer(struct coresight_device *csdev,case TMC_MEM_INTF_WIDTH_32BITS :case TMC_MEM_INTF_WIDTH_64BITS :case TMC_MEM_INTF_WIDTH_128BITS : - mask =GENMASK (31 ,5 ); + mask =GENMASK (31 ,4 );break ;case TMC_MEM_INTF_WIDTH_256BITS : - mask =GENMASK (31 ,6 ); + mask =GENMASK (31 ,5 );break ; }
drivers/hwtracing/coresight/coresight.c +15 -7
@@ -140,12 +140,14 @@ static int coresight_enable_sink(struct coresight_device *csdev, u32 mode) {int ret; -if (!csdev->enable) { -if (sink_ops (csdev)->enable) { - ret =sink_ops (csdev)->enable (csdev, mode); -if (ret) -return ret; - } +/* +* We need to make sure the "new" session is compatible with the +* existing "mode" of operation. +*/ +if (sink_ops (csdev)->enable) { + ret =sink_ops (csdev)->enable (csdev, mode); +if (ret) +return ret; csdev->enable = true; }
@@ -347,8 +349,14 @@ int coresight_enable_path(struct list_head *path, u32 mode)switch (type) {case CORESIGHT_DEV_TYPE_SINK : ret =coresight_enable_sink (csdev, mode); +/* +* Sink is the first component turned on. If we +* failed to enable the sink, there are no components +* that need disabling. Disabling the path here +* would mean we could disrupt an existing session. +*/ if (ret) - goto err; + goto out;break ;case CORESIGHT_DEV_TYPE_SOURCE :/* sources are enabled from either sysFS or Perf */
drivers/i2c/busses/i2c-aspeed.c +45 -20
129 lines not on this page · raw message
drivers/i2c/i2c-core-acpi.c +27 -1
@@ -43,6 +43,7 @@ struct i2c_acpi_lookup {int index;u32 speed;u32 min_speed; +u32 force_speed; };static int i2c_acpi_fill_info (struct acpi_resource *ares,void *data)
@@ -240,6 +241,19 @@ i2c_acpi_match_device(const struct acpi_device_id *matches,return acpi_match_device (matches, &client->dev); } +static const struct acpi_device_id i2c_acpi_force_400khz_device_ids[] = { +/* +* These Silead touchscreen controllers only work at 400KHz, for +* some reason they do not work at 100KHz. On some devices the ACPI +* tables list another device at their bus as only being capable +* of 100KHz, testing has shown that these other devices work fine +* at 400KHz (as can be expected of any recent i2c hw) so we force +* the speed of the bus to 400 KHz if a Silead device is present. +*/ + {"MSSL1680" ,0 }, + {} +}; +static acpi_status i2c_acpi_lookup_speed (acpi_handle handle,u32 level,void *data,void **return_value) {
@@ -258,6 +272,9 @@ static acpi_status i2c_acpi_lookup_speed(acpi_handle handle, u32 level,if (lookup->speed <= lookup->min_speed) lookup->min_speed = lookup->speed; +if (acpi_match_device_ids (adev, i2c_acpi_force_400khz_device_ids) ==0 ) + lookup->force_speed =400000 ; +return AE_OK ; }
@@ -295,7 +312,16 @@ u32 i2c_acpi_find_bus_speed(struct device *dev)return 0 ; } -return lookup.min_speed !=UINT_MAX ? lookup.min_speed :0 ; +if (lookup.force_speed) { +if (lookup.force_speed != lookup.min_speed) +dev_warn (dev,FW_BUG "DSDT uses known not-working I2C bus speed %d, forcing it to %d\n" , + lookup.min_speed, lookup.force_speed); +return lookup.force_speed; + }else if (lookup.min_speed !=UINT_MAX ) { +return lookup.min_speed; + }else { +return 0 ; + } }EXPORT_SYMBOL_GPL (i2c_acpi_find_bus_speed);
drivers/iio/adc/max9611.c +1 -1
@@ -289,7 +289,7 @@ static int max9611_read_csa_voltage(struct max9611_dev *max9611,return ret;if (*adc_raw >0 ) { - *csa_gain = gain_selectors[i]; + *csa_gain = (enum max9611_csa_gain )gain_selectors[i];return 0 ; } }
drivers/iio/dac/mcp4922.c +8 -3
@@ -94,17 +94,22 @@ static int mcp4922_write_raw(struct iio_dev *indio_dev, long mask) {struct mcp4922_state *state =iio_priv (indio_dev); +int ret;if (val2 !=0 )return -EINVAL ;switch (mask) {case IIO_CHAN_INFO_RAW : -if (val >GENMASK (chan->scan_type.realbits-1 ,0 )) +if (val <0 || val >GENMASK (chan->scan_type.realbits -1 ,0 ))return -EINVAL ; val <<= chan->scan_type.shift; - state->value[chan->channel] = val; -return mcp4922_spi_write (state, chan->channel, val); + + ret =mcp4922_spi_write (state, chan->channel, val); +if (!ret) + state->value[chan->channel] = val; +return ret; +default :return -EINVAL ; }
drivers/infiniband/core/device.c +1 -1
@@ -599,8 +599,8 @@ void ib_unregister_device(struct ib_device *device) }up_read (&lists_rwsem); -ib_device_unregister_rdmacg (device);ib_device_unregister_sysfs (device); +ib_device_unregister_rdmacg (device);mutex_unlock (&device_mutex);
drivers/infiniband/core/mad.c +37 -35
138 lines not on this page · raw message
drivers/infiniband/hw/hfi1/pcie.c +3 -1
@@ -327,7 +327,9 @@ int pcie_speeds(struct hfi1_devdata *dd)/* * bus->max_bus_speed is set from the bridge's linkcap Max Link Speed */ -if (parent && dd->pcidev->bus->max_bus_speed !=PCIE_SPEED_8_0GT ) { +if (parent && + (dd->pcidev->bus->max_bus_speed ==PCIE_SPEED_2_5GT || + dd->pcidev->bus->max_bus_speed ==PCIE_SPEED_5_0GT )) {dd_dev_info (dd,"Parent PCIe bridge does not support Gen3\n" ); dd->link_gen3_capable =0 ; }
drivers/infiniband/hw/hfi1/user_sdma.c +3 -1
@@ -856,8 +856,10 @@ static int user_sdma_send_pkts(struct user_sdma_request *req, unsigned maxpkts) changes =set_txreq_header_ahg (req, tx, datalen); -if (changes <0 ) +if (changes <0 ) { + ret = changes; goto free_tx; + } } }else { ret = sdma_txinit(&tx->txreq, 0, sizeof(req->hdr) +
drivers/infiniband/hw/i40iw/i40iw_cm.c +1 -1
@@ -1667,7 +1667,7 @@ static enum i40iw_status_code i40iw_add_mqh_6(struct i40iw_device *iwdev,unsigned long flags;rtnl_lock (); -for_each_netdev_rcu (&init_net, ip_dev) { +for_each_netdev (&init_net, ip_dev) {if ((((rdma_vlan_dev_vlan_id (ip_dev) <I40IW_NO_VLAN ) && (rdma_vlan_dev_real_dev (ip_dev) == iwdev->netdev)) || (ip_dev == iwdev->netdev)) && (ip_dev->flags &IFF_UP )) {
drivers/infiniband/sw/rxe/rxe_comp.c +16 -5
@@ -253,6 +253,17 @@ static inline enum comp_state check_ack(struct rxe_qp *qp,case IB_OPCODE_RC_RDMA_READ_RESPONSE_MIDDLE :if (pkt->opcode !=IB_OPCODE_RC_RDMA_READ_RESPONSE_MIDDLE && pkt->opcode !=IB_OPCODE_RC_RDMA_READ_RESPONSE_LAST ) { +/* read retries of partial data may restart from +* read response first or response only. +*/ +if ((pkt->psn == wqe->first_psn && + pkt->opcode == +IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST ) || + (wqe->first_psn == wqe->last_psn && + pkt->opcode == +IB_OPCODE_RC_RDMA_READ_RESPONSE_ONLY )) +break ; +return COMPST_ERROR ; }break ;
@@ -501,11 +512,11 @@ static inline enum comp_state complete_wqe(struct rxe_qp *qp, struct rxe_pkt_info *pkt, struct rxe_send_wqe *wqe) { - qp->comp.opcode = -1; - -if (pkt) { -if (psn_compare (pkt->psn, qp->comp.psn) >=0 ) - qp->comp.psn = (pkt->psn +1 ) &BTH_PSN_MASK ; +if (pkt && wqe->state == wqe_state_pending) { +if (psn_compare (wqe->last_psn, qp->comp.psn) >=0 ) { + qp->comp.psn = (wqe->last_psn +1 ) &BTH_PSN_MASK ; + qp->comp.opcode =-1 ; + }if (qp->req.wait_psn) { qp->req.wait_psn =0 ;
drivers/infiniband/sw/rxe/rxe_req.c +9 -6
@@ -73,9 +73,6 @@ static void req_retry(struct rxe_qp *qp)int npsn;int first =1 ; - wqe =queue_head (qp->sq.queue); - npsn = (qp->comp.psn - wqe->first_psn) &BTH_PSN_MASK ; - qp->req.wqe_index =consumer_index (qp->sq.queue); qp->req.psn = qp->comp.psn; qp->req.opcode =-1 ;
@@ -107,11 +104,17 @@ static void req_retry(struct rxe_qp *qp)if (first) { first =0 ; -if (mask &WR_WRITE_OR_SEND_MASK ) +if (mask &WR_WRITE_OR_SEND_MASK ) { + npsn = (qp->comp.psn - wqe->first_psn) & +BTH_PSN_MASK ;retry_first_write_send (qp, wqe, mask, npsn); + } -if (mask &WR_READ_MASK ) +if (mask &WR_READ_MASK ) { + npsn = (wqe->dma.length - wqe->dma.resid) / + qp->mtu; wqe->iova += npsn * qp->mtu; + } } wqe->state = wqe_state_posted;
@@ -435,7 +438,7 @@ static struct sk_buff *init_req_packet(struct rxe_qp *qp,if (pkt->mask &RXE_RETH_MASK ) {reth_set_rkey (pkt, ibwr->wr.rdma.rkey);reth_set_va (pkt, wqe->iova); -reth_set_len (pkt, wqe->dma.length); +reth_set_len (pkt, wqe->dma.resid); }if (pkt->mask &RXE_IMMDT_MASK )
drivers/infiniband/ulp/ipoib/ipoib_main.c +2 -1
@@ -249,7 +249,8 @@ static int ipoib_change_mtu(struct net_device *dev, int new_mtu)return 0 ; } -if (new_mtu >IPOIB_UD_MTU (priv->max_ib_mtu)) +if (new_mtu < (ETH_MIN_MTU +IPOIB_ENCAP_LEN ) || + new_mtu >IPOIB_UD_MTU (priv->max_ib_mtu))return -EINVAL ; priv->admin_mtu = new_mtu;
drivers/infiniband/ulp/iser/iser_initiator.c +13 -5
@@ -592,13 +592,19 @@ void iser_login_rsp(struct ib_cq *cq, struct ib_wc *wc) ib_conn->post_recv_buf_count--; } -static inline void +static inline int iser_inv_desc (struct iser_fr_desc *desc,u32 rkey) { -if (likely (rkey == desc->rsc.mr->rkey)) +if (likely (rkey == desc->rsc.mr->rkey)) { desc->rsc.mr_valid =0 ; -else if (likely (rkey == desc->pi_ctx->sig_mr->rkey)) + }else if (likely (desc->pi_ctx && rkey == desc->pi_ctx->sig_mr->rkey)) { desc->pi_ctx->sig_mr_valid =0 ; + }else { +iser_err ("Bogus remote invalidation for rkey %#x\n" , rkey); +return -EINVAL ; + } + +return 0 ; } static int
@@ -626,12 +632,14 @@ iser_check_remote_inv(struct iser_conn *iser_conn,if (iser_task->dir[ISER_DIR_IN ]) { desc = iser_task->rdma_reg[ISER_DIR_IN ].mem_h; -iser_inv_desc (desc, rkey); +if (unlikely (iser_inv_desc (desc, rkey))) +return -EINVAL ; }if (iser_task->dir[ISER_DIR_OUT ]) { desc = iser_task->rdma_reg[ISER_DIR_OUT ].mem_h; -iser_inv_desc (desc, rkey); +if (unlikely (iser_inv_desc (desc, rkey))) +return -EINVAL ; } }else {iser_err ("failed to get task for itt=%d\n" , hdr->itt);
drivers/input/ff-memless.c +9 -0
@@ -501,6 +501,15 @@ static void ml_ff_destroy(struct ff_device *ff) {struct ml_device *ml = ff->private; +/* +* Even though we stop all playing effects when tearing down +* an input device (via input_device_flush() that calls into +* input_ff_flush() that stops and erases all effects), we +* do not actually stop the timer, and therefore we should +* do it here. +*/ +del_timer_sync (&ml->timer); +kfree (ml->private); }
drivers/input/rmi4/rmi_driver.c +1 -5
@@ -165,7 +165,7 @@ static int rmi_process_interrupt_requests(struct rmi_device *rmi_dev) }mutex_lock (&data->irq_mutex); -bitmap_and (data->irq_status, data->irq_status, data->fn_irq_bits, +bitmap_and (data->irq_status, data->irq_status, data->current_irq_mask, data->irq_count);/* * At this point, irq_status has all bits that are set in the
@@ -412,8 +412,6 @@ static int rmi_driver_set_irq_bits(struct rmi_device *rmi_dev,bitmap_copy (data->current_irq_mask, data->new_irq_mask, data->num_of_irq_regs); -bitmap_or (data->fn_irq_bits, data->fn_irq_bits, mask, data->irq_count); - error_unlock:mutex_unlock (&data->irq_mutex);return error;
@@ -427,8 +425,6 @@ static int rmi_driver_clear_irq_bits(struct rmi_device *rmi_dev,struct device *dev = &rmi_dev->dev;mutex_lock (&data->irq_mutex); -bitmap_andnot (data->fn_irq_bits, - data->fn_irq_bits, mask, data->irq_count);bitmap_andnot (data->new_irq_mask, data->current_irq_mask, mask, data->irq_count);
drivers/input/rmi4/rmi_f11.c +2 -2
@@ -1295,8 +1295,8 @@ static int rmi_f11_attention(struct rmi_function *fn, unsigned long *irq_bits) valid_bytes = f11->sensor.attn_size;memcpy (f11->sensor.data_pkt, drvdata->attn_data.data, valid_bytes); - drvdata->attn_data.data += f11->sensor.attn_size; - drvdata->attn_data.size -= f11->sensor.attn_size; + drvdata->attn_data.data += valid_bytes; + drvdata->attn_data.size -= valid_bytes; }else { error = rmi_read_block(rmi_dev, data_base_addr, f11->sensor.data_pkt,
drivers/input/rmi4/rmi_f12.c +28 -4
@@ -58,6 +58,9 @@ struct f12_data {const struct rmi_register_desc_item *data15;u16 data15_offset; + +unsigned long *abs_mask; +unsigned long *rel_mask; };static int rmi_f12_read_sensor_tuning (struct f12_data *f12)
@@ -214,8 +217,8 @@ static int rmi_f12_attention(struct rmi_function *fn, valid_bytes = sensor->attn_size;memcpy (sensor->data_pkt, drvdata->attn_data.data, valid_bytes); - drvdata->attn_data.data += sensor->attn_size; - drvdata->attn_data.size -= sensor->attn_size; + drvdata->attn_data.data += valid_bytes; + drvdata->attn_data.size -= valid_bytes; }else { retval =rmi_read_block (rmi_dev, f12->data_addr, sensor->data_pkt, sensor->pkt_size);
@@ -296,9 +299,18 @@ static int rmi_f12_write_control_regs(struct rmi_function *fn)static int rmi_f12_config (struct rmi_function *fn) {struct rmi_driver *drv = fn->rmi_dev->driver; +struct f12_data *f12 =dev_get_drvdata (&fn->dev); +struct rmi_2d_sensor *sensor;int ret; - drv->set_irq_bits (fn->rmi_dev, fn->irq_mask); + sensor = &f12->sensor; + +if (!sensor->report_abs) + drv->clear_irq_bits (fn->rmi_dev, f12->abs_mask); +else + drv->set_irq_bits (fn->rmi_dev, f12->abs_mask); + + drv->clear_irq_bits (fn->rmi_dev, f12->rel_mask); ret =rmi_f12_write_control_regs (fn);if (ret)
@@ -320,9 +332,12 @@ static int rmi_f12_probe(struct rmi_function *fn)struct rmi_device_platform_data *pdata =rmi_get_platform_data (rmi_dev);struct rmi_driver_data *drvdata =dev_get_drvdata (&rmi_dev->dev);u16 data_offset =0 ; +int mask_size;rmi_dbg (RMI_DEBUG_FN , &fn->dev,"%s\n" , __func__); + mask_size =BITS_TO_LONGS (drvdata->irq_count) *sizeof (unsigned long ); + ret =rmi_read (fn->rmi_dev, query_addr, &buf);if (ret <0 ) { dev_err(&fn->dev, "Failed to read general info register: %d\n",
@@ -337,10 +352,19 @@ static int rmi_f12_probe(struct rmi_function *fn)return -ENODEV ; } - f12 =devm_kzalloc (&fn->dev,sizeof (struct f12_data ),GFP_KERNEL ); + f12 =devm_kzalloc (&fn->dev,sizeof (struct f12_data ) + mask_size *2 , +GFP_KERNEL );if (!f12)return -ENOMEM ; + f12->abs_mask = (unsigned long *)((char *)f12 + +sizeof (struct f12_data )); + f12->rel_mask = (unsigned long *)((char *)f12 + +sizeof (struct f12_data ) + mask_size); + +set_bit (fn->irq_pos, f12->abs_mask); +set_bit (fn->irq_pos +1 , f12->rel_mask); + f12->has_dribble = !!(buf &BIT (3 ));if (fn->dev.of_node) {
drivers/input/rmi4/rmi_f54.c +3 -2
@@ -362,7 +362,7 @@ static const struct vb2_ops rmi_f54_queue_ops = {static const struct vb2_queue rmi_f54_queue = { .type =V4L2_BUF_TYPE_VIDEO_CAPTURE , .io_modes =VB2_MMAP |VB2_USERPTR |VB2_DMABUF |VB2_READ , - .buf_struct_size =sizeof (struct vb2_buffer ), + .buf_struct_size =sizeof (struct vb2_v4l2_buffer ), .ops = &rmi_f54_queue_ops, .mem_ops = &vb2_vmalloc_memops, .timestamp_flags =V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC ,
@@ -619,7 +619,7 @@ static int rmi_f54_config(struct rmi_function *fn) {struct rmi_driver *drv = fn->rmi_dev->driver; - drv->set_irq_bits (fn->rmi_dev, fn->irq_mask); + drv->clear_irq_bits (fn->rmi_dev, fn->irq_mask);return 0 ; }
@@ -747,6 +747,7 @@ static void rmi_f54_remove(struct rmi_function *fn)video_unregister_device (&f54->vdev);v4l2_device_unregister (&f54->v4l2); +destroy_workqueue (f54->workqueue); }struct rmi_function_handler rmi_f54_handler = {
drivers/media/pci/ivtv/ivtv-yuv.c +1 -1
@@ -935,7 +935,7 @@ static void ivtv_yuv_init(struct ivtv *itv) }/* We need a buffer for blanking when Y plane is offset - non-fatal if we can't get one */ - yi->blanking_ptr =kzalloc (720 *16 ,GFP_KERNEL |__GFP_NOWARN); + yi->blanking_ptr =kzalloc (720 *16 ,GFP_ATOMIC |__GFP_NOWARN);if (yi->blanking_ptr) { yi->blanking_dmaptr =pci_map_single (itv->pdev, yi->blanking_ptr,720 *16 ,PCI_DMA_TODEVICE ); }else {
drivers/media/pci/meye/meye.c +1 -1
@@ -1460,7 +1460,7 @@ static int meye_mmap(struct file *file, struct vm_area_struct *vma)unsigned long page, pos;mutex_lock (&meye.lock); -if (size > gbuffers * gbufsize) { +if (size > gbuffers * gbufsize || offset > gbuffers * gbufsize - size) {mutex_unlock (&meye.lock);return -EINVAL ; }
drivers/media/platform/davinci/vpbe_display.c +1 -1
@@ -518,7 +518,7 @@ vpbe_disp_calculate_scale_factor(struct vpbe_display *disp_dev,else if (v_scale ==4 ) layer_info->v_zoom =ZOOM_X4 ;if (v_exp) - layer_info->h_exp =V_EXP_6_OVER_5 ; + layer_info->v_exp =V_EXP_6_OVER_5 ; }else {/* no scaling, only cropping. Set display area to crop area */ cfg->ysize = expected_ysize;
drivers/media/usb/au0828/au0828-core.c +2 -2
@@ -632,7 +632,7 @@ static int au0828_usb_probe(struct usb_interface *interface,/* Analog TV */ retval =au0828_analog_register (dev, interface);if (retval) { -pr_err ("%s() au0282_dev_register failed to register on V4L2\n" , +pr_err ("%s() au0828_analog_register failed to register on V4L2\n" , __func__);mutex_unlock (&dev->lock); goto done;
@@ -641,7 +641,7 @@ static int au0828_usb_probe(struct usb_interface *interface,/* Digital TV */ retval =au0828_dvb_register (dev);if (retval) -pr_err ("%s() au0282_dev_register failed\n" , +pr_err ("%s() au0828_dvb_register failed\n" , __func__);/* Remote controller */
drivers/misc/genwqe/card_utils.c +7 -6
@@ -298,7 +298,7 @@ static int genwqe_sgl_size(int num_pages)int genwqe_alloc_sync_sgl (struct genwqe_dev *cd,struct genwqe_sgl *sgl,void __user *user_addr,size_t user_size) { -int rc; +int ret = -ENOMEM ;struct pci_dev *pci_dev = cd->pci_dev; sgl->fpage_offs =offset_in_page ((unsigned long )user_addr);
@@ -317,7 +317,7 @@ int genwqe_alloc_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl,if (get_order (sgl->sgl_size) >MAX_ORDER ) {dev_err (&pci_dev->dev,"[%s] err: too much memory requested!\n" , __func__); -return -ENOMEM ; +return ret; } sgl->sgl = __genwqe_alloc_consistent(cd, sgl->sgl_size,
@@ -325,7 +325,7 @@ int genwqe_alloc_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl,if (sgl->sgl ==NULL ) {dev_err (&pci_dev->dev,"[%s] err: no memory available!\n" , __func__); -return -ENOMEM ; +return ret; }/* Only use buffering on incomplete pages */
@@ -338,7 +338,7 @@ int genwqe_alloc_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl,/* Sync with user memory */ if (copy_from_user (sgl->fpage + sgl->fpage_offs, user_addr, sgl->fpage_size)) { - rc = -EFAULT ; + ret = -EFAULT ; goto err_out; } }
@@ -351,7 +351,7 @@ int genwqe_alloc_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl,/* Sync with user memory */ if (copy_from_user (sgl->lpage, user_addr + user_size - sgl->lpage_size, sgl->lpage_size)) { - rc = -EFAULT ; + ret = -EFAULT ; goto err_out2; } }
@@ -373,7 +373,8 @@ int genwqe_alloc_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, sgl->sgl =NULL ; sgl->sgl_dma_addr =0 ; sgl->sgl_size =0 ; -return -ENOMEM ; + +return ret; } int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl,
drivers/misc/kgdbts.c +6 -10
@@ -981,6 +981,12 @@ static void kgdbts_run_tests(void)int nmi_sleep =0 ;int i; + verbose =0 ; +if (strstr (config,"V1" )) + verbose =1 ; +if (strstr (config,"V2" )) + verbose =2 ; + ptr =strchr (config,'F' );if (ptr) fork_test =simple_strtol (ptr +1 ,NULL ,10 );
@@ -1064,13 +1070,6 @@ static int kgdbts_option_setup(char *opt)return -ENOSPC ; }strcpy (config, opt); - - verbose =0 ; -if (strstr (config,"V1" )) - verbose =1 ; -if (strstr (config,"V2" )) - verbose =2 ; -return 0 ; }
@@ -1082,9 +1081,6 @@ static int configure_kgdbts(void)if (!strlen (config) ||isspace (config[0 ])) goto noconfig; - err =kgdbts_option_setup (config); -if (err) - goto noconfig; final_ack =0 ;run_plant_and_detach_test (1 );
drivers/mmc/host/sdhci-of-at91.c +1 -1
@@ -365,7 +365,7 @@ static int sdhci_at91_probe(struct platform_device *pdev)pm_runtime_use_autosuspend (&pdev->dev);/* HS200 is broken at this moment */ - host->quirks2 =SDHCI_QUIRK2_BROKEN_HS200 ; + host->quirks2 |=SDHCI_QUIRK2_BROKEN_HS200 ; ret =sdhci_add_host (host);if (ret)
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); +free_netdev (sl->dev); err_exit:rtnl_unlock ();
drivers/net/ethernet/amd/am79c961a.c +1 -1
@@ -440,7 +440,7 @@ static void am79c961_timeout(struct net_device *dev)/* * Transmit a packet */ -static int +static netdev_tx_t am79c961_sendpacket (struct sk_buff *skb,struct net_device *dev) {struct dev_priv *priv =netdev_priv (dev);
drivers/net/ethernet/amd/atarilance.c +4 -2
@@ -339,7 +339,8 @@ static unsigned long lance_probe1( struct net_device *dev, struct lance_addr *init_rec );static int lance_open (struct net_device *dev );static void lance_init_ring (struct net_device *dev ); -static int lance_start_xmit (struct sk_buff *skb,struct net_device *dev ); +static netdev_tx_t lance_start_xmit (struct sk_buff *skb, +struct net_device *dev);static irqreturn_t lance_interrupt (int irq,void *dev_id );static int lance_rx (struct net_device *dev );static int lance_close (struct net_device *dev );
@@ -769,7 +770,8 @@ static void lance_tx_timeout (struct net_device *dev)/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */ -static int lance_start_xmit (struct sk_buff *skb,struct net_device *dev ) +static netdev_tx_t +lance_start_xmit (struct sk_buff *skb,struct net_device *dev) {struct lance_private *lp =netdev_priv (dev);struct lance_ioreg *IO = lp->iobase;
drivers/net/ethernet/amd/declance.c +1 -1
@@ -893,7 +893,7 @@ static void lance_tx_timeout(struct net_device *dev)netif_wake_queue (dev); } -static int lance_start_xmit (struct sk_buff *skb,struct net_device *dev) +static netdev_tx_t lance_start_xmit (struct sk_buff *skb,struct net_device *dev) {struct lance_private *lp =netdev_priv (dev);volatile struct lance_regs *ll = lp->ll;
drivers/net/ethernet/amd/sun3lance.c +4 -2
@@ -236,7 +236,8 @@ struct lance_private {static int lance_probe (struct net_device *dev);static int lance_open (struct net_device *dev );static void lance_init_ring (struct net_device *dev ); -static int lance_start_xmit (struct sk_buff *skb,struct net_device *dev ); +static netdev_tx_t lance_start_xmit (struct sk_buff *skb, +struct net_device *dev);static irqreturn_t lance_interrupt (int irq,void *dev_id);static int lance_rx (struct net_device *dev );static int lance_close (struct net_device *dev );
@@ -511,7 +512,8 @@ static void lance_init_ring( struct net_device *dev ) } -static int lance_start_xmit (struct sk_buff *skb,struct net_device *dev ) +static netdev_tx_t +lance_start_xmit (struct sk_buff *skb,struct net_device *dev) {struct lance_private *lp =netdev_priv (dev);int entry, len;
drivers/net/ethernet/amd/sunlance.c +1 -1
@@ -1106,7 +1106,7 @@ static void lance_tx_timeout(struct net_device *dev)netif_wake_queue (dev); } -static int lance_start_xmit (struct sk_buff *skb,struct net_device *dev) +static netdev_tx_t lance_start_xmit (struct sk_buff *skb,struct net_device *dev) {struct lance_private *lp =netdev_priv (dev);int entry, skblen, len;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c +2 -2
@@ -1964,7 +1964,7 @@ static int xgbe_close(struct net_device *netdev)return 0 ; } -static int xgbe_xmit (struct sk_buff *skb,struct net_device *netdev) +static netdev_tx_t xgbe_xmit (struct sk_buff *skb,struct net_device *netdev) {struct xgbe_prv_data *pdata =netdev_priv (netdev);struct xgbe_hw_if *hw_if = &pdata->hw_if;
@@ -1973,7 +1973,7 @@ static int xgbe_xmit(struct sk_buff *skb, struct net_device *netdev)struct xgbe_ring *ring;struct xgbe_packet_data *packet;struct netdev_queue *txq; -int ret; +netdev_tx_t ret;DBGPR ("-->xgbe_xmit: skb->len = %d\n" , skb->len);
drivers/net/ethernet/broadcom/bcm63xx_enet.c +3 -2
@@ -571,12 +571,13 @@ static irqreturn_t bcm_enet_isr_dma(int irq, void *dev_id)/* * tx request callback */ -static int bcm_enet_start_xmit (struct sk_buff *skb,struct net_device *dev) +static netdev_tx_t +bcm_enet_start_xmit (struct sk_buff *skb,struct net_device *dev) {struct bcm_enet_priv *priv;struct bcm_enet_desc *desc;u32 len_stat; -int ret; +netdev_tx_t ret; priv =netdev_priv (dev);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +10 -0
@@ -3540,6 +3540,16 @@ static void bnx2x_drv_info_iscsi_stat(struct bnx2x *bp)*/ static void bnx2x_config_mf_bw (struct bnx2x *bp) { +/* Workaround for MFW bug. +* MFW is not supposed to generate BW attention in +* single function mode. +*/ +if (!IS_MF (bp)) { +DP (BNX2X_MSG_MCP , +"Ignoring MF BW config in single function mode\n" ); +return ; + } +if (bp->link_vars.link_up) {bnx2x_cmng_fns_init (bp, true,CMNG_FNS_MINMAX );bnx2x_link_sync_notify (bp);
drivers/net/ethernet/broadcom/sb1250-mac.c +2 -2
@@ -299,7 +299,7 @@ static enum sbmac_state sbmac_set_channel_state(struct sbmac_softc *,static void sbmac_promiscuous_mode (struct sbmac_softc *sc,int onoff);static uint64_t sbmac_addr2reg (unsigned char *ptr);static irqreturn_t sbmac_intr (int irq,void *dev_instance); -static int sbmac_start_tx (struct sk_buff *skb,struct net_device *dev); +static netdev_tx_t sbmac_start_tx (struct sk_buff *skb,struct net_device *dev);static void sbmac_setmulti (struct sbmac_softc *sc);static int sbmac_init (struct platform_device *pldev,long long base);static int sbmac_set_speed (struct sbmac_softc *s,enum sbmac_speed speed);
@@ -2028,7 +2028,7 @@ static irqreturn_t sbmac_intr(int irq,void *dev_instance)* Return value: * nothing ********************************************************************* */ -static int sbmac_start_tx (struct sk_buff *skb,struct net_device *dev) +static netdev_tx_t sbmac_start_tx (struct sk_buff *skb,struct net_device *dev) {struct sbmac_softc *sc =netdev_priv (dev);unsigned long flags;
drivers/net/ethernet/cavium/liquidio/octeon_device.c +3 -2
@@ -1444,8 +1444,9 @@ void lio_enable_irq(struct octeon_droq *droq, struct octeon_instr_queue *iq) }if (iq) {spin_lock_bh (&iq->lock); -writel (iq->pkt_in_done, iq->inst_cnt_reg); - iq->pkt_in_done =0 ; +writel (iq->pkts_processed, iq->inst_cnt_reg); + iq->pkt_in_done -= iq->pkts_processed; + iq->pkts_processed =0 ;/* this write needs to be flushed before we release the lock */ mmiowb ();spin_unlock_bh (&iq->lock);
drivers/net/ethernet/cavium/liquidio/octeon_iq.h +2 -0
@@ -84,6 +84,8 @@ struct octeon_instr_queue {u32 pkt_in_done; +u32 pkts_processed; +/** A spinlock to protect access to the input ring.*/ spinlock_t iq_flush_running_lock;
drivers/net/ethernet/cavium/liquidio/request_manager.c +2 -0
@@ -122,6 +122,7 @@ int octeon_init_instr_queue(struct octeon_device *oct, iq->do_auto_flush =1 ; iq->db_timeout = (u32 )conf->db_timeout;atomic_set (&iq->instr_pending,0 ); + iq->pkts_processed =0 ;/* Initialize the spinlock for this instruction queue */ spin_lock_init (&iq->lock);
@@ -474,6 +475,7 @@ octeon_flush_iq(struct octeon_device *oct, struct octeon_instr_queue *iq,lio_process_iq_request_list (oct, iq,0 );if (inst_processed) { + iq->pkts_processed += inst_processed;atomic_sub (inst_processed, &iq->instr_pending); iq->stats.instr_processed += inst_processed; }
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +1 -1
@@ -3750,7 +3750,7 @@ int t4_fwcache(struct adapter *adap, enum fw_params_param_dev_fwcache op) c.param[0 ].mnem =cpu_to_be32 (FW_PARAMS_MNEM_V (FW_PARAMS_MNEM_DEV ) |FW_PARAMS_PARAM_X_V (FW_PARAMS_PARAM_DEV_FWCACHE )); - c.param[0 ].val = (__force __be32 )op; + c.param[0 ].val =cpu_to_be32 (op);return t4_wr_mbox (adap, adap->mbox, &c,sizeof (c),NULL ); }
drivers/net/ethernet/faraday/ftgmac100.c +2 -2
@@ -707,8 +707,8 @@ static bool ftgmac100_prep_tx_csum(struct sk_buff *skb, u32 *csum_vlan)return skb_checksum_help (skb) ==0 ; } -static int ftgmac100_hard_start_xmit (struct sk_buff *skb, -struct net_device *netdev) +static netdev_tx_t ftgmac100_hard_start_xmit (struct sk_buff *skb, +struct net_device *netdev) {struct ftgmac100 *priv =netdev_priv (netdev);struct ftgmac100_txdes *txdes, *first;
drivers/net/ethernet/faraday/ftmac100.c +4 -3
@@ -632,8 +632,8 @@ static void ftmac100_tx_complete(struct ftmac100 *priv) ; } -static int ftmac100_xmit (struct ftmac100 *priv,struct sk_buff *skb, -dma_addr_t map) +static netdev_tx_t ftmac100_xmit (struct ftmac100 *priv,struct sk_buff *skb, +dma_addr_t map) {struct net_device *netdev = priv->netdev;struct ftmac100_txdes *txdes;
@@ -1013,7 +1013,8 @@ static int ftmac100_stop(struct net_device *netdev)return 0 ; } -static int ftmac100_hard_start_xmit (struct sk_buff *skb,struct net_device *netdev) +static netdev_tx_t +ftmac100_hard_start_xmit (struct sk_buff *skb,struct net_device *netdev) {struct ftmac100 *priv =netdev_priv (netdev);dma_addr_t map;
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +2 -1
@@ -2036,7 +2036,8 @@ static inline int dpaa_xmit(struct dpaa_priv *priv,return 0 ; } -static int dpaa_start_xmit (struct sk_buff *skb,struct net_device *net_dev) +static netdev_tx_t +dpaa_start_xmit (struct sk_buff *skb,struct net_device *net_dev) {const int queue_mapping =skb_get_queue_mapping (skb);bool nonlinear =skb_is_nonlinear (skb);
drivers/net/ethernet/freescale/fec_mpc52xx.c +2 -1
@@ -305,7 +305,8 @@ static int mpc52xx_fec_close(struct net_device *dev)* invariant will hold if you make sure that the netif_*_queue() * calls are done at the proper times. */ -static int mpc52xx_fec_start_xmit (struct sk_buff *skb,struct net_device *dev) +static netdev_tx_t +mpc52xx_fec_start_xmit (struct sk_buff *skb,struct net_device *dev) {struct mpc52xx_fec_priv *priv =netdev_priv (dev);struct bcom_fec_bd *bd;
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c +2 -1
@@ -481,7 +481,8 @@ static struct sk_buff *tx_skb_align_workaround(struct net_device *dev, }#endif -static int fs_enet_start_xmit (struct sk_buff *skb,struct net_device *dev) +static netdev_tx_t +fs_enet_start_xmit (struct sk_buff *skb,struct net_device *dev) {struct fs_enet_private *fep =netdev_priv (dev);cbd_t __iomem *bdp;
drivers/net/ethernet/freescale/gianfar.c +2 -2
@@ -112,7 +112,7 @@const char gfar_driver_version[] ="2.0" ;static int gfar_enet_open (struct net_device *dev); -static int gfar_start_xmit (struct sk_buff *skb,struct net_device *dev); +static netdev_tx_t gfar_start_xmit (struct sk_buff *skb,struct net_device *dev);static void gfar_reset_task (struct work_struct *work);static void gfar_timeout (struct net_device *dev);static int gfar_close (struct net_device *dev);
@@ -2334,7 +2334,7 @@ static inline bool gfar_csum_errata_76(struct gfar_private *priv,/* This is called by the kernel when a frame is ready for transmission. * It is pointed to by the dev->hard_start_xmit function pointer */ -static int gfar_start_xmit (struct sk_buff *skb,struct net_device *dev) +static netdev_tx_t gfar_start_xmit (struct sk_buff *skb,struct net_device *dev) {struct gfar_private *priv =netdev_priv (dev);struct gfar_priv_tx_q *tx_queue =NULL ;
drivers/net/ethernet/freescale/ucc_geth.c +2 -1
@@ -3085,7 +3085,8 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth)/* This is called by the kernel when a frame is ready for transmission. */ /* It is pointed to by the dev->hard_start_xmit function pointer */ -static int ucc_geth_start_xmit (struct sk_buff *skb,struct net_device *dev) +static netdev_tx_t +ucc_geth_start_xmit (struct sk_buff *skb,struct net_device *dev) {struct ucc_geth_private *ugeth =netdev_priv (dev);#ifdef CONFIG_UGETH_TX_ON_DEMAND
drivers/net/ethernet/hisilicon/hip04_eth.c +2 -1
@@ -424,7 +424,8 @@ static void hip04_start_tx_timer(struct hip04_priv *priv) ns, HRTIMER_MODE_REL); } -static int hip04_mac_start_xmit (struct sk_buff *skb,struct net_device *ndev) +static netdev_tx_t +hip04_mac_start_xmit (struct sk_buff *skb,struct net_device *ndev) {struct hip04_priv *priv =netdev_priv (ndev);struct net_device_stats *stats = &ndev->stats;
drivers/net/ethernet/hisilicon/hix5hd2_gmac.c +1 -1
@@ -736,7 +736,7 @@ static int hix5hd2_fill_sg_desc(struct hix5hd2_priv *priv,return 0 ; } -static int hix5hd2_net_xmit (struct sk_buff *skb,struct net_device *dev) +static netdev_tx_t hix5hd2_net_xmit (struct sk_buff *skb,struct net_device *dev) {struct hix5hd2_priv *priv =netdev_priv (dev);struct hix5hd2_desc *desc;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +1 -1
@@ -2179,7 +2179,7 @@ static int hclge_get_mac_phy_link(struct hclge_dev *hdev) mac_state =hclge_get_mac_link_status (hdev);if (hdev->hw.mac.phydev) { -if (!genphy_read_status (hdev->hw.mac.phydev)) +if (hdev->hw.mac.phydev->state ==PHY_RUNNING ) link_stat = mac_state & hdev->hw.mac.phydev->link;else
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c +1 -1
@@ -200,7 +200,7 @@ static int hclge_tm_qs_to_pri_map_cfg(struct hclge_dev *hdev, }static int hclge_tm_q_to_qs_map_cfg (struct hclge_dev *hdev, -u8 q_id,u16 qs_id) +u16 q_id,u16 qs_id) {struct hclge_nq_to_qs_link_cmd *map;struct hclge_desc desc;
drivers/net/ethernet/intel/i40e/i40e_main.c +8 -0
@@ -11885,6 +11885,7 @@ static void i40e_remove(struct pci_dev *pdev)mutex_destroy (&hw->aq.asq_mutex);/* Clear all dynamic memory lists of rings, q_vectors, and VSIs */ +rtnl_lock ();i40e_clear_interrupt_scheme (pf);for (i =0 ; i < pf->num_alloc_vsi; i++) {if (pf->vsi[i]) {
@@ -11893,6 +11894,7 @@ static void i40e_remove(struct pci_dev *pdev) pf->vsi[i] =NULL ; } } +rtnl_unlock ();for (i =0 ; i <I40E_MAX_VEB ; i++) {kfree (pf->veb[i]);
@@ -12086,7 +12088,13 @@ static void i40e_shutdown(struct pci_dev *pdev)wr32 (hw,I40E_PFPM_WUFC , (pf->wol_en ?I40E_PFPM_WUFC_MAG_MASK :0 )); +/* Since we're going to destroy queues during the +* i40e_clear_interrupt_scheme() we should hold the RTNL lock for this +* whole section +*/ +rtnl_lock ();i40e_clear_interrupt_scheme (pf); +rtnl_unlock ();if (system_state ==SYSTEM_POWER_OFF ) {pci_wake_from_d3 (pdev, pf->wol_en);
drivers/net/ethernet/intel/i40e/i40e_ptp.c +2 -1
@@ -704,7 +704,8 @@ static long i40e_ptp_create_clock(struct i40e_pf *pf)if (!IS_ERR_OR_NULL (pf->ptp_clock))return 0 ; -strncpy (pf->ptp_caps.name, i40e_driver_name,sizeof (pf->ptp_caps.name)); +strncpy (pf->ptp_caps.name, i40e_driver_name, +sizeof (pf->ptp_caps.name) -1 ); pf->ptp_caps.owner =THIS_MODULE ; pf->ptp_caps.max_adj =999999999 ; pf->ptp_caps.n_ext_ts =0 ;
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +10 -0
@@ -2177,6 +2177,16 @@ static int i40e_vc_del_mac_addr_msg(struct i40e_vf *vf, u8 *msg, u16 msglen) ret =I40E_ERR_INVALID_MAC_ADDR ; goto error_param; } + +if (vf->pf_set_mac && +ether_addr_equal (al->list[i].addr, + vf->default_lan_addr.addr)) { +dev_err (&pf->pdev->dev, +"MAC addr %pM has been set by PF, cannot delete it for VF %d, reset VF to change MAC addr\n" , + vf->default_lan_addr.addr, vf->vf_id); + ret =I40E_ERR_PARAM ; + goto error_param; + } } vsi = pf->vsi[vf->lan_vsi_idx];
drivers/net/ethernet/mellanox/mlxsw/spectrum.c +7 -0
@@ -2825,6 +2825,13 @@ static int mlxsw_sp_port_ets_init(struct mlxsw_sp_port *mlxsw_sp_port) MLXSW_REG_QEEC_MAS_DIS);if (err)
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/micrel/ks8695net.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/micrel/ks8851_mll.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/nfp_net_common.c +12 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/sun/sunvnet_common.c +8 -6
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/sun/sunvnet_common.h +4 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/toshiba/ps3_gelic_net.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/toshiba/ps3_gelic_net.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/toshiba/spider_net.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/xilinx/ll_temac_main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/xilinx/xilinx_emaclite.c +5 -4
Lines of this file are not shown. View the raw message.
drivers/net/phy/mdio-bcm-unimac.c +81 -2
83 lines not on this page · raw message
drivers/net/wireless/intel/iwlwifi/fw/api/tx.h +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/fw/dbg.c +4 -5
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/sta.c +0 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/tx.c +8 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtl818x/rtl8187/leds.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/phy/lantiq/phy-lantiq-rcu-usb2.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/phy/renesas/phy-rcar-gen3-usb2.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/power/reset/at91-sama5d2_shdwc.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/power/supply/twl4030_charger.c +28 -2
Lines of this file are not shown. View the raw message.
drivers/scsi/NCR5380.c +93 -63
156 lines not on this page · raw message
drivers/scsi/pm8001/pm80xx_hwi.c +74 -6
80 lines not on this page · raw message
drivers/tty/serial/xilinx_uartps.c +12 -29
41 lines not on this page · raw message
drivers/usb/gadget/function/uvc_configfs.c +7 -0
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/function/uvc_video.c +22 -10
Lines of this file are not shown. View the raw message.
net/ipv4/netfilter/nf_nat_masquerade_ipv4.c +19 -3
Lines of this file are not shown. View the raw message.
net/ipv6/netfilter/nf_nat_masquerade_ipv6.c +16 -3
Lines of this file are not shown. View the raw message.
net/wireless/reg.c +46 -0
46 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.