02 Nov, 2017

1 commit

  • Many source files in the tree are missing licensing information, which
    makes it harder for compliance tools to determine the correct license.

    By default all files without license information are under the default
    license of the kernel, which is GPL version 2.

    Update the files which contain no license information with the 'GPL-2.0'
    SPDX license identifier. The SPDX identifier is a legally binding
    shorthand, which can be used instead of the full boiler plate text.

    This patch is based on work done by Thomas Gleixner and Kate Stewart and
    Philippe Ombredanne.

    How this work was done:

    Patches were generated and checked against linux-4.14-rc6 for a subset of
    the use cases:
    - file had no licensing information it it.
    - file was a */uapi/* one with no licensing information in it,
    - file was a */uapi/* one with existing licensing information,

    Further patches will be generated in subsequent months to fix up cases
    where non-standard license headers were used, and references to license
    had to be inferred by heuristics based on keywords.

    The analysis to determine which SPDX License Identifier to be applied to
    a file was done in a spreadsheet of side by side results from of the
    output of two independent scanners (ScanCode & Windriver) producing SPDX
    tag:value files created by Philippe Ombredanne. Philippe prepared the
    base worksheet, and did an initial spot review of a few 1000 files.

    The 4.13 kernel was the starting point of the analysis with 60,537 files
    assessed. Kate Stewart did a file by file comparison of the scanner
    results in the spreadsheet to determine which SPDX license identifier(s)
    to be applied to the file. She confirmed any determination that was not
    immediately clear with lawyers working with the Linux Foundation.

    Criteria used to select files for SPDX license identifier tagging was:
    - Files considered eligible had to be source code files.
    - Make and config files were included as candidates if they contained >5
    lines of source
    - File already had some variant of a license header in it (even if
    Reviewed-by: Philippe Ombredanne
    Reviewed-by: Thomas Gleixner
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

14 Sep, 2017

2 commits

  • ... and __initconst if applicable.

    Based on similar work for an older kernel in the Grsecurity patch.

    [JD: fix toshiba-wmi build]
    [JD: add htcpen]
    [JD: move __initconst where checkscript wants it]

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Jean Delvare

    Christoph Hellwig
     
  • Pull clk updates from Stephen Boyd:
    "The diff is dominated by the Allwinner A10/A20 SoCs getting converted
    to the sunxi-ng framework. Otherwise, the heavy hitters are various
    drivers for SoCs like AT91, Amlogic, Renesas, and Rockchip. There are
    some other new clk drivers in here too but overall this is just a
    bunch of clk drivers for various different pieces of hardware and a
    collection of non-critical fixes for clk drivers.

    New Drivers:
    - Allwinner R40 SoCs
    - Renesas R-Car Gen3 USB 2.0 clock selector PHY
    - Atmel AT91 audio PLL
    - Uniphier PXs3 SoCs
    - ARC HSDK Board PLLs
    - AXS10X Board PLLs
    - STMicroelectronics STM32H743 SoCs

    Removed Drivers:
    - Non-compiling mb86s7x support

    Updates:
    - Allwinner A10/A20 SoCs converted to sunxi-ng framework
    - Allwinner H3 CPU clk fixes
    - Renesas R-Car D3 SoC
    - Renesas V2H and M3-W modules
    - Samsung Exynos5420/5422/5800 audio fixes
    - Rockchip fractional clk approximation fixes
    - Rockchip rk3126 SoC support within the rk3128 driver
    - Amlogic gxbb CEC32 and sd_emmc clks
    - Amlogic meson8b reset controller support
    - IDT VersaClock 5P49V5925/5P49V6901 support
    - Qualcomm MSM8996 SMMU clks
    - Various 'const' applications for struct clk_ops
    - si5351 PLL reset bugfix
    - Uniphier audio on LD11/LD20 and ethernet support on LD11/LD20/Pro4/PXs2
    - Assorted Tegra clk driver fixes"

    * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (120 commits)
    clk: si5351: fix PLL reset
    ASoC: atmel-classd: remove aclk clock
    ASoC: atmel-classd: remove aclk clock from DT binding
    clk: at91: clk-generated: make gclk determine audio_pll rate
    clk: at91: clk-generated: create function to find best_diff
    clk: at91: add audio pll clock drivers
    dt-bindings: clk: at91: add audio plls to the compatible list
    clk: at91: clk-generated: remove useless divisor loop
    clk: mb86s7x: Drop non-building driver
    clk: ti: check for null return in strrchr to avoid null dereferencing
    clk: Don't write error code into divider register
    clk: uniphier: add video input subsystem clock
    clk: uniphier: add audio system clock
    clk: stm32h7: Add stm32h743 clock driver
    clk: gate: expose clk_gate_ops::is_enabled
    clk: nxp: clk-lpc32xx: rename clk_gate_is_enabled()
    clk: uniphier: add PXs3 clock data
    clk: hi6220: change watchdog clock source
    clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808
    clk: cs2000: Add cs2000_set_saved_rate
    ...

    Linus Torvalds
     

09 Sep, 2017

1 commit

  • This macro is useful to avoid link error on 32-bit systems.

    We have the same definition in two drivers, so move it to
    include/linux/kernel.h

    While we are here, refactor DIV_ROUND_UP_ULL() by using
    DIV_ROUND_DOWN_ULL().

    Link: http://lkml.kernel.org/r/1500945156-12907-1-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Masahiro Yamada
    Acked-by: Mark Brown
    Cc: Cyrille Pitchen
    Cc: Jaroslav Kysela
    Cc: Takashi Iwai
    Cc: Liam Girdwood
    Cc: Boris Brezillon
    Cc: Marek Vasut
    Cc: Brian Norris
    Cc: Richard Weinberger
    Cc: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masahiro Yamada
     

08 Sep, 2017

2 commits

  • Pull MFD updates from Lee Jones:
    "New Drivers
    - RK805 Power Management IC (PMIC)
    - ROHM BD9571MWV-M MFD Power Management IC (PMIC)
    - Texas Instruments TPS68470 Power Management IC (PMIC) & LEDs

    New Device Support:
    - Add support for HiSilicon Hi6421v530 to hi6421-pmic-core
    - Add support for X-Powers AXP806 to axp20x
    - Add support for X-Powers AXP813 to axp20x
    - Add support for Intel Sunrise Point LPSS to intel-lpss-pci

    New Functionality:
    - Amend API to provide register layout; atmel-smc

    Fix-ups:
    - DT re-work; omap, nokia
    - Header file location change {I2C => MFD}; dm355evm_msp, tps65010
    - Fix chip ID formatting issue(s); rk808
    - Optionally register touchscreen devices; da9052-core
    - Documentation improvements; twl-core
    - Constification; rtsx_pcr, ab8500-core, da9055-i2c, da9052-spi
    - Drop unnecessary static declaration; max8925-i2c
    - Kconfig changes (missing deps and remove module support)
    - Slim down oversized licence statement; hi6421-pmic-core
    - Use managed resources (devm_*); lp87565
    - Supply proper error checking/handling; t7l66xb

    Bug Fixes:
    - Fix counter duplication issue; da9052-core
    - Fix potential NULL deference issue; max8998
    - Leave SPI-NOR write-protection bit alone; lpc_ich
    - Ensure device is put into reset during suspend; intel-lpss
    - Correct register offset variable size; omap-usb-tll"

    * tag 'mfd-next-4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (61 commits)
    mfd: intel_soc_pmic: Differentiate between Bay and Cherry Trail CRC variants
    mfd: intel_soc_pmic: Export separate mfd-cell configs for BYT and CHT
    dt-bindings: mfd: Add bindings for ZII RAVE devices
    mfd: omap-usb-tll: Fix register offsets
    mfd: da9052: Constify spi_device_id
    mfd: intel-lpss: Put I2C and SPI controllers into reset state on suspend
    mfd: da9055: Constify i2c_device_id
    mfd: intel-lpss: Add missing PCI ID for Intel Sunrise Point LPSS devices
    mfd: t7l66xb: Handle return value of clk_prepare_enable
    mfd: Add ROHM BD9571MWV-M PMIC DT bindings
    mfd: intel_soc_pmic_chtwc: Turn Kconfig option into a bool
    mfd: lp87565: Convert to use devm_mfd_add_devices()
    mfd: Add support for TPS68470 device
    mfd: lpc_ich: Do not touch SPI-NOR write protection bit on Haswell/Broadwell
    mfd: syscon: atmel-smc: Add helper to retrieve register layout
    mfd: axp20x: Use correct platform device ID for many PEK
    dt-bindings: mfd: axp20x: Introduce bindings for AXP813
    mfd: axp20x: Add support for AXP813 PMIC
    dt-bindings: mfd: axp20x: Add AXP806 to supported list of chips
    mfd: Add ROHM BD9571MWV-M MFD PMIC driver
    ...

    Linus Torvalds
     
  • Pull sound updates from Takashi Iwai:
    "We have touched quite a lot of files but with fewer changes at this
    cycle; as you can see, most of changes are trivial fixes, especially
    constification patches.

    Among the massive attacks by constification gangs, we had a few core
    changes (mostly for ASoC core), as well the fixes and the updates by
    major vendors.

    Some highlights:

    ALSA core:

    - Fix possible races in control API user-TLV codes

    - Small cleanup of PCM core

    ASoC:

    - Continued work for componentization; still half-baked, but we're
    certainly progressing

    - Use of devres for jack detection GPIOs, rather as a cleanup

    - Jack detection support for Qualcomm MSM8916

    - Support for Allwinner H3, Cirrus Logic CS43130, Intel Kabylake
    systems with RT5663, Realtek RT274, TI TLV320AIC32x6 and Wolfson
    WM8523"

    * tag 'sound-4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (512 commits)
    ALSA: hda/ca0132 - Fix memory leak at error path
    ALSA: hda: Fix forget to free resource in error handling code path in hda_codec_driver_probe
    ASoC: cs43130: Fix unused compiler warnings for PM runtime
    ASoC: cs43130: Fix possible Oops with invalid dev_id
    ASoC: cs43130: fix spelling mistake: "irq_occurrance" -> "irq_occurrence"
    ALSA: atmel: Remove leftovers of AVR32 removal
    ALSA: atmel: convert AC97c driver to GPIO descriptor API
    ALSA: hda/realtek - Enable jack detection function for Intel ALC700
    ALSA: hda: Fix regression of hdmi eld control created based on invalid pcm
    ASoC: Intel: Skylake: Add IPC to configure the copier secondary pins
    ASoC: add missing compile rule for max98371
    ASoC: add missing compile rule for sirf-audio-codec
    ASoC: add missing compile rule for max98371
    ASoC: cs43130: Add devicetree bindings for CS43130
    ASoC: cs43130: Add support for CS43130 codec
    ASoC: make clock direction configurable in asoc-simple
    ALSA: ctxfi: Remove null check before kfree
    ASoC: max98927: Changed device property read function
    ASoC: max98927: Modified DAPM widget and map to enable/disable VI sense path
    ASoC: max98927: Added PM suspend and resume function
    ...

    Linus Torvalds
     

05 Sep, 2017

1 commit


04 Sep, 2017

7 commits

  • Add __maybe_unused prefix for addressing the following warnings:
    sound/soc/codecs/cs43130.c:2615:12: warning: ‘cs43130_runtime_resume’ defined but not used [-Wunused-function]
    sound/soc/codecs/cs43130.c:2596:12: warning: ‘cs43130_runtime_suspend’ defined but not used [-Wunused-function]

    Fixes: 8f1e5bf9b440 ("ASoC: cs43130: Add support for CS43130 codec")
    Signed-off-by: Takashi Iwai
    Signed-off-by: Mark Brown

    Takashi Iwai
     
  • As compiler spotted out, there is the potential NULL-dereference in
    the code when dc-measure OF is given for other than 43130/43131:
    sound/soc/codecs/cs43130.c:2089:18: warning: ‘hpload_seq’ may be used uninitialized in this function [-Wmaybe-uninitialized]

    Warn it and return before triggering Oops.

    Fixes: 8f1e5bf9b440 ("ASoC: cs43130: Add support for CS43130 codec")
    Signed-off-by: Takashi Iwai
    Signed-off-by: Mark Brown

    Takashi Iwai
     
  • include/linux/i2c is not for client devices. Move the header file to a
    more appropriate location.

    Signed-off-by: Wolfram Sang
    Acked-by: Greg Kroah-Hartman
    Acked-by: Alexandre Belloni
    Acked-by: Mark Brown
    Acked-by: Sebastian Reichel
    Acked-by: Jonathan Cameron
    Acked-by: Dmitry Torokhov
    Acked-by: Kishon Vijay Abraham I
    Acked-by: Bartlomiej Zolnierkiewicz
    Acked-by: Thierry Reding
    Acked-by: Tony Lindgren
    Acked-by: Daniel Thompson
    Acked-by: Linus Walleij
    Acked-by: Guenter Roeck
    Signed-off-by: Lee Jones

    Wolfram Sang
     
  • ASoC: Updates for v4.14

    This is quite a large release by volume of patches and diff, a lot of
    that is mechanical cleanup patches but it's great to also see a range of
    vendors actively working on adding new features and fixing issues in
    their drivers. Intel and Realtek have been especially active here.

    - Continued work towards moving everything to the component model from
    Morimoto-san.
    - Use of devres for jack detection GPIOs, eliminating some potential
    resource leaks.
    - Jack detection support for Qualcomm MSM8916.
    - Support for Allwinner H3, Cirrus Logic CS43130, Intel Kabylake
    systems with RT5663, Realtek RT274, TI TLV320AIC32x6 and Wolfson
    WM8523.

    Takashi Iwai
     
  • Trivial fix to spelling mistake in variable name

    Signed-off-by: Colin Ian King
    Signed-off-by: Mark Brown

    Colin Ian King
     
  • Takashi Iwai
     
  • Pull drm updates from Dave Airlie:
    "This is the main drm pull request for 4.14 merge window.

    I'm sending this early, as my continuing journey into fatherhood is
    occurring really soon now, I'm going to be mostly useless for the next
    couple of weeks, though I may be able to read email, I doubt I'll be
    doing much patch applications or git sending. If anything urgent pops
    up I've asked Daniel/Jani/Alex/Sean to try and direct stuff towards
    you.

    Outside drm changes:

    Some rcar-du updates that touch the V4L tree, all acks should be in
    place. It adds one export to the radix tree code for new i915 use
    case. There are some minor AGP cleanups (don't see that too often).
    Changes to the vbox driver in staging to avoid breaking compilation.

    Summary:

    core:
    - Atomic helper fixes
    - Atomic UAPI fixes
    - Add YCBCR 4:2:0 support
    - Drop set_busid hook
    - Refactor fb_helper locking
    - Remove a bunch of internal APIs
    - Add a bunch of better default handlers
    - Format modifier/blob plane property added
    - More internal header refactoring
    - Make more internal API names consistent
    - Enhanced syncobj APIs (wait/signal/reset/create signalled)

    bridge:
    - Add Synopsys Designware MIPI DSI host bridge driver

    tiny:
    - Add Pervasive Displays RePaper displays
    - Add support for LEGO MINDSTORMS EV3 LCD

    i915:
    - Lots of GEN10/CNL support patches
    - drm syncobj support
    - Skylake+ watermark refactoring
    - GVT vGPU 48-bit ppgtt support
    - GVT performance improvements
    - NOA change ioctl
    - CCS (color compression) scanout support
    - GPU reset improvements

    amdgpu:
    - Initial hugepage support
    - BO migration logic rework
    - Vega10 improvements
    - Powerplay fixes
    - Stop reprogramming the MC
    - Fixes for ACP audio on stoney
    - SR-IOV fixes/improvements
    - Command submission overhead improvements

    amdkfd:
    - Non-dGPU upstreaming patches
    - Scratch VA ioctl
    - Image tiling modes
    - Update PM4 headers for new firmware
    - Drop all BUG_ONs.

    nouveau:
    - GP108 modesetting support.
    - Disable MSI on big endian.

    vmwgfx:
    - Add fence fd support.

    msm:
    - Runtime PM improvements

    exynos:
    - NV12MT support
    - Refactor KMS drivers

    imx-drm:
    - Lock scanout channel to improve memory bw
    - Cleanups

    etnaviv:
    - GEM object population fixes

    tegra:
    - Prep work for Tegra186 support
    - PRIME mmap support

    sunxi:
    - HDMI support improvements
    - HDMI CEC support

    omapdrm:
    - HDMI hotplug IRQ support
    - Big driver cleanup
    - OMAP5 DSI support

    rcar-du:
    - vblank fixes
    - VSP1 updates

    arcgpu:
    - Minor fixes

    stm:
    - Add STM32 DSI controller driver

    dw_hdmi:
    - Add support for Rockchip RK3399
    - HDMI CEC support

    atmel-hlcdc:
    - Add 8-bit color support

    vc4:
    - Atomic fixes
    - New ioctl to attach a label to a buffer object
    - HDMI CEC support
    - Allow userspace to dictate rendering order on submit ioctl"

    * tag 'drm-for-v4.14' of git://people.freedesktop.org/~airlied/linux: (1074 commits)
    drm/syncobj: Add a signal ioctl (v3)
    drm/syncobj: Add a reset ioctl (v3)
    drm/syncobj: Add a syncobj_array_find helper
    drm/syncobj: Allow wait for submit and signal behavior (v5)
    drm/syncobj: Add a CREATE_SIGNALED flag
    drm/syncobj: Add a callback mechanism for replace_fence (v3)
    drm/syncobj: add sync obj wait interface. (v8)
    i915: Use drm_syncobj_fence_get
    drm/syncobj: Add a race-free drm_syncobj_fence_get helper (v2)
    drm/syncobj: Rename fence_get to find_fence
    drm: kirin: Add mode_valid logic to avoid mode clocks we can't generate
    drm/vmwgfx: Bump the version for fence FD support
    drm/vmwgfx: Add export fence to file descriptor support
    drm/vmwgfx: Add support for imported Fence File Descriptor
    drm/vmwgfx: Prepare to support fence fd
    drm/vmwgfx: Fix incorrect command header offset at restart
    drm/vmwgfx: Support the NOP_ERROR command
    drm/vmwgfx: Restart command buffers after errors
    drm/vmwgfx: Move irq bottom half processing to threads
    drm/vmwgfx: Don't use drm_irq_[un]install
    ...

    Linus Torvalds
     

02 Sep, 2017

1 commit

  • Since gclk (generated-clk) is now able to determine the rate of the
    audio_pll, there is no need for classd to have a direct phandle to the
    audio_pll while already having a phandle to gclk.

    Thus, remove all mentions to aclk in classd driver and update macros and
    variable names.

    Signed-off-by: Quentin Schulz
    Acked-by: Mark Brown
    Acked-by: Nicolas Ferre
    Signed-off-by: Stephen Boyd

    Quentin Schulz
     

01 Sep, 2017

25 commits