Skip to content
  1. Feb 12, 2018
  2. Jan 24, 2018
    • Sebastian Reichel's avatar
      ARM: dts: imx6q-b450v3: Add switch port configuration · 658d063d
      Sebastian Reichel authored
      
      
      This adds support for the Marvell switch and names the network
      ports according to the labels, that can be found next to the
      connectors. The switch is connected to the host system using a
      PCI based network card.
      
      The PCI bus configuration has been written using the following
      information:
      
      root@b450v3# lspci -tv
      -[0000:00]---00.0-[01]----00.0  Intel Corporation I210 Gigabit Network Connection
      root@b450v3# lspci -nn
      00:00.0 PCI bridge [0604]: Synopsys, Inc. Device [16c3:abcd] (rev 01)
      01:00.0 Ethernet controller [0200]: Intel Corporation I210 Gigabit Network Connection [8086:1533] (rev 03)
      
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
      Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      658d063d
    • Sebastian Reichel's avatar
      ARM: dts: imx6q-b650v3: Add switch port configuration · b2ea7f83
      Sebastian Reichel authored
      
      
      This adds support for the Marvell switch and names the network
      ports according to the labels, that can be found next to the
      connectors. The switch is connected to the host system using a
      PCI based network card.
      
      The PCI bus configuration has been written using the following
      information:
      
      root@b650v3# lspci -tv
      -[0000:00]---00.0-[01]----00.0  Intel Corporation I210 Gigabit Network Connection
      root@b650v3# lspci -nn
      00:00.0 PCI bridge [0604]: Synopsys, Inc. Device [16c3:abcd] (rev 01)
      01:00.0 Ethernet controller [0200]: Intel Corporation I210 Gigabit Network Connection [8086:1533] (rev 03)
      
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
      Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b2ea7f83
    • Sebastian Reichel's avatar
      ARM: dts: imx6q-b850v3: Add switch port configuration · e6b22e41
      Sebastian Reichel authored
      
      
      This adds support for the Marvell switch and names the network
      ports according to the labels, that can be found next to the
      connectors ("ID", "IX", "ePort 1", "ePort 2"). The switch is
      connected to the host system using a PCI based network card.
      
      The PCI bus configuration has been written using the following
      information:
      
      root@b850v3# lspci -tv
      -[0000:00]---00.0-[01]----00.0-[02-05]--+-01.0-[03]----00.0  Intel Corporation I210 Gigabit Network Connection
                                              +-02.0-[04]----00.0  Intel Corporation I210 Gigabit Network Connection
                                              \-03.0-[05]--
      root@b850v3# lspci -nn
      00:00.0 PCI bridge [0604]: Synopsys, Inc. Device [16c3:abcd] (rev 01)
      01:00.0 PCI bridge [0604]: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch [10b5:8605] (rev ab)
      02:01.0 PCI bridge [0604]: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch [10b5:8605] (rev ab)
      02:02.0 PCI bridge [0604]: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch [10b5:8605] (rev ab)
      02:03.0 PCI bridge [0604]: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch [10b5:8605] (rev ab)
      03:00.0 Ethernet controller [0200]: Intel Corporation I210 Gigabit Network Connection [8086:1533] (rev 03)
      04:00.0 Ethernet controller [0200]: Intel Corporation I210 Gigabit Network Connection [8086:1533] (rev 03)
      
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
      Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e6b22e41
    • Sebastian Reichel's avatar
      ARM: dts: imx6q-bx50v3: Add internal switch · e26dead4
      Sebastian Reichel authored
      
      
      B850v3, B650v3 and B450v3 all have a GPIO bit banged MDIO bus to
      communicate with a Marvell switch. On all devices the switch is
      connected to a PCI based network card, which needs to be referenced
      by DT, so this also adds the common PCI root node.
      
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
      Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e26dead4
  3. Jan 23, 2018
  4. Jan 21, 2018
    • Nicolas Pitre's avatar
      ARM: 8745/1: get rid of __memzero() · ff5fdafc
      Nicolas Pitre authored
      The __memzero assembly code is almost identical to memset's except for
      two orr instructions. The runtime performance of __memset(p, n) and
      memset(p, 0, n) is accordingly almost identical.
      
      However, the memset() macro used to guard against a zero length and to
      call __memzero at compile time when the fill value is a constant zero
      interferes with compiler optimizations.
      
      Arnd found tha the test against a zero length brings up some new
      warnings with gcc v8:
      
        https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82103
      
      
      
      And successively rremoving the test against a zero length and the call
      to __memzero optimization produces the following kernel sizes for
      defconfig with gcc 6:
      
          text     data     bss       dec       hex  filename
      12248142  6278960  413588  18940690   1210312  vmlinux.orig
      12244474  6278960  413588  18937022   120f4be  vmlinux.no_zero_test
      12239160  6278960  413588  18931708   120dffc  vmlinux.no_memzero
      
      So it is probably not worth keeping __memzero around given that the
      compiler can do a better job at inlining trivial memset(p,0,n) on its
      own. And the memset code already handles a zero length just fine.
      
      Suggested-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarNicolas Pitre <nico@linaro.org>
      Acked-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      ff5fdafc
  5. Jan 19, 2018
  6. Jan 16, 2018
  7. Jan 15, 2018
    • Daniel Golle's avatar
      ARM: dts: rename oxnas dts files · 9e6c62b0
      Daniel Golle authored
      
      
      Other platforms' device-tree files start with a platform prefix, such as
      sun7i-a20-*.dts or at91-*.dts.
      This naming scheme turns out to be handy when using multi-platform build
      systems such as OpenWrt.
      Prepend oxnas files with their platform prefix to comply with the naming
      scheme already used for most other platforms.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      9e6c62b0
    • Arnd Bergmann's avatar
      ARM: dts: s5pv210: add interrupt-parent for ohci · 5c103719
      Arnd Bergmann authored
      
      
      The ohci-hcd node has an interrupt number but no interrupt-parent,
      leading to a warning with current dtc versions:
      
      arch/arm/boot/dts/s5pv210-aquila.dtb: Warning (interrupts_property): Missing interrupt-parent for /soc/ohci@ec300000
      arch/arm/boot/dts/s5pv210-goni.dtb: Warning (interrupts_property): Missing interrupt-parent for /soc/ohci@ec300000
      arch/arm/boot/dts/s5pv210-smdkc110.dtb: Warning (interrupts_property): Missing interrupt-parent for /soc/ohci@ec300000
      arch/arm/boot/dts/s5pv210-smdkv210.dtb: Warning (interrupts_property): Missing interrupt-parent for /soc/ohci@ec300000
      arch/arm/boot/dts/s5pv210-torbreck.dtb: Warning (interrupts_property): Missing interrupt-parent for /soc/ohci@ec300000
      
      As seen from the related exynos dts files, the ohci and ehci controllers
      always share one interrupt number, and the number is the same here as
      well, so setting the same interrupt-parent is the reasonable solution
      here.
      
      Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      5c103719
    • Arnd Bergmann's avatar
      ARM: lpc3250: fix uda1380 gpio numbers · ca32e0c4
      Arnd Bergmann authored
      dtc warns about obviously incorrect GPIO numbers for the audio codec
      on both lpc32xx boards:
      
      arch/arm/boot/dts/lpc3250-phy3250.dtb: Warning (gpios_property): reset-gpio property size (12) too small for cell size 3 in /ahb/apb/i2c@400A0000/uda1380@18
      arch/arm/boot/dts/lpc3250-phy3250.dtb: Warning (gpios_property): power-gpio property size (12) too small for cell size 3 in /ahb/apb/i2c@400A0000/uda1380@18
      arch/arm/boot/dts/lpc3250-ea3250.dtb: Warning (gpios_property): reset-gpio property size (12) too small for cell size 3 in /ahb/apb/i2c@400A0000/uda1380@18
      arch/arm/boot/dts/lpc3250-ea3250.dtb: Warning (gpios_property): power-gpio property size (12) too small for cell size 3 in /ahb/apb/i2c@400A0000/uda1380@18
      
      It looks like the nodes are written for a different binding that combines
      the GPIO number into a single number rather than a bank/number pair.
      I found the right numbers on stackexchange.com, so this patch fixes
      the warning and has a reasonable chance of getting things to actually
      work.
      
      Cc: stable@vger.kernel.org
      Link: https://unix.stackexchange.com/questions/59497/alsa-asoc-how-to-correctly-load-devices-drivers/62217#62217
      
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      ca32e0c4
    • Patrice Chotard's avatar
      ARM: dts: STi: Add gpio polarity for "hdmi,hpd-gpio" property · 7ac1f59c
      Patrice Chotard authored
      
      
      The GPIO polarity is missing in the hdmi,hpd-gpio property, this
      fixes the following DT warnings:
      
      arch/arm/boot/dts/stih410-b2120.dtb: Warning (gpios_property): hdmi,hpd-gpio property
      size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000
      
      arch/arm/boot/dts/stih407-b2120.dtb: Warning (gpios_property): hdmi,hpd-gpio property
      size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000
      
      arch/arm/boot/dts/stih410-b2260.dtb: Warning (gpios_property): hdmi,hpd-gpio property
      size (8) too small for cell size 2 in /soc/sti-display-subsystem/sti-hdmi@8d04000
      
      [arnd: marked Cc:stable since this warning shows up with the latest dtc
             by default, and is more likely to actually cause problems than the
             other patches from this series]
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      7ac1f59c
  8. Jan 12, 2018
  9. Jan 10, 2018
  10. Jan 09, 2018
Loading