Skip to contentSkip to conversation

Linux 4.9.3

DISCUSSION Greg KH 1 participant 2 messages Jan 12, 2017 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.9.3 kernel.

All users of the 4.9 kernel series must upgrade.

The updated 4.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Documentation/conf.py                             |    6 
 Documentation/media/index.rst                     |    5 
 Makefile                                          |    2 
 arch/arm/boot/dts/r8a7794.dtsi                    |    2 
 arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts  |    5 
 arch/arm/crypto/aes-ce-glue.c                     |    5 
 arch/arm/mach-davinci/da850.c                     |   12 +
 arch/arm64/boot/dts/hisilicon/hip06.dtsi          |    4 
 arch/arm64/crypto/aes-ce-ccm-core.S               |   53 ++---
 arch/arm64/crypto/aes-ce-cipher.c                 |   25 +-
 arch/arm64/crypto/aes-ce.S                        |    1 
 arch/arm64/crypto/aes-modes.S                     |    3 
 arch/arm64/crypto/aes-neon.S                      |   25 +-
 arch/arm64/crypto/ghash-ce-core.S                 |    6 
 arch/arm64/crypto/sha1-ce-core.S                  |    4 
 arch/arm64/crypto/sha2-ce-core.S                  |    4 
 arch/cris/boot/rescue/Makefile                    |    8 
 arch/mips/kvm/entry.c                             |    5 
 arch/mips/kvm/mips.c                              |    4 
 arch/parisc/kernel/time.c                         |   23 ++
 arch/parisc/mm/fault.c                            |    2 
 arch/s390/crypto/prng.c                           |    6 
 arch/s390/kernel/topology.c                       |    2 
 arch/s390/pci/pci_dma.c                           |   15 -
 arch/x86/include/uapi/asm/prctl.h                 |    8 
 arch/x86/kernel/cpu/common.c                      |    7 
 arch/x86/kvm/x86.c                                |    9 
 drivers/base/power/power.h                        |   19 +
 drivers/base/power/runtime.c                      |    8 
 drivers/base/power/wakeirq.c                      |   76 ++++++-
 drivers/char/tpm/tpm_tis_core.c                   |   15 +
 drivers/clk/clk-wm831x.c                          |    2 
 drivers/clk/imx/clk-imx31.c                       |    4 
 drivers/clk/qcom/gcc-ipq806x.c                    |    4 
 drivers/clk/renesas/clk-mstp.c                    |   27 ++
 drivers/clk/renesas/renesas-cpg-mssr.c            |    4 
 drivers/clk/sunxi-ng/ccu-sun8i-a23.c              |    6 
 drivers/clk/sunxi-ng/ccu-sun8i-h3.c               |   10 -
 drivers/clk/ti/clk-7xx.c                          |    1 
 drivers/firmware/efi/efi.c                        |    4 
 drivers/gpu/drm/i915/i915_gem_request.h           |   19 +
 drivers/gpu/drm/i915/intel_dp.c                   |   46 +++-
 drivers/gpu/drm/i915/intel_overlay.c              |    9 
 drivers/gpu/drm/i915/intel_pm.c                   |   50 ++++-
 drivers/gpu/drm/i915/intel_psr.c                  |   10 -
 drivers/gpu/drm/radeon/radeon_cursor.c            |    6 
 drivers/hid/hid-sensor-hub.c                      |    3 
 drivers/hwmon/amc6821.c                           |    4 
 drivers/hwmon/ds620.c                             |    2 
 drivers/hwmon/g762.c                              |   11 -
 drivers/hwmon/lm90.c                              |    2 
 drivers/hwmon/nct7802.c                           |    8 
 drivers/hwmon/scpi-hwmon.c                        |    1 
 drivers/iio/accel/st_accel_core.c                 |   12 +
 drivers/iio/common/st_sensors/st_sensors_buffer.c |    4 
 drivers/iio/common/st_sensors/st_sensors_core.c   |   13 +
 drivers/iio/imu/bmi160/bmi160_core.c              |   25 --
 drivers/iio/light/max44000.c                      |    2 
 drivers/input/rmi4/rmi_f54.c                      |    5 
 drivers/iommu/amd_iommu.c                         |    2 
 drivers/iommu/amd_iommu_v2.c                      |    4 
 drivers/iommu/intel-iommu.c                       |   42 ++++
 drivers/irqchip/irq-bcm7038-l1.c                  |   26 ++
 drivers/md/md.c                                   |    7 
 drivers/media/usb/dvb-usb/dibusb-common.c         |    2 
 drivers/mfd/tps65217.c                            |   19 +
 drivers/misc/mei/bus.c                            |    2 
 drivers/misc/mei/client.c                         |   24 +-
 drivers/mmc/card/mmc_test.c                       |    2 
 drivers/net/wireless/ath/ath10k/core.h            |    6 
 drivers/net/wireless/ath/ath10k/mac.c             |    2 
 drivers/net/wireless/ath/ath10k/spectral.c        |    2 
 drivers/net/wireless/realtek/rtlwifi/base.c       |    8 
 drivers/net/wireless/realtek/rtlwifi/core.c       |    9 
 drivers/net/wireless/realtek/rtlwifi/pci.c        |   14 -
 drivers/net/wireless/realtek/rtlwifi/ps.c         |   36 ---
 drivers/pci/host/pcie-rockchip.c                  |    6 
 drivers/pci/hotplug/rpadlpar_core.c               |   10 -
 drivers/pci/msi.c                                 |    3 
 drivers/pci/quirks.c                              |  180 ++++++++++++++----
 drivers/pinctrl/pinctrl-amd.c                     |   19 -
 drivers/platform/x86/fujitsu-laptop.c             |   42 ++--
 drivers/rpmsg/qcom_smd.c                          |    2 
 drivers/scsi/g_NCR5380.c                          |    6 
 drivers/scsi/mvsas/mv_94xx.c                      |    2 
 drivers/staging/iio/adc/ad7606_core.c             |    2 
 drivers/staging/media/davinci_vpfe/vpfe_video.c   |    2 
 drivers/staging/octeon/ethernet.c                 |    2 
 drivers/target/iscsi/iscsi_target_tpg.c           |    1 
 drivers/target/sbp/sbp_target.c                   |    2 
 drivers/usb/core/config.c                         |   10 +
 drivers/usb/core/hub.c                            |   59 ++---
 drivers/usb/dwc3/core.h                           |   10 -
 drivers/usb/dwc3/dwc3-pci.c                       |    4 
 drivers/usb/dwc3/ep0.c                            |   50 ++---
 drivers/usb/dwc3/gadget.c                         |   13 -
 drivers/usb/gadget/composite.c                    |   14 -
 drivers/usb/gadget/function/f_tcm.c               |    2 
 drivers/usb/gadget/legacy/inode.c                 |   17 +
 drivers/usb/gadget/udc/core.c                     |    6 
 drivers/usb/gadget/udc/dummy_hcd.c                |    6 
 drivers/usb/host/xhci-mem.c                       |   50 ++++-
 drivers/usb/host/xhci-mtk.c                       |    4 
 drivers/usb/host/xhci-pci.c                       |    3 
 drivers/usb/host/xhci-ring.c                      |  219 ++++++++++++----------
 drivers/usb/host/xhci.c                           |    4 
 drivers/usb/host/xhci.h                           |    5 
 drivers/usb/musb/blackfin.c                       |    1 
 drivers/usb/musb/musb_core.h                      |    7 
 drivers/usb/musb/musb_dsps.c                      |   12 +
 drivers/usb/musb/musb_host.c                      |   10 -
 drivers/usb/musb/musbhsdma.h                      |    2 
 drivers/usb/phy/phy-am335x-control.c              |    2 
 drivers/usb/serial/cyberjack.c                    |   10 +
 drivers/usb/serial/garmin_gps.c                   |    1 
 drivers/usb/serial/io_edgeport.c                  |    5 
 drivers/usb/serial/io_ti.c                        |   22 +-
 drivers/usb/serial/iuu_phoenix.c                  |   11 +
 drivers/usb/serial/keyspan_pda.c                  |   14 +
 drivers/usb/serial/kl5kusb105.c                   |    2 
 drivers/usb/serial/kobil_sct.c                    |   12 +
 drivers/usb/serial/mos7720.c                      |   51 ++---
 drivers/usb/serial/mos7840.c                      |   12 +
 drivers/usb/serial/omninet.c                      |   13 +
 drivers/usb/serial/oti6858.c                      |   16 +
 drivers/usb/serial/pl2303.c                       |    8 
 drivers/usb/serial/quatech2.c                     |    4 
 drivers/usb/serial/spcp8x5.c                      |   14 +
 drivers/usb/serial/ti_usb_3410_5052.c             |    7 
 drivers/usb/storage/unusual_devs.h                |    7 
 fs/crypto/policy.c                                |    5 
 fs/f2fs/data.c                                    |    2 
 fs/f2fs/debug.c                                   |   12 -
 fs/f2fs/f2fs.h                                    |   12 -
 fs/f2fs/super.c                                   |   16 -
 fs/xfs/libxfs/xfs_ag_resv.c                       |    3 
 fs/xfs/libxfs/xfs_alloc.c                         |   10 -
 fs/xfs/libxfs/xfs_alloc_btree.c                   |    2 
 fs/xfs/libxfs/xfs_attr_leaf.c                     |    8 
 fs/xfs/libxfs/xfs_bmap.c                          |  116 +++++++----
 fs/xfs/libxfs/xfs_bmap.h                          |    5 
 fs/xfs/libxfs/xfs_bmap_btree.c                    |    2 
 fs/xfs/libxfs/xfs_btree.c                         |   20 ++
 fs/xfs/libxfs/xfs_dir2_data.c                     |    2 
 fs/xfs/libxfs/xfs_ialloc.c                        |   13 +
 fs/xfs/libxfs/xfs_ialloc_btree.c                  |    2 
 fs/xfs/libxfs/xfs_inode_buf.c                     |    8 
 fs/xfs/libxfs/xfs_inode_fork.c                    |   77 ++++++-
 fs/xfs/libxfs/xfs_inode_fork.h                    |    7 
 fs/xfs/libxfs/xfs_refcount_btree.c                |    9 
 fs/xfs/libxfs/xfs_refcount_btree.h                |    3 
 fs/xfs/libxfs/xfs_rmap_btree.c                    |   14 -
 fs/xfs/libxfs/xfs_rmap_btree.h                    |    3 
 fs/xfs/libxfs/xfs_sb.c                            |   13 +
 fs/xfs/libxfs/xfs_types.h                         |    3 
 fs/xfs/xfs_aops.c                                 |   22 ++
 fs/xfs/xfs_bmap_util.c                            |   34 +--
 fs/xfs/xfs_file.c                                 |    9 
 fs/xfs/xfs_fsops.c                                |   14 +
 fs/xfs/xfs_icache.c                               |   37 ++-
 fs/xfs/xfs_inode.c                                |    2 
 fs/xfs/xfs_inode.h                                |   11 -
 fs/xfs/xfs_inode_item.c                           |    4 
 fs/xfs/xfs_ioctl.c                                |    6 
 fs/xfs/xfs_iomap.c                                |   54 ++---
 fs/xfs/xfs_log_recover.c                          |    1 
 fs/xfs/xfs_qm.c                                   |    2 
 fs/xfs/xfs_refcount_item.c                        |    3 
 fs/xfs/xfs_reflink.c                              |   87 +-------
 fs/xfs/xfs_reflink.h                              |    2 
 fs/xfs/xfs_sysfs.c                                |    4 
 include/asm-generic/asm-prototypes.h              |    6 
 include/linux/cpuhotplug.h                        |    3 
 include/linux/debugfs.h                           |   44 ++--
 include/linux/iio/common/st_sensors.h             |   12 +
 include/linux/pci_ids.h                           |   27 ++
 include/linux/usb/gadget.h                        |    4 
 include/uapi/linux/nl80211.h                      |    7 
 kernel/irq/affinity.c                             |    6 
 kernel/relay.c                                    |    4 
 kernel/time/tick-broadcast.c                      |    3 
 mm/compaction.c                                   |   25 --
 mm/hugetlb.c                                      |   12 -
 mm/khugepaged.c                                   |   11 -
 mm/migrate.c                                      |   15 +
 net/mac80211/agg-rx.c                             |    8 
 net/mac80211/debugfs_sta.c                        |    2 
 net/mac80211/sta_info.h                           |    4 
 net/mac80211/tx.c                                 |    3 
 net/wireless/nl80211.c                            |   16 +
 scripts/gcc-plugins/gcc-common.h                  |   85 ++++++++
 security/integrity/ima/ima_fs.c                   |    2 
 sound/pci/hda/patch_realtek.c                     |    2 
 sound/soc/intel/boards/cht_bsw_rt5645.c           |    6 
 sound/soc/intel/skylake/skl-sst-utils.c           |    2 
 sound/soc/qcom/lpass-platform.c                   |    3 
 sound/soc/samsung/i2s.c                           |    5 
 sound/usb/card.c                                  |    1 
 sound/usb/endpoint.c                              |   17 -
 sound/usb/endpoint.h                              |    2 
 sound/usb/pcm.c                                   |   10 -
 201 files changed, 1929 insertions(+), 945 deletions(-)

Akinobu Mita (1):
iio: max44000: correct value in illuminance_integration_time_available

Alan Stern (5):
USB: gadgetfs: fix unbounded memory allocation bug
USB: gadgetfs: fix use-after-free bug
USB: gadgetfs: fix checks of wTotalLength in config descriptors
USB: fix problems with duplicate endpoint addresses
USB: dummy-hcd: fix bug in stop_activity (handle ep0)

Alexander Usyskin (3):
mei: fix parameter rename KDoc
mei: bus: fix mei_cldev_enable KDoc
mei: move write cb to completion on credentials failures

Alexey Kardashevskiy (1):
PCI: Enable access to non-standard VPD for Chelsio devices (cxgb3)

Andy Lutomirski (1):

      x86/cpu: Probe CPUID leaf 6 even when cpuid_level == 6

Aneesh Kumar K.V (1):
mm/hugetlb.c: use the right pte val for compare in hugetlb_cow

Ard Biesheuvel (8):
crypto: arm64/sha2-ce - fix for big endian
crypto: arm64/ghash-ce - fix for big endian
crypto: arm/aes-ce - fix for big endian
crypto: arm64/aes-ccm-ce: fix for big endian
crypto: arm64/aes-neon - fix for big endian
crypto: arm64/sha1-ce - fix for big endian
crypto: arm64/aes-xts-ce: fix for big endian
crypto: arm64/aes-ce - fix for big endian

Arnd Bergmann (4):
debugfs: improve DEFINE_DEBUGFS_ATTRIBUTE for !CONFIG_DEBUG_FS
ASoC: lpass-platform: initialize dma channel number
scsi: mvsas: fix command_active typo
f2fs: hide a maybe-uninitialized warning

Baolin Wang (1):
usb: host: xhci: Fix possible wild pointer when handling abort command

Bart Van Assche (2):
usb: gadget: Fix second argument of percpu_ida_alloc()
sbp-target: Fix second argument of percpu_ida_alloc()

Bartosz Golaszewski (1):
ARM: davinci: da850: don't add emac clock to lookup table twice

Bin Liu (2):
usb: musb: core: add clear_ep_rxintr() to musb_platform_ops
usb: musb: dsps: implement clear_ep_rxintr() callback

Bjorn Andersson (1):
rpmsg: qcom_smd: Correct return value for O_NONBLOCK

Brian Foster (6):
xfs: don't skip cow forks w/ delalloc blocks in cowblocks scan
xfs: don't BUG() on mixed direct and mapped I/O
xfs: fix unbalanced inode reclaim flush locking
xfs: track preallocation separately in xfs_bmapi_reserve_delalloc()
xfs: clean up cow fork reservation and tag inodes correctly
xfs: pass post-eof speculative prealloc blocks to bmapi

Brian Norris (1):
PCI: rockchip: Correct the use of FTS mask

Carlos Maiolino (1):
xfs: fix max_retries _show and _store functions

Charles Keepax (1):
ASoC: samsung: i2s: Fixup last IRQ unsafe spin lock call

Chen-Yu Tsai (3):
ARM: dts: sun7i: bananapi-m1-plus: Enable USB PHY for USB host support
clk: sunxi-ng: sun8i-a23: Set CLK_SET_RATE_PARENT for audio module clocks
clk: sunxi-ng: sun8i-h3: Set CLK_SET_RATE_PARENT for audio module clocks

Chris Brandt (1):
clk: renesas: mstp: Support 8-bit registers for r7s72100

Christoph Hellwig (5):
xfs: new inode extent list lookup helpers
xfs: remove prev argument to xfs_bmapi_reserve_delalloc
xfs: use new extent lookup helpers in __xfs_reflink_reserve_cow
xfs: use new extent lookup helpers xfs_file_iomap_begin_delay
xfs: fix crash and data corruption due to removal of busy COW extents

Dan Carpenter (10):
usb: xhci-mem: use passed in GFP flags instead of GFP_KERNEL efi/efivar_ssdt_load: Don't return success on allocation failure
Input: synaptics-rmi4 - unlock on error
iommu/amd: Missing error code in amd_iommu_init_device()
ASoC: Intel: Skylake: Fix a shift wrapping bug target/iscsi: Fix double free in lio_target_tiqn_addtpg()
relay: check array offset before using it
mmc: mmc_test: Uninitialized return value s390/crypto: unlock on error in prng_tdes_read()
staging: media: davinci_vpfe: unlock on error in vpfe_reqbufs()

Daniel Vetter (1):
drm/i915: tune down the fast link training vs boot fail

Darrick J. Wong (14):
xfs: check return value of _trans_reserve_quota_nblks
xfs: check minimum block size for CRC filesystems
xfs: factor rmap btree size into the indlen calculations
xfs: always succeed when deduping zero bytes
xfs: forbid AG btrees with level == 0
xfs: check for bogus values in btree block headers
xfs: complain if we don't get nextents bmap records
xfs: don't crash if reading a directory results in an unexpected hole
xfs: error out if trying to add attrs and anextents > 0
xfs: don't allow di_size with high bit set
xfs: don't cap maximum dedupe request length
xfs: use GPF_NOFS when allocating btree cursors
xfs: fix double-cleanup when CUI recovery fails
xfs: use the actual AG length when reserving blocks

Dmitry Safonov (1):
x86/prctl/uapi: Remove #ifdef for CHECKPOINT_RESTORE

Eric Biggers (1):
fscrypt: fix renaming and linking special files

Eric Richter (1):
ima: fix memory leak in ima_release_policy

Eric Sandeen (6):
xfs: don't call xfs_sb_quota_from_disk twice
xfs: provide helper for counting extents from if_bytes
xfs: Move AGI buffer type setting to xfs_read_agi
xfs: pass state not whichfork to trace_xfs_extlist
xfs: handle cow fork in xfs_bmap_trace_exlist
xfs: ignore leaf attr ichdr.count in verifier during log replay

Eva Rachel Retuya (1):
staging: iio: ad7606: fix improper setting of oversampling pins

Felipe Balbi (5):
usb: dwc3: core: avoid Overflow events
usb: dwc3: ep0: add dwc3_ep0_prepare_one_trb()
usb: dwc3: ep0: explicitly call dwc3_ep0_prepare_one_trb()
usb: dwc3: gadget: always unmap EP0 requests
usb: gadget: composite: always set ep->mult to a sensible value

Felix Hädicke (1):
usb: gadget: udc: core: fix return code of usb_gadget_probe_driver()

Florian Fainelli (2):
staging: octeon: Call SET_NETDEV_DEV() irqchip/bcm7038-l1: Implement irq_cpu_offline() callback

Geert Uytterhoeven (3):
usb: hub: Move hub_port_disable() to fix warning if PM is disabled
ARM: dts: r8a7794: Correct hsusb parent clock
clk: renesas: cpg-mssr: Fix inverted debug check

Greg Kroah-Hartman (4):
usb: gadgetfs: restrict upper bound on device configuration size Revert "rtlwifi: Fix enter/exit power_save"
Revert "usb: gadget: composite: always set ep->mult to a sensible value" Linux 4.9.3

Grygorii Strashko (1):
clk: ti: dra7: fix "failed to lookup clock node gmac_gmii_ref_clk_div" boot message

Guenter Roeck (4):
cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected
hwmon: (ds620) Fix overflows seen when writing temperature limits
hwmon: (nct7802) Fix overflows seen when writing into limit attributes
hwmon: (g762) Fix overflows and crash seen when writing limit attributes

Guilherme G. Piccoli (1):
genirq/affinity: Fix node generation from cpumask

Hans de Goede (1):
usb: dwc3: pci: Fix dr_mode misspelling

Heikki Krogerus (1):
usb: dwc3: pci: add Intel Gemini Lake PCI ID

Heiko Carstens (1):
s390/topology: always use s390 specific sched_domain_topology_level

Helge Deller (2):
parisc: Add line-break when printing segfault info
parisc: Mark cr16 clocksource unstable on SMP systems

Huang Rui (1):
iommu/amd: Fix the left value check of cmd buffer

Ioan-Adrian Ratiu (1):
ALSA: usb-audio: Fix irq/process data synchronization

Jacob Pan (1):
iommu/vt-d: Fix pasid table size encoding

Jaegeuk Kim (1):
f2fs: remove percpu_count due to performance regression

James Hogan (2):
KVM: MIPS: Don't clobber CP0_Status.UX
KVM: MIPS: Flush KVM entry code from icache globally

Jan Beulich (1):
PCI/MSI: Check for NULL affinity mask in pci_irq_get_affinity()

Jared Bents (1):
hwmon: (amc6821) sign extension temperature

Javier Martinez Canillas (1):
hwmon: (scpi) Fix module autoload

Johan Hovold (23):
USB: serial: omninet: fix NULL-derefs at open and disconnect
USB: serial: quatech2: fix sleep-while-atomic in close
USB: serial: pl2303: fix NULL-deref at open
USB: serial: keyspan_pda: verify endpoints at probe
USB: serial: spcp8x5: fix NULL-deref at open
USB: serial: io_ti: fix NULL-deref at open
USB: serial: io_ti: fix another NULL-deref at open
USB: serial: io_ti: fix I/O after disconnect
USB: serial: iuu_phoenix: fix NULL-deref at open
USB: serial: garmin_gps: fix memory leak on failed URB submit
USB: serial: ti_usb_3410_5052: fix NULL-deref at open
USB: serial: io_edgeport: fix NULL-deref at open
USB: serial: oti6858: fix NULL-deref at open
USB: serial: cyberjack: fix NULL-deref at open
USB: serial: kobil_sct: fix NULL-deref in write
USB: serial: mos7840: fix NULL-deref at open
USB: serial: mos7720: fix NULL-deref at open
USB: serial: mos7720: fix use-after-free on probe errors
USB: serial: mos7720: fix parport use-after-free on probe errors
USB: serial: mos7720: fix parallel probe
USB: phy: am335x-control: fix device and of_node leaks
USB: serial: io_ti: bind to interface after fw download powerpc/pci/rpadlpar: Fix device reference leaks

Johannes Berg (2):
mac80211: initialize fast-xmit 'info' later
mac80211: fix tid_agg_rx NULL dereference

Johannes Weiner (2):
mm: khugepaged: close use-after-free race during shmem collapsing
mm: khugepaged: fix radix tree node leak in shmem collapse error path

Josh Zimmerman (1):
tpm_tis: Check return values from get_burstcount.

Jérémy Lefaure (1):
usb: musb: blackfin: add bfin_fifo_offset in bfin_ops

Kees Cook (1):
gcc-plugins: update gcc-common.h for gcc-7

Kefeng Wang (1):
arm64: dts: hip06: Correct hardware pin number of usb node

Krzysztof Opasiak (1):
usb: gadget: composite: Test get_alt() presence instead of set_alt()

Linus Walleij (1):
iio: accel: st_accel: fix LIS3LV02 reading and scaling

Lorenzo Bianconi (1):
iio: common: st_sensors: fix channel data parsing

Lu Baolu (3):
usb: xhci: fix possible wild pointer
usb: xhci: fix return value of xhci_setup_device()
usb: xhci: hold lock over xhci_abort_cmd_ring()

Marcin Niestroj (1):
iio: bmi160: Fix time needed to sleep after command execution

Mathias Nyman (2):
xhci: free xhci virtual devices with leaf nodes first
xhci: Handle command completion and timeout race

Matthew Auld (1):
drm/i915/dp: add lane_count check in intel_dp_check_link_status

Mauro Carvalho Chehab (1):
docs-rst: fix LaTeX \DURole renewcommand with Sphinx 1.3+

Micha? K?pie? (1):
platform/x86: fujitsu-laptop: use brightness_set_blocking for LED-setting callbacks

Michael Walle (1):
hwmon: (lm90) fix temp1_max_alarm attribute

Michal Marek (1):
asm-prototypes: Clear any CPP defines before declaring the functions

Michel Dänzer (1):

      drm/radeon: Always store CRTC relative radeon_crtc->cursor_x/y values

Milo Kim (1):
mfd: tps65217: Fix page fault on unloading modules

Ming Ling (1):
mm, compaction: fix NR_ISOLATED_* stats for pfn based migration

Mohammed Shafi Shajakhan (1):
ath10k: fix failure to send NULL func frame for 10.4

NeilBrown (1):
md: fix refcount problem on mddev when stopping array.

Nicolas Iooss (1):
ath10k: use the right length of "background"

Noa Osherovich (4):
PCI: Add Mellanox device IDs
PCI: Convert broken INTx masking quirks from HEADER to FINAL
PCI: Convert Mellanox broken INTx quirks to be for listed devices only
PCI: Support INTx masking on ConnectX-4 with firmware x.14.1100+

OGAWA Hirofumi (2):
xhci: Use delayed_work instead of timer for command timeout
xhci: Fix race related to abort operation

Oliver Neukum (1):
usb: storage: unusual_uas: Add JMicron JMS56x to unusual device

Ondrej Zary (1):
scsi: g_NCR5380: Fix release_region in error handling

Pan Bian (3):
usb: return error code when platform_get_irq fails
USB: serial: kl5kusb105: abort on open exception path
clk: clk-wm831x: fix a logic error

Paulo Zanoni (3):
drm/i915: disable PSR by default on HSW/BDW drm/i915/gen9: unconditionally apply the memory bandwidth WA drm/i915/gen9: fix the WM memory bandwidth WA for Y tiling cases

Peter Chen (1):
usb: gadget: fix request length error for isoc transfer

Roger Quadros (1):
usb: dwc3: gadget: Fix full speed mode

Sebastian Ott (1):
s390/pci: fix dma address calculation in map_sg

Shaohua Li (1):

      md: MD_RECOVERY_NEEDED is set for mddev->recovery

Shawn Lin (1):
PCI: rockchip: Fix negotiated lanes calculation

Shyam Sundar S K (1):
pinctrl/amd: Set the level based on ACPI tables

Srinivas Pandruvada (1):
HID: sensor-hub: Move the memset to sensor_hub_get_feature()

Stephen Boyd (1):
clk: qcom: ipq806x: Fix board clk rates

Takashi Iwai (4):
ALSA: hda - Fix up GPIO for ASUS ROG Ranger
ALSA: hda - Apply asus-mode8 fixup to ASUS X71SL
ALSA: usb-audio: Fix bogus error return in snd_usb_create_stream()
ASoC: cht_bsw_rt5645: Fix leftover kmalloc

Thomas Gleixner (2):
clocksource/dummy_timer: Move hotplug callback after the real timers tick/broadcast: Prevent NULL pointer dereference

Tony Lindgren (2):
usb: musb: Fix trying to free already-free IRQ 4
PM / wakeirq: Fix dedicated wakeirq for drivers not using autosuspend

Vamsi Krishna (1):
nl80211: Use different attrs for BSSID and random MAC addr in scan req

Ville Syrjälä (4):
drm/i915: Fix oopses in the overlay code due to i915_gem_active stuff drm/i915: Fix oops in overlay due to frontbuffer tracking drm/i915: Force VDD off on the new power seqeuencer before starting to use it drm/i915: Initialize overlay->last_flip properly

Vladimir Zapolskiy (1):
clk: imx31: fix rewritten input argument of mx31_clocks_init()

Wan Ahmad Zainie (1):
usb: xhci: apply XHCI_PME_STUCK_QUIRK to Intel Apollo Lake

Wei Yongjun (1):
dibusb: fix possible memory leak in dibusb_rc_query()

Xiao Guangrong (1):
KVM: x86: reset MMU on KVM_SET_VCPU_EVENTS

Xunlei Pang (1):
iommu/vt-d: Flush old iommu caches for kdump when the device gets context mapped

author maintainer
#1 lore raw
Documentation/conf.py +5 -1
index bf6f310e5170..d769cd89a9f7 100644
@@ -37,7 +37,7 @@ from load_config import loadConfig
 extensions = ['kernel-doc', 'rstFlatTable', 'kernel_include', 'cdomain']
 
 # The name of the math extension changed on Sphinx 1.4
-if minor > 3:
+if major == 1 and minor > 3:
     extensions.append("sphinx.ext.imgmath")
 else:
     extensions.append("sphinx.ext.pngmath")
@@ -332,6 +332,10 @@ latex_elements = {
      '''
 }
 
+# Fix reference escape troubles with Sphinx 1.4.x
+if major == 1 and minor > 3:
+    latex_elements['preamble']  += '\\renewcommand*{\\DUrole}[2]{ #2 }\n'
+
 # Grouping the document tree into LaTeX files. List of tuples
 # (source start file, target name, title,
 #  author, documentclass [howto, manual, or own class]).
Documentation/media/index.rst +0 -5
index e347a3e7bdef..7f8f0af620ce 100644
@@ -1,11 +1,6 @@
 Linux Media Subsystem Documentation
 ===================================
 
-.. Sphinx 1.4.x has a definition for DUrole that doesn't work on alltt blocks
-.. raw:: latex
-
-	\renewcommand*{\DUrole}[2]{ #2 }
-
 Contents:
 
 .. toctree::
Makefile +1 -1
index c9ce897465c5..ae42a0aaab06 100644
@@ -1,6 +1,6 @@
 VERSION = 4
 PATCHLEVEL = 9
-SUBLEVEL = 2
+SUBLEVEL = 3
 EXTRAVERSION =
 NAME = Roaring Lionus
 
arch/arm/boot/dts/r8a7794.dtsi +1 -1
index 9365580a194f..725ecb3c5fb4 100644
@@ -1260,7 +1260,7 @@
 		mstp7_clks: mstp7_clks@e615014c {
 			compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
 			reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
-			clocks = <&mp_clk>, <&mp_clk>,
+			clocks = <&mp_clk>, <&hp_clk>,
 				 <&zs_clk>, <&p_clk>, <&p_clk>, <&zs_clk>,
 				 <&zs_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
 				 <&zx_clk>;
arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts +5 -0
index ba5bca0fe997..44377a98cc89 100644
@@ -227,3 +227,8 @@
 	pinctrl-0 = <&uart0_pins_a>;
 	status = "okay";
 };
+
+&usbphy {
+	/* VBUS on usb host ports are tied to DC5V and therefore always on */
+	status = "okay";
+};
arch/arm/crypto/aes-ce-glue.c +5 -0
index aef022a87c53..04410d9f5e72 100644
@@ -88,8 +88,13 @@ static int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key,
 		u32 *rki = ctx->key_enc + (i * kwords);
 		u32 *rko = rki + kwords;
 
+#ifndef CONFIG_CPU_BIG_ENDIAN
 		rko[0] = ror32(ce_aes_sub(rki[kwords - 1]), 8);
 		rko[0] = rko[0] ^ rki[0] ^ rcon[i];
+#else
+		rko[0] = rol32(ce_aes_sub(rki[kwords - 1]), 8);
+		rko[0] = rko[0] ^ rki[0] ^ (rcon[i] << 24);
+#endif
 		rko[1] = rko[0] ^ rki[1];
 		rko[2] = rko[1] ^ rki[2];
 		rko[3] = rko[2] ^ rki[3];
arch/arm/mach-davinci/da850.c +11 -1
index ed3d0e9f72ac..d7a43afdfac0 100644
@@ -319,6 +319,16 @@ static struct clk emac_clk = {
 	.gpsc		= 1,
 };
 
+/*
+ * In order to avoid adding the emac_clk to the clock lookup table twice (and
+ * screwing up the linked list in the process) create a separate clock for
+ * mdio inheriting the rate from emac_clk.
+ */
+static struct clk mdio_clk = {
+	.name		= "mdio",
+	.parent		= &emac_clk,
+};
+
 static struct clk mcasp_clk = {
 	.name		= "mcasp",
 	.parent		= &async3_clk,
@@ -494,7 +504,7 @@ static struct clk_lookup da850_clks[] = {
 	CLK(NULL,		"arm",		&arm_clk),
 	CLK(NULL,		"rmii",		&rmii_clk),
 	CLK("davinci_emac.1",	NULL,		&emac_clk),
-	CLK("davinci_mdio.0",	"fck",		&emac_clk),
+	CLK("davinci_mdio.0",	"fck",		&mdio_clk),
 	CLK("davinci-mcasp.0",	NULL,		&mcasp_clk),
 	CLK("davinci-mcbsp.0",	NULL,		&mcbsp0_clk),
 	CLK("davinci-mcbsp.1",	NULL,		&mcbsp1_clk),
arch/arm64/boot/dts/hisilicon/hip06.dtsi +2 -2
index b548763366dd..af450413b9dd 100644
@@ -322,7 +322,7 @@
 			compatible = "generic-ohci";
 			reg = <0x0 0xa7030000 0x0 0x10000>;
 			interrupt-parent = <&mbigen_usb>;
-			interrupts = <64 4>;
+			interrupts = <640 4>;
 			dma-coherent;
 			status = "disabled";
 		};
@@ -331,7 +331,7 @@
 			compatible = "generic-ehci";
 			reg = <0x0 0xa7020000 0x0 0x10000>;
 			interrupt-parent = <&mbigen_usb>;
-			interrupts = <65 4>;
+			interrupts = <641 4>;
 			dma-coherent;
 			status = "disabled";
 		};
arch/arm64/crypto/aes-ce-ccm-core.S +27 -26

166 lines not on this page · raw message

arch/arm64/crypto/aes-ce-cipher.c +15 -10
index f7bd9bf0bbb3..50d9fe11d0c8 100644
@@ -47,24 +47,24 @@ static void aes_cipher_encrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[])
 	kernel_neon_begin_partial(4);
 
 	__asm__("	ld1	{v0.16b}, %[in]			;"
-		"	ld1	{v1.2d}, [%[key]], #16		;"
+		"	ld1	{v1.16b}, [%[key]], #16		;"
 		"	cmp	%w[rounds], #10			;"
 		"	bmi	0f				;"
 		"	bne	3f				;"
 		"	mov	v3.16b, v1.16b			;"
 		"	b	2f				;"
 		"0:	mov	v2.16b, v1.16b			;"
-		"	ld1	{v3.2d}, [%[key]], #16		;"
+		"	ld1	{v3.16b}, [%[key]], #16		;"
 		"1:	aese	v0.16b, v2.16b			;"
 		"	aesmc	v0.16b, v0.16b			;"
-		"2:	ld1	{v1.2d}, [%[key]], #16		;"
+		"2:	ld1	{v1.16b}, [%[key]], #16		;"
 		"	aese	v0.16b, v3.16b			;"
 		"	aesmc	v0.16b, v0.16b			;"
-		"3:	ld1	{v2.2d}, [%[key]], #16		;"
+		"3:	ld1	{v2.16b}, [%[key]], #16		;"
 		"	subs	%w[rounds], %w[rounds], #3	;"
 		"	aese	v0.16b, v1.16b			;"
 		"	aesmc	v0.16b, v0.16b			;"
-		"	ld1	{v3.2d}, [%[key]], #16		;"
+		"	ld1	{v3.16b}, [%[key]], #16		;"
 		"	bpl	1b				;"
 		"	aese	v0.16b, v2.16b			;"
 		"	eor	v0.16b, v0.16b, v3.16b		;"
@@ -92,24 +92,24 @@ static void aes_cipher_decrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[])
 	kernel_neon_begin_partial(4);
 
 	__asm__("	ld1	{v0.16b}, %[in]			;"
-		"	ld1	{v1.2d}, [%[key]], #16		;"
+		"	ld1	{v1.16b}, [%[key]], #16		;"
 		"	cmp	%w[rounds], #10			;"
 		"	bmi	0f				;"
 		"	bne	3f				;"
 		"	mov	v3.16b, v1.16b			;"
 		"	b	2f				;"
 		"0:	mov	v2.16b, v1.16b			;"
-		"	ld1	{v3.2d}, [%[key]], #16		;"
+		"	ld1	{v3.16b}, [%[key]], #16		;"
 		"1:	aesd	v0.16b, v2.16b			;"
 		"	aesimc	v0.16b, v0.16b			;"
-		"2:	ld1	{v1.2d}, [%[key]], #16		;"
+		"2:	ld1	{v1.16b}, [%[key]], #16		;"
 		"	aesd	v0.16b, v3.16b			;"
 		"	aesimc	v0.16b, v0.16b			;"
-		"3:	ld1	{v2.2d}, [%[key]], #16		;"
+		"3:	ld1	{v2.16b}, [%[key]], #16		;"
 		"	subs	%w[rounds], %w[rounds], #3	;"
 		"	aesd	v0.16b, v1.16b			;"
 		"	aesimc	v0.16b, v0.16b			;"
-		"	ld1	{v3.2d}, [%[key]], #16		;"
+		"	ld1	{v3.16b}, [%[key]], #16		;"
 		"	bpl	1b				;"
 		"	aesd	v0.16b, v2.16b			;"
 		"	eor	v0.16b, v0.16b, v3.16b		;"
@@ -173,7 +173,12 @@ int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key,
 		u32 *rki = ctx->key_enc + (i * kwords);
 		u32 *rko = rki + kwords;
 
+#ifndef CONFIG_CPU_BIG_ENDIAN
 		rko[0] = ror32(aes_sub(rki[kwords - 1]), 8) ^ rcon[i] ^ rki[0];
+#else
+		rko[0] = rol32(aes_sub(rki[kwords - 1]), 8) ^ (rcon[i] << 24) ^
+			 rki[0];
+#endif
 		rko[1] = rko[0] ^ rki[1];
 		rko[2] = rko[1] ^ rki[2];
 		rko[3] = rko[2] ^ rki[3];
arch/arm64/crypto/aes-ce.S +1 -0
index 78f3cfe92c08..b46093d567e5 100644
@@ -10,6 +10,7 @@
  */
 
 #include <linux/linkage.h>
+#include <asm/assembler.h>
 
 #define AES_ENTRY(func)		ENTRY(ce_ ## func)
 #define AES_ENDPROC(func)	ENDPROC(ce_ ## func)
arch/arm64/crypto/aes-modes.S +2 -1
index f6e372c528eb..c53dbeae79f2 100644
@@ -386,7 +386,8 @@ AES_ENDPROC(aes_ctr_encrypt)
 	.endm
 
 .Lxts_mul_x:
-	.word		1, 0, 0x87, 0
+CPU_LE(	.quad		1, 0x87		)
+CPU_BE(	.quad		0x87, 1		)
 
 AES_ENTRY(aes_xts_encrypt)
 	FRAME_PUSH
arch/arm64/crypto/aes-neon.S +15 -10
index b93170e1cc93..85f07ead7c5c 100644
@@ -9,6 +9,7 @@
  */
 
 #include <linux/linkage.h>
+#include <asm/assembler.h>
 
 #define AES_ENTRY(func)		ENTRY(neon_ ## func)
 #define AES_ENDPROC(func)	ENDPROC(neon_ ## func)
@@ -83,13 +84,13 @@
 	.endm
 
 	.macro		do_block, enc, in, rounds, rk, rkp, i
-	ld1		{v15.16b}, [\rk]
+	ld1		{v15.4s}, [\rk]
 	add		\rkp, \rk, #16
 	mov		\i, \rounds
 1111:	eor		\in\().16b, \in\().16b, v15.16b		/* ^round key */
 	tbl		\in\().16b, {\in\().16b}, v13.16b	/* ShiftRows */
 	sub_bytes	\in
-	ld1		{v15.16b}, [\rkp], #16
+	ld1		{v15.4s}, [\rkp], #16
 	subs		\i, \i, #1
 	beq		2222f
 	.if		\enc == 1
@@ -229,7 +230,7 @@
 	.endm
 
 	.macro		do_block_2x, enc, in0, in1 rounds, rk, rkp, i
-	ld1		{v15.16b}, [\rk]
+	ld1		{v15.4s}, [\rk]
 	add		\rkp, \rk, #16
 	mov		\i, \rounds
 1111:	eor		\in0\().16b, \in0\().16b, v15.16b	/* ^round key */
@@ -237,7 +238,7 @@
 	sub_bytes_2x	\in0, \in1
 	tbl		\in0\().16b, {\in0\().16b}, v13.16b	/* ShiftRows */
 	tbl		\in1\().16b, {\in1\().16b}, v13.16b	/* ShiftRows */
-	ld1		{v15.16b}, [\rkp], #16
+	ld1		{v15.4s}, [\rkp], #16
 	subs		\i, \i, #1
 	beq		2222f
 	.if		\enc == 1
@@ -254,7 +255,7 @@
 	.endm
 
 	.macro		do_block_4x, enc, in0, in1, in2, in3, rounds, rk, rkp, i
-	ld1		{v15.16b}, [\rk]
+	ld1		{v15.4s}, [\rk]
 	add		\rkp, \rk, #16
 	mov		\i, \rounds
 1111:	eor		\in0\().16b, \in0\().16b, v15.16b	/* ^round key */
@@ -266,7 +267,7 @@
 	tbl		\in1\().16b, {\in1\().16b}, v13.16b	/* ShiftRows */
 	tbl		\in2\().16b, {\in2\().16b}, v13.16b	/* ShiftRows */
 	tbl		\in3\().16b, {\in3\().16b}, v13.16b	/* ShiftRows */
-	ld1		{v15.16b}, [\rkp], #16
+	ld1		{v15.4s}, [\rkp], #16
 	subs		\i, \i, #1
 	beq		2222f
 	.if		\enc == 1
@@ -306,12 +307,16 @@
 	.text
 	.align		4
 .LForward_ShiftRows:
-	.byte		0x0, 0x5, 0xa, 0xf, 0x4, 0x9, 0xe, 0x3
-	.byte		0x8, 0xd, 0x2, 0x7, 0xc, 0x1, 0x6, 0xb
+CPU_LE(	.byte		0x0, 0x5, 0xa, 0xf, 0x4, 0x9, 0xe, 0x3	)
+CPU_LE(	.byte		0x8, 0xd, 0x2, 0x7, 0xc, 0x1, 0x6, 0xb	)
+CPU_BE(	.byte		0xb, 0x6, 0x1, 0xc, 0x7, 0x2, 0xd, 0x8	)
+CPU_BE(	.byte		0x3, 0xe, 0x9, 0x4, 0xf, 0xa, 0x5, 0x0	)
 
 .LReverse_ShiftRows:
-	.byte		0x0, 0xd, 0xa, 0x7, 0x4, 0x1, 0xe, 0xb
-	.byte		0x8, 0x5, 0x2, 0xf, 0xc, 0x9, 0x6, 0x3
+CPU_LE(	.byte		0x0, 0xd, 0xa, 0x7, 0x4, 0x1, 0xe, 0xb	)
+CPU_LE(	.byte		0x8, 0x5, 0x2, 0xf, 0xc, 0x9, 0x6, 0x3	)
+CPU_BE(	.byte		0x3, 0x6, 0x9, 0xc, 0xf, 0x2, 0x5, 0x8	)
+CPU_BE(	.byte		0xb, 0xe, 0x1, 0x4, 0x7, 0xa, 0xd, 0x0	)
 
 .LForward_Sbox:
 	.byte		0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5
arch/arm64/crypto/ghash-ce-core.S +3 -3
index dc457015884e..f0bb9f0b524f 100644
@@ -29,8 +29,8 @@
 	 *			   struct ghash_key const *k, const char *head)
 	 */
 ENTRY(pmull_ghash_update)
-	ld1		{SHASH.16b}, [x3]
-	ld1		{XL.16b}, [x1]
+	ld1		{SHASH.2d}, [x3]
+	ld1		{XL.2d}, [x1]
 	movi		MASK.16b, #0xe1
 	ext		SHASH2.16b, SHASH.16b, SHASH.16b, #8
 	shl		MASK.2d, MASK.2d, #57
@@ -74,6 +74,6 @@ CPU_LE(	rev64		T1.16b, T1.16b	)
 
 	cbnz		w0, 0b
 
-	st1		{XL.16b}, [x1]
+	st1		{XL.2d}, [x1]
 	ret
 ENDPROC(pmull_ghash_update)
arch/arm64/crypto/sha1-ce-core.S +2 -2
index 033aae6d732a..c98e7e849f06 100644
@@ -78,7 +78,7 @@ ENTRY(sha1_ce_transform)
 	ld1r		{k3.4s}, [x6]
 
 	/* load state */
-	ldr		dga, [x0]
+	ld1		{dgav.4s}, [x0]
 	ldr		dgb, [x0, #16]
 
 	/* load sha1_ce_state::finalize */
@@ -144,7 +144,7 @@ CPU_LE(	rev32		v11.16b, v11.16b	)
 	b		1b
 
 	/* store new state */
-3:	str		dga, [x0]
+3:	st1		{dgav.4s}, [x0]
 	str		dgb, [x0, #16]
 	ret
 ENDPROC(sha1_ce_transform)
arch/arm64/crypto/sha2-ce-core.S +2 -2
index 5df9d9d470ad..01cfee066837 100644
@@ -85,7 +85,7 @@ ENTRY(sha2_ce_transform)
 	ld1		{v12.4s-v15.4s}, [x8]
 
 	/* load state */
-	ldp		dga, dgb, [x0]
+	ld1		{dgav.4s, dgbv.4s}, [x0]
 
 	/* load sha256_ce_state::finalize */
 	ldr		w4, [x0, #:lo12:sha256_ce_offsetof_finalize]
@@ -148,6 +148,6 @@ CPU_LE(	rev32		v19.16b, v19.16b	)
 	b		1b
 
 	/* store new state */
-3:	stp		dga, dgb, [x0]
+3:	st1		{dgav.4s, dgbv.4s}, [x0]
 	ret
 ENDPROC(sha2_ce_transform)
arch/cris/boot/rescue/Makefile +8 -0
index 52bd0bd1dd22..d98edbb30a18 100644
@@ -10,6 +10,9 @@
 
 asflags-y += $(LINUXINCLUDE)
 ccflags-y += -O2 $(LINUXINCLUDE)
+
+ifdef CONFIG_ETRAX_AXISFLASHMAP
+
 arch-$(CONFIG_ETRAX_ARCH_V10) = v10
 arch-$(CONFIG_ETRAX_ARCH_V32) = v32
 
@@ -28,6 +31,11 @@ $(obj)/rescue.bin: $(obj)/rescue.o FORCE
 	$(call if_changed,objcopy)
 	cp -p $(obj)/rescue.bin $(objtree)
 
+else
+$(obj)/rescue.bin:
+
+endif
+
 $(obj)/testrescue.bin: $(obj)/testrescue.o
 	$(OBJCOPY) $(OBJCOPYFLAGS) $(obj)/testrescue.o tr.bin
 # Pad it to 784 bytes
arch/mips/kvm/entry.c +4 -1
index 6a02b3a3fa65..e92fb190e2d6 100644
@@ -521,6 +521,9 @@ void *kvm_mips_build_exit(void *addr)
 	uasm_i_and(&p, V0, V0, AT);
 	uasm_i_lui(&p, AT, ST0_CU0 >> 16);
 	uasm_i_or(&p, V0, V0, AT);
+#ifdef CONFIG_64BIT
+	uasm_i_ori(&p, V0, V0, ST0_SX | ST0_UX);
+#endif
 	uasm_i_mtc0(&p, V0, C0_STATUS);
 	uasm_i_ehb(&p);
 
@@ -643,7 +646,7 @@ static void *kvm_mips_build_ret_to_guest(void *addr)
 
 	/* Setup status register for running guest in UM */
 	uasm_i_ori(&p, V1, V1, ST0_EXL | KSU_USER | ST0_IE);
-	UASM_i_LA(&p, AT, ~(ST0_CU0 | ST0_MX));
+	UASM_i_LA(&p, AT, ~(ST0_CU0 | ST0_MX | ST0_SX | ST0_UX));
 	uasm_i_and(&p, V1, V1, AT);
 	uasm_i_mtc0(&p, V1, C0_STATUS);
 	uasm_i_ehb(&p);
arch/mips/kvm/mips.c +2 -2
index 06a60b19acfb..29ec9ab3fd55 100644
@@ -360,8 +360,8 @@ struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id)
 	dump_handler("kvm_exit", gebase + 0x2000, vcpu->arch.vcpu_run);
 
 	/* Invalidate the icache for these ranges */
-	local_flush_icache_range((unsigned long)gebase,
-				(unsigned long)gebase + ALIGN(size, PAGE_SIZE));
+	flush_icache_range((unsigned long)gebase,
+			   (unsigned long)gebase + ALIGN(size, PAGE_SIZE));
 
 	/*
 	 * Allocate comm page for guest kernel, a TLB will be reserved for
arch/parisc/kernel/time.c +20 -3
index 325f30d82b64..47ef8fdcd382 100644
@@ -289,9 +289,26 @@ void __init time_init(void)
 
 	cr16_hz = 100 * PAGE0->mem_10msec;  /* Hz */
 
-	/* register at clocksource framework */
-	clocksource_register_hz(&clocksource_cr16, cr16_hz);
-
 	/* register as sched_clock source */
 	sched_clock_register(read_cr16_sched_clock, BITS_PER_LONG, cr16_hz);
 }
+
+static int __init init_cr16_clocksource(void)
+{
+	/*
+	 * The cr16 interval timers are not syncronized across CPUs, so mark
+	 * them unstable and lower rating on SMP systems.
+	 */
+	if (num_online_cpus() > 1) {
+		clocksource_cr16.flags = CLOCK_SOURCE_UNSTABLE;
+		clocksource_cr16.rating = 0;
+	}
+
+	/* register at clocksource framework */
+	clocksource_register_hz(&clocksource_cr16,
+		100 * PAGE0->mem_10msec);
+
+	return 0;
+}
+
+device_initcall(init_cr16_clocksource);
arch/parisc/mm/fault.c +1 -1
index 8ff9253930af..1a0b4f63f0e9 100644
@@ -234,7 +234,7 @@ show_signal_msg(struct pt_regs *regs, unsigned long code,
 	    tsk->comm, code, address);
 	print_vma_addr(KERN_CONT " in ", regs->iaoq[0]);
 
-	pr_cont(" trap #%lu: %s%c", code, trap_name(code),
+	pr_cont("\ntrap #%lu: %s%c", code, trap_name(code),
 		vma ? ',':'\n');
 
 	if (vma)
arch/s390/crypto/prng.c +4 -2
index 9cc050f9536c..1113389d0a39 100644
@@ -507,8 +507,10 @@ static ssize_t prng_tdes_read(struct file *file, char __user *ubuf,
 		prng_data->prngws.byte_counter += n;
 		prng_data->prngws.reseed_counter += n;
 
-		if (copy_to_user(ubuf, prng_data->buf, chunk))
-			return -EFAULT;
+		if (copy_to_user(ubuf, prng_data->buf, chunk)) {
+			ret = -EFAULT;
+			break;
+		}
 
 		nbytes -= chunk;
 		ret += chunk;
arch/s390/kernel/topology.c +1 -1
index e959c02e0cac..8705ee66c087 100644
@@ -448,6 +448,7 @@ static int __init s390_topology_init(void)
 	struct sysinfo_15_1_x *info;
 	int i;
 
+	set_sched_topology(s390_topology);
 	if (!MACHINE_HAS_TOPOLOGY)
 		return 0;
 	tl_info = (struct sysinfo_15_1_x *)__get_free_page(GFP_KERNEL);
@@ -460,7 +461,6 @@ static int __init s390_topology_init(void)
 	alloc_masks(info, &socket_info, 1);
 	alloc_masks(info, &book_info, 2);
 	alloc_masks(info, &drawer_info, 3);
-	set_sched_topology(s390_topology);
 	return 0;
 }
 early_initcall(s390_topology_init);
arch/s390/pci/pci_dma.c +8 -7
index 6b2f72f523b9..049e3860ac54 100644
@@ -419,6 +419,7 @@ static int __s390_dma_map_sg(struct device *dev, struct scatterlist *sg,
 			     size_t size, dma_addr_t *handle,
 			     enum dma_data_direction dir)
 {
+	unsigned long nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT;
 	struct zpci_dev *zdev = to_zpci(to_pci_dev(dev));
 	dma_addr_t dma_addr_base, dma_addr;
 	int flags = ZPCI_PTE_VALID;
@@ -426,8 +427,7 @@ static int __s390_dma_map_sg(struct device *dev, struct scatterlist *sg,
 	unsigned long pa = 0;
 	int ret;
 
-	size = PAGE_ALIGN(size);
-	dma_addr_base = dma_alloc_address(dev, size >> PAGE_SHIFT);
+	dma_addr_base = dma_alloc_address(dev, nr_pages);
 	if (dma_addr_base == DMA_ERROR_CODE)
 		return -ENOMEM;
 
@@ -436,26 +436,27 @@ static int __s390_dma_map_sg(struct device *dev, struct scatterlist *sg,
 		flags |= ZPCI_TABLE_PROTECTED;
 
 	for (s = sg; dma_addr < dma_addr_base + size; s = sg_next(s)) {
-		pa = page_to_phys(sg_page(s)) + s->offset;
-		ret = __dma_update_trans(zdev, pa, dma_addr, s->length, flags);
+		pa = page_to_phys(sg_page(s));
+		ret = __dma_update_trans(zdev, pa, dma_addr,
+					 s->offset + s->length, flags);
 		if (ret)
 			goto unmap;
 
-		dma_addr += s->length;
+		dma_addr += s->offset + s->length;
 	}
 	ret = __dma_purge_tlb(zdev, dma_addr_base, size, flags);
 	if (ret)
 		goto unmap;
 
 	*handle = dma_addr_base;
-	atomic64_add(size >> PAGE_SHIFT, &zdev->mapped_pages);
+	atomic64_add(nr_pages, &zdev->mapped_pages);
 
 	return ret;
 
 unmap:
 	dma_update_trans(zdev, 0, dma_addr_base, dma_addr - dma_addr_base,
 			 ZPCI_PTE_INVALID);
-	dma_free_address(dev, dma_addr_base, size >> PAGE_SHIFT);
+	dma_free_address(dev, dma_addr_base, nr_pages);
 	zpci_err("map error:\n");
 	zpci_err_dma(ret, pa);
 	return ret;
arch/x86/include/uapi/asm/prctl.h +3 -5
index ae135de547f5..835aa51c7f6e 100644
@@ -6,10 +6,8 @@
 #define ARCH_GET_FS 0x1003
 #define ARCH_GET_GS 0x1004
 
-#ifdef CONFIG_CHECKPOINT_RESTORE
-# define ARCH_MAP_VDSO_X32	0x2001
-# define ARCH_MAP_VDSO_32	0x2002
-# define ARCH_MAP_VDSO_64	0x2003
-#endif
+#define ARCH_MAP_VDSO_X32	0x2001
+#define ARCH_MAP_VDSO_32	0x2002
+#define ARCH_MAP_VDSO_64	0x2003
 
 #endif /* _ASM_X86_PRCTL_H */
arch/x86/kernel/cpu/common.c +4 -3
index c2048b44851c..dd62708c6a67 100644
@@ -667,13 +667,14 @@ void get_cpu_cap(struct cpuinfo_x86 *c)
 		c->x86_capability[CPUID_1_EDX] = edx;
 	}
 
+	/* Thermal and Power Management Leaf: level 0x00000006 (eax) */
+	if (c->cpuid_level >= 0x00000006)
+		c->x86_capability[CPUID_6_EAX] = cpuid_eax(0x00000006);
+
 	/* Additional Intel-defined flags: level 0x00000007 */
 	if (c->cpuid_level >= 0x00000007) {
 		cpuid_count(0x00000007, 0, &eax, &ebx, &ecx, &edx);
-
 		c->x86_capability[CPUID_7_0_EBX] = ebx;
-
-		c->x86_capability[CPUID_6_EAX] = cpuid_eax(0x00000006);
 		c->x86_capability[CPUID_7_ECX] = ecx;
 	}
 
arch/x86/kvm/x86.c +7 -2
index 04c5d96b1d67..f3648c978d2f 100644
@@ -3036,6 +3036,8 @@ static void kvm_vcpu_ioctl_x86_get_vcpu_events(struct kvm_vcpu *vcpu,
 	memset(&events->reserved, 0, sizeof(events->reserved));
 }
 
+static void kvm_set_hflags(struct kvm_vcpu *vcpu, unsigned emul_flags);
+
 static int kvm_vcpu_ioctl_x86_set_vcpu_events(struct kvm_vcpu *vcpu,
 					      struct kvm_vcpu_events *events)
 {
@@ -3072,10 +3074,13 @@ static int kvm_vcpu_ioctl_x86_set_vcpu_events(struct kvm_vcpu *vcpu,
 		vcpu->arch.apic->sipi_vector = events->sipi_vector;
 
 	if (events->flags & KVM_VCPUEVENT_VALID_SMM) {
+		u32 hflags = vcpu->arch.hflags;
 		if (events->smi.smm)
-			vcpu->arch.hflags |= HF_SMM_MASK;
+			hflags |= HF_SMM_MASK;
 		else
-			vcpu->arch.hflags &= ~HF_SMM_MASK;
+			hflags &= ~HF_SMM_MASK;
+		kvm_set_hflags(vcpu, hflags);
+
 		vcpu->arch.smi_pending = events->smi.pending;
 		if (events->smi.smm_inside_nmi)
 			vcpu->arch.hflags |= HF_SMM_INSIDE_NMI_MASK;
drivers/base/power/power.h +18 -1
index 50e30e7b059d..a84332aefc2d 100644
@@ -21,14 +21,22 @@ extern void pm_runtime_init(struct device *dev);
 extern void pm_runtime_reinit(struct device *dev);
 extern void pm_runtime_remove(struct device *dev);
 
+#define WAKE_IRQ_DEDICATED_ALLOCATED	BIT(0)
+#define WAKE_IRQ_DEDICATED_MANAGED	BIT(1)
+#define WAKE_IRQ_DEDICATED_MASK		(WAKE_IRQ_DEDICATED_ALLOCATED | \
+					 WAKE_IRQ_DEDICATED_MANAGED)
+
 struct wake_irq {
 	struct device *dev;
+	unsigned int status;
 	int irq;
-	bool dedicated_irq:1;
 };
 
 extern void dev_pm_arm_wake_irq(struct wake_irq *wirq);
 extern void dev_pm_disarm_wake_irq(struct wake_irq *wirq);
+extern void dev_pm_enable_wake_irq_check(struct device *dev,
+					 bool can_change_status);
+extern void dev_pm_disable_wake_irq_check(struct device *dev);
 
 #ifdef CONFIG_PM_SLEEP
 
@@ -104,6 +112,15 @@ static inline void dev_pm_disarm_wake_irq(struct wake_irq *wirq)
 {
 }
 
+static inline void dev_pm_enable_wake_irq_check(struct device *dev,
+						bool can_change_status)
+{
+}
+
+static inline void dev_pm_disable_wake_irq_check(struct device *dev)
+{
+}
+
 #endif
 
 #ifdef CONFIG_PM_SLEEP
drivers/base/power/runtime.c +4 -4
index 82a081ea4317..23f3b95a1158 100644
@@ -515,7 +515,7 @@ static int rpm_suspend(struct device *dev, int rpmflags)
 
 	callback = RPM_GET_CALLBACK(dev, runtime_suspend);
 
-	dev_pm_enable_wake_irq(dev);
+	dev_pm_enable_wake_irq_check(dev, true);
 	retval = rpm_callback(callback, dev);
 	if (retval)
 		goto fail;
@@ -554,7 +554,7 @@ static int rpm_suspend(struct device *dev, int rpmflags)
 	return retval;
 
  fail:
-	dev_pm_disable_wake_irq(dev);
+	dev_pm_disable_wake_irq_check(dev);
 	__update_runtime_status(dev, RPM_ACTIVE);
 	dev->power.deferred_resume = false;
 	wake_up_all(&dev->power.wait_queue);
@@ -737,12 +737,12 @@ static int rpm_resume(struct device *dev, int rpmflags)
 
 	callback = RPM_GET_CALLBACK(dev, runtime_resume);
 
-	dev_pm_disable_wake_irq(dev);
+	dev_pm_disable_wake_irq_check(dev);
 	retval = rpm_callback(callback, dev);
 	if (retval) {
 		__update_runtime_status(dev, RPM_SUSPENDED);
 		pm_runtime_cancel_pending(dev);
-		dev_pm_enable_wake_irq(dev);
+		dev_pm_enable_wake_irq_check(dev, false);
 	} else {
  no_callback:
 		__update_runtime_status(dev, RPM_ACTIVE);
drivers/base/power/wakeirq.c +66 -10

123 lines not on this page · raw message

drivers/char/tpm/tpm_tis_core.c +13 -2
index e3bf31b37138..a1ce0607bf7b 100644
@@ -185,7 +185,12 @@ static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count)
 				 TPM_STS_DATA_AVAIL | TPM_STS_VALID,
 				 chip->timeout_c,
 				 &priv->read_queue, true) == 0) {
-		burstcnt = min_t(int, get_burstcount(chip), count - size);
+		burstcnt = get_burstcount(chip);
+		if (burstcnt < 0) {
+			dev_err(&chip->dev, "Unable to read burstcount\n");
+			return burstcnt;
+		}
+		burstcnt = min_t(int, burstcnt, count - size);
 
 		rc = tpm_tis_read_bytes(priv, TPM_DATA_FIFO(priv->locality),
 					burstcnt, buf + size);
@@ -271,7 +276,13 @@ static int tpm_tis_send_data(struct tpm_chip *chip, u8 *buf, size_t len)
 	}
 
 	while (count < len - 1) {
-		burstcnt = min_t(int, get_burstcount(chip), len - count - 1);
+		burstcnt = get_burstcount(chip);
+		if (burstcnt < 0) {
+			dev_err(&chip->dev, "Unable to read burstcount\n");
+			rc = burstcnt;
+			goto out_err;
+		}
+		burstcnt = min_t(int, burstcnt, len - count - 1);
 		rc = tpm_tis_write_bytes(priv, TPM_DATA_FIFO(priv->locality),
 					 burstcnt, buf + count);
 		if (rc < 0)
drivers/clk/clk-wm831x.c +1 -1
index f4fdac55727c..0621fbfb4beb 100644
@@ -243,7 +243,7 @@ static int wm831x_clkout_is_prepared(struct clk_hw *hw)
 	if (ret < 0) {
 		dev_err(wm831x->dev, "Unable to read CLOCK_CONTROL_1: %d\n",
 			ret);
-		return true;
+		return false;
 	}
 
 	return (ret & WM831X_CLKOUT_ENA) != 0;
drivers/clk/imx/clk-imx31.c +1 -3
index 6a964144a5b5..6a49ba2b9671 100644
@@ -157,10 +157,8 @@ static void __init _mx31_clocks_init(unsigned long fref)
 	}
 }
 
-int __init mx31_clocks_init(void)
+int __init mx31_clocks_init(unsigned long fref)
 {
-	u32 fref = 26000000; /* default */
-
 	_mx31_clocks_init(fref);
 
 	clk_register_clkdev(clk[gpt_gate], "per", "imx-gpt.0");
drivers/clk/qcom/gcc-ipq806x.c +2 -2
index 52a7d3959875..28eb200d0f1e 100644
@@ -2990,11 +2990,11 @@ static int gcc_ipq806x_probe(struct platform_device *pdev)
 	struct regmap *regmap;
 	int ret;
 
-	ret = qcom_cc_register_board_clk(dev, "cxo_board", "cxo", 19200000);
+	ret = qcom_cc_register_board_clk(dev, "cxo_board", "cxo", 25000000);
 	if (ret)
 		return ret;
 
-	ret = qcom_cc_register_board_clk(dev, "pxo_board", "pxo", 27000000);
+	ret = qcom_cc_register_board_clk(dev, "pxo_board", "pxo", 25000000);
 	if (ret)
 		return ret;
 
drivers/clk/renesas/clk-mstp.c +22 -5
index 9375777776d9..b533f99550e1 100644
@@ -37,12 +37,14 @@
  * @smstpcr: module stop control register
  * @mstpsr: module stop status register (optional)
  * @lock: protects writes to SMSTPCR
+ * @width_8bit: registers are 8-bit, not 32-bit
  */
 struct mstp_clock_group {
 	struct clk_onecell_data data;
 	void __iomem *smstpcr;
 	void __iomem *mstpsr;
 	spinlock_t lock;
+	bool width_8bit;
 };
 
 /**
@@ -59,6 +61,18 @@ struct mstp_clock {
 
 #define to_mstp_clock(_hw) container_of(_hw, struct mstp_clock, hw)
 
+static inline u32 cpg_mstp_read(struct mstp_clock_group *group,
+				u32 __iomem *reg)
+{
+	return group->width_8bit ? readb(reg) : clk_readl(reg);
+}
+
+static inline void cpg_mstp_write(struct mstp_clock_group *group, u32 val,
+				  u32 __iomem *reg)
+{
+	group->width_8bit ? writeb(val, reg) : clk_writel(val, reg);
+}
+
 static int cpg_mstp_clock_endisable(struct clk_hw *hw, bool enable)
 {
 	struct mstp_clock *clock = to_mstp_clock(hw);
@@ -70,12 +84,12 @@ static int cpg_mstp_clock_endisable(struct clk_hw *hw, bool enable)
 
 	spin_lock_irqsave(&group->lock, flags);
 
-	value = clk_readl(group->smstpcr);
+	value = cpg_mstp_read(group, group->smstpcr);
 	if (enable)
 		value &= ~bitmask;
 	else
 		value |= bitmask;
-	clk_writel(value, group->smstpcr);
+	cpg_mstp_write(group, value, group->smstpcr);
 
 	spin_unlock_irqrestore(&group->lock, flags);
 
@@ -83,7 +97,7 @@ static int cpg_mstp_clock_endisable(struct clk_hw *hw, bool enable)
 		return 0;
 
 	for (i = 1000; i > 0; --i) {
-		if (!(clk_readl(group->mstpsr) & bitmask))
+		if (!(cpg_mstp_read(group, group->mstpsr) & bitmask))
 			break;
 		cpu_relax();
 	}
@@ -114,9 +128,9 @@ static int cpg_mstp_clock_is_enabled(struct clk_hw *hw)
 	u32 value;
 
 	if (group->mstpsr)
-		value = clk_readl(group->mstpsr);
+		value = cpg_mstp_read(group, group->mstpsr);
 	else
-		value = clk_readl(group->smstpcr);
+		value = cpg_mstp_read(group, group->smstpcr);
 
 	return !(value & BIT(clock->bit_index));
 }
@@ -188,6 +202,9 @@ static void __init cpg_mstp_clocks_init(struct device_node *np)
 		return;
 	}
 
+	if (of_device_is_compatible(np, "renesas,r7s72100-mstp-clocks"))
+		group->width_8bit = true;
+
 	for (i = 0; i < MSTP_MAX_CLOCKS; ++i)
 		clks[i] = ERR_PTR(-ENOENT);
 
drivers/clk/renesas/renesas-cpg-mssr.c +2 -2
index e1365e7491ae..25c41cd9cdfc 100644
@@ -33,9 +33,9 @@
 #include "clk-div6.h"
 
 #ifdef DEBUG
-#define WARN_DEBUG(x)	do { } while (0)
-#else
 #define WARN_DEBUG(x)	WARN_ON(x)
+#else
+#define WARN_DEBUG(x)	do { } while (0)
 #endif
 
 
drivers/clk/sunxi-ng/ccu-sun8i-a23.c +3 -3
index 2646d980087b..5c6d37bdf247 100644
@@ -344,10 +344,10 @@ static SUNXI_CCU_MP_WITH_MUX_GATE(spi1_clk, "spi1", mod0_default_parents, 0x0a4,
 static const char * const i2s_parents[] = { "pll-audio-8x", "pll-audio-4x",
 					    "pll-audio-2x", "pll-audio" };
 static SUNXI_CCU_MUX_WITH_GATE(i2s0_clk, "i2s0", i2s_parents,
-			       0x0b0, 16, 2, BIT(31), 0);
+			       0x0b0, 16, 2, BIT(31), CLK_SET_RATE_PARENT);
 
 static SUNXI_CCU_MUX_WITH_GATE(i2s1_clk, "i2s1", i2s_parents,
-			       0x0b4, 16, 2, BIT(31), 0);
+			       0x0b4, 16, 2, BIT(31), CLK_SET_RATE_PARENT);
 
 /* TODO: the parent for most of the USB clocks is not known */
 static SUNXI_CCU_GATE(usb_phy0_clk,	"usb-phy0",	"osc24M",
@@ -415,7 +415,7 @@ static SUNXI_CCU_M_WITH_GATE(ve_clk, "ve", "pll-ve",
 			     0x13c, 16, 3, BIT(31), CLK_SET_RATE_PARENT);
 
 static SUNXI_CCU_GATE(ac_dig_clk,	"ac-dig",	"pll-audio",
-		      0x140, BIT(31), 0);
+		      0x140, BIT(31), CLK_SET_RATE_PARENT);
 static SUNXI_CCU_GATE(avs_clk,		"avs",		"osc24M",
 		      0x144, BIT(31), 0);
 
drivers/clk/sunxi-ng/ccu-sun8i-h3.c +5 -5
index 4d70590f05e3..21c427d86f28 100644
@@ -394,16 +394,16 @@ static SUNXI_CCU_MP_WITH_MUX_GATE(spi1_clk, "spi1", mod0_default_parents, 0x0a4,
 static const char * const i2s_parents[] = { "pll-audio-8x", "pll-audio-4x",
 					    "pll-audio-2x", "pll-audio" };
 static SUNXI_CCU_MUX_WITH_GATE(i2s0_clk, "i2s0", i2s_parents,
-			       0x0b0, 16, 2, BIT(31), 0);
+			       0x0b0, 16, 2, BIT(31), CLK_SET_RATE_PARENT);
 
 static SUNXI_CCU_MUX_WITH_GATE(i2s1_clk, "i2s1", i2s_parents,
-			       0x0b4, 16, 2, BIT(31), 0);
+			       0x0b4, 16, 2, BIT(31), CLK_SET_RATE_PARENT);
 
 static SUNXI_CCU_MUX_WITH_GATE(i2s2_clk, "i2s2", i2s_parents,
-			       0x0b8, 16, 2, BIT(31), 0);
+			       0x0b8, 16, 2, BIT(31), CLK_SET_RATE_PARENT);
 
 static SUNXI_CCU_M_WITH_GATE(spdif_clk, "spdif", "pll-audio",
-			     0x0c0, 0, 4, BIT(31), 0);
+			     0x0c0, 0, 4, BIT(31), CLK_SET_RATE_PARENT);
 
 static SUNXI_CCU_GATE(usb_phy0_clk,	"usb-phy0",	"osc24M",
 		      0x0cc, BIT(8), 0);
@@ -466,7 +466,7 @@ static SUNXI_CCU_M_WITH_GATE(ve_clk, "ve", "pll-ve",
 			     0x13c, 16, 3, BIT(31), 0);
 
 static SUNXI_CCU_GATE(ac_dig_clk,	"ac-dig",	"pll-audio",
-		      0x140, BIT(31), 0);
+		      0x140, BIT(31), CLK_SET_RATE_PARENT);
 static SUNXI_CCU_GATE(avs_clk,		"avs",		"osc24M",
 		      0x144, BIT(31), 0);
 
drivers/clk/ti/clk-7xx.c +0 -1
index bfa17d33ef3b..9fd6043314eb 100644
@@ -201,7 +201,6 @@ static struct ti_dt_clk dra7xx_clks[] = {
 	DT_CLK(NULL, "atl_dpll_clk_mux", "atl_dpll_clk_mux"),
 	DT_CLK(NULL, "atl_gfclk_mux", "atl_gfclk_mux"),
 	DT_CLK(NULL, "dcan1_sys_clk_mux", "dcan1_sys_clk_mux"),
-	DT_CLK(NULL, "gmac_gmii_ref_clk_div", "gmac_gmii_ref_clk_div"),
 	DT_CLK(NULL, "gmac_rft_clk_mux", "gmac_rft_clk_mux"),
 	DT_CLK(NULL, "gpu_core_gclk_mux", "gpu_core_gclk_mux"),
 	DT_CLK(NULL, "gpu_hyd_gclk_mux", "gpu_hyd_gclk_mux"),
drivers/firmware/efi/efi.c +3 -1
index 1ac199cd75e7..a4944e22f294 100644
@@ -259,8 +259,10 @@ static __init int efivar_ssdt_load(void)
 		}
 
 		data = kmalloc(size, GFP_KERNEL);
-		if (!data)
+		if (!data) {
+			ret = -ENOMEM;
 			goto free_entry;
+		}
 
 		ret = efivar_entry_get(entry, NULL, &size, data);
 		if (ret) {
drivers/gpu/drm/i915/i915_gem_request.h +19 -0
index 974bd7bcc801..59ac90025552 100644
@@ -344,6 +344,25 @@ i915_gem_active_set(struct i915_gem_active *active,
 	rcu_assign_pointer(active->request, request);
 }
 
+/**
+ * i915_gem_active_set_retire_fn - updates the retirement callback
+ * @active - the active tracker
+ * @fn - the routine called when the request is retired
+ * @mutex - struct_mutex used to guard retirements
+ *
+ * i915_gem_active_set_retire_fn() updates the function pointer that
+ * is called when the final request associated with the @active tracker
+ * is retired.
+ */
+static inline void
+i915_gem_active_set_retire_fn(struct i915_gem_active *active,
+			      i915_gem_retire_fn fn,
+			      struct mutex *mutex)
+{
+	lockdep_assert_held(mutex);
+	active->retire = fn ?: i915_gem_retire_noop;
+}
+
 static inline struct drm_i915_gem_request *
 __i915_gem_active_peek(const struct i915_gem_active *active)
 {
drivers/gpu/drm/i915/intel_dp.c +39 -7

100 lines not on this page · raw message

drivers/gpu/drm/i915/intel_overlay.c +6 -3
index a24bc8c7889f..a2655cd5a84e 100644
@@ -216,7 +216,8 @@ static void intel_overlay_submit_request(struct intel_overlay *overlay,
 {
 	GEM_BUG_ON(i915_gem_active_peek(&overlay->last_flip,
 					&overlay->i915->drm.struct_mutex));
-	overlay->last_flip.retire = retire;
+	i915_gem_active_set_retire_fn(&overlay->last_flip, retire,
+				      &overlay->i915->drm.struct_mutex);
 	i915_gem_active_set(&overlay->last_flip, req);
 	i915_add_request(req);
 }
@@ -839,8 +840,8 @@ static int intel_overlay_do_put_image(struct intel_overlay *overlay,
 	if (ret)
 		goto out_unpin;
 
-	i915_gem_track_fb(overlay->vma->obj, new_bo,
-			  INTEL_FRONTBUFFER_OVERLAY(pipe));
+	i915_gem_track_fb(overlay->vma ? overlay->vma->obj : NULL,
+			  vma->obj, INTEL_FRONTBUFFER_OVERLAY(pipe));
 
 	overlay->old_vma = overlay->vma;
 	overlay->vma = vma;
@@ -1430,6 +1431,8 @@ void intel_setup_overlay(struct drm_i915_private *dev_priv)
 	overlay->contrast = 75;
 	overlay->saturation = 146;
 
+	init_request_active(&overlay->last_flip, NULL);
+
 	regs = intel_overlay_map_regs(overlay);
 	if (!regs)
 		goto out_unpin_bo;
drivers/gpu/drm/i915/intel_pm.c +42 -8

102 lines not on this page · raw message

drivers/gpu/drm/i915/intel_psr.c +3 -7
index 108ba1e5d658..9b307cee3008 100644
@@ -825,13 +825,9 @@ void intel_psr_init(struct drm_device *dev)
 	dev_priv->psr_mmio_base = IS_HASWELL(dev_priv) ?
 		HSW_EDP_PSR_BASE : BDW_EDP_PSR_BASE;
 
-	/* Per platform default */
-	if (i915.enable_psr == -1) {
-		if (IS_HASWELL(dev) || IS_BROADWELL(dev))
-			i915.enable_psr = 1;
-		else
-			i915.enable_psr = 0;
-	}
+	/* Per platform default: all disabled. */
+	if (i915.enable_psr == -1)
+		i915.enable_psr = 0;
 
 	/* Set link_standby x link_off defaults */
 	if (IS_HASWELL(dev) || IS_BROADWELL(dev))
drivers/gpu/drm/radeon/radeon_cursor.c +3 -3
index 87a72476d313..fb16070b266e 100644
@@ -146,6 +146,9 @@ static int radeon_cursor_move_locked(struct drm_crtc *crtc, int x, int y)
 	int xorigin = 0, yorigin = 0;
 	int w = radeon_crtc->cursor_width;
 
+	radeon_crtc->cursor_x = x;
+	radeon_crtc->cursor_y = y;
+
 	if (ASIC_IS_AVIVO(rdev)) {
 		/* avivo cursor are offset into the total surface */
 		x += crtc->x;
@@ -240,9 +243,6 @@ static int radeon_cursor_move_locked(struct drm_crtc *crtc, int x, int y)
 		       yorigin * 256);
 	}
 
-	radeon_crtc->cursor_x = x;
-	radeon_crtc->cursor_y = y;
-
 	if (radeon_crtc->cursor_out_of_bounds) {
 		radeon_crtc->cursor_out_of_bounds = false;
 		if (radeon_crtc->cursor_bo)
drivers/hid/hid-sensor-hub.c +2 -1
index 60875625cbdf..8f6c35370f66 100644
@@ -212,7 +212,6 @@ int sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
 	__s32 value;
 	int ret = 0;
 
-	memset(buffer, 0, buffer_size);
 	mutex_lock(&data->mutex);
 	report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT);
 	if (!report || (field_index >= report->maxfield)) {
@@ -256,6 +255,8 @@ int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
 	int buffer_index = 0;
 	int i;
 
+	memset(buffer, 0, buffer_size);
+
 	mutex_lock(&data->mutex);
 	report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT);
 	if (!report || (field_index >= report->maxfield) ||
drivers/hwmon/amc6821.c +2 -2
index 12e851a5af48..46b4e35fd555 100644
@@ -188,8 +188,8 @@ static struct amc6821_data *amc6821_update_device(struct device *dev)
 			!data->valid) {
 
 		for (i = 0; i < TEMP_IDX_LEN; i++)
-			data->temp[i] = i2c_smbus_read_byte_data(client,
-				temp_reg[i]);
+			data->temp[i] = (int8_t)i2c_smbus_read_byte_data(
+				client, temp_reg[i]);
 
 		data->stat1 = i2c_smbus_read_byte_data(client,
 			AMC6821_REG_STAT1);
drivers/hwmon/ds620.c +1 -1
index edf550fc4eef..0043a4c02b85 100644
@@ -166,7 +166,7 @@ static ssize_t set_temp(struct device *dev, struct device_attribute *da,
 	if (res)
 		return res;
 
-	val = (val * 10 / 625) * 8;
+	val = (clamp_val(val, -128000, 128000) * 10 / 625) * 8;
 
 	mutex_lock(&data->update_lock);
 	data->temp[attr->index] = val;
drivers/hwmon/g762.c +7 -4
index b96a2a9e4df7..628be9c95ff9 100644
@@ -193,14 +193,17 @@ static inline unsigned int rpm_from_cnt(u8 cnt, u32 clk_freq, u16 p,
  * Convert fan RPM value from sysfs into count value for fan controller
  * register (FAN_SET_CNT).
  */
-static inline unsigned char cnt_from_rpm(u32 rpm, u32 clk_freq, u16 p,
+static inline unsigned char cnt_from_rpm(unsigned long rpm, u32 clk_freq, u16 p,
 					 u8 clk_div, u8 gear_mult)
 {
-	if (!rpm)         /* to stop the fan, set cnt to 255 */
+	unsigned long f1 = clk_freq * 30 * gear_mult;
+	unsigned long f2 = p * clk_div;
+
+	if (!rpm)	/* to stop the fan, set cnt to 255 */
 		return 0xff;
 
-	return clamp_val(((clk_freq * 30 * gear_mult) / (rpm * p * clk_div)),
-			 0, 255);
+	rpm = clamp_val(rpm, f1 / (255 * f2), ULONG_MAX / f2);
+	return DIV_ROUND_CLOSEST(f1, rpm * f2);
 }
 
 /* helper to grab and cache data, at most one time per second */
drivers/hwmon/lm90.c +1 -1
index 322ed9272811..841f2428e84a 100644
@@ -1036,7 +1036,7 @@ static const u8 lm90_temp_emerg_index[3] = {
 };
 
 static const u8 lm90_min_alarm_bits[3] = { 5, 3, 11 };
-static const u8 lm90_max_alarm_bits[3] = { 0, 4, 12 };
+static const u8 lm90_max_alarm_bits[3] = { 6, 4, 12 };
 static const u8 lm90_crit_alarm_bits[3] = { 0, 1, 9 };
 static const u8 lm90_emergency_alarm_bits[3] = { 15, 13, 14 };
 static const u8 lm90_fault_bits[3] = { 0, 2, 10 };
drivers/hwmon/nct7802.c +5 -3
index 3ce33d244cc0..12b94b094c0d 100644
@@ -259,13 +259,15 @@ static int nct7802_read_fan_min(struct nct7802_data *data, u8 reg_fan_low,
 		ret = 0;
 	else if (ret)
 		ret = DIV_ROUND_CLOSEST(1350000U, ret);
+	else
+		ret = 1350000U;
 abort:
 	mutex_unlock(&data->access_lock);
 	return ret;
 }
 
 static int nct7802_write_fan_min(struct nct7802_data *data, u8 reg_fan_low,
-				 u8 reg_fan_high, unsigned int limit)
+				 u8 reg_fan_high, unsigned long limit)
 {
 	int err;
 
@@ -326,8 +328,8 @@ static int nct7802_write_voltage(struct nct7802_data *data, int nr, int index,
 	int shift = 8 - REG_VOLTAGE_LIMIT_MSB_SHIFT[index - 1][nr];
 	int err;
 
+	voltage = clamp_val(voltage, 0, 0x3ff * nct7802_vmul[nr]);
 	voltage = DIV_ROUND_CLOSEST(voltage, nct7802_vmul[nr]);
-	voltage = clamp_val(voltage, 0, 0x3ff);
 
 	mutex_lock(&data->access_lock);
 	err = regmap_write(data->regmap,
@@ -402,7 +404,7 @@ static ssize_t store_temp(struct device *dev, struct device_attribute *attr,
 	if (err < 0)
 		return err;
 
-	val = clamp_val(DIV_ROUND_CLOSEST(val, 1000), -128, 127);
+	val = DIV_ROUND_CLOSEST(clamp_val(val, -128000, 127000), 1000);
 
 	err = regmap_write(data->regmap, nr, val & 0xff);
 	return err ? : count;
drivers/hwmon/scpi-hwmon.c +1 -0
index 559a3dcd64d8..094f948f99ff 100644
@@ -251,6 +251,7 @@ static const struct of_device_id scpi_of_match[] = {
 	{.compatible = "arm,scpi-sensors"},
 	{},
 };
+MODULE_DEVICE_TABLE(of, scpi_of_match);
 
 static struct platform_driver scpi_hwmon_platdrv = {
 	.driver = {
drivers/iio/accel/st_accel_core.c +10 -2
index ce69048c88e9..3a557e3181ea 100644
@@ -154,8 +154,8 @@
 #define ST_ACCEL_4_FS_MASK			0x80
 #define ST_ACCEL_4_FS_AVL_2_VAL			0X00
 #define ST_ACCEL_4_FS_AVL_6_VAL			0X01
-#define ST_ACCEL_4_FS_AVL_2_GAIN		IIO_G_TO_M_S_2(1024)
-#define ST_ACCEL_4_FS_AVL_6_GAIN		IIO_G_TO_M_S_2(340)
+#define ST_ACCEL_4_FS_AVL_2_GAIN		IIO_G_TO_M_S_2(1000)
+#define ST_ACCEL_4_FS_AVL_6_GAIN		IIO_G_TO_M_S_2(3000)
 #define ST_ACCEL_4_BDU_ADDR			0x21
 #define ST_ACCEL_4_BDU_MASK			0x40
 #define ST_ACCEL_4_DRDY_IRQ_ADDR		0x21
@@ -346,6 +346,14 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = {
 			.addr = ST_ACCEL_1_BDU_ADDR,
 			.mask = ST_ACCEL_1_BDU_MASK,
 		},
+		/*
+		 * Data Alignment Setting - needs to be set to get
+		 * left-justified data like all other sensors.
+		 */
+		.das = {
+			.addr = 0x21,
+			.mask = 0x01,
+		},
 		.drdy_irq = {
 			.addr = ST_ACCEL_1_DRDY_IRQ_ADDR,
 			.mask_int1 = ST_ACCEL_1_DRDY_IRQ_INT1_MASK,
drivers/iio/common/st_sensors/st_sensors_buffer.c +3 -1
index fe7775bb3740..df4045203a07 100644
@@ -30,7 +30,9 @@ static int st_sensors_get_buffer_element(struct iio_dev *indio_dev, u8 *buf)
 
 	for_each_set_bit(i, indio_dev->active_scan_mask, num_data_channels) {
 		const struct iio_chan_spec *channel = &indio_dev->channels[i];
-		unsigned int bytes_to_read = channel->scan_type.realbits >> 3;
+		unsigned int bytes_to_read =
+			DIV_ROUND_UP(channel->scan_type.realbits +
+				     channel->scan_type.shift, 8);
 		unsigned int storage_bytes =
 			channel->scan_type.storagebits >> 3;
 
drivers/iio/common/st_sensors/st_sensors_core.c +12 -1
index 975a1f19f747..79c8c7cd70d5 100644
@@ -401,6 +401,15 @@ int st_sensors_init_sensor(struct iio_dev *indio_dev,
 			return err;
 	}
 
+	/* set DAS */
+	if (sdata->sensor_settings->das.addr) {
+		err = st_sensors_write_data_with_mask(indio_dev,
+					sdata->sensor_settings->das.addr,
+					sdata->sensor_settings->das.mask, 1);
+		if (err < 0)
+			return err;
+	}
+
 	if (sdata->int_pin_open_drain) {
 		dev_info(&indio_dev->dev,
 			 "set interrupt line to open drain mode\n");
@@ -483,8 +492,10 @@ static int st_sensors_read_axis_data(struct iio_dev *indio_dev,
 	int err;
 	u8 *outdata;
 	struct st_sensor_data *sdata = iio_priv(indio_dev);
-	unsigned int byte_for_channel = ch->scan_type.realbits >> 3;
+	unsigned int byte_for_channel;
 
+	byte_for_channel = DIV_ROUND_UP(ch->scan_type.realbits +
+					ch->scan_type.shift, 8);
 	outdata = kmalloc(byte_for_channel, GFP_KERNEL);
 	if (!outdata)
 		return -ENOMEM;
drivers/iio/imu/bmi160/bmi160_core.c +6 -19
index e0251b8c1a52..5fb571d03153 100644
@@ -66,10 +66,8 @@
 
 #define BMI160_REG_DUMMY		0x7F
 
-#define BMI160_ACCEL_PMU_MIN_USLEEP	3200
-#define BMI160_ACCEL_PMU_MAX_USLEEP	3800
-#define BMI160_GYRO_PMU_MIN_USLEEP	55000
-#define BMI160_GYRO_PMU_MAX_USLEEP	80000
+#define BMI160_ACCEL_PMU_MIN_USLEEP	3800
+#define BMI160_GYRO_PMU_MIN_USLEEP	80000
 #define BMI160_SOFTRESET_USLEEP		1000
 
 #define BMI160_CHANNEL(_type, _axis, _index) {			\
@@ -151,20 +149,9 @@ static struct bmi160_regs bmi160_regs[] = {
 	},
 };
 
-struct bmi160_pmu_time {
-	unsigned long min;
-	unsigned long max;
-};
-
-static struct bmi160_pmu_time bmi160_pmu_time[] = {
-	[BMI160_ACCEL] = {
-		.min = BMI160_ACCEL_PMU_MIN_USLEEP,
-		.max = BMI160_ACCEL_PMU_MAX_USLEEP
-	},
-	[BMI160_GYRO] = {
-		.min = BMI160_GYRO_PMU_MIN_USLEEP,
-		.max = BMI160_GYRO_PMU_MIN_USLEEP,
-	},
+static unsigned long bmi160_pmu_time[] = {
+	[BMI160_ACCEL] = BMI160_ACCEL_PMU_MIN_USLEEP,
+	[BMI160_GYRO] = BMI160_GYRO_PMU_MIN_USLEEP,
 };
 
 struct bmi160_scale {
@@ -289,7 +276,7 @@ int bmi160_set_mode(struct bmi160_data *data, enum bmi160_sensor_type t,
 	if (ret < 0)
 		return ret;
 
-	usleep_range(bmi160_pmu_time[t].min, bmi160_pmu_time[t].max);
+	usleep_range(bmi160_pmu_time[t], bmi160_pmu_time[t] + 1000);
 
 	return 0;
 }
drivers/iio/light/max44000.c +1 -1
index 6511b20a2a29..a8ffa432bf0d 100644
@@ -113,7 +113,7 @@ static const char max44000_int_time_avail_str[] =
 	"0.100 "
 	"0.025 "
 	"0.00625 "
-	"0.001625";
+	"0.0015625";
 
 /* Available scales (internal to ulux) with pretty manual alignment: */
 static const int max44000_scale_avail_ulux_array[] = {
drivers/input/rmi4/rmi_f54.c +3 -2
index cf805b960866..2e934aef3d2a 100644
@@ -200,7 +200,7 @@ static int rmi_f54_request_report(struct rmi_function *fn, u8 report_type)
 
 	error = rmi_write(rmi_dev, fn->fd.command_base_addr, F54_GET_REPORT);
 	if (error < 0)
-		return error;
+		goto unlock;
 
 	init_completion(&f54->cmd_done);
 
@@ -209,9 +209,10 @@ static int rmi_f54_request_report(struct rmi_function *fn, u8 report_type)
 
 	queue_delayed_work(f54->workqueue, &f54->work, 0);
 
+unlock:
 	mutex_unlock(&f54->data_mutex);
 
-	return 0;
+	return error;
 }
 
 static size_t rmi_f54_get_report_size(struct f54_data *f54)
drivers/iommu/amd_iommu.c +1 -1
index 754595ee11b6..11a13b5be73a 100644
@@ -1021,7 +1021,7 @@ static int __iommu_queue_command_sync(struct amd_iommu *iommu,
 	next_tail = (tail + sizeof(*cmd)) % CMD_BUFFER_SIZE;
 	left      = (head - next_tail) % CMD_BUFFER_SIZE;
 
-	if (left <= 2) {
+	if (left <= 0x20) {
 		struct iommu_cmd sync_cmd;
 		int ret;
 
drivers/iommu/amd_iommu_v2.c +3 -1
index 594849a3a9be..f8ed8c95b685 100644
@@ -805,8 +805,10 @@ int amd_iommu_init_device(struct pci_dev *pdev, int pasids)
 		goto out_free_domain;
 
 	group = iommu_group_get(&pdev->dev);
-	if (!group)
+	if (!group) {
+		ret = -EINVAL;
 		goto out_free_domain;
+	}
 
 	ret = iommu_attach_group(dev_state->domain, group);
 	if (ret != 0)
drivers/iommu/intel-iommu.c +41 -1

60 lines not on this page · raw message

drivers/irqchip/irq-bcm7038-l1.c +26 -0
index 353c54986211..c2662a1bfdd3 100644
@@ -215,6 +215,31 @@ static int bcm7038_l1_set_affinity(struct irq_data *d,
 	return 0;
 }
 
+static void bcm7038_l1_cpu_offline(struct irq_data *d)
+{
+	struct cpumask *mask = irq_data_get_affinity_mask(d);
+	int cpu = smp_processor_id();
+	cpumask_t new_affinity;
+
+	/* This CPU was not on the affinity mask */
+	if (!cpumask_test_cpu(cpu, mask))
+		return;
+
+	if (cpumask_weight(mask) > 1) {
+		/*
+		 * Multiple CPU affinity, remove this CPU from the affinity
+		 * mask
+		 */
+		cpumask_copy(&new_affinity, mask);
+		cpumask_clear_cpu(cpu, &new_affinity);
+	} else {
+		/* Only CPU, put on the lowest online CPU */
+		cpumask_clear(&new_affinity);
+		cpumask_set_cpu(cpumask_first(cpu_online_mask), &new_affinity);
+	}
+	irq_set_affinity_locked(d, &new_affinity, false);
+}
+
 static int __init bcm7038_l1_init_one(struct device_node *dn,
 				      unsigned int idx,
 				      struct bcm7038_l1_chip *intc)
@@ -266,6 +291,7 @@ static struct irq_chip bcm7038_l1_irq_chip = {
 	.irq_mask		= bcm7038_l1_mask,
 	.irq_unmask		= bcm7038_l1_unmask,
 	.irq_set_affinity	= bcm7038_l1_set_affinity,
+	.irq_cpu_offline	= bcm7038_l1_cpu_offline,
 };
 
 static int bcm7038_l1_map(struct irq_domain *d, unsigned int virq,
drivers/md/md.c +5 -2
index 2089d46b0eb8..24925f2aa235 100644
@@ -6829,7 +6829,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode,
 		/* need to ensure recovery thread has run */
 		wait_event_interruptible_timeout(mddev->sb_wait,
 						 !test_bit(MD_RECOVERY_NEEDED,
-							   &mddev->flags),
+							   &mddev->recovery),
 						 msecs_to_jiffies(5000));
 	if (cmd == STOP_ARRAY || cmd == STOP_ARRAY_RO) {
 		/* Need to flush page cache, and ensure no-one else opens
@@ -7092,7 +7092,8 @@ static int md_open(struct block_device *bdev, fmode_t mode)
 
 	if (test_bit(MD_CLOSING, &mddev->flags)) {
 		mutex_unlock(&mddev->open_mutex);
-		return -ENODEV;
+		err = -ENODEV;
+		goto out;
 	}
 
 	err = 0;
@@ -7101,6 +7102,8 @@ static int md_open(struct block_device *bdev, fmode_t mode)
 
 	check_disk_change(bdev);
  out:
+	if (err)
+		mddev_put(mddev);
 	return err;
 }
 
drivers/media/usb/dvb-usb/dibusb-common.c +1 -1
index de3ee2547479..8207e6900656 100644
@@ -382,9 +382,9 @@ int dibusb_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
 	if (buf[0] != 0)
 		deb_info("key: %*ph\n", 5, buf);
 
+ret:
 	kfree(buf);
 
-ret:
 	return ret;
 }
 EXPORT_SYMBOL(dibusb_rc_query);
drivers/mfd/tps65217.c +19 -0
index 9a4d8684dd32..df2e7756927f 100644
@@ -424,6 +424,24 @@ static int tps65217_probe(struct i2c_client *client,
 	return 0;
 }
 
+static int tps65217_remove(struct i2c_client *client)
+{
+	struct tps65217 *tps = i2c_get_clientdata(client);
+	unsigned int virq;
+	int i;
+
+	for (i = 0; i < ARRAY_SIZE(tps65217_irqs); i++) {
+		virq = irq_find_mapping(tps->irq_domain, i);
+		if (virq)
+			irq_dispose_mapping(virq);
+	}
+
+	irq_domain_remove(tps->irq_domain);
+	tps->irq_domain = NULL;
+
+	return 0;
+}
+
 static const struct i2c_device_id tps65217_id_table[] = {
 	{"tps65217", TPS65217},
 	{ /* sentinel */ }
@@ -437,6 +455,7 @@ static struct i2c_driver tps65217_driver = {
 	},
 	.id_table	= tps65217_id_table,
 	.probe		= tps65217_probe,
+	.remove		= tps65217_remove,
 };
 
 static int __init tps65217_init(void)
drivers/misc/mei/bus.c +1 -1
index 8cac7ef9ad0d..dbe676de7a19 100644
@@ -408,7 +408,7 @@ bool mei_cldev_enabled(struct mei_cl_device *cldev)
 EXPORT_SYMBOL_GPL(mei_cldev_enabled);
 
 /**
- * mei_cldev_enable_device - enable me client device
+ * mei_cldev_enable - enable me client device
  *     create connection with me client
  *
  * @cldev: me client device
drivers/misc/mei/client.c +14 -10
index f999a8d3c9c4..e2af61f7e3b6 100644
@@ -425,7 +425,7 @@ static inline void mei_io_list_free(struct mei_cl_cb *list, struct mei_cl *cl)
  *
  * @cl: host client
  * @length: size of the buffer
- * @type: operation type
+ * @fop_type: operation type
  * @fp: associated file pointer (might be NULL)
  *
  * Return: cb on success and NULL on failure
@@ -459,7 +459,7 @@ struct mei_cl_cb *mei_cl_alloc_cb(struct mei_cl *cl, size_t length,
  *
  * @cl: host client
  * @length: size of the buffer
- * @type: operation type
+ * @fop_type: operation type
  * @fp: associated file pointer (might be NULL)
  *
  * Return: cb on success and NULL on failure
@@ -1536,7 +1536,7 @@ int mei_cl_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb,
 
 	rets = first_chunk ? mei_cl_tx_flow_ctrl_creds(cl) : 1;
 	if (rets < 0)
-		return rets;
+		goto err;
 
 	if (rets == 0) {
 		cl_dbg(dev, cl, "No flow control credentials: not sending.\n");
@@ -1570,11 +1570,8 @@ int mei_cl_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb,
 			cb->buf.size, cb->buf_idx);
 
 	rets = mei_write_message(dev, &mei_hdr, buf->data + cb->buf_idx);
-	if (rets) {
-		cl->status = rets;
-		list_move_tail(&cb->list, &cmpl_list->list);
-		return rets;
-	}
+	if (rets)
+		goto err;
 
 	cl->status = 0;
 	cl->writing_state = MEI_WRITING;
@@ -1582,14 +1579,21 @@ int mei_cl_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb,
 	cb->completed = mei_hdr.msg_complete == 1;
 
 	if (first_chunk) {
-		if (mei_cl_tx_flow_ctrl_creds_reduce(cl))
-			return -EIO;
+		if (mei_cl_tx_flow_ctrl_creds_reduce(cl)) {
+			rets = -EIO;
+			goto err;
+		}
 	}
 
 	if (mei_hdr.msg_complete)
 		list_move_tail(&cb->list, &dev->write_waiting_list.list);
 
 	return 0;
+
+err:
+	cl->status = rets;
+	list_move_tail(&cb->list, &cmpl_list->list);
+	return rets;
 }
 
 /**
drivers/mmc/card/mmc_test.c +1 -1
index 3678220964fe..df382be62634 100644
@@ -818,7 +818,7 @@ static int mmc_test_nonblock_transfer(struct mmc_test_card *test,
 	struct mmc_async_req *cur_areq = &test_areq[0].areq;
 	struct mmc_async_req *other_areq = &test_areq[1].areq;
 	int i;
-	int ret;
+	int ret = RESULT_OK;
 
 	test_areq[0].test = test;
 	test_areq[1].test = test;
drivers/net/wireless/ath/ath10k/core.h +2 -4
index 521f1c55c19e..be5b527472f9 100644
@@ -557,10 +557,8 @@ enum ath10k_fw_features {
 	 */
 	ATH10K_FW_FEATURE_BTCOEX_PARAM = 14,
 
-	/* Older firmware with HTT delivers incorrect tx status for null func
-	 * frames to driver, but this fixed in 10.2 and 10.4 firmware versions.
-	 * Also this workaround results in reporting of incorrect null func
-	 * status for 10.4. This flag is used to skip the workaround.
+	/* Unused flag and proven to be not working, enable this if you want
+	 * to experiment sending NULL func data frames in HTT TX
 	 */
 	ATH10K_FW_FEATURE_SKIP_NULL_FUNC_WAR = 15,
 
drivers/net/wireless/ath/ath10k/mac.c +0 -2
index 90eeb1c82e8b..f2e85eb22afe 100644
@@ -3255,8 +3255,6 @@ ath10k_mac_tx_h_get_txmode(struct ath10k *ar,
 	if (ar->htt.target_version_major < 3 &&
 	    (ieee80211_is_nullfunc(fc) || ieee80211_is_qos_nullfunc(fc)) &&
 	    !test_bit(ATH10K_FW_FEATURE_HAS_WMI_MGMT_TX,
-		      ar->running_fw->fw_file.fw_features) &&
-	    !test_bit(ATH10K_FW_FEATURE_SKIP_NULL_FUNC_WAR,
 		      ar->running_fw->fw_file.fw_features))
 		return ATH10K_HW_TXRX_MGMT;
 
drivers/net/wireless/ath/ath10k/spectral.c +1 -1
index 7d9b0da1b010..2ffc1fe4923b 100644
@@ -338,7 +338,7 @@ static ssize_t write_file_spec_scan_ctl(struct file *file,
 		} else {
 			res = -EINVAL;
 		}
-	} else if (strncmp("background", buf, 9) == 0) {
+	} else if (strncmp("background", buf, 10) == 0) {
 		res = ath10k_spectral_scan_config(ar, SPECTRAL_BACKGROUND);
 	} else if (strncmp("manual", buf, 6) == 0) {
 		res = ath10k_spectral_scan_config(ar, SPECTRAL_MANUAL);
drivers/net/wireless/realtek/rtlwifi/base.c +4 -4
index 4ac928bf1f8e..264466f59c57 100644
@@ -1303,13 +1303,12 @@ EXPORT_SYMBOL_GPL(rtl_action_proc);
 
 static void setup_arp_tx(struct rtl_priv *rtlpriv, struct rtl_ps_ctl *ppsc)
 {
-	struct ieee80211_hw *hw = rtlpriv->hw;
-
 	rtlpriv->ra.is_special_data = true;
 	if (rtlpriv->cfg->ops->get_btc_status())
 		rtlpriv->btcoexist.btc_ops->btc_special_packet_notify(
 					rtlpriv, 1);
-	rtl_lps_leave(hw);
+	rtlpriv->enter_ps = false;
+	schedule_work(&rtlpriv->works.lps_change_work);
 	ppsc->last_delaylps_stamp_jiffies = jiffies;
 }
 
@@ -1382,7 +1381,8 @@ u8 rtl_is_special_data(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx,
 
 		if (is_tx) {
 			rtlpriv->ra.is_special_data = true;
-			rtl_lps_leave(hw);
+			rtlpriv->enter_ps = false;
+			schedule_work(&rtlpriv->works.lps_change_work);
 			ppsc->last_delaylps_stamp_jiffies = jiffies;
 		}
 
drivers/net/wireless/realtek/rtlwifi/core.c +6 -3
index 4da4e458142c..8e7f23c11680 100644
@@ -1150,8 +1150,10 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
 		} else {
 			mstatus = RT_MEDIA_DISCONNECT;
 
-			if (mac->link_state == MAC80211_LINKED)
-				rtl_lps_leave(hw);
+			if (mac->link_state == MAC80211_LINKED) {
+				rtlpriv->enter_ps = false;
+				schedule_work(&rtlpriv->works.lps_change_work);
+			}
 			if (ppsc->p2p_ps_info.p2p_ps_mode > P2P_PS_NONE)
 				rtl_p2p_ps_cmd(hw, P2P_PS_DISABLE);
 			mac->link_state = MAC80211_NOLINK;
@@ -1429,7 +1431,8 @@ static void rtl_op_sw_scan_start(struct ieee80211_hw *hw,
 	}
 
 	if (mac->link_state == MAC80211_LINKED) {
-		rtl_lps_leave(hw);
+		rtlpriv->enter_ps = false;
+		schedule_work(&rtlpriv->works.lps_change_work);
 		mac->link_state = MAC80211_LINKED_SCANNING;
 	} else {
 		rtl_ips_nic_on(hw);
drivers/net/wireless/realtek/rtlwifi/pci.c +9 -5
index 5be4fc96002d..0dfa9eac3926 100644
@@ -663,9 +663,11 @@ static void _rtl_pci_tx_isr(struct ieee80211_hw *hw, int prio)
 	}
 
 	if (((rtlpriv->link_info.num_rx_inperiod +
-	      rtlpriv->link_info.num_tx_inperiod) > 8) ||
-	      (rtlpriv->link_info.num_rx_inperiod > 2))
-		rtl_lps_leave(hw);
+		rtlpriv->link_info.num_tx_inperiod) > 8) ||
+		(rtlpriv->link_info.num_rx_inperiod > 2)) {
+		rtlpriv->enter_ps = false;
+		schedule_work(&rtlpriv->works.lps_change_work);
+	}
 }
 
 static int _rtl_pci_init_one_rxdesc(struct ieee80211_hw *hw,
@@ -916,8 +918,10 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw)
 		}
 		if (((rtlpriv->link_info.num_rx_inperiod +
 		      rtlpriv->link_info.num_tx_inperiod) > 8) ||
-		      (rtlpriv->link_info.num_rx_inperiod > 2))
-			rtl_lps_leave(hw);
+		      (rtlpriv->link_info.num_rx_inperiod > 2)) {
+			rtlpriv->enter_ps = false;
+			schedule_work(&rtlpriv->works.lps_change_work);
+		}
 		skb = new_skb;
 no_new:
 		if (rtlpriv->use_new_trx_flow) {
drivers/net/wireless/realtek/rtlwifi/ps.c +8 -28
index d0ffc4d508cf..18d979affc18 100644
@@ -407,8 +407,8 @@ void rtl_lps_set_psmode(struct ieee80211_hw *hw, u8 rt_psmode)
 	}
 }
 
-/* Interrupt safe routine to enter the leisure power save mode.*/
-static void rtl_lps_enter_core(struct ieee80211_hw *hw)
+/*Enter the leisure power save mode.*/
+void rtl_lps_enter(struct ieee80211_hw *hw)
 {
 	struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
 	struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
@@ -444,9 +444,10 @@ static void rtl_lps_enter_core(struct ieee80211_hw *hw)
 
 	spin_unlock_irqrestore(&rtlpriv->locks.lps_lock, flag);
 }
+EXPORT_SYMBOL(rtl_lps_enter);
 
-/* Interrupt safe routine to leave the leisure power save mode.*/
-static void rtl_lps_leave_core(struct ieee80211_hw *hw)
+/*Leave the leisure power save mode.*/
+void rtl_lps_leave(struct ieee80211_hw *hw)
 {
 	struct rtl_priv *rtlpriv = rtl_priv(hw);
 	struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
@@ -476,6 +477,7 @@ static void rtl_lps_leave_core(struct ieee80211_hw *hw)
 	}
 	spin_unlock_irqrestore(&rtlpriv->locks.lps_lock, flag);
 }
+EXPORT_SYMBOL(rtl_lps_leave);
 
 /* For sw LPS*/
 void rtl_swlps_beacon(struct ieee80211_hw *hw, void *data, unsigned int len)
@@ -668,34 +670,12 @@ void rtl_lps_change_work_callback(struct work_struct *work)
 	struct rtl_priv *rtlpriv = rtl_priv(hw);
 
 	if (rtlpriv->enter_ps)
-		rtl_lps_enter_core(hw);
+		rtl_lps_enter(hw);
 	else
-		rtl_lps_leave_core(hw);
+		rtl_lps_leave(hw);
 }
 EXPORT_SYMBOL_GPL(rtl_lps_change_work_callback);
 
-void rtl_lps_enter(struct ieee80211_hw *hw)
-{
-	struct rtl_priv *rtlpriv = rtl_priv(hw);
-
-	if (!in_interrupt())
-		return rtl_lps_enter_core(hw);
-	rtlpriv->enter_ps = true;
-	schedule_work(&rtlpriv->works.lps_change_work);
-}
-EXPORT_SYMBOL_GPL(rtl_lps_enter);
-
-void rtl_lps_leave(struct ieee80211_hw *hw)
-{
-	struct rtl_priv *rtlpriv = rtl_priv(hw);
-
-	if (!in_interrupt())
-		return rtl_lps_leave_core(hw);
-	rtlpriv->enter_ps = false;
-	schedule_work(&rtlpriv->works.lps_change_work);
-}
-EXPORT_SYMBOL_GPL(rtl_lps_leave);
-
 void rtl_swlps_wq_callback(void *data)
 {
 	struct rtl_works *rtlworks = container_of_dwork_rtl(data,
drivers/pci/host/pcie-rockchip.c +3 -3
index e04f69beb42d..3452983d3569 100644
@@ -533,7 +533,7 @@ static int rockchip_pcie_init_port(struct rockchip_pcie *rockchip)
 
 	/* Fix the transmitted FTS count desired to exit from L0s. */
 	status = rockchip_pcie_read(rockchip, PCIE_CORE_CTRL_PLC1);
-	status = (status & PCIE_CORE_CTRL_PLC1_FTS_MASK) |
+	status = (status & ~PCIE_CORE_CTRL_PLC1_FTS_MASK) |
 		 (PCIE_CORE_CTRL_PLC1_FTS_CNT << PCIE_CORE_CTRL_PLC1_FTS_SHIFT);
 	rockchip_pcie_write(rockchip, status, PCIE_CORE_CTRL_PLC1);
 
@@ -590,8 +590,8 @@ static int rockchip_pcie_init_port(struct rockchip_pcie *rockchip)
 
 	/* Check the final link width from negotiated lane counter from MGMT */
 	status = rockchip_pcie_read(rockchip, PCIE_CORE_CTRL);
-	status =  0x1 << ((status & PCIE_CORE_PL_CONF_LANE_MASK) >>
-			  PCIE_CORE_PL_CONF_LANE_MASK);
+	status = 0x1 << ((status & PCIE_CORE_PL_CONF_LANE_MASK) >>
+			  PCIE_CORE_PL_CONF_LANE_SHIFT);
 	dev_dbg(dev, "current link width is x%d\n", status);
 
 	rockchip_pcie_write(rockchip, ROCKCHIP_VENDOR_ID,
drivers/pci/hotplug/rpadlpar_core.c +9 -1
index dc67f39779ec..c614ff7c3bc3 100644
@@ -257,8 +257,13 @@ static int dlpar_add_phb(char *drc_name, struct device_node *dn)
 
 static int dlpar_add_vio_slot(char *drc_name, struct device_node *dn)
 {
-	if (vio_find_node(dn))
+	struct vio_dev *vio_dev;
+
+	vio_dev = vio_find_node(dn);
+	if (vio_dev) {
+		put_device(&vio_dev->dev);
 		return -EINVAL;
+	}
 
 	if (!vio_register_device_node(dn)) {
 		printk(KERN_ERR
@@ -334,6 +339,9 @@ static int dlpar_remove_vio_slot(char *drc_name, struct device_node *dn)
 		return -EINVAL;
 
 	vio_unregister_device(vio_dev);
+
+	put_device(&vio_dev->dev);
+
 	return 0;
 }
 
drivers/pci/msi.c +2 -1
index ad70507cfb56..3455f752d5e4 100644
@@ -1294,7 +1294,8 @@ const struct cpumask *pci_irq_get_affinity(struct pci_dev *dev, int nr)
 	} else if (dev->msi_enabled) {
 		struct msi_desc *entry = first_pci_msi_entry(dev);
 
-		if (WARN_ON_ONCE(!entry || nr >= entry->nvec_used))
+		if (WARN_ON_ONCE(!entry || !entry->affinity ||
+				 nr >= entry->nvec_used))
 			return NULL;
 
 		return &entry->affinity[nr];
drivers/pci/quirks.c +143 -37

210 lines not on this page · raw message

drivers/pinctrl/pinctrl-amd.c +7 -12
index aea310a91821..c9a146948192 100644
@@ -382,26 +382,21 @@ static int amd_gpio_irq_set_type(struct irq_data *d, unsigned int type)
 {
 	int ret = 0;
 	u32 pin_reg;
-	unsigned long flags;
-	bool level_trig;
-	u32 active_level;
+	unsigned long flags, irq_flags;
 	struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
 	struct amd_gpio *gpio_dev = gpiochip_get_data(gc);
 
 	spin_lock_irqsave(&gpio_dev->lock, flags);
 	pin_reg = readl(gpio_dev->base + (d->hwirq)*4);
 
-	/*
-	 * When level_trig is set EDGE and active_level is set HIGH in BIOS
-	 * default settings, ignore incoming settings from client and use
-	 * BIOS settings to configure GPIO register.
+	/* Ignore the settings coming from the client and
+	 * read the values from the ACPI tables
+	 * while setting the trigger type
 	 */
-	level_trig = !(pin_reg & (LEVEL_TRIGGER << LEVEL_TRIG_OFF));
-	active_level = pin_reg & (ACTIVE_LEVEL_MASK << ACTIVE_LEVEL_OFF);
 
-	if(level_trig &&
-	   ((active_level >> ACTIVE_LEVEL_OFF) == ACTIVE_HIGH))
-		type = IRQ_TYPE_EDGE_FALLING;
+	irq_flags = irq_get_trigger_type(d->irq);
+	if (irq_flags != IRQ_TYPE_NONE)
+		type = irq_flags;
 
 	switch (type & IRQ_TYPE_SENSE_MASK) {
 	case IRQ_TYPE_EDGE_RISING:
drivers/platform/x86/fujitsu-laptop.c +21 -21

112 lines not on this page · raw message

drivers/rpmsg/qcom_smd.c +1 -1
index 06fef2b4c814..1d4770c02e57 100644
@@ -739,7 +739,7 @@ static int __qcom_smd_send(struct qcom_smd_channel *channel, const void *data,
 
 	while (qcom_smd_get_tx_avail(channel) < tlen) {
 		if (!wait) {
-			ret = -ENOMEM;
+			ret = -EAGAIN;
 			goto out;
 		}
 
drivers/scsi/g_NCR5380.c +3 -3
index cbf010324c18..596a75924d90 100644
@@ -170,12 +170,12 @@ static int generic_NCR5380_init_one(struct scsi_host_template *tpnt,
 		if (ports[i]) {
 			/* At this point we have our region reserved */
 			magic_configure(i, 0, magic); /* no IRQ yet */
-			outb(0xc0, ports[i] + 9);
-			if (inb(ports[i] + 9) != 0x80) {
+			base = ports[i];
+			outb(0xc0, base + 9);
+			if (inb(base + 9) != 0x80) {
 				ret = -ENODEV;
 				goto out_release;
 			}
-			base = ports[i];
 			port_idx = i;
 		} else
 			return -EINVAL;
drivers/scsi/mvsas/mv_94xx.c +1 -1
index 4c57d9abce7b..7de5d8d75480 100644
@@ -668,7 +668,7 @@ static void mvs_94xx_command_active(struct mvs_info *mvi, u32 slot_idx)
 {
 	u32 tmp;
 	tmp = mvs_cr32(mvi, MVS_COMMAND_ACTIVE+(slot_idx >> 3));
-	if (tmp && 1 << (slot_idx % 32)) {
+	if (tmp & 1 << (slot_idx % 32)) {
 		mv_printk("command active %08X,  slot [%x].\n", tmp, slot_idx);
 		mvs_cw32(mvi, MVS_COMMAND_ACTIVE + (slot_idx >> 3),
 			1 << (slot_idx % 32));
drivers/staging/iio/adc/ad7606_core.c +1 -1
index f79ee61851f6..cbd6bc52050f 100644
@@ -189,7 +189,7 @@ static ssize_t ad7606_store_oversampling_ratio(struct device *dev,
 	mutex_lock(&indio_dev->mlock);
 	gpio_set_value(st->pdata->gpio_os0, (ret >> 0) & 1);
 	gpio_set_value(st->pdata->gpio_os1, (ret >> 1) & 1);
-	gpio_set_value(st->pdata->gpio_os1, (ret >> 2) & 1);
+	gpio_set_value(st->pdata->gpio_os2, (ret >> 2) & 1);
 	st->oversampling = lval;
 	mutex_unlock(&indio_dev->mlock);
 
drivers/staging/media/davinci_vpfe/vpfe_video.c +1 -1
index 8be9f854510f..89dd6b989254 100644
@@ -1362,7 +1362,7 @@ static int vpfe_reqbufs(struct file *file, void *priv,
 	ret = vb2_queue_init(q);
 	if (ret) {
 		v4l2_err(&vpfe_dev->v4l2_dev, "vb2_queue_init() failed\n");
-		return ret;
+		goto unlock_out;
 	}
 
 	fh->io_allowed = 1;
drivers/staging/octeon/ethernet.c +2 -0
index d02e3e31ed29..12354440a334 100644
@@ -776,6 +776,7 @@ static int cvm_oct_probe(struct platform_device *pdev)
 			/* Initialize the device private structure. */
 			struct octeon_ethernet *priv = netdev_priv(dev);
 
+			SET_NETDEV_DEV(dev, &pdev->dev);
 			dev->netdev_ops = &cvm_oct_pow_netdev_ops;
 			priv->imode = CVMX_HELPER_INTERFACE_MODE_DISABLED;
 			priv->port = CVMX_PIP_NUM_INPUT_PORTS;
@@ -820,6 +821,7 @@ static int cvm_oct_probe(struct platform_device *pdev)
 			}
 
 			/* Initialize the device private structure. */
+			SET_NETDEV_DEV(dev, &pdev->dev);
 			priv = netdev_priv(dev);
 			priv->netdev = dev;
 			priv->of_node = cvm_oct_node_for_port(pip, interface,
drivers/target/iscsi/iscsi_target_tpg.c +0 -1
index 0814e5894a96..205a509b0dfb 100644
@@ -260,7 +260,6 @@ int iscsit_tpg_add_portal_group(struct iscsi_tiqn *tiqn, struct iscsi_portal_gro
 		iscsi_release_param_list(tpg->param_list);
 		tpg->param_list = NULL;
 	}
-	kfree(tpg);
 	return -ENOMEM;
 }
 
drivers/target/sbp/sbp_target.c +1 -1
index 58bb6ed18185..6ca388eca33b 100644
@@ -928,7 +928,7 @@ static struct sbp_target_request *sbp_mgt_get_req(struct sbp_session *sess,
 	struct sbp_target_request *req;
 	int tag;
 
-	tag = percpu_ida_alloc(&se_sess->sess_tag_pool, GFP_ATOMIC);
+	tag = percpu_ida_alloc(&se_sess->sess_tag_pool, TASK_RUNNING);
 	if (tag < 0)
 		return ERR_PTR(-ENOMEM);
 
drivers/usb/core/config.c +10 -0
index a2d90aca779f..1f7036c8f57b 100644
@@ -234,6 +234,16 @@ static int usb_parse_endpoint(struct device *ddev, int cfgno, int inum,
 	if (ifp->desc.bNumEndpoints >= num_ep)
 		goto skip_to_next_endpoint_or_interface_descriptor;
 
+	/* Check for duplicate endpoint addresses */
+	for (i = 0; i < ifp->desc.bNumEndpoints; ++i) {
+		if (ifp->endpoint[i].desc.bEndpointAddress ==
+		    d->bEndpointAddress) {
+			dev_warn(ddev, "config %d interface %d altsetting %d has a duplicate endpoint with address 0x%X, skipping\n",
+			    cfgno, inum, asnum, d->bEndpointAddress);
+			goto skip_to_next_endpoint_or_interface_descriptor;
+		}
+	}
+
 	endpoint = &ifp->endpoint[ifp->desc.bNumEndpoints];
 	++ifp->desc.bNumEndpoints;
 
drivers/usb/core/hub.c +29 -30

77 lines not on this page · raw message

drivers/usb/dwc3/core.h +3 -7
index 6b60e42626a2..884c43714456 100644
@@ -43,9 +43,7 @@
 #define DWC3_XHCI_RESOURCES_NUM	2
 
 #define DWC3_SCRATCHBUF_SIZE	4096	/* each buffer is assumed to be 4KiB */
-#define DWC3_EVENT_SIZE		4	/* bytes */
-#define DWC3_EVENT_MAX_NUM	64	/* 2 events/endpoint */
-#define DWC3_EVENT_BUFFERS_SIZE	(DWC3_EVENT_SIZE * DWC3_EVENT_MAX_NUM)
+#define DWC3_EVENT_BUFFERS_SIZE	4096
 #define DWC3_EVENT_TYPE_MASK	0xfe
 
 #define DWC3_EVENT_TYPE_DEV	0
@@ -303,9 +301,8 @@
 #define DWC3_DCFG_SUPERSPEED_PLUS (5 << 0)  /* DWC_usb31 only */
 #define DWC3_DCFG_SUPERSPEED	(4 << 0)
 #define DWC3_DCFG_HIGHSPEED	(0 << 0)
-#define DWC3_DCFG_FULLSPEED2	(1 << 0)
+#define DWC3_DCFG_FULLSPEED	(1 << 0)
 #define DWC3_DCFG_LOWSPEED	(2 << 0)
-#define DWC3_DCFG_FULLSPEED1	(3 << 0)
 
 #define DWC3_DCFG_NUMP_SHIFT	17
 #define DWC3_DCFG_NUMP(n)	(((n) >> DWC3_DCFG_NUMP_SHIFT) & 0x1f)
@@ -397,9 +394,8 @@
 #define DWC3_DSTS_SUPERSPEED_PLUS	(5 << 0) /* DWC_usb31 only */
 #define DWC3_DSTS_SUPERSPEED		(4 << 0)
 #define DWC3_DSTS_HIGHSPEED		(0 << 0)
-#define DWC3_DSTS_FULLSPEED2		(1 << 0)
+#define DWC3_DSTS_FULLSPEED		(1 << 0)
 #define DWC3_DSTS_LOWSPEED		(2 << 0)
-#define DWC3_DSTS_FULLSPEED1		(3 << 0)
 
 /* Device Generic Command Register */
 #define DWC3_DGCMD_SET_LMP		0x01
drivers/usb/dwc3/dwc3-pci.c +3 -1
index 6df0f5dad9a4..427291a19e6d 100644
@@ -38,6 +38,7 @@
 #define PCI_DEVICE_ID_INTEL_BXT_M		0x1aaa
 #define PCI_DEVICE_ID_INTEL_APL			0x5aaa
 #define PCI_DEVICE_ID_INTEL_KBP			0xa2b0
+#define PCI_DEVICE_ID_INTEL_GLK			0x31aa
 
 static const struct acpi_gpio_params reset_gpios = { 0, 0, false };
 static const struct acpi_gpio_params cs_gpios = { 1, 0, false };
@@ -81,7 +82,7 @@ static int dwc3_pci_quirks(struct pci_dev *pdev, struct platform_device *dwc3)
 		int ret;
 
 		struct property_entry properties[] = {
-			PROPERTY_ENTRY_STRING("dr-mode", "peripheral"),
+			PROPERTY_ENTRY_STRING("dr_mode", "peripheral"),
 			{ }
 		};
 
@@ -229,6 +230,7 @@ static const struct pci_device_id dwc3_pci_id_table[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BXT_M), },
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_APL), },
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_KBP), },
+	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_GLK), },
 	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_NL_USB), },
 	{  }	/* Terminating Entry */
 };
drivers/usb/dwc3/ep0.c +29 -21

123 lines not on this page · raw message

drivers/usb/dwc3/gadget.c +6 -7
index b3687e223e00..d2b860ebfe13 100644
@@ -182,11 +182,11 @@ void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,
 	if (req->request.status == -EINPROGRESS)
 		req->request.status = status;
 
-	if (dwc->ep0_bounced && dep->number == 0)
+	if (dwc->ep0_bounced && dep->number <= 1)
 		dwc->ep0_bounced = false;
-	else
-		usb_gadget_unmap_request(&dwc->gadget, &req->request,
-				req->direction);
+
+	usb_gadget_unmap_request(&dwc->gadget, &req->request,
+			req->direction);
 
 	trace_dwc3_gadget_giveback(req);
 
@@ -1606,7 +1606,7 @@ static int __dwc3_gadget_start(struct dwc3 *dwc)
 			reg |= DWC3_DCFG_LOWSPEED;
 			break;
 		case USB_SPEED_FULL:
-			reg |= DWC3_DCFG_FULLSPEED1;
+			reg |= DWC3_DCFG_FULLSPEED;
 			break;
 		case USB_SPEED_HIGH:
 			reg |= DWC3_DCFG_HIGHSPEED;
@@ -2465,8 +2465,7 @@ static void dwc3_gadget_conndone_interrupt(struct dwc3 *dwc)
 		dwc->gadget.ep0->maxpacket = 64;
 		dwc->gadget.speed = USB_SPEED_HIGH;
 		break;
-	case DWC3_DSTS_FULLSPEED2:
-	case DWC3_DSTS_FULLSPEED1:
+	case DWC3_DSTS_FULLSPEED:
 		dwc3_gadget_ep0_desc.wMaxPacketSize = cpu_to_le16(64);
 		dwc->gadget.ep0->maxpacket = 64;
 		dwc->gadget.speed = USB_SPEED_FULL;
drivers/usb/gadget/composite.c +9 -5
index e38b21087d26..c3c5b87b35b3 100644
@@ -205,7 +205,7 @@ int config_ep_by_speed(struct usb_gadget *g,
 
 	if (g->speed == USB_SPEED_HIGH && (usb_endpoint_xfer_isoc(_ep->desc) ||
 				usb_endpoint_xfer_int(_ep->desc)))
-		_ep->mult = usb_endpoint_maxp(_ep->desc) & 0x7ff;
+		_ep->mult = ((usb_endpoint_maxp(_ep->desc) & 0x1800) >> 11) + 1;
 
 	if (!want_comp_desc)
 		return 0;
@@ -1694,9 +1694,7 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
 		value = min(w_length, (u16) 1);
 		break;
 
-	/* function drivers must handle get/set altsetting; if there's
-	 * no get() method, we know only altsetting zero works.
-	 */
+	/* function drivers must handle get/set altsetting */
 	case USB_REQ_SET_INTERFACE:
 		if (ctrl->bRequestType != USB_RECIP_INTERFACE)
 			goto unknown;
@@ -1705,7 +1703,13 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
 		f = cdev->config->interface[intf];
 		if (!f)
 			break;
-		if (w_value && !f->set_alt)
+
+		/*
+		 * If there's no get_alt() method, we know only altsetting zero
+		 * works. There is no need to check if set_alt() is not NULL
+		 * as we check this in usb_add_function().
+		 */
+		if (w_value && !f->get_alt)
 			break;
 		value = f->set_alt(f, w_index, w_value);
 		if (value == USB_GADGET_DELAYED_STATUS) {
drivers/usb/gadget/function/f_tcm.c +1 -1
index 197f73386fac..d2351139342f 100644
@@ -1073,7 +1073,7 @@ static struct usbg_cmd *usbg_get_cmd(struct f_uas *fu,
 	struct usbg_cmd *cmd;
 	int tag;
 
-	tag = percpu_ida_alloc(&se_sess->sess_tag_pool, GFP_ATOMIC);
+	tag = percpu_ida_alloc(&se_sess->sess_tag_pool, TASK_RUNNING);
 	if (tag < 0)
 		return ERR_PTR(-ENOMEM);
 
drivers/usb/gadget/legacy/inode.c +12 -5
index bd82dd12deff..1468d8f085a3 100644
@@ -1126,7 +1126,7 @@ ep0_write (struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
 	/* data and/or status stage for control request */
 	} else if (dev->state == STATE_DEV_SETUP) {
 
-		/* IN DATA+STATUS caller makes len <= wLength */
+		len = min_t(size_t, len, dev->setup_wLength);
 		if (dev->setup_in) {
 			retval = setup_req (dev->gadget->ep0, dev->req, len);
 			if (retval == 0) {
@@ -1734,10 +1734,12 @@ static struct usb_gadget_driver gadgetfs_driver = {
  * such as configuration notifications.
  */
 
-static int is_valid_config (struct usb_config_descriptor *config)
+static int is_valid_config(struct usb_config_descriptor *config,
+		unsigned int total)
 {
 	return config->bDescriptorType == USB_DT_CONFIG
 		&& config->bLength == USB_DT_CONFIG_SIZE
+		&& total >= USB_DT_CONFIG_SIZE
 		&& config->bConfigurationValue != 0
 		&& (config->bmAttributes & USB_CONFIG_ATT_ONE) != 0
 		&& (config->bmAttributes & USB_CONFIG_ATT_WAKEUP) == 0;
@@ -1762,7 +1764,8 @@ dev_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
 	}
 	spin_unlock_irq(&dev->lock);
 
-	if (len < (USB_DT_CONFIG_SIZE + USB_DT_DEVICE_SIZE + 4))
+	if ((len < (USB_DT_CONFIG_SIZE + USB_DT_DEVICE_SIZE + 4)) ||
+	    (len > PAGE_SIZE * 4))
 		return -EINVAL;
 
 	/* we might need to change message format someday */
@@ -1786,7 +1789,8 @@ dev_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
 	/* full or low speed config */
 	dev->config = (void *) kbuf;
 	total = le16_to_cpu(dev->config->wTotalLength);
-	if (!is_valid_config (dev->config) || total >= length)
+	if (!is_valid_config(dev->config, total) ||
+			total > length - USB_DT_DEVICE_SIZE)
 		goto fail;
 	kbuf += total;
 	length -= total;
@@ -1795,10 +1799,13 @@ dev_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
 	if (kbuf [1] == USB_DT_CONFIG) {
 		dev->hs_config = (void *) kbuf;
 		total = le16_to_cpu(dev->hs_config->wTotalLength);
-		if (!is_valid_config (dev->hs_config) || total >= length)
+		if (!is_valid_config(dev->hs_config, total) ||
+				total > length - USB_DT_DEVICE_SIZE)
 			goto fail;
 		kbuf += total;
 		length -= total;
+	} else {
+		dev->hs_config = NULL;
 	}
 
 	/* could support multiple configs, using another encoding! */
drivers/usb/gadget/udc/core.c +5 -1
index 9483489080f6..0402177f93cd 100644
@@ -1317,7 +1317,11 @@ int usb_gadget_probe_driver(struct usb_gadget_driver *driver)
 			if (!ret)
 				break;
 		}
-		if (!ret && !udc->driver)
+		if (ret)
+			ret = -ENODEV;
+		else if (udc->driver)
+			ret = -EBUSY;
+		else
 			goto found;
 	} else {
 		list_for_each_entry(udc, &udc_list, list) {
drivers/usb/gadget/udc/dummy_hcd.c +3 -3
index 77d07904f932..a81d9ab861dc 100644
@@ -330,7 +330,7 @@ static void nuke(struct dummy *dum, struct dummy_ep *ep)
 /* caller must hold lock */
 static void stop_activity(struct dummy *dum)
 {
-	struct dummy_ep	*ep;
+	int i;
 
 	/* prevent any more requests */
 	dum->address = 0;
@@ -338,8 +338,8 @@ static void stop_activity(struct dummy *dum)
 	/* The timer is left running so that outstanding URBs can fail */
 
 	/* nuke any pending requests first, so driver i/o is quiesced */
-	list_for_each_entry(ep, &dum->gadget.ep_list, ep.ep_list)
-		nuke(dum, ep);
+	for (i = 0; i < DUMMY_ENDPOINTS; ++i)
+		nuke(dum, &dum->ep[i]);
 
 	/* driver now does any non-usb quiescing necessary */
 }
drivers/usb/host/xhci-mem.c +42 -8

62 lines not on this page · raw message

drivers/usb/host/xhci-mtk.c +3 -1
index 79959f17c38c..f2365a47fa4a 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci-pci.c +2 -1
index e96ae80d107e..954abfd5014d 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci-ring.c +126 -93

219 lines not on this page · raw message

drivers/usb/host/xhci.c +3 -1
index 1a4ca02729c2..ad0624386950 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci.h +3 -2
index f945380035d0..c525722aa934 100644

Lines of this file are not shown. View the raw message.

drivers/usb/musb/blackfin.c +1 -0
index 310238c6b5cd..896798071817 100644

Lines of this file are not shown. View the raw message.

drivers/usb/musb/musb_core.h +7 -0
index 91817d77d59c..47331dbdde29 100644

Lines of this file are not shown. View the raw message.

drivers/usb/musb/musb_dsps.c +12 -0
index feae1561b9ab..9f125e179acd 100644

Lines of this file are not shown. View the raw message.

drivers/usb/musb/musb_host.c +4 -6
index 53bc4ceefe89..806451418cfe 100644

Lines of this file are not shown. View the raw message.

drivers/usb/musb/musbhsdma.h +1 -1
index f7b13fd25257..a3dcbd55e436 100644

Lines of this file are not shown. View the raw message.

drivers/usb/phy/phy-am335x-control.c +2 -0
index 42a1afe36a90..5f5f19813fde 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/cyberjack.c +10 -0
index 5f17a3b9916d..80260b08398b 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/garmin_gps.c +1 -0
index 97cabf803c2f..b2f2e87aed94 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/io_edgeport.c +5 -0
index 11c05ce2f35f..36dfe9972b17 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/io_ti.c +17 -5
index fce82fd79f77..c02808a30436 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/iuu_phoenix.c +11 -0
index 344b4eea4bd5..d57fb5199218 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/keyspan_pda.c +14 -0
index e49ad0c63ad8..83523fcf6fb9 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/kl5kusb105.c +2 -0
index 6f29bfadbe33..0ee190fc1bf8 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/kobil_sct.c +12 -0
index 2363654cafc9..813035f51fe7 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/mos7720.c +21 -30

51 lines not on this page · raw message

drivers/usb/serial/mos7840.c +12 -0
index 57426d703a09..4f9af47e6a29 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/omninet.c +13 -0
index f6c6900bccf0..a180b17d2432 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/oti6858.c +16 -0
index a4b88bc038b6..b8bf52bf7a94 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/pl2303.c +8 -0
index ae682e4eeaef..46fca6b75846 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/quatech2.c +0 -4
index 85acb50a7ee2..bd1a1307e0f0 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/spcp8x5.c +14 -0
index ef0dbf0703c5..475e6c31b266 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/ti_usb_3410_5052.c +7 -0
index a8b9bdba314f..bdbddbc8bd4d 100644

Lines of this file are not shown. View the raw message.

drivers/usb/storage/unusual_devs.h +7 -0
index af3c7eecff91..16cc18369111 100644

Lines of this file are not shown. View the raw message.

fs/crypto/policy.c +5 -0
index 6865663aac69..abc18847b98d 100644

Lines of this file are not shown. View the raw message.

fs/f2fs/data.c +1 -1
index 9ae194fd2fdb..14db4b712021 100644

Lines of this file are not shown. View the raw message.

fs/f2fs/debug.c +6 -6
index 1c35e80732e0..687998e9557c 100644

Lines of this file are not shown. View the raw message.

fs/f2fs/f2fs.h +6 -6
index 6dd03115789b..506af456412f 100644

Lines of this file are not shown. View the raw message.

fs/f2fs/super.c +5 -11
index 8021d35df7b0..013c6a541d6b 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_ag_resv.c +3 -0
index e5ebc3770460..d346d42c54d1 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_alloc.c +7 -3
index effb64cf714f..5050056a0b06 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_alloc_btree.c +1 -1
index 5ba2dac5e67c..c06ec77a9418 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_attr_leaf.c +7 -1
index 8ea91f363093..2852521fc8ec 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_bmap.c +79 -37

116 lines not on this page · raw message

fs/xfs/libxfs/xfs_bmap.h +2 -3
index 7cae6ec27fa6..d6d175a4fdec 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_bmap_btree.c +1 -1
index 8007d2ba9aef..049fa597ae91 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_btree.c +20 -0
index 0e80993c8a59..21e6a6ab6b9a 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_dir2_data.c +1 -1
index 725fc7841fde..e526f5a5f0be 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_ialloc.c +10 -3
index 51b4e0de1fdc..d45c03779dae 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_ialloc_btree.c +1 -1
index eab68ae2e011..6c6b95947e71 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_inode_buf.c +8 -0
index 134424fac434..c906e50515f0 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_inode_fork.c +65 -12

77 lines not on this page · raw message

fs/xfs/libxfs/xfs_inode_fork.h +7 -0
index c9476f50e32d..7fb8365326d1 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_refcount_btree.c +6 -3
index 453bb2757ec2..2ba216966002 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_refcount_btree.h +2 -1
index 3be7768bd51a..9db008b955b7 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_rmap_btree.c +7 -7
index 83e672ff7577..33a28efc3085 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_rmap_btree.h +2 -1
index 2a9ac472fb15..19c08e933049 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_sb.c +11 -2
index a70aec910626..2580262e4ea0 100644

Lines of this file are not shown. View the raw message.

fs/xfs/libxfs/xfs_types.h +3 -0
index 8d74870468c2..cf044c0f4d41 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_aops.c +20 -2
index 3e57a56cf829..2693ba84ec25 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_bmap_util.c +14 -20
index 47074e0c33f3..0670a8bd5818 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_file.c +0 -9
index 6e4f7f900fea..9a5d64b5f35a 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_fsops.c +14 -0
index 93d12fa2670d..242e8091296d 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_icache.c +22 -15
index f295049db681..29cc9886a3cb 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_inode.c +0 -2
index 4e560e6a12c1..512ff13ed66a 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_inode.h +6 -5
index f14c1de2549d..71e8a81c91a3 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_inode_item.c +2 -2
index 9610e9c00952..d90e7811ccdd 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_ioctl.c +2 -4
index c245bed3249b..a39197501a7c 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_iomap.c +22 -32

54 lines not on this page · raw message

fs/xfs/xfs_log_recover.c +0 -1
index 2d91f5ab7538..9b3d7c76915d 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_qm.c +1 -1
index a60d9e2739d1..45e50ea90769 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_refcount_item.c +2 -1
index fe86a668a57e..6e4c7446c3d4 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_reflink.c +19 -68

87 lines not on this page · raw message

fs/xfs/xfs_reflink.h +0 -2
index fad11607c9ad..97ea9b487884 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_sysfs.c +2 -2
index 276d3023d60f..de6195e38910 100644

Lines of this file are not shown. View the raw message.

include/asm-generic/asm-prototypes.h +6 -0
index df13637e4017..939869c772b1 100644

Lines of this file are not shown. View the raw message.

include/linux/cpuhotplug.h +2 -1
index afe641c02dca..ba1cad7b97cf 100644

Lines of this file are not shown. View the raw message.

include/linux/debugfs.h +27 -17

44 lines not on this page · raw message

include/linux/iio/common/st_sensors.h +12 -0
index 228bd44efa4c..497f2b3a5a62 100644

Lines of this file are not shown. View the raw message.

include/linux/pci_ids.h +22 -5
index c58752fe16c4..f020ab4079d3 100644

Lines of this file are not shown. View the raw message.

include/linux/usb/gadget.h +3 -1
index 8e81f9eb95e4..e4516e9ded0f 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/nl80211.h +6 -1
index 56368e9b4622..d3cbe48b286d 100644

Lines of this file are not shown. View the raw message.

kernel/irq/affinity.c +3 -3
index 17f51d63da56..668f51b861f7 100644

Lines of this file are not shown. View the raw message.

kernel/relay.c +2 -2
index da79a109dbeb..8f18d314a96a 100644

Lines of this file are not shown. View the raw message.

kernel/time/tick-broadcast.c +3 -0
index f6aae7977824..d2a20e83ebae 100644

Lines of this file are not shown. View the raw message.

mm/compaction.c +3 -22
index 0409a4ad6ea1..70e6bec46dc2 100644

Lines of this file are not shown. View the raw message.

mm/hugetlb.c +7 -5
index 418bf01a50ed..23aec01836aa 100644

Lines of this file are not shown. View the raw message.

mm/khugepaged.c +9 -2
index 87e1a7ca3846..5d7c006373d3 100644

Lines of this file are not shown. View the raw message.

mm/migrate.c +11 -4
index 99250aee1ac1..66ce6b490b13 100644

Lines of this file are not shown. View the raw message.

net/mac80211/agg-rx.c +2 -6
index f6749dced021..3b5fd4188f2a 100644

Lines of this file are not shown. View the raw message.

net/mac80211/debugfs_sta.c +1 -1
index a2fcdb47a0e6..14ec63a02669 100644

Lines of this file are not shown. View the raw message.

net/mac80211/sta_info.h +2 -2
index ed5fcb984a01..dd06ef0b8861 100644

Lines of this file are not shown. View the raw message.

net/mac80211/tx.c +2 -1
index bd5f4be89435..dd190ff3daea 100644

Lines of this file are not shown. View the raw message.

net/wireless/nl80211.c +15 -1
index c510810f0b7c..a2dd6edaae37 100644

Lines of this file are not shown. View the raw message.

scripts/gcc-plugins/gcc-common.h +85 -0

85 lines not on this page · raw message

security/integrity/ima/ima_fs.c +1 -1
index c07a3844ea0a..3df46906492d 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_realtek.c +2 -0
index 3f75d1b83bf2..758ac86a1d3a 100644

Lines of this file are not shown. View the raw message.

sound/soc/intel/boards/cht_bsw_rt5645.c +3 -3
index 56056ed7fcfd..16c94c45ce50 100644

Lines of this file are not shown. View the raw message.

sound/soc/intel/skylake/skl-sst-utils.c +1 -1
index 8dc03039b311..ea162fbf68e5 100644

Lines of this file are not shown. View the raw message.

sound/soc/qcom/lpass-platform.c +3 -0
index b392e51de94d..420d200f9a05 100644

Lines of this file are not shown. View the raw message.

sound/soc/samsung/i2s.c +3 -2
index 7825bff45ae3..85324e61cbd5 100644

Lines of this file are not shown. View the raw message.

sound/usb/card.c +0 -1
index 2ddc034673a8..f36cb068dad3 100644

Lines of this file are not shown. View the raw message.

sound/usb/endpoint.c +7 -10
index c470251cea4b..c5251aaad844 100644

Lines of this file are not shown. View the raw message.

sound/usb/endpoint.h +1 -1
index 6428392d8f62..584f295d7c77 100644

Lines of this file are not shown. View the raw message.

sound/usb/pcm.c +5 -5
index 44d178ee9177..48afae053c56 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.