1. 25 Jul, 2020 1 commit
    • Grygorii Strashko's avatar
      ARM: dts: keystone-k2g-evm: fix rgmii phy-mode for ksz9031 phy · fe1d899f
      Grygorii Strashko authored
      Since commit bcf3440c ("net: phy: micrel: add phy-mode support for the
      KSZ9031 PHY") the networking is broken on keystone-k2g-evm board.
      
      The above board have phy-mode = "rgmii-id" and it is worked before because
      KSZ9031 PHY started with default RGMII internal delays configuration (TX
      off, RX on 1.2 ns) and MAC provided TX delay by default.
      After above commit, the KSZ9031 PHY starts handling phy mode properly and
      enables both RX and TX delays, as result networking is become broken.
      
      Fix it by switching to phy-mode = "rgmii-rxid" to reflect previous
      behavior.
      
      Fixes: bcf3440c
      
       ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY")
      Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
      Cc: Oleksij Rempel <o.rempel@pengutronix.de>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Philippe Schenker <philippe.schenker@toradex.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      fe1d899f
  2. 24 Jul, 2020 2 commits
  3. 22 Jul, 2020 2 commits
  4. 20 Jul, 2020 3 commits
    • Michael Trimarchi's avatar
      ARM: dts: imx6qdl-icore: Fix OTG_ID pin and sdcard detect · 4a601da9
      Michael Trimarchi authored
      The current pin muxing scheme muxes GPIO_1 pad for USB_OTG_ID
      because of which when card is inserted, usb otg is enumerated
      and the card is never detected.
      
      [   64.492645] cfg80211: failed to load regulatory.db
      [   64.492657] imx-sdma 20ec000.sdma: external firmware not found, using ROM firmware
      [   76.343711] ci_hdrc ci_hdrc.0: EHCI Host Controller
      [   76.349742] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 2
      [   76.388862] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
      [   76.396650] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.08
      [   76.405412] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      [   76.412763] usb usb2: Product: EHCI Host Controller
      [   76.417666] usb usb2: Manufacturer: Linux 5.8.0-rc1-next-20200618 ehci_hcd
      [   76.424623] usb usb2: SerialNumber: ci_hdrc.0
      [   76.431755] hub 2-0:1.0: USB hub found
      [   76.435862] hub 2-0:1.0: 1 port detected
      
      The TRM mentions GPIO_1 pad should be muxed/assigned for card detect
      and ENET_RX_ER pad for USB_OTG_ID for proper operation.
      
      This patch fixes pin muxing as per TRM and is tested on a
      i.Core 1.5 MX6 DL SOM.
      
      [   22.449165] mmc0: host does not support reading read-only switch, assuming write-enable
      [   22.459992] mmc0: new high speed SDHC card at address 0001
      [   22.469725] mmcblk0: mmc0:0001 EB1QT 29.8 GiB
      [   22.478856]  mmcblk0: p1 p2
      
      Fixes: 6df11287
      
       ("ARM: dts: imx6q: Add Engicam i.CoreM6 Quad/Dual initial support")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarMichael Trimarchi <michael@amarulasolutions.com>
      Signed-off-by: default avatarSuniel Mahesh <sunil@amarulasolutions.com>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      4a601da9
    • Fabio Estevam's avatar
      ARM: dts: imx6sx-sabreauto: Fix the phy-mode on fec2 · d36f2607
      Fabio Estevam authored
      Commit 0672d22a ("ARM: dts: imx: Fix the AR803X phy-mode") fixed the
      phy-mode for fec1, but missed to fix it for the fec2 node.
      
      Fix fec2 to also use "rgmii-id" as the phy-mode.
      
      Cc: <stable@vger.kernel.org>
      Fixes: 0672d22a
      
       ("ARM: dts: imx: Fix the AR803X phy-mode")
      Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      d36f2607
    • Fabio Estevam's avatar
      ARM: dts: imx6sx-sdb: Fix the phy-mode on fec2 · c696afd3
      Fabio Estevam authored
      Commit 0672d22a ("ARM: dts: imx: Fix the AR803X phy-mode") fixed the
      phy-mode for fec1, but missed to fix it for the fec2 node.
      
      Fix fec2 to also use "rgmii-id" as the phy-mode.
      
      Cc: <stable@vger.kernel.org>
      Fixes: 0672d22a
      
       ("ARM: dts: imx: Fix the AR803X phy-mode")
      Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      c696afd3
  5. 17 Jul, 2020 2 commits
  6. 16 Jul, 2020 4 commits
  7. 15 Jul, 2020 5 commits
  8. 14 Jul, 2020 2 commits
  9. 13 Jul, 2020 4 commits
    • Lad Prabhakar's avatar
      arm64: defconfig: Enable CONFIG_PCIE_RCAR_HOST · fecc5cfc
      Lad Prabhakar authored
      
      
      config option PCIE_RCAR internally selects PCIE_RCAR_HOST which builds
      the same driver. So this patch renames CONFIG_PCIE_RCAR to
      CONFIG_PCIE_RCAR_HOST so that PCIE_RCAR can be safely dropped from
      Kconfig file.
      Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
      Reviewed-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
      Link: https://lore.kernel.org/r/1589494238-2933-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com
      
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      fecc5cfc
    • Peng Fan's avatar
      soc: imx: check ls1021a · 7f6e8dff
      Peng Fan authored
      fsl,ls1021a is a mach under arch/arm/mach-imx/, however it could
      not use the soc driver which will break caam on ls1021a platform.
      
      So directly return if it is compatible with fsl,ls1021a.
      
      Fixes: 52102a3b
      
       ("soc: imx: move cpu code to drivers/soc/imx")
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Tested-by: default avatarHoria Geantă <horia.geanta@nxp.com>
      Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      7f6e8dff
    • Bjorn Helgaas's avatar
      ARM: imx: Remove imx_add_imx_dma() unused irq_err argument · f8951dce
      Bjorn Helgaas authored
      No callers of imx_add_imx_dma() need an error IRQ, so they supply 0 as
      "irq_err", which means we register a resource of IRQ 0, which is invalid
      and causes a warning if used.
      
      Remove the "irq_err" argument altogether so there's no chance of trying to
      use the invalid IRQ 0.
      
      Fixes: a85a6c86
      
       ("driver core: platform: Clarify that IRQ 0 is invalid")
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: kernel@pengutronix.de
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: linux-imx@nxp.com
      Cc: linux-arm-kernel@lists.infradead.org
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      f8951dce
    • Guenter Roeck's avatar
      ARM: imx: Provide correct number of resources when registering gpio devices · 2a835440
      Guenter Roeck authored
      Since commit a85a6c86 ("driver core: platform: Clarify that IRQ 0 is
      invalid"), the kernel is a bit touchy when it encounters interrupt 0.
      As a result, there are lots of warnings such as the following when booting
      systems such as 'kzm'.
      
      WARNING: CPU: 0 PID: 1 at drivers/base/platform.c:224 platform_get_irq_optional+0x118/0x128
      0 is an invalid IRQ number
      Modules linked in:
      CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.8.0-rc3 #1
      Hardware name: Kyoto Microcomputer Co., Ltd. KZM-ARM11-01
      [<c01127d4>] (unwind_backtrace) from [<c010c620>] (show_stack+0x10/0x14)
      [<c010c620>] (show_stack) from [<c06f5f54>] (dump_stack+0xe8/0x120)
      [<c06f5f54>] (dump_stack) from [<c0128878>] (__warn+0xe4/0x108)
      [<c0128878>] (__warn) from [<c0128910>] (warn_slowpath_fmt+0x74/0xbc)
      [<c0128910>] (warn_slowpath_fmt) from [<c08b8e84>] (platform_get_irq_optional+0x118/0x128)
      [<c08b8e84>] (platform_get_irq_optional) from [<c08b8eb4>] (platform_irq_count+0x20/0x3c)
      [<c08b8eb4>] (platform_irq_count) from [<c0728660>] (mxc_gpio_probe+0x8c/0x494)
      [<c0728660>] (mxc_gpio_probe) from [<c08b93cc>] (platform_drv_probe+0x48/0x98)
      [<c08b93cc>] (platform_drv_probe) from [<c08b703c>] (really_probe+0x214/0x344)
      [<c08b703c>] (really_probe) from [<c08b7274>] (driver_probe_device+0x58/0xb4)
      [<c08b7274>] (driver_probe_device) from [<c08b7478>] (device_driver_attach+0x58/0x60)
      [<c08b7478>] (device_driver_attach) from [<c08b7504>] (__driver_attach+0x84/0xc0)
      [<c08b7504>] (__driver_attach) from [<c08b50f8>] (bus_for_each_dev+0x78/0xb8)
      [<c08b50f8>] (bus_for_each_dev) from [<c08b62cc>] (bus_add_driver+0x154/0x1e0)
      [<c08b62cc>] (bus_add_driver) from [<c08b82b8>] (driver_register+0x74/0x108)
      [<c08b82b8>] (driver_register) from [<c0102320>] (do_one_initcall+0x80/0x3b4)
      [<c0102320>] (do_one_initcall) from [<c1501008>] (kernel_init_freeable+0x170/0x208)
      [<c1501008>] (kernel_init_freeable) from [<c0e178d4>] (kernel_init+0x8/0x11c)
      [<c0e178d4>] (kernel_init) from [<c0100134>] (ret_from_fork+0x14/0x20)
      
      As it turns out, mxc_register_gpio() is a bit lax when setting the
      number of resources: it registers a resource with interrupt 0 when in
      reality there is no such interrupt. Fix the problem by not declaring
      the second interrupt resource if there is no second interrupt.
      
      Fixes: a85a6c86
      
       ("driver core: platform: Clarify that IRQ 0 is invalid")
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      2a835440
  10. 12 Jul, 2020 8 commits
  11. 11 Jul, 2020 7 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.8b-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 0aea6d5c
      Linus Torvalds authored
      Pull xen fix from Juergen Gross:
       "Just one fix of a recent patch (double free in an error path)"
      
      * tag 'for-linus-5.8b-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/xenbus: Fix a double free in xenbus_map_ring_pv()
      0aea6d5c
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.8-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 997c4431
      Linus Torvalds authored
      Pull powerpc fix from Michael Ellerman:
       "One fix for a crash/soft lockup on Power8, caused by the exception
        rework we did in v5.7.
      
        Thanks to Paul Menzel and Nicholas Piggin"
      
      * tag 'powerpc-5.8-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/64s/exception: Fix 0x1500 interrupt handler crash
      997c4431
    • Tim Harvey's avatar
      ARM: dts: imx6qdl-gw551x: fix audio SSI · 4237c625
      Tim Harvey authored
      The audio codec on the GW551x routes to ssi1.  It fixes audio capture on
      the device.
      
      Cc: stable@vger.kernel.org
      Fixes: 3117e851
      
       ("ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x")
      Signed-off-by: default avatarTim Harvey <tharvey@gateworks.com>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      4237c625
    • Linus Torvalds's avatar
      Merge tag 'libnvdimm-fix-v5.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · 1df0d896
      Linus Torvalds authored
      Pull libnvdimm fix from Dan Williams:
       "A one-line Fix for key ring search permissions to address a regression
        from -rc1"
      
      * tag 'libnvdimm-fix-v5.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        libnvdimm/security: Fix key lookup permissions
      1df0d896
    • Linus Torvalds's avatar
      Merge tag '5.8-rc4-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 5ab39e08
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Four cifs/smb3 fixes: the three for stable fix problems found recently
        with change notification including a reference count leak"
      
      * tag '5.8-rc4-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: update internal module version number
        cifs: fix reference leak for tlink
        smb3: fix unneeded error message on change notify
        cifs: remove the retry in cifs_poxis_lock_set
        smb3: fix access denied on change notify request to some servers
      5ab39e08
    • Linus Torvalds's avatar
      Merge tag 'inclusive-terminology' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/linux · 49decddd
      Linus Torvalds authored
      Pull coding style terminology documentation from Dan Williams:
       "The discussion has tapered off as well as the incoming ack, review,
        and sign-off tags. I did not see a reason to wait for the next merge
        window"
      
      * tag 'inclusive-terminology' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/linux:
        CodingStyle: Inclusive Terminology
      49decddd
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 5a764898
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Restore previous behavior of CAP_SYS_ADMIN wrt loading networking
          BPF programs, from Maciej Żenczykowski.
      
       2) Fix dropped broadcasts in mac80211 code, from Seevalamuthu
          Mariappan.
      
       3) Slay memory leak in nl80211 bss color attribute parsing code, from
          Luca Coelho.
      
       4) Get route from skb properly in ip_route_use_hint(), from Miaohe Lin.
      
       5) Don't allow anything other than ARPHRD_ETHER in llc code, from Eric
          Dumazet.
      
       6) xsk code dips too deeply into DMA mapping implementation internals.
          Add dma_need_sync and use it. From Christoph Hellwig
      
       7) Enforce power-of-2 for BPF ringbuf sizes. From Andrii Nakryiko.
      
       8) Check for disallowed attributes when loading flow dissector BPF
          programs. From Lorenz Bauer.
      
       9) Correct packet injection to L3 tunnel devices via AF_PACKET, from
          Jason A. Donenfeld.
      
      10) Don't advertise checksum offload on ipa devices that don't support
          it. From Alex Elder.
      
      11) Resolve several issues in TCP MD5 signature support. Missing memory
          barriers, bogus options emitted when using syncookies, and failure
          to allow md5 key changes in established states. All from Eric
          Dumazet.
      
      12) Fix interface leak in hsr code, from Taehee Yoo.
      
      13) VF reset fixes in hns3 driver, from Huazhong Tan.
      
      14) Make loopback work again with ipv6 anycast, from David Ahern.
      
      15) Fix TX starvation under high load in fec driver, from Tobias
          Waldekranz.
      
      16) MLD2 payload lengths not checked properly in bridge multicast code,
          from Linus Lüssing.
      
      17) Packet scheduler code that wants to find the inner protocol
          currently only works for one level of VLAN encapsulation. Allow
          Q-in-Q situations to work properly here, from Toke
          Høiland-Jørgensen.
      
      18) Fix route leak in l2tp, from Xin Long.
      
      19) Resolve conflict between the sk->sk_user_data usage of bpf reuseport
          support and various protocols. From Martin KaFai Lau.
      
      20) Fix socket cgroup v2 reference counting in some situations, from
          Cong Wang.
      
      21) Cure memory leak in mlx5 connection tracking offload support, from
          Eli Britstein.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (146 commits)
        mlxsw: pci: Fix use-after-free in case of failed devlink reload
        mlxsw: spectrum_router: Remove inappropriate usage of WARN_ON()
        net: macb: fix call to pm_runtime in the suspend/resume functions
        net: macb: fix macb_suspend() by removing call to netif_carrier_off()
        net: macb: fix macb_get/set_wol() when moving to phylink
        net: macb: mark device wake capable when "magic-packet" property present
        net: macb: fix wakeup test in runtime suspend/resume routines
        bnxt_en: fix NULL dereference in case SR-IOV configuration fails
        libbpf: Fix libbpf hashmap on (I)LP32 architectures
        net/mlx5e: CT: Fix memory leak in cleanup
        net/mlx5e: Fix port buffers cell size value
        net/mlx5e: Fix 50G per lane indication
        net/mlx5e: Fix CPU mapping after function reload to avoid aRFS RX crash
        net/mlx5e: Fix VXLAN configuration restore after function reload
        net/mlx5e: Fix usage of rcu-protected pointer
        net/mxl5e: Verify that rpriv is not NULL
        net/mlx5: E-Switch, Fix vlan or qos setting in legacy mode
        net/mlx5: Fix eeprom support for SFP module
        cgroup: Fix sock_cgroup_data on big-endian.
        selftests: bpf: Fix detach from sockmap tests
        ...
      5a764898