09 Mar, 2019

1 commit

  • Pull drm updates from Dave Airlie:
    "This is the main drm pull request for the 5.1 merge window.

    The big changes I'd highlight are:
    - nouveau has HMM support now, there is finally an in-tree user so we
    can quieten down the rip it out people.
    - i915 now enables fastboot by default on Skylake+
    - Displayport Multistream support has been refactored and should
    hopefully be more reliable.

    Core:
    - header cleanups aiming towards removing drmP.h
    - dma-buf fence seqnos to 64-bits
    - common helper for DP mst hotplug for radeon,i915,amdgpu + new
    refcounting scheme
    - MST i2c improvements
    - drm_syncobj_cb removal
    - ARM FB compression fourcc
    - P010 + P016 fourcc
    - allwinner tiled format modifier
    - i2c over aux I2C_M_STOP support
    - DRM_AUTH handling fixes

    TTM:
    - ref/unref renaming

    New driver:
    - ARM komeda display driver

    scheduler:
    - refactor mirror list handling
    - rework hw fence processing
    - 0 run queue entity fix

    bridge:
    - TI DS90C185 LVDS bridge
    - thc631lvdm83d bridge improvements
    - cadence + allwinner DSI ported to generic phy

    panels:
    - Sitronix ST7701 panel
    - Kingdisplay KD097D04
    - LeMaker BL035-RGB-002
    - PDA 91-00156-A0
    - Innolux EE101IA-01D

    i915:
    - Enable fastboot by default on SKL+/VLV/CHV
    - Export RPCS configuration for ICL media driver
    - Coffelake PCI ID
    - CNL clocks setup fixes
    - ACPI/PMIC support for MIPI/DSI
    - Per-engine WA init for all engines
    - Shrinker locking fixes
    - Kerneldoc updates
    - Lots of ring improvements and reset fixes
    - Coffeelake GVT Support
    - VFIO GVT EDID Region support
    - runtime PM wakeref tracking
    - ILK->IVB primary plane enable delays
    - userptr mutex locking fixes
    - DSI fixes
    - LVDS/TV cleanups
    - HW readout fixes
    - LUT robustness fixes
    - ICL display and watermark fixes
    - gem mmap race fix

    amdgpu:
    - add scheduled dependencies interface
    - DCC on scanout surfaces
    - vega10/20 BACO support
    - Multiple IH rings on soc15
    - XGMI locking fixes
    - DC i2c/aux cleanups
    - runtime SMU debug interface
    - Kexec improvmeents
    - SR-IOV fixes
    - DC freesync + ABM fixes
    - GDS fixes
    - GPUVM fixes
    - vega20 PCIE DPM switching fixes
    - Context priority handling fixes

    radeon:
    - fix missing break in evergreen parser

    nouveau:
    - SVM support via HMM

    msm:
    - QCOM Compressed modifier support

    exynos:
    - s5pv210 rotator support

    imx:
    - zpos property support
    - pending update fixes

    v3d:
    - cache flush improvments

    vc4:
    - reflection support
    - HDMI overscan support

    tegra:
    - CEC refactoring
    - HDMI audio fixes
    - Tegra186 prep work
    - SOR crossbar device tree fixes

    sun4i:
    - implicit fencing support
    - YUV and scalar support improvements
    - A23 support
    - tiling fixes

    atmel-hlcdc:
    - clipping and rotation property fixes

    qxl:
    - BO and PRIME improvements
    - generic fbdev emulation

    dw-hdmi:
    - HDMI 2.0 2160p
    - YUV420 ouput

    rockchip:
    - implicit fencing support
    - reflection proerties

    virtio-gpu:
    - use generic fbdev emulation

    tilcdc:
    - cpufreq vs crtc init fix

    rcar-du:
    - R8A774C0 support
    - D3/E3 RGB output routing fixes and DPAD0 support
    - RA87744 LVDS support

    bochs:
    - atomic and generic fbdev emulation
    - ID mismatch error on bochs load

    meson:
    - remove firmware fbs"

    * tag 'drm-next-2019-03-06' of git://anongit.freedesktop.org/drm/drm: (1130 commits)
    drm/amd/display: Use vrr friendly pageflip throttling in DC.
    drm/imx: only send commit done event when all state has been applied
    drm/imx: allow building under COMPILE_TEST
    drm/imx: imx-tve: depend on COMMON_CLK
    drm/imx: ipuv3-plane: add zpos property
    drm/imx: ipuv3-plane: add function to query atomic update status
    gpu: ipu-v3: prg: add function to get channel configure status
    gpu: ipu-v3: pre: add double buffer status readback
    drm/amdgpu: Bump amdgpu version for context priority override.
    drm/amdgpu/powerplay: fix typo in BACO header guards
    drm/amdgpu/powerplay: fix return codes in BACO code
    drm/amdgpu: add missing license on baco files
    drm/bochs: Fix the ID mismatch error
    drm/nouveau/dmem: use dma addresses during migration copies
    drm/nouveau/dmem: use physical vram addresses during migration copies
    drm/nouveau/dmem: extend copy function to allow direct use of physical addresses
    drm/nouveau/svm: new ioctl to migrate process memory to GPU memory
    drm/nouveau/dmem: device memory helpers for SVM
    drm/nouveau/svm: initial support for shared virtual memory
    drm/nouveau: prepare for enabling svm with existing userspace interfaces
    ...

    Linus Torvalds
     

07 Mar, 2019

1 commit

  • Pull USB/PHY updates from Greg KH:
    "Here is the big USB/PHY driver pull request for 5.1-rc1.

    The usual set of gadget driver updates, phy driver updates, xhci
    updates, and typec additions. Also included in here are a lot of small
    cleanups and fixes and driver updates where needed.

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'usb-5.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (167 commits)
    wusb: Remove unnecessary static function ckhdid_printf
    usb: core: make default autosuspend delay configurable
    usb: core: Fix typo in description of "authorized_default"
    usb: chipidea: Refactor USB PHY selection and keep a single PHY
    usb: chipidea: Grab the (legacy) USB PHY by phandle first
    usb: chipidea: imx: set power polarity
    dt-bindings: usb: ci-hdrc-usb2: add property power-active-high
    usb: chipidea: imx: remove unused header files
    usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()
    usb: core: add option of only authorizing internal devices
    usb: typec: tps6598x: handle block writes separately with plain-I2C adapters
    usb: xhci: Fix for Enabling USB ROLE SWITCH QUIRK on INTEL_SUNRISEPOINT_LP_XHCI
    usb: xhci: fix build warning - missing prototype
    usb: xhci: dbc: Fixing typo error.
    usb: xhci: remove unused member 'parent' in xhci_regset struct
    xhci: tegra: Prevent error pointer dereference
    USB: serial: option: add Telit ME910 ECM composition
    usb: core: Replace hardcoded check with inline function from usb.h
    usb: core: skip interfaces disabled in devicetree
    usb: typec: mux: remove redundant check on variable match
    ...

    Linus Torvalds
     

18 Feb, 2019

1 commit


12 Feb, 2019

2 commits

  • …linux-phy into usb-next

    Kishon writes:

    phy: for 5.1

    *) Add a new driver to support Armada 3700 COMPHY IP (supports SATA, USB3,
    PCIe)
    *) Add a new driver to support Armada UTMI PHY
    *) Add a new driver to support Cadence D-PHY
    *) Extend omap-usb2 PHY driver to be used for AM654 USB2 PHY
    *) Extend qcom-qmp PHY driver to be used for UFS PHY and USB3 PHY in Qualcomm
    MSM8998
    *) Extend qcom-qusb2 PHY driver to support QUSB2 PHY in Qualcomm MSM8998
    *) Remove module specific code that is present for drivers that can be only
    built-in
    *) Allow Freescale IMX8MQ USB to be used for multiple SoCs and not just
    i.MX8MQ
    *) Cleanups such as switch to SPDX identifier, use readl_poll_timeout macro,
    remove unused headers etc.,

    Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

    * tag 'phy-for-5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy: (32 commits)
    phy: qcom-qmp: Add QMP UFS PHY support for msm8998
    dt-bindings: phy-qcom-qmp: Add qcom,msm8998-qmp-ufs-phy
    phy: bcm-sr-pcie: Change operation when PIPEMUX=1
    phy: Add Cadence D-PHY support
    dt-bindings: phy: Move the Cadence D-PHY bindings
    phy: dphy: Clarify lanes parameter documentation
    phy: dphy: Change units of wakeup and init parameters
    phy: dphy: Remove unused header
    MAINTAINERS: phy: fill Armada 3700 PHY drivers entry
    dt-bindings: phy: mvebu-utmi: add UTMI PHY bindings
    phy: add A3700 UTMI PHY driver
    MAINTAINERS: phy: add entry for Armada 3700 COMPHY driver
    dt-bindings: phy: mvebu-comphy: extend the file to describe a3700 bindings
    phy: add A3700 COMPHY support
    phy: mvebu-cp110-comphy: fix port check in ->xlate()
    phy: armada375-usb2: switch to SPDX license identifier
    phy: make phy-armada375-usb2 explicitly non-modular
    phy: make phy-mvebu-sata explicitly non-modular
    phy: make phy-core explicitly non-modular
    phy: qcom-qusb2: Add QUSB2 PHY support for msm8998
    ...

    Greg Kroah-Hartman
     
  • Use same init sequence as sdm845.

    Reviewed-by: Jeffrey Hugo
    Signed-off-by: Marc Gonzalez
    Signed-off-by: Kishon Vijay Abraham I

    Marc Gonzalez
     

08 Feb, 2019

1 commit

  • Add support for the Armada 38x common phy to allow us to change the
    speed of the Ethernet serdes lane. This driver only supports
    manipulation of the speed, it does not support configuration of the
    common phy.

    Signed-off-by: Russell King
    Signed-off-by: David S. Miller

    Russell King
     

07 Feb, 2019

20 commits

  • Now that our MIPI D-PHY driver has been converted to the phy framework,
    let's move it into the drivers/phy directory.

    Reviewed-by: Paul Kocialkowski
    Signed-off-by: Maxime Ripard
    Link: https://patchwork.freedesktop.org/patch/msgid/2447609da5b80f148c79b2b2a263a0e779f3e82f.1548085432.git-series.maxime.ripard@bootlin.com

    Maxime Ripard
     
  • When PIPEMIX=1, change the operation from 2x8 EP to 1x8 EP + 1x8 RC.

    Signed-off-by: Qingmin Liu
    Signed-off-by: Ray Jui
    Acked-by: Scott Branden
    Signed-off-by: Kishon Vijay Abraham I

    Qingmin Liu
     
  • Cadence has designed a D-PHY that can be used by the, currently in tree,
    DSI bridge (DRM), CSI Transceiver and CSI Receiver (v4l2) drivers.

    Only the DSI driver has an ad-hoc driver for that phy at the moment, while
    the v4l2 drivers are completely missing any phy support. In order to make
    that phy support available to all these drivers, without having to
    duplicate that code three times, let's create a generic phy framework
    driver.

    Acked-by: Sakari Ailus
    Signed-off-by: Maxime Ripard
    Signed-off-by: Kishon Vijay Abraham I

    Maxime Ripard
     
  • The Init and wakeup D-PHY parameters are in the micro/milliseconds range,
    putting the values real close to the types limits if they were in
    picoseconds.

    Move them to microseconds which should be better fit.

    Suggested-by: Sakari Ailus
    Acked-by: Sakari Ailus
    Signed-off-by: Maxime Ripard
    Signed-off-by: Kishon Vijay Abraham I

    Maxime Ripard
     
  • Marvell Armada 3700 SoC has two USB controllers, each of them being
    wired to an internal UTMI PHY. Add a driver to control them.

    Igal Liberman worked on supporting the PHY, I took the while 'register
    configuration' from his work and rewrote almost entirely the
    driver/bindings around it.

    Co-developed-by: Igal Liberman
    Signed-off-by: Miquel Raynal
    Signed-off-by: Igal Liberman
    Signed-off-by: Kishon Vijay Abraham I

    Miquel Raynal
     
  • Add a driver to support COMPHY, a hardware block providing shared
    serdes PHYs on Marvell Armada 3700. This driver uses SMC calls and
    rely on having an up-to-date firmware.

    SATA, PCie and USB3 host mode have been tested successfully with an
    ESPRESSObin. (HS)SGMII mode cannot be tested with this platform.

    Evan worked on the original driver structure and Grzegorz on the SMC
    calls rework. The structure of this driver has been copied from
    Antoine Tenart work on CP110 COMPHY driver.

    Signed-off-by: Miquel Raynal
    Co-developed-by: Evan Wang
    Signed-off-by: Evan Wang
    Co-developed-by: Grzegorz Jaszczyk
    Signed-off-by: Grzegorz Jaszczyk
    Signed-off-by: Kishon Vijay Abraham I

    Miquel Raynal
     
  • So far the PHY ->xlate() callback was checking if the port was
    "invalid" before continuing, meaning that the port has not been used
    yet. This check is not correct as there is no opposite call to
    ->xlate() once the PHY is released by the user and the port will
    remain "valid" after the first phy_get()/phy_put() calls. Hence, if
    this driver is built as a module, inserted, removed and inserted
    again, the PHY will appear busy and the second probe will fail.

    To fix this, just drop the faulty check and instead verify that the
    port number is valid (ie. in the possible range).

    Signed-off-by: Miquel Raynal
    Signed-off-by: Kishon Vijay Abraham I

    Miquel Raynal
     
  • Adopt the SPDX license identifier headers to ease license compliance
    management.

    Signed-off-by: Gregory CLEMENT
    Signed-off-by: Kishon Vijay Abraham I

    Gregory CLEMENT
     
  • The Kconfig currently controlling compilation of this code is:

    drivers/phy/marvell/Kconfig:config ARMADA375_USBCLUSTER_PHY
    drivers/phy/marvell/Kconfig: def_bool y

    ...meaning that it currently is not being built as a module by anyone.

    Lets remove the couple of traces of modular infrastructure, so that
    when reading the driver there is no doubt it is builtin-only.

    Since module_platform_driver() uses the same init level priority as
    builtin_platform_driver() the init ordering remains unchanged with
    this commit.

    Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.

    We also delete the MODULE_LICENSE tag etc. since all that information
    is already contained at the top of the file in the comments.

    Cc: Kishon Vijay Abraham I
    Cc: Gregory CLEMENT
    Signed-off-by: Paul Gortmaker
    Reviewed-by: Gregory CLEMENT
    Signed-off-by: Kishon Vijay Abraham I

    Paul Gortmaker
     
  • The Kconfig currently controlling compilation of this code is:

    drivers/phy/Kconfig:config PHY_MVEBU_SATA
    drivers/phy/Kconfig: def_bool y

    ...meaning that it currently is not being built as a module by anyone.

    Lets remove the couple of traces of modular infrastructure, so that
    when reading the driver there is no doubt it is builtin-only.

    Since module_platform_driver() uses the same init level priority as
    builtin_platform_driver() the init ordering remains unchanged with
    this commit.

    Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.

    We also delete the MODULE_LICENSE tag etc. since all that information
    is already contained at the top of the file in the comments.

    Cc: Kishon Vijay Abraham I
    Cc: Andrew Lunn
    Signed-off-by: Paul Gortmaker
    Signed-off-by: Kishon Vijay Abraham I

    Paul Gortmaker
     
  • The Kconfig currently controlling compilation of this code is:

    drivers/phy/Kconfig:config GENERIC_PHY
    drivers/phy/Kconfig: bool "PHY Core"

    ...meaning that it currently is not being built as a module by anyone.

    Lets remove the modular code that is essentially orphaned, so that
    when reading the driver there is no doubt it is builtin-only.

    Since module_init translates to device_initcall in the non-modular
    case, the init ordering remains unchanged with this commit.

    We don't remove module.h since the file is using other modular fcns
    (to load other phy modules) even though the core support itself is
    non-modular.

    We also delete the MODULE_LICENSE tag etc. since all that information
    is already contained at the top of the file in the comments.

    Cc: Kishon Vijay Abraham I
    Signed-off-by: Paul Gortmaker
    Signed-off-by: Kishon Vijay Abraham I

    Paul Gortmaker
     
  • MSM8998 contains one QUSB2 PHY which is very similar to the existing
    sdm845 support.

    Signed-off-by: Jeffrey Hugo
    Signed-off-by: Kishon Vijay Abraham I

    Jeffrey Hugo
     
  • That property is no used in mainline and is not documented. The only
    board using that property is the rk33-99-evb-rev1 and -rev2 in the
    vendor kernel. The existence of a further -rev3 (which also looks way
    better cared for compared rev1+2) indicates that the older ones are
    probably some sort of preproduction models, where some wiring (on the soc
    or board) may have gone wrong.

    It is also not clear why this is a hardware-description or a DT
    property, so, as noboby seems to care of this just drop reading that
    property.

    Signed-off-by: Enric Balletbo i Serra
    Reviewed-by: Heiko Stuebner
    Signed-off-by: Kishon Vijay Abraham I

    Enric Balletbo i Serra
     
  • MSM8998 contains a single QMP v3 USB3 phy similar to the existing sdm845
    support.

    Signed-off-by: Jeffrey Hugo
    Signed-off-by: Kishon Vijay Abraham I

    Jeffrey Hugo
     
  • Fix the typo flase -> false and clean up the kernel-doc documentation in
    phy-rockchip-inno.usb2.c and fix the following warnings when documentation
    is built.

    :58: warning: missing initial short description
    :69: warning: cannot understand function prototype: 'enum usb_chg_state '
    :97: warning: missing initial short description
    :136: warning: cannot understand function prototype: 'struct rockchip_usb2phy_port_cfg '
    :157: warning: cannot understand function prototype: 'struct rockchip_usb2phy_cfg '
    :163: warning: Function parameter or member 'port_cfgs' not described in 'rockchip_usb2phy_cfg'
    :187: warning: cannot understand function prototype: 'struct rockchip_usb2phy_port '
    :204: warning: Function parameter or member 'port_cfg' not described in 'rockchip_usb2phy_port'
    :207: warning: missing initial short description
    :234: warning: Function parameter or member 'dev' not described in 'rockchip_usb2phy'
    :234: warning: Function parameter or member 'clk480m_hw' not described in 'rockchip_usb2phy'

    Signed-off-by: Enric Balletbo i Serra
    Reviewed-by: Heiko Stuebner
    Signed-off-by: Kishon Vijay Abraham I

    Enric Balletbo i Serra
     
  • Add support for the USB2 PHY on the AM654 SoC.

    Signed-off-by: Roger Quadros
    Signed-off-by: Sekhar Nori
    Signed-off-by: Kishon Vijay Abraham I

    Roger Quadros
     
  • TI_PIPE3 and OMAP_USB2 don't depend on OMAP_OCP2SCP
    for build.

    Signed-off-by: Roger Quadros
    Signed-off-by: Sekhar Nori
    Signed-off-by: Kishon Vijay Abraham I

    Roger Quadros
     
  • If clk_get() returns -EPROBE_DEFER then we should just
    return instead of falling back to old clock name.

    Use clk_prepare_enable() and clk_disable_unprepare() instead
    of splitting up prepare/unprepare from enable/disable.

    Signed-off-by: Roger Quadros
    Signed-off-by: Kishon Vijay Abraham I

    Roger Quadros
     
  • The private copy of readl_poll_timeout is no longer needed.
    Use the implementation in iopoll.h instead.

    Signed-off-by: Marc Gonzalez
    Reviewed-by: Bjorn Andersson
    Reviewed-by: Andy Gross
    Reviewed-by: Vivek Gautam
    Signed-off-by: Kishon Vijay Abraham I

    Marc Gonzalez
     
  • Since this is going to be used on more SoCs than just i.MX8MQ,
    make the dependency here more generic.

    Signed-off-by: Abel Vesa
    Reviewed-by: Dong Aisheng
    Signed-off-by: Kishon Vijay Abraham I

    Abel Vesa
     

26 Jan, 2019

1 commit

  • Pull USB/PHY fixes from Greg KH:
    "Here are a number of small USB and PHY driver fixes for 5.0-rc4.

    Nothing major at all, just the usual selection of USB gadget bugfixes,
    some new USB serial driver ids, some SPDX fixes, and some PHY driver
    fixes for reported issues.

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'usb-5.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
    USB: serial: keyspan_usa: add proper SPDX lines for .h files
    USB: EHCI: ehci-mv: add MODULE_DEVICE_TABLE
    USB: leds: fix regression in usbport led trigger
    usb: chipidea: fix static checker warning for NULL pointer
    MAINTAINERS: email address update in MAINTAINERS entries
    USB: usbip: delete README file
    USB: serial: pl2303: add new PID to support PL2303TB
    usb: dwc2: gadget: Fix Remote Wakeup interrupt bit clearing
    phy: ath79-usb: Fix the main reset name to match the DT binding
    phy: ath79-usb: Fix the power on error path
    phy: fix build breakage: add PHY_MODE_SATA
    phy: ti: ensure priv is not null before dereferencing it
    USB: serial: ftdi_sio: fix GPIO not working in autosuspend
    usb: gadget: Potential NULL dereference on allocation error
    usb: dwc3: gadget: Fix the uninitialized link_state when udc starts
    usb: dwc3: gadget: Clear req->needs_extra_trb flag on cleanup
    usb: dwc3: gadget: synchronize_irq dwc irq in suspend
    USB: serial: simple: add Motorola Tetra TPG2200 device id

    Linus Torvalds
     

16 Jan, 2019

5 commits

  • I submitted this driver several times before it got accepted. The
    first series hasn't been accepted but the DTS binding did made it.
    I then made a second series that added generic reset support to the
    PHY core, this in turn required a change to the DT binding. This
    second series seemed to have been ignored, so I did a third one
    without the change to the PHY core and the DT binding update, and this
    last attempt finally made it.

    But two months later the DT binding update from the second series has
    been integrated too. So now the driver doesn't match the binding and
    the only DTS using it. This patch fix the driver to match the new
    binding.

    Signed-off-by: Alban Bedel
    Signed-off-by: Kishon Vijay Abraham I

    Alban Bedel
     
  • In the power on function the error path doesn't return the suspend
    override to its proper state. It should should deassert this reset
    line to enable the suspend override.

    Signed-off-by: Alban Bedel
    Signed-off-by: Kishon Vijay Abraham I

    Alban Bedel
     
  • Commit 49e54187ae0b ("ata: libahci_platform: comply to PHY framework") uses
    the PHY_MODE_SATA, but that enum had not yet been added. This caused a
    build failure for me, with today's linux.git.

    Also, there is a potentially conflicting (mis-named) PHY_MODE_SATA, hiding
    in the Marvell Berlin SATA PHY driver.

    Fix the build by:

    1) Renaming Marvell's defined value to a more scoped name,
    in order to avoid any potential conflicts: PHY_BERLIN_MODE_SATA.

    2) Adding the missing enum, which was going to be added anyway as part
    of [1].

    [1] https://lkml.kernel.org/r/20190108163124.6409-3-miquel.raynal@bootlin.com

    Fixes: 49e54187ae0b ("ata: libahci_platform: comply to PHY framework")

    Cc: Grzegorz Jaszczyk
    Cc: Miquel Raynal
    Cc: Hans de Goede
    Cc: Jens Axboe
    Signed-off-by: John Hubbard
    Signed-off-by: Kishon Vijay Abraham I

    John Hubbard
     
  • Currently priv is being dereferenced before priv is being null checked.
    Fix this by moving the null check on priv before the dereference.

    Detected by CoverityScan, CID#1476018 ("Dereference before null check")

    Fixes: 92b58b34741f ("phy: ti: introduce phy-gmii-sel driver")
    Signed-off-by: Colin Ian King
    Signed-off-by: Kishon Vijay Abraham I

    Colin Ian King
     
  • Pull networking fixes from David Miller:

    1) Fix regression in multi-SKB responses to RTM_GETADDR, from Arthur
    Gautier.

    2) Fix ipv6 frag parsing in openvswitch, from Yi-Hung Wei.

    3) Unbounded recursion in ipv4 and ipv6 GUE tunnels, from Stefano
    Brivio.

    4) Use after free in hns driver, from Yonglong Liu.

    5) icmp6_send() needs to handle the case of NULL skb, from Eric
    Dumazet.

    6) Missing rcu read lock in __inet6_bind() when operating on mapped
    addresses, from David Ahern.

    7) Memory leak in tipc-nl_compat_publ_dump(), from Gustavo A. R. Silva.

    8) Fix PHY vs r8169 module loading ordering issues, from Heiner
    Kallweit.

    9) Fix bridge vlan memory leak, from Ido Schimmel.

    10) Dev refcount leak in AF_PACKET, from Jason Gunthorpe.

    11) Infoleak in ipv6_local_error(), flow label isn't completely
    initialized. From Eric Dumazet.

    12) Handle mv88e6390 errata, from Andrew Lunn.

    13) Making vhost/vsock CID hashing consistent, from Zha Bin.

    14) Fix lack of UMH cleanup when it unexpectedly exits, from Taehee Yoo.

    15) Bridge forwarding must clear skb->tstamp, from Paolo Abeni.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (87 commits)
    bnxt_en: Fix context memory allocation.
    bnxt_en: Fix ring checking logic on 57500 chips.
    mISDN: hfcsusb: Use struct_size() in kzalloc()
    net: clear skb->tstamp in bridge forwarding path
    net: bpfilter: disallow to remove bpfilter module while being used
    net: bpfilter: restart bpfilter_umh when error occurred
    net: bpfilter: use cleanup callback to release umh_info
    umh: add exit routine for UMH process
    isdn: i4l: isdn_tty: Fix some concurrency double-free bugs
    vhost/vsock: fix vhost vsock cid hashing inconsistent
    net: stmmac: Prevent RX starvation in stmmac_napi_poll()
    net: stmmac: Fix the logic of checking if RX Watchdog must be enabled
    net: stmmac: Check if CBS is supported before configuring
    net: stmmac: dwxgmac2: Only clear interrupts that are active
    net: stmmac: Fix PCI module removal leak
    tools/bpf: fix bpftool map dump with bitfields
    tools/bpf: test btf bitfield with >=256 struct member offset
    bpf: fix bpffs bitfield pretty print
    net: ethernet: mediatek: fix warning in phy_start_aneg
    tcp: change txhash on SYN-data timeout
    ...

    Linus Torvalds
     

13 Jan, 2019

1 commit

  • Commit 49e54187ae0b ("ata: libahci_platform: comply to PHY framework") uses
    the PHY_MODE_SATA, but that enum had not yet been added. This caused a
    build failure for me, with today's linux.git.

    Also, there is a potentially conflicting (mis-named) PHY_MODE_SATA, hiding
    in the Marvell Berlin SATA PHY driver.

    Fix the build by:

    1) Renaming Marvell's defined value to a more scoped name,
    in order to avoid any potential conflicts: PHY_BERLIN_MODE_SATA.

    2) Adding the missing enum, which was going to be added anyway as part
    of [1].

    [1] https://lkml.kernel.org/r/20190108163124.6409-3-miquel.raynal@bootlin.com

    Fixes: 49e54187ae0b ("ata: libahci_platform: comply to PHY framework")

    Signed-off-by: John Hubbard
    Acked-by: Jens Axboe
    Acked-by: Olof Johansson
    Cc: Grzegorz Jaszczyk
    Cc: Miquel Raynal
    Cc: Hans de Goede
    Signed-off-by: Linus Torvalds

    John Hubbard
     

08 Jan, 2019

1 commit

  • This driver requires regmap or the compile fails:

    drivers/phy/ti/phy-gmii-sel.c:43:27: error: array type has incomplete element type ‘struct reg_field’
    const struct reg_field (*regfields)[PHY_GMII_SEL_LAST];

    Add it to kconfig.

    Signed-off-by: Jason Gunthorpe
    Signed-off-by: David S. Miller

    Jason Gunthorpe
     

12 Dec, 2018

6 commits

  • Register a simple clock provider for the PHY pipe clock sources so that
    device tree users can point at these clocks via phandles to the lane
    nodes.

    Signed-off-by: Evan Green
    Reviewed-by: Stephen Boyd
    Tested-by: Vivek Gautam
    Signed-off-by: Kishon Vijay Abraham I

    Evan Green
     
  • Utilize the newly fixed up DT bindings to get the tx2 and rx2 register
    regions for the second lane of dual-lane PHYs. Before this change,
    the driver was simply using lane one's register region and adding
    0x400, which reached well beyond the DT-specified register
    allocation. This would have been a crash were it not for the page size
    on ARM64. Fix the driver not to rely on the magic of virtual memory by
    using the newly specified DT register regions for tx2 and rx2.

    In order to support existing device trees, this change also contains a
    fallback mode for when those new register regions don't exist, which
    reverts to the original behavior of overreaching and prints a complaint.

    Signed-off-by: Evan Green
    Reviewed-by: Douglas Anderson
    Signed-off-by: Kishon Vijay Abraham I

    Evan Green
     
  • drivers/phy/ti/phy-gmii-sel.c:91:2-3: Unneeded semicolon

    Remove unneeded semicolon.

    Generated by: scripts/coccinelle/misc/semicolon.cocci

    Fixes: 1811851f4e73 ("phy: ti: introduce phy-gmii-sel driver")
    CC: Grygorii Strashko
    Signed-off-by: kbuild test robot
    Signed-off-by: Kishon Vijay Abraham I

    kbuild test robot
     
  • The MIPI D-PHY spec defines default values and boundaries for most of the
    parameters it defines. Introduce helpers to help drivers get meaningful
    values based on their current parameters, and validate the boundaries of
    these parameters if needed.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Kishon Vijay Abraham I

    Maxime Ripard
     
  • The phy framework is only allowing to configure the power state of the PHY
    using the init and power_on hooks, and their power_off and exit
    counterparts.

    While it works for most, simple, PHYs supported so far, some more advanced
    PHYs need some configuration depending on runtime parameters. These PHYs
    have been supported by a number of means already, often by using ad-hoc
    drivers in their consumer drivers.

    That doesn't work too well however, when a consumer device needs to deal
    with multiple PHYs, or when multiple consumers need to deal with the same
    PHY (a DSI driver and a CSI driver for example).

    So we'll add a new interface, through two funtions, phy_validate and
    phy_configure. The first one will allow to check that a current
    configuration, for a given mode, is applicable. It will also allow the PHY
    driver to tune the settings given as parameters as it sees fit.

    phy_configure will actually apply that configuration in the phy itself.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Kishon Vijay Abraham I

    Maxime Ripard
     
  • This is a cleaned up port of the downstream i.MX8MQ USB3 PHY driver.

    Signed-off-by: Li Jun
    Signed-off-by: Lucas Stach
    Signed-off-by: Kishon Vijay Abraham I

    Li Jun