1. 03 Sep, 2019 6 commits
  2. 26 Aug, 2019 2 commits
    • Markus Elfring's avatar
      ARM: OMAP2+: Delete an unnecessary kfree() call in omap_hsmmc_pdata_init() · 50f57ef8
      Markus Elfring authored
      A null pointer would be passed to a call of the function "kfree" directly
      after a call of the function "kzalloc" failed at one place.
      Remove this superfluous function call.
      
      This issue was detected by using the Coccinelle software.
      Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      50f57ef8
    • Masahiro Yamada's avatar
      ARM: OMAP2+: move platform-specific asm-offset.h to arch/arm/mach-omap2 · ccf4975d
      Masahiro Yamada authored
      <generated/ti-pm-asm-offsets.h> is only generated and included by
      arch/arm/mach-omap2/, so it does not need to reside in the globally
      visible include/generated/.
      
      I renamed it to arch/arm/mach-omap2/pm-asm-offsets.h since the prefix
      'ti-' is just redundant in mach-omap2/.
      
      My main motivation of this change is to avoid the race condition for
      the parallel build (-j) when CONFIG_IKHEADERS is enabled.
      
      When it is enabled, all the headers under include/ are archived into
      kernel/kheaders_data.tar.xz and exposed in the sysfs.
      
      In the parallel build, we have no idea in which order files are built.
      
       - If ti-pm-asm-offsets.h is built before kheaders_data.tar.xz,
         the header will be included in the archive. Probably nobody will
         use it, but it is harmless except that it will increase the archive
         size needlessly.
      
       - If kheaders_data.tar.xz is built before ti-pm-asm-offsets.h,
         the header will not be included in the archive. However, in the next
         build, the archive will be re-generated to include the newly-found
         ti-pm-asm-offsets.h. This is not nice from the build system point
         of view.
      
       - If ti-pm-asm-offsets.h and kheaders_data.tar.xz are built at the
         same time, the corrupted header might be included in the archive,
         which does not look nice either.
      
      This commit fixes the race.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Tested-by: default avatarKeerthy <j-keerthy@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      ccf4975d
  3. 25 Aug, 2019 4 commits
  4. 24 Aug, 2019 1 commit
    • André Draszik's avatar
      ARM: imx: stop adjusting ar8031 phy tx delay · acf993a0
      André Draszik authored
      Recent changes to the Atheros at803x driver cause
      the approach taken here to stop working because
      commit 6d4cd041
      ("net: phy: at803x: disable delay only for RGMII mode")
      and commit cd28d1d6
      ("net: phy: at803x: Disable phy delay for RGMII mode")
      fix the AR8031 driver to configure the phy's (RX/TX)
      delays as per the 'phy-mode' in the device tree.
      
      In particular, the phy tx (and rx) delays are updated
      again as per the 'phy-mode' *after* the code in here
      runs.
      
      Things worked before above commits, because the AR8031
      comes out of reset with RX delay enabled, and the
      at803x driver didn't touch the delay configuration at
      all when "rgmii" mode was selected.
      
      It appears the code in here tries to make device
      trees work that incorrectly specify "rgmii", but
      that can't work any more and it is imperative since
      above commits to have the phy-mode configured
      correctly in the device tree.
      
      I suspect there are a few imx7d based boards using
      the ar8031 phy and phy-mode = "rgmii", but given I
      don't know which ones exactly, I am not in a
      position to update the respective device trees.
      
      Hence this patch is simply removing the superfluous
      code from the imx7d initialisation. An alternative
      could be to add a warning instead, but that would
      penalize all boards that have been updated already.
      Signed-off-by: default avatarAndré Draszik <git@andred.net>
      CC: Russell King <linux@armlinux.org.uk>
      CC: Shawn Guo <shawnguo@kernel.org>
      CC: Sascha Hauer <s.hauer@pengutronix.de>
      CC: Pengutronix Kernel Team <kernel@pengutronix.de>
      CC: Fabio Estevam <festevam@gmail.com>
      CC: NXP Linux Team <linux-imx@nxp.com>
      CC: Kate Stewart <kstewart@linuxfoundation.org>
      CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      CC: Thomas Gleixner <tglx@linutronix.de>
      CC: Leonard Crestez <leonard.crestez@nxp.com>
      CC: linux-arm-kernel@lists.infradead.org
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      acf993a0
  5. 23 Aug, 2019 4 commits
  6. 15 Aug, 2019 14 commits
  7. 14 Aug, 2019 9 commits